← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1282582] [NEW] Ignoring network id during instance launching

 

Public bug reported:

I have met strange behavior of nova API.  
When we create instance and send request with network parameters (port_id, network_id, fixed_ip) with not None values,
nova ignore network_id without any message. As result we get instance only with pointed port_id.
In case when we send same request using interface-attach we get BadRequest answer here
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/attach_interfaces.py#L96 
because we have port_id and network_id together in request.

Also I have look in v3 plugins and it have a little difference.
If we have not None value for port_id and fixed_ip, will be raised Error
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/servers.py#L348
but it still ignore network_id.

If it's normal behavior: Could you explain why nova send BadRequest
Error in same case during attaching interface.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1282582

Title:
  Ignoring network id during instance launching

Status in OpenStack Compute (Nova):
  New

Bug description:
  I have met strange behavior of nova API.  
  When we create instance and send request with network parameters (port_id, network_id, fixed_ip) with not None values,
  nova ignore network_id without any message. As result we get instance only with pointed port_id.
  In case when we send same request using interface-attach we get BadRequest answer here
  https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/attach_interfaces.py#L96 
  because we have port_id and network_id together in request.

  Also I have look in v3 plugins and it have a little difference.
  If we have not None value for port_id and fixed_ip, will be raised Error
  https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/servers.py#L348
  but it still ignore network_id.

  If it's normal behavior: Could you explain why nova send BadRequest
  Error in same case during attaching interface.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1282582/+subscriptions


Follow ups

References