To isolate or not to isolate
Here are several questions (seven to be precise) regarding my Quantum setup. Any help is much appreciated.
I have a two node system running openstack; I install the first node using devstack with all the services specified there by default and Quantum with openvswitch. (Essentially everything but Swift.) On the second node, I only start n-cpu and q-agt using devstack with a few minor changes to that script.
I can create VMs on both machines using Dashboard. Everything looks good. On both machines I connect eth0 to my br-int switch. (I have eth1 for outside world but don't need that for my current experiments.) I have the 10.0.0.0 network for my VMs as specified in devstack.
Then I go about creating a second network. I do that from the cli interface.
Question 0: I know Dan explained once why it is better not to have a way to create a network from dashboard but I am still confused as why this is the case.
Having no other option I try the CLI but I cannot find the tenant id using the following instruction: keystone-manage tenant list. Nothing is printed out when this is executed.
Question 1: Why is that even though I have the keystone service running.
Question 2: Are there other ways of finding the tenant id? I do not seem to find it in the nova tables in the database.
So I try the following command for creating a new network:
nova-manage network create --label=secondNet --fixed_
I get a second network and create a bunch of VMs some using only 10.0.0.0 network and some using only the 8.8.8.0 network. (I have changed the GUI so I can pick the network at Laucnh.)
Here is what I have:
Node1:
=======
running all services
has two gw-* interface (one for each network)
and two tap-* interface for two VMs
The IP address of VM 1: 10.0.0.2
The IP address of VM 2: 8.8.8.2
mb:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 9.2.xxx.65 0.0.0.0 UG 100 0 0 eth1
8.8.8.0 * 255.255.255.0 U 0 0 0 gw-c55299df-9c
9.2.xxx.64 * 255.255.255.192 U 0 0 0 eth1
10.0.0.0 * 255.255.255.0 U 0 0 0 gw-c21c442b-f3
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
Node 2:
=======
running n-cpu and q-agt
has two tap-* interface for two VMs
The IP address of VM 1: 10.0.0.3
The IP address of VM 2: 8.8.8.3
mb:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 9.2.xxx.65 0.0.0.0 UG 100 0 0 eth1
localnet * 255.255.255.192 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
Question 3: Shouldn't I have the gw- interfaces on the second node as well? Am I missing something on the second node?
from 8.8.8.2 I can ping 8.8.8.3, and 10.0.0.3 but not 10.0.0.2
from 8.8.8.3 I can ping 8.8.8.2, and 10.0.0.3 but not 10.0.0.2
All the nodes are up and happily running.
Question 4: So I am wondering what exactly the gw- interface does. from the code I think it is supposed to forward all the messages betwwen different layer 3 networks (in addition to serving as dhcp server). Is this correct. If yes, shouldn't I have something automatically set up on my second machine? Why the gw-* gets created only on one machine, that is where I create the network.
Question 5: What I really want is creating two networks and have the VMs on each not seeing the ones on the other network but potentiaaly able to access say the internet through eth1. Is that doable? What am I missing?
Question 6: What's going on in my setup. As you can see it is not the case that all VMs see each other. Nor it is the case where they are isolated on different networks.
Thanks,
-Mohammad
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- neutron Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mohammad Banikazemi
- Solved:
- Last query:
- Last reply: