Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 732B7200C1F for ; Sat, 4 Feb 2017 03:40:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 71AE9160B55; Sat, 4 Feb 2017 02:40:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BC444160B3F for ; Sat, 4 Feb 2017 03:40:55 +0100 (CET) Received: (qmail 24737 invoked by uid 500); 4 Feb 2017 02:40:54 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 24728 invoked by uid 500); 4 Feb 2017 02:40:54 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 24725 invoked by uid 99); 4 Feb 2017 02:40:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2017 02:40:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 694EC1A05B6 for ; Sat, 4 Feb 2017 02:40:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id uwALnsXWPckM for ; Sat, 4 Feb 2017 02:40:53 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B63645FB73 for ; Sat, 4 Feb 2017 02:40:52 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D8845E023B for ; Sat, 4 Feb 2017 02:40:51 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 7FD6725286 for ; Sat, 4 Feb 2017 02:40:51 +0000 (UTC) Date: Sat, 4 Feb 2017 02:40:51 +0000 (UTC) From: "James Hilliard (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9303) Cloudstack can't connect to CEPH with "/" in the user pw MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 04 Feb 2017 02:40:56 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852511#comment-15852511 ] James Hilliard commented on CLOUDSTACK-9303: -------------------------------------------- It works if you urlencode the rados secret. > Cloudstack can't connect to CEPH with "/" in the user pw > -------------------------------------------------------- > > Key: CLOUDSTACK-9303 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9303 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: KVM > Affects Versions: 4.7.1 > Reporter: Jens Fettig > > Cloudstack can't connect to CEPH when the CEPH user password has "/" in it. > If you create a user in ceph for cloudstack like this: > {code} > ceph auth get-or-create client.cloudstack mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=cloudstack' > {code} > you can get a password like this: > {code} > [client.cloudstack] > key = AQDBTt1HGFDXSBRAA/z9KzqxaDyG2mf/Pwli9bQ== > {code} > If you tried to add CEPH to Cloudstack you will get this error: > {code} > INFO [c.c.a.ApiServer] (catalina-exec-7:ctx-67be8db0 ctx-2d44ee57) (logid:eda7b073) Failed to add data store: DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@5ed1ff28: INSERT INTO storage_pool (storage_pool.id, storage_pool.name, storage_pool.uuid, storage_pool.pool_type, storage_pool.created, storage_pool.update_time, storage_pool.data_center_id, storage_pool.pod_id, storage_pool.used_bytes, storage_pool.capacity_bytes, storage_pool.status, storage_pool.storage_provider_name, storage_pool.host_address, storage_pool.path, storage_pool.port, storage_pool.user_info, storage_pool.cluster_id, storage_pool.scope, storage_pool.managed, storage_pool.capacity_iops, storage_pool.hypervisor) VALUES (0, _binary'Ceph for KVM', _binary'647aa93d-8c8b-3f96-b387-8b5cfd95a314', 'RBD', '2016-03-07 10:47:10', null, 3, 3, 0, 0, 'Initialized', _binary'DefaultPrimary', null, _binary'Pwli9bQ==@cloudstack.local/cloudstack', 6789, null, 7, null, 0, null, null) > {code} > The problem is here: > {code} > _binary'Pwli9bQ==@cloudstack.local/cloudstack' > {code} > The "/" cuts the pw for the login and Cloudstack can't connect with CEPH. Maybe you can fix that and/or make a hint that the password should not have a "/" in it. > With best regards, > J. Fettig -- This message was sent by Atlassian JIRA (v6.3.15#6346)