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

Creation of qemu VM failed with exception='agent' #5181

Closed
1 task done
humberto-garza opened this issue Aug 25, 2022 · 3 comments · Fixed by #5194
Closed
1 task done

Creation of qemu VM failed with exception='agent' #5181

humberto-garza opened this issue Aug 25, 2022 · 3 comments · Fixed by #5194
Labels
bug This issue/PR relates to a bug cloud module module plugins plugin (any type)

Comments

@humberto-garza
Copy link

Summary

After updating community.general to the latest version 5.5.0 (which was released yesterday as of 8/24/2022), we started getting this error when creating a VM via the proxmox_kvm module:

# FAILED! => changed=false
#   msg: creation of qemu VM dev-test with vmid 100 failed with exception='agent'
#   vmid: 100

It looks like it may have been introduced here:
Change Proxmox agent argument to string. #5107

Workaround

Lock to 5.4.0:

- name: community.general
  version: 5.5.0

Issue Type

Bug Report

Component Name

proxmox_kvm

Ansible Version

$ ansible --version
ansible [core 2.11.3]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/etc/ansible/plugins/modules', '/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
  jinja version = 3.0.1
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
# /usr/share/ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.general 5.5.0

# /usr/local/lib/python3.8/dist-packages/ansible_collections
Collection        Version
----------------- -------
community.general 3.5.0

Configuration

$ ansible-config dump --only-changed
CALLBACKS_ENABLED(/etc/ansible/ansible.cfg) = ['ansible.posix.profile_tasks']
DEFAULT_CALLBACK_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/callback', '/root/.ansible/plugins/callback', '/usr/share/ansible/plugins/callback']
DEFAULT_FILTER_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/filter', '/root/.ansible/plugins/filter', '/usr/share/ansible/plugins/filter']
DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/modules', '/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
DEFAULT_MODULE_UTILS_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/module_utils', '/root/.ansible/plugins/module_utils', '/usr/share/ansible/plugins/module_utils']
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = yaml
DEFAULT_VAULT_IDENTITY_LIST(env: ANSIBLE_VAULT_IDENTITY_LIST) = ['@.key', 'mac_sign@mac_signing.key']
DEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /etc/ansible/.key
DISPLAY_SKIPPED_HOSTS(/etc/ansible/ansible.cfg) = False

OS / Environment

VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Running on a Docker Container

Steps to Reproduce

Playbook to reproduce

---
- hosts: <REDACTED>
  gather_facts: no
  tasks:
    - name: Create VM
      community.general.proxmox_kvm:
        api_user    : "{{ proxmox_vm_target_node_user }}@pam"
        api_password: "{{ proxmox_vm_target_node_password }}"
        api_host    : localhost
        name        : dev-test
        node        : "{{ proxmox_vm_target_node_short }}"
        vmid        : 100
      delegate_to: "{{ proxmox_vm_target_node }}"

Expected Results

TASK [Create VM] 
task path: /etc/ansible/runner/tests/playbooks/playbook.yml:7
changed: [ <REDACTED> ] => changed=true
  devices: {}
  mac: {}
  msg: VM dev-test with vmid 100 deployed
  vmid: 100

Actual Results

TASK [Create VM] *******************************task path: /etc/ansible/runner/tests/playbooks/playbook.yml:7
fatal: [ <REDACTED> ]: FAILED! => changed=false
  msg: creation of qemu VM dev-test with vmid 100 failed with exception='agent'
  vmid: 100

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug cloud module module plugins plugin (any type) labels Aug 25, 2022
@felixfontein
Copy link
Collaborator

CC @reitermarkus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug cloud module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants