16
OpenStack Lab Environment Arif Ali, OCF Technical Director Tuesday 26 th May 2015

OpenStack Lab Environment · Packstack •Deploy of OpenStack •Puppet •Requires pre-installed machines with SSH access •No HA support •PoC . Generate answers file

Embed Size (px)

Citation preview

OpenStack Lab Environment

Arif Ali, OCF Technical Director Tuesday 26th May 2015

Topics

•Hardware •OpenStack Repository •Bare-metal Provisioning •Packstack •Questions

Hardware

•IBM x3455 •1 x Provisioning Node

•3 x Controllers

•6 x Hypervisors

•Cisco Switch

Yum repositories

•Use reposync to sync repos •Main repos used for Open-source

•CentOS Updates

•CentOS Extras

•EPEL

•RDO OpenStack (icehouse, juno & kilo)

•Also use reposync for rhel

Sync’ing Repos

•Create /etc/reposync.d/yum.conf •Create repo files similar to the ones for yum for all the repos

•For Red Hat •Register machine to RHN

•Then use reposync to sync the following repos •rhel-7-server-openstack-5.0-rpms

•rhel-7-server-openstack-6.0-rpms

•rhel-7-server-rpms

•rhel-ha-for-rhel-7-server-rpms

•rhel-7-server-optional-rpms

reposync

•-t •Use a temp dir for storing/accessing yum-cache.

•-d •Delete local packages no longer present in repository.

•-n •Download only newest packages per-repo.

•-p •Path to download packages to: defaults to current directory.

•-r •Specify repo ids to query, can be specified multiple times (default is all

enabled).

•-c •Config file to use (defaults to /etc/yum.conf).

Reposync example

yum -c /etc/reposync.repos.d/yum.conf clean all

reposync -t -d -n -c /etc/reposync.repos.d/yum.conf

-p /install/post/otherpkgs/repos/ -r epel-7 -r

foreman-7 -r rdo-openstack-icehouse-epel-7 -r rdo-

openstack-kilo-epel-7 -r updates-7 -r rdo-openstack-

juno-epel-7 -r rdo-openstack-kilo-el-7

For each of the repos downloaded, we then need to run

createrepo, to enable the directory for yum download

Bare-metal provisioning (xCAT)

•eXtreme Cluster/Cloud Administration Toolkit •Management of clusters (Clouds, HPC, Grids)

•Open-Source (EPL License)

•IPMI (Inventory, HW Control, SOL, LEDs, etc…)

•Discovery

•Multiple Installation Methods

•Wide system and OS support

Packstack

•Deploy of OpenStack •Puppet

•Requires pre-installed machines with SSH access

•No HA support •PoC

Generate answers file

packstack --gen-answer-file /root/packstack_answers.txt

Answer file changes

s/\(CONFIG_KEYSTONE_ADMIN_PW=\).*/\1openstack/g

s/\(CONFIG_HEAT_INSTALL=\).*/\1y/g

s/\(CONFIG_NTP_SERVERS=\).*/\1${NTP_SERVER}/g

s/\(CONFIG_HEAT_CFN_INSTALL=\).*/\1y/g

s/\(CONFIG_COMPUTE_HOSTS=\).*/\110.0.0.5,10.0.0.6,10.0.0.7,10.0.0.8,10.0.0.9/

g

s/\(CONFIG_USE_EPEL=\).*/\1n/g

s/\(CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=\).*/\1physnet_mgmt:br-mgmt/g

s/\(CONFIG_NEUTRON_OVS_BRIDGE_IFACES=\).*/\1br-mgmt:enp2s1f0/g

s/\(CONFIG_PROVISION_DEMO=\).*/\1n/g

Apply changes

sed -i -f /tmp/sed.script

/root/packstack_answers.txt

DEMO

RDO (www.rdoproject.org)

https://github.com/arif-ali/openstack-lab

https://gitlab.arif-ali.co.uk/arif/openstack-

lab/wikis/home

http://blog.arif-ali.co.uk/blog/categories/openstack/

Useful Links

Contact

[email protected]

arif-ali on freenode IRC

arif-ali on github

Q & A