Changes

From Amahi Wiki
Jump to: navigation, search
=Setup=
* Download [http://mirrors.cat.pdx.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso CentOS 7.2 x86_64 minimal] image and install following [http://www.if-not-true-then-false.com/2014/centos-7-netinstall-guide/ CentOS 7.2 Netinstall Guide] tutorial. Refer to [https://openstack.redhat.com/Quickstart RDO Quickstart] for the OpenStack installation guidance.
* Configure FQDN (<code>/etc/hosts</code> and <code>/etc/hostname</code>)
* Added static IP and disabled NetworkManager:
sudo systemctl disable firewalld
sudo systemctl stop firewalld
sudo systemctl disable NetworkManager
sudo systemctl stop NetworkManager
sudo systemctl enable network
sudo systemctl start network
* Add users and private keys for SSH login
* Disable SSH password and root login
* Install Open Stack Mitaka Repo sudo yum install -y centos-release-Follow [https://openstack-mitaka.redhat.com/Quickstart RDO Quickstart] for the OpenStack installation guidance.* Perform OS update yum -y update* Install Packstack Installer sudo yum install -y openstack-packstack* Run Packstack to install OpenStack (as '''root'''): At the <code>packstack --allinone --provision-demo=n --os-neutron-ovs-bridge-mappings=extnet:br-ex \ --os-neutron-ml2-type-drivers=vxlan,flat</code>* After completion, configure network bridgingfollow the [https://www.rdoproject. Make org/etcnetworking/sysconfig/networkneutron-scripts/ifcfgwith-brexisting-ex resemble:<pre>DEVICE=brexternal-exDEVICETYPE=ovsTYPE=OVSBridgeBOOTPROTO=staticIPADDR=192.168.122.212 # Old eth0 IP since we want the network restart to not # kill the connection, otherwise pick something outside your dhcp rangeNETMASK=255.255.255.0 # your netmaskGATEWAY=192.168.122.1 # your gatewayDNS1=192.168.122.1 # your nameserverONBOOT=yes</pre>Neutron with existing network guidance]Make * Refer to [https:/etc/sysconfigwww.rdoproject.org/network-scriptsnetworking/ifcfgfloating-enp2s0 resemble (no BOOTPROTO!):<pre>DEVICE=enp2s0TYPE=OVSPortDEVICETYPE=ovsOVS_BRIDGE=brip-exONBOOT=yes<range/pre>* Restart network: systemctl restart floating IP range] for setting up the floating IP addresses to the external network.
* Extend cinder-volumes past 20GB to allow for creating additional volumes to attach to instances.
** Followed the [https://udaraliyanage.wordpress.com/2014/05/23/openstack-increase-volume-capacity OpenStack Increase Volume Capacity] tutorial
** Created ''/usr/bin/ext-cinder-vol'' script:
::<precode>#!/bin/bash</code>::<code>/usr/sbin/losetup -f /var/lib/cinder/cinder-volumes-ext</code>::<code>/usr/sbin/vgchange --activationmode partial -a y cinder-volumes</code>::<code>/usr/bin/systemctl restart openstack-cinder-volume</code>::<code>/usr/bin/systemctl restart openstack-cinder-api</code>::<code>/usr/bin/systemctl restart openstack-cinder-scheduler</precode>
** Add to root crontab:
::<precode>@reboot /usr/bin/ext-cinder-vol</precode>
** Created 130Gb additional space for volumes (''/mnt/backup/stack-volumes'').
** Total volume space available is now 150GB.
12,424

edits