ERROR: NetworkHostNotSet boot with --nic option
Bug #953426 reported by
Nachi Ueno
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Vish Ishaya | ||
Essex |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
ERROR: NetworkHostNotSet boot with --nic option
nova boot --image c11aec73-
ERROR: NetworkHostNotSet: Host is not set to the network (9). (HTTP 400)
As Error message says, this is because Network host didn't set.
Same command will be success after instance creation without nic paramaters.
no longer affects: | nova/folsom |
Changed in nova: | |
milestone: | none → 2012.2 |
To post a comment you must log in.
Ok, I'm looking at NetworkManager. allocate_ for_instance( )
networks = self._get_ networks_ for_instance( admin_context,
instance_ id, project_id,
requested_ networks= requested_ networks)
self._ allocate_ fixed_ips( admin_context, instance_id,
host, networks, vpn=vpn,
requested_ networks= requested_ networks)
...
get_networks_ for_instance( ) looks up the networks using network_ get_all_ by_uuids( ) and this is what throws NetworkHostNotSet if the network isn't associated with a host
However, it looks to me like the network will only be associated with a host by the set_network_host() in RPCAllocateFixe dIP._allocate_ fixed_ips( )
i.e. we're requiring the network to be associated with a host before actually doing the association
Marking Confirmed, something looks wrong here
Nachi - could you provide some more details on exactly what version you're using, whether you can still reproduce, what network manager you're using, whether you have enabled multi_host etc.? Also the exact steps to reproduce - e.g. I think this would only happen if the user requests a specific network when that network was never used before