Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Does quantum support multi-nic setup ?

Host setup :

Host A : Controller node. This has everything running via devstack/stack.sh

Host B : - Only nova-network and q-agt - nova.conf from HostA copied over to HostB, and references for localhost replaced pointing to HostA (mysql, rabbit etc) - Also updated sql_Connection entry in /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini to point to HostA

I have not added multi-host flag to my nova.conf (Should I ????)

Network Setup :

created two networks for "demo" tenant using "nova-manage network create" 10.0.8.0/24 and 10.0.9.0/24 Associated 10.0.9.0/24 with HostB using "nova-manage network modify --host"

Launched an instance for demo tenant - VM gets two fixed IPs, one each from 10.0.8.x and 10.0.9.x networks.

I can ssh to VM from HostA using 10.0.8.x IP

Problem :

I can't ssh to VM using 10.0.9.x IP from either HostA or HostB

Output from VM

When I sshed into VM, I see following on VM :

$ ifconfig -a eth0 Link encap:Ethernet HWaddr FA:16:3E:1D:72:F9 inet addr:10.0.8.23 Bcast:10.0.8.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fe1d:72f9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:790 errors:0 dropped:0 overruns:0 frame:0 TX packets:505 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:67734 (66.1 KiB) TX bytes:67244 (65.6 KiB) Interrupt:10 Base address:0xa000

eth1 Link encap:Ethernet HWaddr FA:16:3E:24:C2:B4 inet6 addr: fe80::f816:3eff:fe24:c2b4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:1434 (1.4 KiB) Interrupt:11 Base address:0xe100

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

cat /etc/network/interfaces

$ cat /etc/network/interfaces

Configure Loopback

auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp

I added entry for eth1 (similar to eth0) manually and executed following :

$ sudo ifup eth1 udhcpc (v1.18.5) started Sending discover... Sending discover... Sending discover... No lease, failing

On Host A

dnsmasq for 10.0.8.x is running here, with following conf file

cat /opt/stack/nova/networks/nova-gw-afc33410-c5.conf fa:16:3e:1d:72:f9,host-10.0.8.23.novalocal,10.0.8.23

ifconfig has following entry :

gw-afc33410-c5 Link encap:Ethernet HWaddr fa:16:3e:5e:82:fd inet addr:10.0.8.1 Bcast:10.0.8.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fe5e:82fd/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:6048 errors:0 dropped:5 overruns:0 frame:0 TX packets:4739 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1359020 (1.3 MB) TX bytes:801255 (801.2 KB)

On Host B

dnsmasq for 10.0.9.x is running here, with following conf file

cat /opt/stack/nova/networks/nova-gw-d173143a-33.conf fa:16:3e:24:c2:b4,host-10.0.9.23.novalocal,10.0.9.23

ifconfig -a does NOT have an entry for gw-d173143a-33

So what am I doing wrong ? Is this kind of setup supported by Quantum ?

Let me know if you need additional information

Thanks !!!