HOS 2.1 Ceph Installation with Network Customisation (6-of-8)

Helion OpenStack 2.1 Ceph Integration

Configure the Block Storage Backend

First we need to install the Ceph client on the deployer node as follows (remembering –ask-vault-pass as I’ve encrypted sensitive data):

cd ~/scratch/ansible/next/hos/ansible
ansible-playbook -i hosts/verb_hosts ceph-setup-deployer-as-client.yml --ask-vault-pass


InstallC (46)

Install the Ceph client on all nodes that will be using Ceph services:

cd ~/scratch/ansible/next/hos/ansible
ansible-playbook -i hosts/verb_hosts ceph-client-prepare.yml --ask-vault-pass


InstallC (47)

Verify the cinder.conf settings – remember that I replaced the default FSID and GUID – this will need to be applied to the cinder.conf file via it’s associated ansible template ~/helion/my_cloud/config/cinder/cinder.conf.j2.

Give the ceph backend a memorable name – especially if working with multiple backends e.g.

InstallC (48)

Carry on down the file to the Ceph section and remove the comments, then fill in the values pertinent to your installation. These are the values defined earlier in ~/helion/my_cloud/config/ceph/user_model.yml . In my case the file should look like this

InstallC (50)

To enable Ceph for volume backups carry on down this cinder.conf.j2 template file to the backup section – uncomment it and fill in the appropriate values:

InstallC (51)

We can now move on to glance configuration, provided you wish to use Ceph to store glance images. The file we need to modify now is called ~/helion/my_cloud/config/glance/glance-api.conf.j2 -surprise, surprise. Make the following changes

InstallC (53)

And change both “stores” and “default_store” as follows

InstallC (54)

So we’ve now configured Ceph for cinder volumes, cinder backups and glance images. All that’s left to configure is access to the hypervisor to mount volumes on virtual machines – ~/helion/my_cloud/config/nova/kvm-hypervisor.conf.j2 is the configuration file that we need to amend now

InstallC (55)

Now it’s back to HOS 2.X HLM basics when configurations have been changed and need to be redeployed.

I’ve got a couple of additional steps that you may not require if you have not encrypted sensitive data.

cd ~/helion/hos/ansible
git add -A
git commit -m "Configured Ceph Backends for Cinder, Cinder Backup, Glance and Nova"

ansible-playbook -i hosts/localhost config-processor-run.yml --ask-vault-pass


InstallC (56)

Build the deployment directory

ansible-playbook -i hosts/localhost ready-deployment.yml --ask-vault-pass


InstallC (57)

Run the Cinder reconfigure playbook

cd ~/scratch/ansible/next/hos/ansible
ansible-playbook -i hosts/verb_hosts cinder-reconfigure.yml --ask-vault-pass


InstallC (58)

Run the Glance reconfigure playbook

cd ~/scratch/ansible/next/hos/ansible
ansible-playbook -i hosts/verb_hosts glance-reconfigure.yml --ask-vault-pass


InstallC (59)

Finally run the Nova reconfigure playbook

cd ~/scratch/ansible/next/hos/ansible
ansible-playbook -i hosts/verb_hosts nova-reconfigure.yml --ask-vault-pass


InstallC (60)

It’s now time to start validation of the installation.

One thought on “HOS 2.1 Ceph Installation with Network Customisation (6-of-8)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s