nova-compute-power

This page is a draft

Deploying Openstack Nova Compute on PowerKVM using Juju charms

It is possible to deploy Openstack nova-compute to PowerKVM on POWER8 using a Juju charm called nova compute power.
What is described in this page was extracted from the charm's page or was noted during a test deployment.

This was tested with PowerKVM 2.1.1 and Openstack Kilo.

Install Juju

On Ubuntu machine:

  •    1 $ sudo apt-get install python-software-properties
       2 $ sudo apt-get install software-properties-common
       3 $ sudo add-apt-repository ppa:juju/stable
       4 $ sudo apt-get install juju-quickstart juju-core juju-local
       5 $ ssh-keygen
    

Set up the PowerKVM node

On PowerKVM:

To generate .ssh directory

  •    1 # ssh-keygen
       2 
    

Edit /etc/ssh/sshd_config

Check if line below is in the file:

PermitRootLogin yes

Then:

  •    1 # service sshd restart
       2 
    

Download and configure the charm

On Ubuntu machine:

  •    1 $ ssh-copy-id power-user@PowerKVM
       2 $ juju switch local
       3 $ juju bootstrap
       4 $ cd ~
       5 $ mkdir -p charms/trusty
       6 $ cd charms/trusty
       7 $ bzr branch lp:~james-page/charms/trusty/nova-compute-power/trunk nova-compute-power
    

Before actually deploying the charm, one should configure it.

Edit nova-compute-power/config.yaml

Attention to the lines:

openstack-release: OpenStack release to use for configuration of POWER hypervisor. It is advisable to use the same version all across the services, so there will be no compatibility problems. In other words, use the same Openstack version here and on the controller node.

power-user: The user that will be used to install rpms on the PowerKVM machine

power-key: The name of the file that will contain the ssh key

power-repo: RPM repository of OpenStack packages to deploy to POWER hypervisors.

power-hosts: POWER hosts that will be managed; space delimited.

power-password: sudo password on POWER hypervisor

Deploy

  •    1 $ juju deploy --repository=~/charms local:trusty/nova-compute-power
    

Doing so will create a log file (it might take a while) into /var/log/juju-local

The default file is /var/log/juju-local/unit-nova-compute-power-0.log

On the PowerKVM machine:

  •    1 # systemctl restart openvswitch
       2 
    

Keep in mind that it will probably be necessary to update the file /etc/nova/nova.conf.

The charm itself contains a file nova.conf within templates directory that might be worth updating. That way it would even be possible to deploy the charm without having to configure the compute node afterwards.

Of course, the above is valid for a local deployment. It is possible to set a non-local environment, such as Openstack or MAAS.

ppc64el/nova-compute-power (last edited 2016-06-03 14:18:54 by chris-gondolin)