PCI IRQ affinity agent fails to list all instances

Bug #1950387 reported by Heitor Matsui
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Heitor Matsui

Bug Description

Brief Description
-----------------
The agent is supposed to set PCI IRQ affinity settings for all instances with dedicated CPUs, but is unable to list instances from all projects.

Severity
--------
Major

Steps to Reproduce
------------------
- Boot an instance with dedicated CPUs and PCI passthrough in a project other than admin
- Observe the agent log not being updated every minute with audit information

Expected Behavior
------------------
Log should show audit information like ("Instance=%s use dedicated cpu policy!!!" % instance.uuid)

Actual Behavior
----------------
Not is not updated with audit information for the instance

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Any

Branch/Pull Time/Commit
-----------------------
master

Last Pass
---------
None

Timestamp/Logs
--------------
Instances are booted on OpenStack with project different from admin:
[sysadmin@controller-0 instances(keystone_admin)]$ openstack server list --a
+--------------------------------------+------------------+--------+--------------------------------------------------------------------------------------+-------+-------------------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+------------------+--------+--------------------------------------------------------------------------------------+-------+-------------------+
| 92e6cc84-7f08-41ba-8b9e-f45f7d6f66fb | tenant1-vswitch1 | ACTIVE | tenant1-mgmt-net=192.168.86.37; tenant1-net0=172.16.0.1; tenant2-net0=172.18.0.1 | | medium.dpdk.node0 |
| 0badf437-fe3a-4448-a4d0-a6569fc93748 | tenant1-virtio1 | ACTIVE | tenant1-mgmt-net=192.168.86.57; tenant1-net0=172.16.0.218; tenant2-net0=172.18.0.232 | | small.node0 |
+--------------------------------------+------------------+--------+--------------------------------------------------------------------------------------+-------+-------------------+

Interactive python CLI troubleshooting - novaClient list() method returns an empty list:
>>> from nova_provider import novaClient as nc
>>> nova = nc.get_nova()
>>> nova.flavors.list()
[<Flavor: medium.dpdk.node0>, <Flavor: medium.dpdk>, <Flavor: large.dpdk>, <Flavor: medium>, <Flavor: small>, <Flavor: medium.dpdk.node1>, <Flavor: small.node1>, <Flavor: medium.node1>, <Flavor: large.dpdk.node1>, <Flavor: medium.node0>, <Flavor: small.node0>, <Flavor: large.dpdk.node0>]
>>> nova.servers.list()
[]
>>> nova.servers.get('92e6cc84-7f08-41ba-8b9e-f45f7d6f66fb')
<Server: tenant1-vswitch1>

Test Activity
-------------
Feature Testing

Workaround
----------
None

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to utilities (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/utilities/+/817475

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to utilities (master)

Reviewed: https://review.opendev.org/c/starlingx/utilities/+/817475
Committed: https://opendev.org/starlingx/utilities/commit/765d873a57abf09b440b53f76d8ef48e3994bf8a
Submitter: "Zuul (22348)"
Branch: master

commit 765d873a57abf09b440b53f76d8ef48e3994bf8a
Author: Heitor Matsui <email address hidden>
Date: Wed Nov 10 17:35:24 2021 -0300

    Fix instance listing on audit

    The query used to get instances from Nova was unable to get all
    active instances from all project because was lacking a search
    option (all_tenants), and this commit fix this.

    Closes-bug: 1950387
    Change-Id: I1a89d11eb159cfc992ba462c04b2d4c5eafedf91
    Signed-off-by: Heitor Matsui <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Heitor Matsui (heitormatsui)
importance: Undecided → Medium
tags: added: stx.6.0 stx.distro.openstack
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.