Reaching VM limit creation (10) virsh doesn't list all running instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Invalid
|
Low
|
Ricardo Perez |
Bug Description
Brief Description
-----------------
Running a duplex StarlingX system configuration, if reaching the VM limit creation (10 instances) using CirrOS / m1.tiny flavor the system will create them, however, besides you can see all of them in an "ACTIVE" state, just few of them will be listed by virsh command, and only the ones listed by virsh will be accesible via console session.
Severity
--------
<Major: System/Feature is usable but degraded>
Steps to Reproduce
------------------
1.- Follow the instructions described here to set up a StarlingX duplex configuration:
https:/
2.- Download a CirrOS image from here:
wget http://
3.- Create an Image (as root user _not_ as keystone_admin)
openstack image create --container-format bare --disk-format qcow2 --file cirros-
4.- Create a VM
openstack server create --image cirros --flavor m1.tiny --network public-net0 vm1
5.- Continue creating VMs, until you reach the limit, you will see a message like:
controller-0:~# openstack server create --image cirros --flavor m1.tiny --network public-net0 richovm10
Quota exceeded for instances: Requested 1, but already used 10 of 10 instances (HTTP 403) (Request-ID: req-883f68d0-
6.- List all created VMs with "openstack server list"
controller-0:~# openstack server list
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| ec9ff19a-
| 8ecdb032-
| e3000c0f-
| 8a38cce5-
| d7d378d9-
| 43ddac80-
| 3073812e-
| 60097df8-
| 8d26efc3-
| cc1e49f6-
+------
7.- List all available consoles using virsh command:
controller-0:~# sudo virsh list --all
Id Name State
-------
3 instance-00000004 running
4 instance-00000008 running
5 instance-0000000c running
6 instance-00000010 running
7 instance-00000014 running
8.- Access a CirrOS console using "virsh console". You can do it only for virsh listed VMs.
virsh console <VM_ID_number>
9.- Try to login to the remain (not listed by virsh command) VM's using this alternative step. You can use "openstack server show" to see the instance name (used by virsh) for each one of the running VMS, then use "virsh console <Instance_VM_Nam> just to see wich instance-XXXXX number correspond to a openstack VM name.
controller-0:~# openstack server list
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| ec9ff19a-
controller-0:~# openstack server show ec9ff19a-
+------
| Field | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
controller-0:~# sudo virsh console instance-00000018
error: failed to get domain 'instance-00000018'
error: Domain not found: no domain with matching name 'instance-00000018'
Expected Behavior
------------------
virsh list should list all running VM instances.
Actual Behavior
----------------
virsh list list only few of the instances running, only 5 of 10 created VMs.
Reproducibility
---------------
<Reproducible> 100% of the times.
System Configuration
-------
<Two node system> Duplex
Branch/Pull Time/Commit
-------
controller-0:~# cat /etc/build.info
###
### StarlingX
### Built from master
###
OS="centos"
SW_VERSION="19.01"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID=
JOB="STX_
<email address hidden>"
BUILD_NUMBER="166"
BUILD_HOST=
BUILD_DATE=
controller-0:~#
Last Pass
---------
Not known.
Timestamp/Logs
--------------
controller-0:~# openstack server list
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| ec9ff19a-
| 8ecdb032-
| e3000c0f-
| 8a38cce5-
| d7d378d9-
| 43ddac80-
| 3073812e-
| 60097df8-
| 8d26efc3-
| cc1e49f6-
+------
controller-0:~# openstack server create --image cirros --flavor m1.tiny --network public-net0 richovm10
Quota exceeded for instances: Requested 1, but already used 10 of 10 instances (HTTP 403) (Request-ID: req-883f68d0-
controller-0:~# sudo virsh list
Id Name State
-------
3 instance-00000004 running
4 instance-00000008 running
5 instance-0000000c running
6 instance-00000010 running
7 instance-00000014 running
Test Activity
-------------
[Regression Testing]
tags: | added: stx.regression |
tags: | added: stx.distro.openstack |
Changed in starlingx: | |
importance: | Undecided → Low |
All nodes full log.