If you have connectivity failures from a VM to the Internet, it may be caused
by issues with the vhost0
interface on a compute node.
To verify the vhost0 interface on a compute node:
Log in to the OpenStack compute node with a failed VM.
Verify the status of the vhost0
interface:
ifconfig vhost0
Example of system response:
vhost0 Link encap:Ethernet HWaddr 0c:c4:7a:15:f8:f9
inet addr:10.167.4.101 Bcast:10.167.4.255 Mask:255.255.255.0
inet6 addr: fe80::ec4:7aff:fe15:f8f9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:45371419 errors:0 dropped:0 overruns:0 frame:0
TX packets:11440313 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4598915477 (4.5 GB) TX bytes:13876287735 (13.8 GB)
If the interface does not exist:
Verify the settings of the vhost0
interface in
/etc/network/interfaces
.
Verify the vRouter kernel modules that are currently being used:
lsmod | grep -i -e contrail -e router
If the interface does not have an IP address:
Verify the settings of the vhost0
interface in
/etc/network/interfaces
.
Run the following command:
ifconfig vhost0 down && ifconfig vhost0 up