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

2016-01-23

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 its 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)

Glance Configuration

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.

Hypervisor Access Configuration

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"

export HOS_USER_PASSWORD_ENCRYPT_KEY=SomeSecretKey
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)

Reconfigure Services

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.

Originally published on allthingscloud.eu (2016-01-23).

← All posts