When using nova-network, Horizon does not specify network information and selecting networks for a server launched is fully delegated to nova. I tested server launching with nova-network, but no network information was sent to nova according to horizon_error.log.
[Sat Dec 21 07:17:54 2013] [error] REQ: curl -i 'http://157.7.133.23:8774/v2/211bd69baf22453fb8b032eb32cb4010/servers' -X POST -H "X-Auth-Project-Id: 211bd69baf22453fb8b032eb32cb4010" -H "User-Agent: python-no vaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 7d9aab0fa06848969474ddbf7cb2e5dd" -d '{"server": {"name": "vm1", "imageRef": "418d48bf-1883-41a3-89b1-85720e6b8f1e" , "availability_zone": "nova", "flavorRef": "42", "max_count": 1, "min_count": 1, "security_groups": [{"name": "default"}]}}' > Acrroding to read horizon's code, in create_instance.py line 603. I found horizon get ALL network from database, and use "for netid in netids" to get network_id. I think you are talking about https://github.com/openstack/horizon/blob/stable/havana/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py#L607 Horizon does not use any network information in nova. The code you pointed is only used when neutron is enabled. netids comes from 'network' list in HTTP request (See L.543 and L.487) and 'network' is only specified when Neutron is used (See L.504: permissions = ('openstack.services.network',)). When nova-network is used, 'network' in context object is an empty list and the logic goes to "else" and "nics" is set to None. As a result, no information is sent to Nova. AFAIK, if networks in nova has no project_id, such networks are public to all projects. Do networks you created on nova have project_id? If you give me more detail on how to create more networks in nova, I can investigate more. Because Horizon does not support a feature to add nova-network, the command line examples on how to create more networks will really help us. (nova network-create ....?) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1260932 Title: add all networks to a project instance To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1260932/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
