yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #16332
[Bug 1267723] Re: nova interface-attach doesn't work if port|network|fixed id is omitted
This is a problem:
# nova --insecure interface-attach cirros
ERROR: Failed to attach interface (HTTP 500) (Request-ID: req-0d424f10-0974-41cc-b1a6-9c945f96997c)
https://github.com/openstack/nova/blob/master/nova/compute/manager.py file has the check:
if len(network_info) != 1:
LOG.error(_('allocate_port_for_instance returned %(ports)s ports')
% dict(ports=len(network_info)))
However, in https://github.com/openstack/nova/blob/master/nova/network/neutronv2/api.py: _get_available_networks()
if no network specified, it will get all networks in the tenant.
If more than one network in the tenant, this will definitely causing the
above check failed.
** This bug is no longer a duplicate of bug 1245683
interface-attach: raises 500 error if invalid network
--
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/1267723
Title:
nova interface-attach doesn't work if port|network|fixed id is omitted
Status in OpenStack Compute (Nova):
New
Bug description:
when use 'interface-attach' to attach interface to a vm with
port|network|fixed id is omitted, it will be success if there is one
network in that tenant, but it will be failed if there are more than
one network in that tenant, also, when nterface-attach faield, there
will be residual port in neutron which will not automatically deleted
, nova latest code has the same problem!
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1267723/+subscriptions
References