problem
the power_state is not update immediately when vm is stopped, which cause an issue when change offering of ROOT volume on VMware.
resizing volume works well.
Steps to reproduce the issue:
- create a vm and start it on VMware
mysql> select id,name,uuid,state,power_state,power_state_update_time,host_id,last_host_id from vm_instance where id=7;
+----+----------+--------------------------------------+---------+-------------+-------------------------+---------+--------------+
| id | name | uuid | state | power_state | power_state_update_time | host_id | last_host_id |
+----+----------+--------------------------------------+---------+-------------+-------------------------+---------+--------------+
| 7 | test-wei | 07618433-1617-4ca6-869a-b8abbe4a3db6 | Running | PowerOn | 2026-05-27 07:28:43 | 1 | 1 |
+----+----------+--------------------------------------+---------+-------------+-------------------------+---------+--------------+
1 row in set (0.00 sec)
- stop the vm, the state is updated, but power_state is still
PowerOn
mysql> select id,name,uuid,state,power_state,power_state_update_time,host_id,last_host_id from vm_instance where id=7;
+----+----------+--------------------------------------+----------+-------------+-------------------------+---------+--------------+
| id | name | uuid | state | power_state | power_state_update_time | host_id | last_host_id |
+----+----------+--------------------------------------+----------+-------------+-------------------------+---------+--------------+
| 7 | test-wei | 07618433-1617-4ca6-869a-b8abbe4a3db6 | Stopping | PowerOn | 2026-05-27 07:28:43 | 1 | 1 |
+----+----------+--------------------------------------+----------+-------------+-------------------------+---------+--------------+
1 row in set (0.00 sec)
mysql> select id,name,uuid,state,power_state,power_state_update_time,host_id,last_host_id from vm_instance where id=7;
+----+----------+--------------------------------------+---------+-------------+-------------------------+---------+--------------+
| id | name | uuid | state | power_state | power_state_update_time | host_id | last_host_id |
+----+----------+--------------------------------------+---------+-------------+-------------------------+---------+--------------+
| 7 | test-wei | 07618433-1617-4ca6-869a-b8abbe4a3db6 | Stopped | PowerOn | 2026-05-27 07:28:43 | NULL | 1 |
+----+----------+--------------------------------------+---------+-------------+-------------------------+---------+--------------+
1 row in set (0.00 sec)
- change the disk offering of the ROOT volume
got an exception
- retry when the power_state is updated to
PowerOff, it worked
mysql> select id,name,uuid,state,power_state,power_state_update_time,host_id,last_host_id,update_time from vm_instance where id=7;
+----+----------+--------------------------------------+---------+-------------+-------------------------+---------+--------------+---------------------+
| id | name | uuid | state | power_state | power_state_update_time | host_id | last_host_id | update_time |
+----+----------+--------------------------------------+---------+-------------+-------------------------+---------+--------------+---------------------+
| 7 | test-wei | 07618433-1617-4ca6-869a-b8abbe4a3db6 | Stopped | PowerOff | 2026-05-27 11:24:43 | NULL | 1 | 2026-05-27 11:24:12 |
+----+----------+--------------------------------------+---------+-------------+-------------------------+---------+--------------+---------------------+
1 row in set (0.00 sec)
versions
ACS 4.22.0.0
VMware 8
it should impact other versions too
The steps to reproduce the bug
...
What to do about it?
No response
problem
the power_state is not update immediately when vm is stopped, which cause an issue when change offering of ROOT volume on VMware.
resizing volume works well.
Steps to reproduce the issue:
PowerOngot an exception
PowerOff, it workedversions
ACS 4.22.0.0
VMware 8
it should impact other versions too
The steps to reproduce the bug
...
What to do about it?
No response