You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Jens Fettig (JIRA)" <ji...@apache.org> on 2016/03/07 15:30:40 UTC

[jira] [Created] (CLOUDSTACK-9303) Cloudstack can't connect to CEPH with "/" in the user pw

Jens Fettig created CLOUDSTACK-9303:
---------------------------------------

             Summary: 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.4#6332)