November 8, 2014 · openstack RDO

OpenStack Juno All in One

Quick guide on setting up the OpenStack Juno release in an all in one server with one NIC using RDO. This is configured for Neutron networking with floating IPs.

My setup: CentOS 7 minimal, IP:

By default NetworkManager will be running and controlling our NICs. packstack will complain about this later so disable and stop the service.

[root@juno-allinone ~]# systemctl disable NetworkManager
[root@juno-allinone ~]# systemctl stop NetworkManager
Next we'll update some stuff, install the RDO Juno repo and install packstack.
[root@juno-allinone ~]# yum update -y
[root@juno-allinone ~]# yum install -y
[root@juno-allinone ~]# yum install -y openstack-packstack
Now we install OpenStack. I didn't check what --allinone installs by default so I explicitly flag Nagios to no and yes to Heat.
[root@juno-allinone ~]# packstack --allinone --provision-all-in-one-ovs-bridge=n --nagios-install=n --os-heat-install=y

Next steps are the same in my previous guide. Change your physical NIC (ifcfg-p4p1) as needed.

vim /etc/sysconfig/network-scripts/ifcfg-br-ex

IPADDR= # Old physical NIC IP

vim /etc/sysconfig/network-scripts/ifcfg-p4p1

Add the following to the /etc/neutron/plugin.ini file
network_vlan_ranges = physnet1
bridge_mappings = physnet1:br-ex
[root@juno-allinone ~]# service network restart
Networking should be setup from the host side. Now we can setup the OpenStack side of networking. I'd recommend creating a new tenant, but if you are using the 'admin' tenant, delete all routers/networks. Remember to set your floating IP range outside your DHCP range.
[root@juno-allinone ~]# . keystonerc_admin

[root@juno-allinone ~(keystone_admin)]# neutron router-create router
[root@juno-allinone ~(keystone_admin)]# neutron net-create private
[root@juno-allinone ~(keystone_admin)]# neutron subnet-create private --name private_subnet
[root@juno-allinone ~(keystone_admin)]# neutron router-interface-add router private_subnet
[root@juno-allinone ~(keystone_admin)]# neutron net-create public --router:external=True
[root@juno-allinone ~(keystone_admin)]# neutron subnet-create public --name public_subnet --enable_dhcp=False --allocation-pool start=,end= --gateway=
[root@juno-allinone ~(keystone_admin)]# neutron router-gateway-set router public

Allow ICMP and SSH.

[root@juno-allinone ~(keystone_admin)]# neutron security-group-rule-create --protocol icmp --direction ingress default
[root@juno-allinone ~(keystone_admin)]# neutron security-group-rule-create --protocol tcp --port-range-min 22 --port-range-max 22 --direction ingress default

At this point you should be able to spin up a cirros instance to test and assign floating IPs to the instance.

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket
Comments powered by Disqus