Ignoring network id during instance launching

Bug #1282582 reported by Sergey Kraynev
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

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.

Tags: api
Revision history for this message
Cedric Brandily (cbrandily) wrote :

Responding BadRequest when port_id and network_id are both provided seems the correct behavior.
Indeed it explicits the mistakes to specify both where the other solution implicitly use only network_id

Changed in nova:
assignee: nobody → Sergey Kraynev (skraynev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/77174

Changed in nova:
status: New → In Progress
tags: added: api
Changed in nova:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/77174
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Removing "In Progress" status and assignee as change is abandoned.

Changed in nova:
status: In Progress → Confirmed
assignee: Sergey Kraynev (skraynev) → nobody
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote : Cleanup EOL bug report

This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.

If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
  Only still supported release names are valid (LIBERTY, MITAKA, OCATA, NEWTON).
  Valid example: CONFIRMED FOR: LIBERTY

Changed in nova:
importance: Low → Undecided
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.