Ubuntu OpenStack wrong interface
So I've recently installed OpenStack on Ubuntu 16.04 using conjure-up using this documentation (https://www.ubuntu.com/openstack/install) However, I've just restarted my server and I'm unable to access the dashboard, I believe its something to do with the NICs that juju/openstack is using. Below is the output of the lxc profile. It seems that its using NICs eth0 and eth1 but I do not have those on my machine, the only interface I have is eno1 operating on a private IPv4 address of 192.168.0.3.
Before I restarted my server I setup NAT rules using ip tables using the below command, this worked fine and I was able to access the openstack dashboard via 192.168.0.3 from a computer on the same network. However the dashboard was super slow so I restarted the machine, and now nothing works.
78 sudo iptables -t nat -A PREROUTING -p tcp -d 192.168.0.3 --dport 80 -j DNAT --to-destination 10.175.147.16:80
87 sudo iptables -t nat -A PREROUTING -p tcp -d 192.168.0.3 --dport 443 -j DNAT --to-destination 10.175.147.16:443
Below is the lxc profile show command
ryan@ubuntu:/etc/network$ lxc profile show juju-conjure-openstack-novalx-b5f
config:
boot.autostart: "true"
linux.kernel_modules: openvswitch,nbd,ip_tables,ip6_tables,netlink_diag
raw.lxc: |
lxc.apparmor.profile=unconfined
lxc.mount.auto=sys:rw
security.nesting: "true"
security.privileged: "true"
description: ""
devices:
eth0:
nictype: bridged
parent: lxdbr0
type: nic
eth1:
nictype: bridged
parent: conjureup0
type: nic
root:
path: /
pool: default
type: disk
name: juju-conjure-openstack-novalx-b5f
used_by:
- /1.0/containers/juju-aee0f7-0
- /1.0/containers/juju-aee0f7-1
- /1.0/containers/juju-aee0f7-2
- /1.0/containers/juju-aee0f7-3
- /1.0/containers/juju-aee0f7-4
- /1.0/containers/juju-aee0f7-5
- /1.0/containers/juju-aee0f7-6
- /1.0/containers/juju-aee0f7-7
- /1.0/containers/juju-aee0f7-9
- /1.0/containers/juju-aee0f7-10
- /1.0/containers/juju-aee0f7-8
- /1.0/containers/juju-aee0f7-11
- /1.0/containers/juju-aee0f7-15
- /1.0/containers/juju-aee0f7-13
- /1.0/containers/juju-aee0f7-12
- /1.0/containers/juju-aee0f7-14
- /1.0/containers/juju-aee0f7-16
ryan@ubuntu:/etc/network$
If you are using MaaS try going to settings-> general and for Global Kernel Parameters put: net.ifnames=0 biosdevname=0
Then redeploy, this will rename the interfaces to eth0/eth1 which will coincide with the install information.