Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.7.1
-
None
-
Security Level: Public (Anyone can view this level - this is the default.)
-
None
Description
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:
ceph auth get-or-create client.cloudstack mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=cloudstack'
you can get a password like this:
[client.cloudstack] key = AQDBTt1HGFDXSBRAA/z9KzqxaDyG2mf/Pwli9bQ==
If you tried to add CEPH to Cloudstack you will get this error:
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)
The problem is here:
_binary'Pwli9bQ==@cloudstack.local/cloudstack'
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