yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #80483
[Bug 1849695] [NEW] resize of server with qos ports fails if called by non admin user
Public bug reported:
As a non admin:
* Create a server with a qos port.
* Resize the server to another flavor.
=> Server goes to ERROR state and the following is logged in the nova-
compute log on the destination host
Oct 24 14:33:42 aio nova-compute[10293]: ERROR oslo_messaging.rpc.server
PortUpdateFailed: Port update failed for port b1593c18-b088-4d5c-
b3c6-bdd5348f3b52: Provider mappings are not available to the compute
service but are required for ports with a resource request.
Triage:
Similarly to bug 1849657 Nova uses a non admin Neutron client to query
the ports[1] at the start of the resize. The the resize operation is not
called by an admin user then the resource_request field of the Neutron
is not filled. This causes that Nova does allocate resources and does
not create port - rp mapping for the qos ports on the destination node.
But when the qos port is being updated on the destination host [2] nova
uses an admin client and therefore sees the resource_request of the qos
ports. As the port - rp mapping is missing for these ports the resize
fails.
[1] https://github.com/openstack/nova/blob/1bfa4626d13d0a73e63745cc4a864ae86d490daf/nova/network/neutronv2/api.py#L2228
[2] https://github.com/openstack/nova/blob/1bfa4626d13d0a73e63745cc4a864ae86d490daf/nova/network/neutronv2/api.py#L3305
** Affects: nova
Importance: High
Assignee: Balazs Gibizer (balazs-gibizer)
Status: In Progress
** Tags: neutron resize
** Tags added: neutron resize
** Changed in: nova
Status: New => Triaged
** Changed in: nova
Assignee: (unassigned) => Balazs Gibizer (balazs-gibizer)
** Changed in: nova
Importance: Undecided => High
--
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/1849695
Title:
resize of server with qos ports fails if called by non admin user
Status in OpenStack Compute (nova):
In Progress
Bug description:
As a non admin:
* Create a server with a qos port.
* Resize the server to another flavor.
=> Server goes to ERROR state and the following is logged in the nova-
compute log on the destination host
Oct 24 14:33:42 aio nova-compute[10293]: ERROR
oslo_messaging.rpc.server PortUpdateFailed: Port update failed for
port b1593c18-b088-4d5c-b3c6-bdd5348f3b52: Provider mappings are not
available to the compute service but are required for ports with a
resource request.
Triage:
Similarly to bug 1849657 Nova uses a non admin Neutron client to query
the ports[1] at the start of the resize. The the resize operation is
not called by an admin user then the resource_request field of the
Neutron is not filled. This causes that Nova does allocate resources
and does not create port - rp mapping for the qos ports on the
destination node. But when the qos port is being updated on the
destination host [2] nova uses an admin client and therefore sees the
resource_request of the qos ports. As the port - rp mapping is missing
for these ports the resize fails.
[1] https://github.com/openstack/nova/blob/1bfa4626d13d0a73e63745cc4a864ae86d490daf/nova/network/neutronv2/api.py#L2228
[2] https://github.com/openstack/nova/blob/1bfa4626d13d0a73e63745cc4a864ae86d490daf/nova/network/neutronv2/api.py#L3305
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1849695/+subscriptions
Follow ups