Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6A7D18DC6 for ; Wed, 16 Mar 2016 13:17:38 +0000 (UTC) Received: (qmail 79991 invoked by uid 500); 16 Mar 2016 13:17:33 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 79859 invoked by uid 500); 16 Mar 2016 13:17:33 -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 79837 invoked by uid 500); 16 Mar 2016 13:17:33 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 79830 invoked by uid 99); 16 Mar 2016 13:17:33 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2016 13:17:33 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 934062C14F8 for ; Wed, 16 Mar 2016 13:17:33 +0000 (UTC) Date: Wed, 16 Mar 2016 13:17:33 +0000 (UTC) From: =?utf-8?Q?Linas_=C5=BDilinskas_=28JIRA=29?= To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-9309) Adding primary storage pool (basic rbd/DefaultPrimary) doesn't work if the rados secret contains slashes or possibly other special symbols MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Linas =C5=BDilinskas created CLOUDSTACK-9309: ------------------------------------------- Summary: Adding primary storage pool (basic rbd/DefaultPrimary= ) doesn't work if the rados secret contains slashes or possibly other speci= al symbols Key: CLOUDSTACK-9309 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9309 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the defa= ult.) Components: Management Server Affects Versions: 4.8.0 Environment: CentOS 7, Ceph 0.87 from official repo Reporter: Linas =C5=BDilinskas Adding ceph pirmary storage fails with sql error if the rados secret contai= ns slashes (and plus signs in our case) Original parameters entered [code] Scope: Zone Wide Hypervisor: KVM *Zone: Office Test *Name: test *Protocol: RBD *Provider: DefaultPrimary RADOS Monitor: test RADOS Pool: test RADOS User: test RADOS Secret: AQDw/+ZWCaxqFxAAYV/Ey1jjtNxEG2H7uF0tGg=3D=3D Storage Tags: [code] Api call sent: [code] command:createStoragePool scope:zone zoneid:6f7b029b-0926-4e2e-9666-519cc228ce9b hypervisor:KVM name:test provider:DefaultPrimary url:rbd://test:AQDw_-ZWCaxqFxAAYV/Ey1jjtNxEG2H7uF0tGg=3D=3D@test/test response:json _:1458132946658 [code] Interface displays a dialog with the following: [code] Failed to add data store: DB Exception on: com.mysql.jdbc.JDBC4PreparedStat= ement@512efc4: 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'test', _binary'4d682827-ab95-363b-8d77-8f88= 3c2c8de0', 'RBD', '2016-03-16 12:56:42', null, 2, null, 0, 0, 'Initialized'= , _binary'DefaultPrimary', null, _binary'Ey1jjtNxEG2H7uF0tGg=3D=3D@test/tes= t', 6789, null, null, null, 0, null, null) [code] Notice that in the displayed error, the secret as would-be-inserted is Ey1j= jtNxEG2H7uF0tGg=3D=3D (the beggining is cut off to the second slash) Also the API call itself seems to have the secret mangled already, where th= e first slash and plus sign would be. We regenerated the secret to contain no special symbols (well equal sign is= present) and it went through. -- This message was sent by Atlassian JIRA (v6.3.4#6332)