ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
835 stars 1.53k forks source link

vmadm create simple Zone (from example) failed #5541

Open n1ete opened 2 years ago

n1ete commented 2 years ago

Summary

Using the example from the Docs https://docs.ansible.com/ansible/latest/collections/community/general/vmadm_module.html, to create a joyent zone is failing for me always with the same error. PI used in GZ is latest.

Issue Type

Bug Report

Component Name

vmadm

Ansible Version

Ansible & Redis installed via pip

ansible [core 2.13.6]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/etc/ansible/library']
  ansible python module location = /usr/local/lib/python3.9/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
  jinja version = 3.1.2
  libyaml = True

Community.general Version

5.8.0

Configuration

ANSIBLE_NOCOWS(/etc/ansible/ansible.cfg) = True
CACHE_PLUGIN(/etc/ansible/ansible.cfg) = redis
CACHE_PLUGIN_CONNECTION(/etc/ansible/ansible.cfg) = localhost:6379:0
CACHE_PLUGIN_TIMEOUT(/etc/ansible/ansible.cfg) = 3600
DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 100
DEFAULT_GATHERING(/etc/ansible/ansible.cfg) = smart
DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/library']
DEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 30
RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False

OS / Environment

LXC Container Debian 11 up2date

Steps to Reproduce

zone_role_task.yml: (Only image_uuid is modified and quota removed)

- name: Create SmartOS zone
  community.general.vmadm:
    brand: joyent
    state: present
    alias: fw_zone
    image_uuid: "ca301a44-fed2-11ec-acd8-3b6322c3bcea"
    firewall_enabled: true
    indestructible_zoneroot: true
    nics:
      - nic_tag: admin
        ip: dhcp
        primary: true
    internal_metadata:
      root_pw: 'secret'

playbook.yml

- name: Create Zone
  hosts: globalzone
  gather_facts: yes
  roles:
    - zone

inventory

[globalzone]
smartoshost ansible_host=123.456.78.9 
[globalzone:vars]
is_gz=yes
ansible_python_interpreter=/opt/tools/bin/python2
binary_install_dir=/opt/local/sbin
smf_install_dir=/opt/custom/smf
config_dir=/opt/tools/etc

the command i run
```ansible-playbook playbook.yml -i inventory -vvvv```

### Expected Results

defined zone gets created on SmartOS Host.

### Actual Results

```console (paste below)
# ansible-playbook deploy_zone.yml -i invs/dev/hosts -vvvv
ansible-playbook [core 2.13.6]
  config file = /opt/git-server/ansible-smartos/ansible.cfg
  configured module search path = ['/opt/git-server/ansible-smartos/library']
  ansible python module location = /usr/local/lib/python3.9/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible-playbook
  python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
  jinja version = 3.1.2
  libyaml = True
Using /opt/git-server/ansible-smartos/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /opt/git-server/ansible-smartos/invs/dev/hosts as it did not pass its verify_file() method
script declined parsing /opt/git-server/ansible-smartos/invs/dev/hosts as it did not pass its verify_file() method
auto declined parsing /opt/git-server/ansible-smartos/invs/dev/hosts as it did not pass its verify_file() method
Parsed /opt/git-server/ansible-smartos/invs/dev/hosts inventory source with ini plugin
redirecting (type: cache) ansible.builtin.redis to community.general.redis
Loading collection community.general from /usr/local/lib/python3.9/dist-packages/ansible_collections/community/general
Redis connection: Redis<ConnectionPool<Connection<host=localhost,port=6379,db=0>>>
redirecting (type: modules) community.general.vmadm to community.general.cloud.smartos.vmadm
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python3.9/dist-packages/ansible/plugins/callback/default.py
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.

PLAYBOOK: deploy_zone.yml **************************************************************************************************************************************************************************************************************************************************************************************************
Positional arguments: deploy_zone.yml
verbosity: 4
connection: smart
timeout: 30
become_method: sudo
tags: ('all',)
inventory: ('/opt/git-server/ansible-smartos/invs/dev/hosts',)
forks: 100
1 plays in deploy_zone.yml

PLAY [Create Zone] *********************************************************************************************************************************************************************************************************************************************************************************************************
META: ran handlers

TASK [zone : Create SmartOS zone] ******************************************************************************************************************************************************************************************************************************************************************************************
task path: /opt/git-server/ansible-smartos/roles/zone/tasks/main.yml:1
redirecting (type: modules) community.general.vmadm to community.general.cloud.smartos.vmadm
<123.456.78.9> ESTABLISH SSH CONNECTION FOR USER: root
<123.456.78.9> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=1200s -o BatchMode=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=30 -o 'ControlPath="/root/.ansible/cp/a1d47df019"' 123.456.78.9 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /tmp/ansible_tmp `"&& mkdir "` echo /tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375 `" && echo ansible-tmp-1668437075.5736575-57446-235259195858375="` echo /tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375 `" ) && sleep 0'"'"''
<123.456.78.9> (0, b'ansible-tmp-1668437075.5736575-57446-235259195858375=/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375\n', b"OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n  15 Mar 2022\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 123.456.78.9 is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 57418\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
redirecting (type: modules) community.general.vmadm to community.general.cloud.smartos.vmadm
Using module file /usr/local/lib/python3.9/dist-packages/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py
<123.456.78.9> PUT /root/.ansible/tmp/ansible-local-574423fn87c9u/tmpth_mecri TO /tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py
<123.456.78.9> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=1200s -o BatchMode=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=30 -o 'ControlPath="/root/.ansible/cp/a1d47df019"' '[123.456.78.9]'
<123.456.78.9> (0, b'sftp> put /root/.ansible/tmp/ansible-local-574423fn87c9u/tmpth_mecri /tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py\n', b'OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n  15 Mar 2022\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 123.456.78.9 is address\r\ndebug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts\' -> \'/root/.ssh/known_hosts\'\r\ndebug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts2\' -> \'/root/.ssh/known_hosts2\'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 57418\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug2: Server supports extension "fsync@openssh.com" revision 1\r\ndebug2: Server supports extension "lsetstat@openssh.com" revision 1\r\ndebug2: Unrecognised server extension "limits@openssh.com"\r\ndebug2: Unrecognised server extension "expand-path@openssh.com"\r\ndebug2: Unrecognised server extension "copy-data"\r\ndebug2: Unrecognised server extension "home-directory"\r\ndebug2: Unrecognised server extension "users-groups-by-id@openssh.com"\r\ndebug3: Sent message fd 3 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /root size 0\r\ndebug3: Looking up /root/.ansible/tmp/ansible-local-574423fn87c9u/tmpth_mecri\r\ndebug3: Sent message fd 3 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:8 O:131072 S:6372\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 32768 bytes at 98304\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 8 6372 bytes at 131072\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<123.456.78.9> ESTABLISH SSH CONNECTION FOR USER: root
<123.456.78.9> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=1200s -o BatchMode=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=30 -o 'ControlPath="/root/.ansible/cp/a1d47df019"' 123.456.78.9 '/bin/sh -c '"'"'chmod u+x /tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/ /tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py && sleep 0'"'"''
<123.456.78.9> (0, b'', b"OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n  15 Mar 2022\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 123.456.78.9 is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 57418\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
<123.456.78.9> ESTABLISH SSH CONNECTION FOR USER: root
<123.456.78.9> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=1200s -o BatchMode=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=30 -o 'ControlPath="/root/.ansible/cp/a1d47df019"' -tt 123.456.78.9 '/bin/sh -c '"'"'/opt/tools/bin/python3 /tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py && sleep 0'"'"''
<123.456.78.9> (1, b'Traceback (most recent call last):\r\n  File "/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py", line 107, in <module>\r\n    _ansiballz_main()\r\n  File "/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File "/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py", line 48, in invoke_module\r\n    run_name=\'__main__\', alter_sys=True)\r\n  File "/opt/tools/lib/python3.7/runpy.py", line 205, in run_module\r\n    return _run_module_code(code, init_globals, run_name, mod_spec)\r\n  File "/opt/tools/lib/python3.7/runpy.py", line 96, in _run_module_code\r\n    mod_name, mod_spec, pkg_name, script_name)\r\n  File "/opt/tools/lib/python3.7/runpy.py", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File "/tmp/ansible_community.general.vmadm_payload_1xemm04e/ansible_community.general.vmadm_payload.zip/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py", line 784, in <module>\r\n  File "/tmp/ansible_community.general.vmadm_payload_1xemm04e/ansible_community.general.vmadm_payload.zip/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py", line 729, in main\r\n  File "/tmp/ansible_community.general.vmadm_payload_1xemm04e/ansible_community.general.vmadm_payload.zip/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py", line 441, in get_vm_uuid\r\nIndexError: tuple index out of range\r\n', b"OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n  15 Mar 2022\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 123.456.78.9 is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 57418\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\nShared connection to 123.456.78.9 closed.\r\n")
<123.456.78.9> Failed to connect to the host via ssh: OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n  15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 123.456.78.9 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 57418
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
Shared connection to 123.456.78.9 closed.
<123.456.78.9> ESTABLISH SSH CONNECTION FOR USER: root
<123.456.78.9> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=1200s -o BatchMode=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=30 -o 'ControlPath="/root/.ansible/cp/a1d47df019"' 123.456.78.9 '/bin/sh -c '"'"'rm -f -r /tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/ > /dev/null 2>&1 && sleep 0'"'"''
<123.456.78.9> (0, b'', b"OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n  15 Mar 2022\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 123.456.78.9 is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 57418\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
The full traceback is:
Traceback (most recent call last):
  File "/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py", line 107, in <module>
    _ansiballz_main()
  File "/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py", line 99, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py", line 48, in invoke_module
    run_name='__main__', alter_sys=True)
  File "/opt/tools/lib/python3.7/runpy.py", line 205, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/opt/tools/lib/python3.7/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/opt/tools/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmp/ansible_community.general.vmadm_payload_1xemm04e/ansible_community.general.vmadm_payload.zip/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py", line 784, in <module>
  File "/tmp/ansible_community.general.vmadm_payload_1xemm04e/ansible_community.general.vmadm_payload.zip/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py", line 729, in main
  File "/tmp/ansible_community.general.vmadm_payload_1xemm04e/ansible_community.general.vmadm_payload.zip/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py", line 441, in get_vm_uuid
IndexError: tuple index out of range
fatal: [smartoshost]: FAILED! => {
    "changed": false,
    "module_stderr": "OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n  15 Mar 2022\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 123.456.78.9 is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 57418\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\nShared connection to 123.456.78.9 closed.\r\n",
    "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py\", line 107, in <module>\r\n    _ansiballz_main()\r\n  File \"/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py\", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/tmp/ansible_tmp/ansible-tmp-1668437075.5736575-57446-235259195858375/AnsiballZ_vmadm.py\", line 48, in invoke_module\r\n    run_name='__main__', alter_sys=True)\r\n  File \"/opt/tools/lib/python3.7/runpy.py\", line 205, in run_module\r\n    return _run_module_code(code, init_globals, run_name, mod_spec)\r\n  File \"/opt/tools/lib/python3.7/runpy.py\", line 96, in _run_module_code\r\n    mod_name, mod_spec, pkg_name, script_name)\r\n  File \"/opt/tools/lib/python3.7/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/tmp/ansible_community.general.vmadm_payload_1xemm04e/ansible_community.general.vmadm_payload.zip/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py\", line 784, in <module>\r\n  File \"/tmp/ansible_community.general.vmadm_payload_1xemm04e/ansible_community.general.vmadm_payload.zip/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py\", line 729, in main\r\n  File \"/tmp/ansible_community.general.vmadm_payload_1xemm04e/ansible_community.general.vmadm_payload.zip/ansible_collections/community/general/plugins/modules/cloud/smartos/vmadm.py\", line 441, in get_vm_uuid\r\nIndexError: tuple index out of range\r\n",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}

PLAY RECAP *****************************************************************************************************************************************************************************************************************************************************************************************************************
smartoshost                     : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

Code of Conduct

ansibullbot commented 2 years ago

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 commented 2 years ago

cc @jasperla click here for bot help

ansibullbot commented 1 year ago

cc @bcoca @fishman @jpdasma @mator @scathatheworm @troy2914 @xen0l click here for bot help