Improve the networks validation for nova server

Bug #1538407 reported by huangtianhua
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
huangtianhua

Bug Description

Nova doesn't allow specify 'port_id' if using nova-network:
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/servers.py#L460-L465

Improve the validation of nova server according the above constraint.

Changed in heat:
assignee: nobody → huangtianhua (huangtianhua)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

Changed in heat:
status: New → In Progress
Changed in heat:
milestone: none → mitaka-3
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/273324
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=967df0e92dc6cf3f733a204f097a8e3283881c82
Submitter: Jenkins
Branch: master

commit 967df0e92dc6cf3f733a204f097a8e3283881c82
Author: huangtianhua <email address hidden>
Date: Thu Jan 28 11:08:39 2016 +0800

    Adds validation to support 'port' only if using neutron

    If not using neutron, nova doesn't allow to specify
    'port' parameter when create server. This patch adds
    validation to support 'port' only when using neutron.

    Also, this patch fixes another problem:
    the commit 84564a3665b07c13b4e3909a7d7949388c1f5c6c
    has been merged, there is a problem in the case: user
    specify 'network', 'fixed_ip' and 'port' in nova-network,
    the ip will be ignored, and then nova will raise exception:
    https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/servers.py#L460-L465.

    Change-Id: I1c1cc236e2f2b6d50cc15034e5854de429bf8be0
    Closes-Bug: #1538407
    Partial-Bug: #1533074

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/heat 6.0.0.0b3

This issue was fixed in the openstack/heat 6.0.0.0b3 development milestone.

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.