[Openstack] How to setup very simple networking? (Was: What can make Cinder not find Image? (Was: Create instance fails on creating block device - Block Device Mapping is Invalid))

Turbo Fredriksson turbo at bayour.com
Fri Jun 24 12:59:05 UTC 2016


On Jun 23, 2016, at 11:31 PM, Turbo Fredriksson wrote:

> ----- s n i p -----
> 2016-06-23 23:08:25.362 25887 INFO cinder.api.openstack.wsgi [req-9d2bc683-7599-4539-92a6-b8e8503591c8 0b7e5b0653084efdad5d67b66f2cf949 2985b96e27f048cd92a18db0dd03aa23 - - -] HTTP exception thrown: Volume test could not be found.
> ----- s n i p -----
> 

Oups, that one was mine! I forgot/missed to copy the docker image
to Glance!


As far as i can tell, I'm now "all good". It now "only" (!!! :)
complains about the network :( :(.

----- s n i p -----
2016-06-24 13:42:25.141 10978 WARNING novadocker.virt.docker.driver [req-c98bae39-dbb0-4b36-808d-004684ae3a2c 0b7e5b0653084efdad5d67b66f2cf949 2985b96e27f048cd92a18db0dd03aa23 - - -] [instance: 1988a860-13f6-44cf-b40c-5709b815f381] Cannot setup network: Cannot find any PID under container "708a45db07705d7f4393fc60886ae4e894dccc2ce02ef7eb77dd701abc750752"
2016-06-24 13:42:25.141 10978 ERROR novadocker.virt.docker.driver [instance: 1988a860-13f6-44cf-b40c-5709b815f381] Traceback (most recent call last):
2016-06-24 13:42:25.141 10978 ERROR novadocker.virt.docker.driver [instance: 1988a860-13f6-44cf-b40c-5709b815f381]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 490, in _start_container
2016-06-24 13:42:25.141 10978 ERROR novadocker.virt.docker.driver [instance: 1988a860-13f6-44cf-b40c-5709b815f381]     self._attach_vifs(instance, network_info)
2016-06-24 13:42:25.141 10978 ERROR novadocker.virt.docker.driver [instance: 1988a860-13f6-44cf-b40c-5709b815f381]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 241, in _attach_vifs
2016-06-24 13:42:25.141 10978 ERROR novadocker.virt.docker.driver [instance: 1988a860-13f6-44cf-b40c-5709b815f381]     raise RuntimeError(msg.format(container_id))
2016-06-24 13:42:25.141 10978 ERROR novadocker.virt.docker.driver [instance: 1988a860-13f6-44cf-b40c-5709b815f381] RuntimeError: Cannot find any PID under container "708a45db07705d7f4393fc60886ae4e894dccc2ce02ef7eb77dd701abc750752"
2016-06-24 13:42:25.141 10978 ERROR novadocker.virt.docker.driver [instance: 1988a860-13f6-44cf-b40c-5709b815f381]
----- s n i p -----

I'm not sure what that error exactly mean though.


Provided my network looks like this:

+ [external_ip - internet]
  +- Contego (DHCP, DNS, NTP, Primary Gateway/Firewall)
     + [192.168.4/24]  -+- Old VMs, Static IPs
     + [192.168.5/24]  -+- Old VMs, Dynamic IPs
     + [192.168.63/24] -+- Guest network
     + [192.168.69/24] -+- Physical machines
                           +- Celia (Block Storage - 30TB+/ZoL, LDAP, Kerberos V, SMB, AFP, AFS, NFS, iSCSI)
                           +- Negotia (Current VM host)
     + [10.0.0/16]     -+- Blade Center 
                           + [10.0.1/24]  -+- Management/iLO network (Blade Center 1)
                           + [10.0.2/24]  -+- Management/iLO network (Blade Center 2)
                           + [10.0.3/24]  -+- Blade Center 1 - Blade hosts, eth0
                           + [10.0.4/24]  -+- Blade Center 1 - Blade hosts, eth1
                           + [10.0.5/24]  -+- Blade Center 2 - Blade hosts, eth0
                           + [10.0.6/24]  -+- Blade Center 2 - Blade hosts, eth1
                           + [10.9x.0/24] -+- Virtual Machines

My primary (and at the moment only) Control node have the IP
"10.0.4.1/10.99.0.1" and my first (and at the moment only)
Compute have the IP "10.0.4.3".

My plan (?) was to put the OS router on 10.99.0.254 and route it
"down" to the physical hosts eth0 (10.99.0.1) and then on to 
Contego which is my firewall/gateway to the 'Net. I don't expect
any traffic IN that way though..

Then all VMs gets a 10.99.0.x address (if I'm quick, I can actually
see that happening already - but because it fails to start, the IP
is removed from the instance).


My question is, how do I get traffic between 10.99.0.1 and 10.99.0.254??

This is my current network setup. Although, I have no idea what I'm doing,
I just winged it to get SOMETHING..

  https://github.com/FransUrbo/openstack_bladecenter/blob/master/local_setup_openstack-control.sh#L647-L681

What am I missing?
--
You know, boys, a nuclear reactor is a lot like a woman.
You just have to read the manual and press the right buttons
- Homer Simpson





More information about the Openstack mailing list