Difference between revisions of "OpenStack deployment via packstack from RDO"

From Christoph's Personal Wiki
Jump to: navigation, search
Line 15: Line 15:
  
 
  # packstack --allinone --provision-demo=n
 
  # packstack --allinone --provision-demo=n
 +
 +
$ cp /etc/sysconfig/network-scripts/ifcfg-eth0 /root/ # backup
 +
$ cat << EOF > /etc/sysconfig/network-scripts/ifcfg-eth0
 +
DEVICE=eth0
 +
HWADDR=FF:FF:FF:FF:FF:FF
 +
TYPE=OVSPort
 +
DEVICETYPE=ovs
 +
OVS_BRIDGE=br-ex
 +
ONBOOT=yes
 +
EOF
 +
 +
$ cat << EOF > /etc/sysconfig/network-scripts/ifcfg-br-ex
 +
DEVICE=br-ex
 +
DEVICETYPE=ovs
 +
TYPE=OVSBridge
 +
MACADDR=FF:FF:FF:FF:FF:FF
 +
BOOTPROTO=static
 +
IPADDR=10.1.100.15
 +
#PREFIX=23
 +
NETMASK=255.255.254.0
 +
GATEWAY=10.1.100.1
 +
DNS1=8.8.8.8
 +
DNS2=8.8.4.4
 +
ONBOOT=yes
 +
EOF
 +
 +
$ openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs bridge_mappings extnet:br-ex
 +
$ openstack-config --set /etc/neutron/plugin.ini ml2 type_drivers vxlan,flat,vlan
 +
 +
$ service network restart
 +
$ service neutron-openvswitch-agent restart
 +
$ service neutron-server restart
 +
 +
* Bug fix:
 +
$ ovs-vsctl br-set-external-id br-ex bridge-id br-ex
 +
$ service neutron-plugin-openvswitch-agent restart
 +
 +
$ cat keystonerc_admin
 +
unset OS_SERVICE_TOKEN
 +
export OS_USERNAME=admin
 +
export OS_PASSWORD=<password>
 +
export OS_AUTH_URL=<nowiki>http://10.1.100.15:5000/v2.0</nowiki>
 +
export PS1='[\u@\h \W(keystone_admin)]\$ '
 +
 +
export OS_TENANT_NAME=admin
 +
export OS_REGION_NAME=RegionOne
 +
 +
$ . keystonerc_admin
  
 
==External links==
 
==External links==

Revision as of 22:15, 7 October 2015

This article will cover the steps involved in getting OpenStack deployed using "packstack" from RDO.

NOTE: Article under construction.
  • Deploy assumptions:
    • OS: CentOS 7.1 (64-bit; 7.1.1503 Core)
    • OpenStack release: "Kilo" (April 2015)

Single node

Note: Using neutron with a flat network driver.

# yum update -y
# yum install -y https://rdoproject.org/repos/rdo-release.rpm
# yum install -y openstack-packstack
# packstack --allinone --provision-demo=n
$ cp /etc/sysconfig/network-scripts/ifcfg-eth0 /root/ # backup
$ cat << EOF > /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=FF:FF:FF:FF:FF:FF
TYPE=OVSPort
DEVICETYPE=ovs
OVS_BRIDGE=br-ex
ONBOOT=yes
EOF
$ cat << EOF > /etc/sysconfig/network-scripts/ifcfg-br-ex 
DEVICE=br-ex
DEVICETYPE=ovs
TYPE=OVSBridge
MACADDR=FF:FF:FF:FF:FF:FF
BOOTPROTO=static
IPADDR=10.1.100.15
#PREFIX=23
NETMASK=255.255.254.0
GATEWAY=10.1.100.1
DNS1=8.8.8.8
DNS2=8.8.4.4
ONBOOT=yes
EOF
$ openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs bridge_mappings extnet:br-ex
$ openstack-config --set /etc/neutron/plugin.ini ml2 type_drivers vxlan,flat,vlan
$ service network restart
$ service neutron-openvswitch-agent restart
$ service neutron-server restart
  • Bug fix:
$ ovs-vsctl br-set-external-id br-ex bridge-id br-ex
$ service neutron-plugin-openvswitch-agent restart
$ cat keystonerc_admin 
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD=<password>
export OS_AUTH_URL=http://10.1.100.15:5000/v2.0
export PS1='[\u@\h \W(keystone_admin)]\$ '

export OS_TENANT_NAME=admin
export OS_REGION_NAME=RegionOne
$ . keystonerc_admin

External links