Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virt state shutdown should wait till vm is at shutdown state #63

Open
braindevices opened this issue Mar 16, 2021 · 0 comments
Open

virt state shutdown should wait till vm is at shutdown state #63

braindevices opened this issue Mar 16, 2021 · 0 comments

Comments

@braindevices
Copy link

SUMMARY

the virt state shutdown does not wait till the virsh domstate become shut off.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

virt

ANSIBLE VERSION
2.10.6
CONFIGURATION

OS / ENVIRONMENT

Fedora33

STEPS TO REPRODUCE
- name: list active vms
  virt:
    command: list_vms
    state: running
  register: vms_result
- debug:
    var: vms_result
- name: shutdown
  virt:
    state: shutdown
    name: "{{item}}"
  register: vm_shutdown_results
  loop:
    "{{vms_result.list_vms}}"
- debug:
    var: vm_shutdown_results
- name: list inactive vms
  virt:
    command: list_vms
    state: shutdown
  register: inactive_vms_result
- debug:
    var: inactive_vms_result
EXPECTED RESULTS
ACTUAL RESULTS

inactive_vms_result does not show all the VMs, most VMs are still at in shutdown state.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant