Three nodes setup with neutron, cannot ping VMs either internal or External IP
HI, I installed openstack Liberty using juju on Ubuntu 14.04 on three nodes using maas & juju.
The maas controller machine has two interfaces, eth0 with ip 10.0.0.1 and eth1 192.168.29 as gateway to the external network.
Nodes used for openstack have one physical interface named eth0 connected to the maas managed network 10.0.0.1, except the neutron-gateway node that has an eth1 interface connected to the external network 192.168.0.
Here is my juju deployment config :
keystone:
admin-password: openstack
debug: 'true'
log-level: DEBUG
nova-cloud-controller:
network-manager: Neutron
nova-compute:
flat-interface: 'eth0'
enable-live-migration: 'True'
migration-auth-type: "none"
virt-type: kvm
enable-resize: 'True'
neutron-gateway:
ext-port: 'eth1'
bridge-mappings: 'external:br-ex'
instance-mtu: 1400
glance:
cinder:
openstack-dashboard:
webroot: "/"
The deployment script
#!/bin/bash
juju deploy --to 0 juju-gui
juju deploy --to lxc:0 mysql
juju deploy --config config.yaml --to lxc:0 keystone
juju deploy --config config.yaml --to lxc:0 nova-cloud-controller
juju deploy --config config.yaml --to lxc:0 glance
juju deploy --to lxc:0 rabbitmq-server
juju deploy --config config.yaml --to lxc:0 openstack-dashboard
juju deploy --config config.yaml --to lxc:0 cinder
juju deploy --config config.yaml nova-compute --constraints "tags=compute"
juju deploy --config config.yaml neutron-gateway --constraints "tags=neutron"
juju add-relation mysql keystone
juju add-relation nova-cloud-controller mysql
juju add-relation nova-cloud-controller rabbitmq-server
juju add-relation nova-cloud-controller glance
juju add-relation nova-cloud-controller keystone
juju add-relation nova-compute nova-cloud-controller
juju add-relation nova-compute mysql
juju add-relation nova-compute rabbitmq-server:amqp
juju add-relation nova-compute glance
juju add-relation glance mysql
juju add-relation glance keystone
juju add-relation glance cinder
juju add-relation mysql cinder
juju add-relation cinder rabbitmq-server
juju add-relation cinder nova-cloud-controller
juju add-relation cinder keystone
juju add-relation openstack-dashboard keystone
juju add-relation neutron-gateway mysql
juju add-relation neutron-gateway:amqp rabbitmq-server:amqp
juju add-relation neutron-gateway nova-cloud-controller
juju set keystone admin-password="openstack"
# display status
juju stat --format=tabular
# Download image
wget http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
glance add name="Trusty x86_64" is_public=true container_format=ovf disk_format=qcow2 < trusty-server-cloudimg-amd64-disk1.img
# set default security group
nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
nova secgroup-add-rule default tcp 22 22 0.0.0.0/0
# add keypair
nova keypair-add --pub-key ~/.ssh/id_rsa.pub id_rsa
nova image-list
After initial setup, I followed http://docs.openstack.org/icehouse/install-guide/install/apt/content/neutron_initial-networks-verify.html (the documentation) up to "Verify connectivity" and setup neutron networks as follows :
#create external network and subnet
neutron net-create ext-net --shared --router:external=True
neutron subnet-create ext-net --name ext-subnet \
--allocation-pool start=192.168.1.230,end=192.168.1.250 \
--disable-dhcp --gateway 192.168.1.1 192.168.1.0/24
#create tenant network and subnet
neutron net-create demo-net
neutron subnet-create demo-net --name demo-subnet \
--gateway 10.0.1.1 10.0.1.1/24
# add router
neutron router-create demo-router
neutron router-interface-add demo-router demo-subnet
neutron router-gateway-set demo-router ext-net
The neutron-gateway node has two physical network interfaces :
- eth0 connected to the juju 10.0.0.0/24 network
- eth1 connected to the external 192.168.1.0/24 network
When created, the router should get the first address ...