Activity log for bug #901899

Date Who What changed Old value New value Message
2011-12-08 22:23:33 ktesiphas bug added bug
2011-12-08 22:24:49 ktesiphas description http://forums.openstack.org/viewtopic.php?f=16&t=557 http://forums.openstack.org/viewtopic.php?f=16&t=557 I have a question regarding the nova-manage network create statement. We assumed, that every project / tenant should get its own virtual network segment out of the defined range of ip nets in the fixed-range flag in nova.conf. When I create a new network with, e.g. Code: Select all nova-manage network create projnet 192.168.5.0/24 2 128 : How does Open Stack knows, that it should belong to the previously created project?? I used "nova-manage network create --help" to find out, that there are some additional options available for the nova-manage network create statement (e.g.): Code: Select all --project_id=<project id> Project id --label=<label> Label for network (ex: public) Whenever I used them in one of my statements the appropriate project field is still empty. Code: Select all root@c2n2:/usr/share/pyshared/nova/network# nova-manage project create proj2 projadmin root@c2n2:/usr/share/pyshared/nova/network# nova-manage network create projnet4 192.168.7.0/24 1 128 --project_id=proj2 root@c2n2:/usr/share/pyshared/nova/network# nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 1 192.168.4.0/24 None 192.168.4.2 8.8.4.4 None None None None 2 192.168.5.0/25 None 192.168.5.2 8.8.4.4 None None None None 3 192.168.5.128/25 None 192.168.5.130 8.8.4.4 None None None None 4 192.168.6.0/25 None 192.168.6.2 8.8.4.4 None None None None 5 192.168.7.0/25 None 192.168.7.2 8.8.4.4 None None None None Also the corresponding fields in the table "networks" are empty. So how does Openstack manage associations between network and different projects? Thank you for answering my question in advance. ---------------------- Answer by: mjfork » Thu Dec 08, 2011 7:58 pm I tried this a few separate ways and it did not work for me as well. I traced the code and, while I see nova-manage passing on project_id to the create_networks call, I do not see where create_networks makes use of it. I would suggest opening a bug report in launchpad. Please post the link if you do in case others with a similar problem come across this. As a workaround, you could go into the mysql database and do mysql> SELECT id, vlan from networks; mysql> UPDATE networks SET project_id=<numerical id> WHERE id = <numerical id from previous call>; Where to get the project_id will depend on if you are using keystone or nova authentication. I believe this will only work if the network has not been previously used. Michael Fork
2011-12-12 11:30:43 Andrea Siringo bug added subscriber Andrea Siringo
2011-12-13 20:00:41 Thierry Carrez nova: importance Undecided High
2011-12-13 20:00:41 Thierry Carrez nova: status New Confirmed
2012-01-04 18:36:05 François Charlier nova: assignee François Charlier (francois-charlier)
2012-01-04 18:36:14 François Charlier nova: status Confirmed In Progress
2012-01-04 19:44:50 OpenStack Infra nova: status In Progress Fix Committed
2012-01-16 23:04:27 Mark McLoughlin nominated for series nova/diablo
2012-01-16 23:04:28 Mark McLoughlin bug task added nova/diablo
2012-01-16 23:06:18 Mark McLoughlin nova/diablo: status New In Progress
2012-01-16 23:06:18 Mark McLoughlin nova/diablo: milestone 2011.3.1
2012-01-16 23:08:18 Mark McLoughlin nova/diablo: assignee Mark McLoughlin (markmc)
2012-01-17 13:44:33 OpenStack Infra tags in-stable-diablo
2012-01-17 16:29:11 Thierry Carrez nova/diablo: status In Progress Fix Committed
2012-01-19 19:14:42 Mark McLoughlin nova/diablo: status Fix Committed Fix Released
2012-01-25 09:53:00 Thierry Carrez nova: status Fix Committed Fix Released
2012-01-25 09:53:00 Thierry Carrez nova: milestone essex-3
2012-04-05 09:58:48 Thierry Carrez nova: milestone essex-3 2012.1