r/openstack • • Feb 27 '20

OSA - Use existing CEPH

Hi all, I am now trying to deploy OpenStack Ansible and have a running production CEPH cluster already. I have procured corresponding ceph.conf and client keyrings and created the pools.

I tried to provide the ceph_config_file variable and ceph_keyring_dir in user_variables.yml, however os-glance still tries to connect to the MONs to retreive the conf and the keyring.

How do I provide the credentials to my OSA setup? I do not want the OSA to deploy CEPH nor do I want it to connect to the production CEPH MONs.

Thanks a lot.

9 Upvotes

3 comments sorted by

2

u/maharg101 Feb 28 '20

That feature is not released yet. I bumped into the same thing.

You need to

# allow ceph keyrings to be provided as files
# - see https://review.opendev.org/#/c/671762/
cd /etc/ansible/roles/ceph_client/
git cherry-pick db3e9536d403727a964c5cc404e62cff37845c84

# further bugfix to the above cherry-pick
# - see https://bugs.launchpad.net/openstack-ansible/+bug/1860572
git cherry-pick 028ec5225d71fa706b1bb4364ee5dc010db64334

1

u/lantianz Feb 29 '20

Thanks, I will try this one. I tried with master initially, but it had failed.

2

u/[deleted] Feb 28 '20

Another option you have is to deploy Openstack using TripleO with an external ceph cluster [1]

[1] https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/features/ceph_external.html#deployment-of-an-overcloud-with-external-ceph