server_action not running reboot

Bug #2046429 reported by Darren Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ansible-collections-openstack
New
Undecided
Unassigned

Bug Description

When running action `reboot_soft` or `reboot_hard`, it always outputs ok, after checking how the module works, I found status checking logic for actions contradicts to openstack compute api.

In the compute API, soft reboot is only available when instance status is `ACTIVE`, but in the ansible module, if the instance status is `ACTIVE` for action `reboot_soft` when checking `_action_map`, the module will exit without changes before executing actions.

refs:

https://opendev.org/openstack/ansible-collections-openstack/src/branch/master/plugins/modules/server_action.py

https://docs.openstack.org/api-ref/compute/#reboot-server-reboot-action

Darren Wang (changexd)
description: updated
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.