clean vgpu resource when remove the vgpu configuration

Bug #1944031 reported by Wenping Song
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Unassigned

Bug Description

when we remove the vgpu configuration, the reported vgpu resources arenot cleaned.

Tags: vgpu
tags: added: vgpu
Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

Are you sure ? Do you already have allocations for the resource providers ?

Changed in nova:
status: New → Incomplete
Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :
Download full text (3.5 KiB)

OK, this looks valid. I removed the whole configuration from my testbed, but I can still see the resource providers :

[root@hab-19 devstack]# openstack resource provider list
+--------------------------------------+---------------------------------------------------+------------+--------------------------------------+--------------------------------------+
| uuid | name | generation | root_provider_uuid | parent_provider_uuid |
+--------------------------------------+---------------------------------------------------+------------+--------------------------------------+--------------------------------------+
| cd58f110-a4d8-4968-a7c7-1c434d3ed74b | hab-19.xx.xxx.xxx.xxx.xxxxxx.com | 19 | cd58f110-a4d8-4968-a7c7-1c434d3ed74b | None |
| 7853e09b-5f5c-4b79-99c6-a550c56eb7e0 | hab-19.xx.xxx.xxx.xxx.xxxxxx.com_pci_0000_04_00_5 | 13 | cd58f110-a4d8-4968-a7c7-1c434d3ed74b | cd58f110-a4d8-4968-a7c7-1c434d3ed74b |
| 63e40f50-a20f-45e7-8033-96463f9d0968 | hab-19.xx.xxx.xxx.xxx.xxxxxx.com_pci_0000_04_00_4 | 1 | cd58f110-a4d8-4968-a7c7-1c434d3ed74b | cd58f110-a4d8-4968-a7c7-1c434d3ed74b |
| 7752dd12-91ce-4ac6-a3e5-7fd7e32a2557 | hab-19.xx.xxx.xxx.xxx.xxxxxx.com_pci_0000_04_00_6 | 11 | cd58f110-a4d8-4968-a7c7-1c434d3ed74b | cd58f110-a4d8-4968-a7c7-1c434d3ed74b |
+--------------------------------------+---------------------------------------------------+------------+--------------------------------------+--------------------------------------+
[root@hab-19 devstack]# openstack resource provider usage show 7752dd12-91ce-4ac6-a3e5-7fd7e32a2557
+----------------+-------+
| resource_class | usage |
+----------------+-------+
| VGPU | 1 |
+----------------+-------+
[root@hab-19 devstack]# nova delete test-vgpu
Request to delete server test-vgpu has been accepted.
[root@hab-19 devstack]# vi /etc/nova/nova-cpu.conf
[root@hab-19 devstack]# systemctl restart devstack@n-cpu
[root@hab-19 devstack]# openstack resource provider list
+--------------------------------------+---------------------------------------------------+------------+--------------------------------------+--------------------------------------+
| uuid | name | generation | root_provider_uuid | parent_provider_uuid |
+--------------------------------------+---------------------------------------------------+------------+--------------------------------------+--------------------------------------+
| cd58f110-a4d8-4968-a7c7-1c434d3ed74b | hab-19.xx.xxx.xxx.xxx.xxxxxx.com | 20 | cd58f110-a4d8-4968-a7c7-1c434d3ed74b | None |
| 7853e09b-5f5c-4b79-99c6-a550c56eb7e0 | hab-19.xx.xxx.xxx.xxx.xxxxxx.com_pci_0000_04_00_5 | 13 | cd58f110-a4d8-4968-a7c7-1c434d3ed74b | cd58f110-a4d8-4968-a7c7-1c434d3ed74b |
| 63e40f50-a20f-45e7-8033-96463f9d0968 | hab-19.xx.xxx.xxx.xxx.xxxxxx.com_pci_0000_04_00_4 | 1 | cd58f110-a4d8-4968-a7c7-1c...

Read more...

Changed in nova:
status: Incomplete → Confirmed
importance: Undecided → Low
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.