[Openstack-operators] A local network in Nova and Neutron

Pete Zaitcev zaitcev at redhat.com
Tue Jul 1 19:45:50 UTC 2014


Dear Colleagues:

Does anyone happen to have a recipy to create a network inside
a Nova compute node? I found recipies for a flat network using datacenter
routers and OVS on the nodes, but in my case I aim to have one with "local"
type and Linuxbridge as the undelying technology (not OVS).

Currently, Nova (and Neutron) know about my provider network:

[root at simbelmyne nova(ksadmin)]# nova net-list
+--------------------------------------+-------+------+
| ID                                   | Label | CIDR |
+--------------------------------------+-------+------+
| 36fe92f3-0e8a-4287-8412-da87ac6eaecc | lan   | None |
+--------------------------------------+-------+------+

[root at simbelmyne nova(ksadmin)]# neutron net-list
+--------------------------------------+------+-------------------------------------------------------+
| id                                   | name | subnets                                               |
+--------------------------------------+------+-------------------------------------------------------+
| 36fe92f3-0e8a-4287-8412-da87ac6eaecc | lan  | c1896cf3-b019-43e3-bcab-30bc9d32828a 192.168.128.0/24 |
+--------------------------------------+------+-------------------------------------------------------+
[root at simbelmyne nova(ksadmin)]# neutron subnet-list
+--------------------------------------+------+------------------+------------------------------------------------------+
| id                                   | name | cidr             | allocation_pools                                     |
+--------------------------------------+------+------------------+------------------------------------------------------+
| c1896cf3-b019-43e3-bcab-30bc9d32828a |      | 192.168.128.0/24 | {"start": "192.168.128.2", "end": "192.168.128.254"} |
+--------------------------------------+------+------------------+------------------------------------------------------+
[root at simbelmyne nova(ksadmin)]# 

Also, I created a router:

[root at simbelmyne ~(ksadmin)]# neutron router-list
+--------------------------------------+------+-----------------------------------------------------------------------------+
| id                                   | name | external_gateway_info                                                       |
+--------------------------------------+------+-----------------------------------------------------------------------------+
| c2ed803d-4310-43a0-b87c-df59a37d2392 | hub  | {"network_id": "36fe92f3-0e8a-4287-8412-da87ac6eaecc", "enable_snat": true} |
+--------------------------------------+------+-----------------------------------------------------------------------------+

But what now? I imagine I can run "neutron net-create" (and subnet-create),
and perhaps even supply correct parameters, but how do I tell Nova to launch
guests that attach to that network?

Thanks,
-- Pete



More information about the OpenStack-operators mailing list