Difference between revisions of "Powervcdriver"
(→Setup) |
|||
Line 50: | Line 50: | ||
CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=local,vlan | CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=local,vlan | ||
CONFIG_NEUTRON_ML2_VLAN_RANGES=default:1:4094 | CONFIG_NEUTRON_ML2_VLAN_RANGES=default:1:4094 | ||
− | === | + | |
+ | === Setup PowerVC Driver === | ||
==== Download PowerVC Driver ==== | ==== Download PowerVC Driver ==== | ||
Line 56: | Line 57: | ||
git clone https://github.com/stackforge/powervc-driver.git | git clone https://github.com/stackforge/powervc-driver.git | ||
− | ==== | + | ==== Manually Install ==== |
* Create PowerVC Driver configuration | * Create PowerVC Driver configuration | ||
Line 68: | Line 69: | ||
mkdir -p /var/log/powervc | mkdir -p /var/log/powervc | ||
− | * | + | * Stop the default nova-compute service |
− | |||
− | |||
− | |||
− | |||
− | |||
* Enable OpenStack Cinder backends with PowerVC | * Enable OpenStack Cinder backends with PowerVC | ||
Line 83: | Line 79: | ||
=== Configure powervc.conf and powervc-neutron.conf === | === Configure powervc.conf and powervc-neutron.conf === | ||
+ | ==== powervc-neutron.conf ==== | ||
+ | * Setup Neutron DB connection, e.g.: | ||
+ | connection = mysql://<user>:<password>@<host>/ovs_neutron?charset=utf8 | ||
+ | |||
+ | ==== powervc.conf ==== | ||
+ | * Setup [openstack] section with OpenStack information | ||
+ | # Devstack, check openrc file. | ||
+ | # Ubuntu Cloud Archive, <TODO> | ||
+ | # RDO, check packstack answer file. | ||
+ | * Setup [powervc] section with PowerVC information | ||
+ | # Contact your PowerVC system administrator for the information | ||
+ | # The following options are needed to configure in a typical setup: | ||
+ | # PowerVC Keystone authentication | ||
+ | auth_url = https://<host>/powervc/openstack/identity/v3 | ||
+ | admin_user = | ||
+ | admin_password = | ||
+ | admin_tenant_name = | ||
+ | # Value of insecure option for the connections (Default=True) | ||
+ | http_insecure = True | ||
+ | # PowerVC cacert needed when secure connections are used | ||
+ | connection_cacert = <path_to_the_cert> | ||
+ | |||
+ | # The names of the storage connectivity groups supported by the driver | ||
+ | storage_connectivity_group = <e.g. Any host, all VIOS> | ||
+ | |||
+ | # PowerVC Qpid Connection | ||
+ | qpid_hostname = | ||
+ | qpid_username = | ||
+ | qpid_password = | ||
+ | # Qpid broker port (integer value) | ||
+ | # uncomment following line for non-ssl | ||
+ | # qpid_port = 5672 | ||
+ | qpid_port = 5671 | ||
+ | # uncomment following line for non-ssl | ||
+ | # qpid_protocol = tcp | ||
+ | qpid_protocol = ssl | ||
+ | |||
+ | # Sync variables | ||
+ | staging_project_name = <e.g. service> | ||
+ | staging_user = <e.g. admin> | ||
== Launch PowerVC Driver services == | == Launch PowerVC Driver services == |
Revision as of 08:20, 16 May 2014
Contents
IBM PowerVC Driver for OpenStack
Overview
<TODO>
Setup
Prepare OpenStack
DevStack
Edit local.conf
- Enable Qpid
# Enable Qpid ENABLED_SERVICES="$ENABLED_SERVICES,-rabbit,-zeromq,qpid"
- Enable ML2 and setup VLAN
# Enable neutron network disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service q-metering enable_service neutron #VLAN configuration Q_PLUGIN=ml2 ENABLE_TENANT_VLANS=True PHYSICAL_NETWORK=default ML2_VLAN_RANGES=default:1:4094
Ubuntu Cloud Archive
<TODO>
RDO
Edit packstack answer file
- Enable Qpid
CONFIG_AMQP_SERVER=qpid
- Enable ML2 and setup VLAN
CONFIG_NEUTRON_L2_PLUGIN=ml2 CONFIG_NEUTRON_ML2_TYPE_DRIVERS=local,vlan CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=local,vlan CONFIG_NEUTRON_ML2_VLAN_RANGES=default:1:4094
Setup PowerVC Driver
Download PowerVC Driver
git clone https://github.com/stackforge/powervc-driver.git
Manually Install
- Create PowerVC Driver configuration
mkdir /etc/powervc cd powervc-driver cp common-powervc/etc/powervc.conf /etc/powervc cp neutron-powervc/etc/powervc-neutron.conf /etc/powervc
- Create PowerVC Driver logging directory
mkdir -p /var/log/powervc
- Stop the default nova-compute service
- Enable OpenStack Cinder backends with PowerVC
setup /etc/cinder/cinder.conf
enabled_backends = powervcdriver
- Import common utilities for each PowerVC Driver component
ln -s common-powervc/powervc/common <component-powervc>/powervc/common
Configure powervc.conf and powervc-neutron.conf
powervc-neutron.conf
- Setup Neutron DB connection, e.g.:
connection = mysql://<user>:<password>@<host>/ovs_neutron?charset=utf8
powervc.conf
- Setup [openstack] section with OpenStack information
- Devstack, check openrc file.
- Ubuntu Cloud Archive, <TODO>
- RDO, check packstack answer file.
- Setup [powervc] section with PowerVC information
- Contact your PowerVC system administrator for the information
- The following options are needed to configure in a typical setup:
# PowerVC Keystone authentication auth_url = https://<host>/powervc/openstack/identity/v3 admin_user = admin_password = admin_tenant_name = # Value of insecure option for the connections (Default=True) http_insecure = True # PowerVC cacert needed when secure connections are used connection_cacert = <path_to_the_cert>
# The names of the storage connectivity groups supported by the driver storage_connectivity_group = <e.g. Any host, all VIOS>
# PowerVC Qpid Connection qpid_hostname = qpid_username = qpid_password = # Qpid broker port (integer value) # uncomment following line for non-ssl # qpid_port = 5672 qpid_port = 5671 # uncomment following line for non-ssl # qpid_protocol = tcp qpid_protocol = ssl
# Sync variables staging_project_name = <e.g. service> staging_user = <e.g. admin>
Launch PowerVC Driver services
- Glance PowerVC sync service
glance-powervc/bin/glance-powervc --config-file /etc/powervc/powervc.conf --logfile /var/log/powervc/glance-powervc.log
- Neutron PowerVC Driver Agent
neutron-powervc/bin/neutron-powervc-agent --config-file /etc/powervc/powervc-neutron.conf --config-file /etc/powervc/powervc.conf --logfile /var/log/powervc/neutron-powervc.log
- Cinder PowerVC Driver
cinder-powervc/bin/cinder-powervc --config-file /etc/powervc/powervc.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/powervc/cinder-powervc.log
- Nova PowerVC Driver
nova-powervc/bin/nova-powervc --config-file /etc/powervc/powervc.conf --config-file /etc/nova/nova.conf --logfile /var/log/powervc/nova-powervc.log