You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
hosts: localhost
connection: local
gather_facts: False
vars_files:
answerfile.yml
tasks:
name: Transport Zone Creation
nsx_transportzone:
nsxmanager_spec: "{{ nsxmanager_spec }}"
state: 'present'
name: 'TZ1'
controlplanemode: 'UNICAST_MODE'
description: 'My Transport Zone'
cluster_moid_list:
- 'domain-c416'
- 'domain-c26'
register: transport_zone
debug: var=transport_zone
The full traceback is:
Traceback (most recent call last):
File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 113, in
_ansiballz_main()
File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 105, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 48, in invoke_module
imp.load_module('main', mod, module, MOD_DESC)
File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 183, in
File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 174, in main
File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 55, in check_scope_states
File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 33, in retrieve_scope
IndexError: list index out of range
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 113, in \n _ansiballz_main()\n File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 105, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 48, in invoke_module\n imp.load_module('main', mod, module, MOD_DESC)\n File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 183, in \n File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 174, in main\n File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 55, in check_scope_states\n File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 33, in retrieve_scope\nIndexError: list index out of range\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
to retry, use: --limit @/home/vmware/nsxansible/test_transportzone.retry
The text was updated successfully, but these errors were encountered:
arjunprakashn
changed the title
list index out of range isse when running with transport zone playbook
list index out of range issue when running with transport zone playbook
Mar 21, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
list index out of range issue
nsxmanager_spec:
raml_file: '/home/vmware/nsxraml/nsxvapi.raml'
host: '10.1.1.1'
user: 'admin'
password: 'Virtmagic1!'
connection: local
gather_facts: False
vars_files:
answerfile.yml
tasks:
name: Transport Zone Creation
nsx_transportzone:
nsxmanager_spec: "{{ nsxmanager_spec }}"
state: 'present'
name: 'TZ1'
controlplanemode: 'UNICAST_MODE'
description: 'My Transport Zone'
cluster_moid_list:
- 'domain-c416'
- 'domain-c26'
register: transport_zone
debug: var=transport_zone
The full traceback is:
Traceback (most recent call last):
File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 113, in
_ansiballz_main()
File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 105, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 48, in invoke_module
imp.load_module('main', mod, module, MOD_DESC)
File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 183, in
File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 174, in main
File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 55, in check_scope_states
File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 33, in retrieve_scope
IndexError: list index out of range
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 113, in \n _ansiballz_main()\n File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 105, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/home/vmware/.ansible/tmp/ansible-tmp-1553183280.82-130954092275918/AnsiballZ_nsx_transportzone.py", line 48, in invoke_module\n imp.load_module('main', mod, module, MOD_DESC)\n File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 183, in \n File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 174, in main\n File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 55, in check_scope_states\n File "/tmp/ansible_nsx_transportzone_payload_hl0kAL/main.py", line 33, in retrieve_scope\nIndexError: list index out of range\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
to retry, use: --limit @/home/vmware/nsxansible/test_transportzone.retry
The text was updated successfully, but these errors were encountered: