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

proxmox_template upload timeout=5s can't be changed and too short #9153

Open
1 task done
elelayan opened this issue Nov 19, 2024 · 2 comments
Open
1 task done

proxmox_template upload timeout=5s can't be changed and too short #9153

elelayan opened this issue Nov 19, 2024 · 2 comments
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)

Comments

@elelayan
Copy link

Summary

When I upload an iso to my cluster it takes ~20s.

See is the upload task.

Here is the error I get:

msg: 'Uploading template files/isos/myhost.iso failed with error: (''Connection aborted.'', TimeoutError(''The write operation timed out''))'

I think the timeout needs to be specified when creating the ProxmoxAPI object in proxmox.py.

At least it works for me when I change to return ProxmoxAPI(api_host, verify_ssl=validate_certs, timeout=42, **auth_args).
And I see the effect when logging the timeout value in ProxmoxHttpSession in proxmoxer/backend/https.py line 232.

Issue Type

Bug Report

Component Name

proxmox_template

Ansible Version

$ ansible --version
ansible [core 2.14.17]
  config file = /home/xxx/.../ansible.cfg
  configured module search path = ['/home/xxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/xxx/.tox/py3-ansible/lib/python3.11/site-packages/ansible
  ansible collection location = /home/xxxxx/collections-dependencies:/home/xxxxx/collections
  executable location = /home/xxxx/.tox/py3-ansible/bin/ansible
  python version = 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] (/home/xxxxx/.tox/py3-ansible/bin/python)
  jinja version = 3.1.4
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general

# /home/xxxx/collections-dependencies/ansible_collections
Collection        Version
----------------- -------
community.general 8.6.7  

Configuration

$ ansible-config dump --only-changed

OS / Environment

Debian 12

Steps to Reproduce

    - name: Upload CDROM
      community.general.proxmox_template: "{{ pve_api | combine(task_params) }}"
      delegate_to: localhost
      vars:
        task_params:
          content_type: iso
          src: "files/isos/{{ inventory_hostname }}.iso"
          storage: "{{ pve_iso_storage }}"
          force: true

Expected Results

I expected the upload to succeed.

Actual Results

msg: 'Uploading template files/isos/myhost.iso failed with error: (''Connection aborted.'', TimeoutError(''The write operation timed out''))'

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@elelayan
Copy link
Author

by adding logging into proxmoxer I'm able to see the request timeout = 5s.

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels Nov 19, 2024
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 module module plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

2 participants