-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
please have a look if the storage role support the scenario,
and please catch the error.
- name: create two pools in same disk
include_role:
name: rhel-system-roles.storage
vars:
storage_safe_mode: false
storage_pools:
- name: foo
type: lvm
disks: "{{ unused_disks[0] }}"
volumes:
- name: test1
mount_point: "{{ mount_location_1 }}"
size: 4g
- name: test2
mount_point: "{{ mount_location_2 }}"
size: 5g
- name: bar
type: lvm
disks: "{{ unused_disks[0] }}"
volumes:
- name: test3
mount_point: "{{ mount_location_3 }}"
size: 4g
- name: test4
mount_point: "{{ mount_location_4 }}"
size: 5g
TASK [rhel-system-roles.storage : Manage the pools and volumes to match the specified state] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: sys:1: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1734175306.528188-1504532-106424982292273/AnsiballZ_blivet.py\", line 107, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1734175306.528188-1504532-106424982292273/AnsiballZ_blivet.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1734175306.528188-1504532-106424982292273/AnsiballZ_blivet.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible.modules.blivet', init_globals=dict(_module_fqn='ansible.modules.blivet', _modlib_path=modlib_path),\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2541, in <module>\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2537, in main\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2523, in run_module\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2242, in update_fstab_identifiers\nBlivetAnsibleError: failed to look up device for volume test1 (/dev/mapper/foo-test1//dev/mapper/foo-test1)\nsys:1: DeprecationWarning: builtin type swigvarlink has no __module__ attribute\n", "module_stdout": "", "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error", "rc": 1}
TASK [rhel-system-roles.storage : Failed message] ******************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": {"changed": false, "exception": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1734175306.528188-1504532-106424982292273/AnsiballZ_blivet.py\", line 107, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1734175306.528188-1504532-106424982292273/AnsiballZ_blivet.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1734175306.528188-1504532-106424982292273/AnsiballZ_blivet.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible.modules.blivet', init_globals=dict(_module_fqn='ansible.modules.blivet', _modlib_path=modlib_path),\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2541, in <module>\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2537, in main\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2523, in run_module\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2242, in update_fstab_identifiers\nBlivetAnsibleError: failed to look up device for volume test1 (/dev/mapper/foo-test1//dev/mapper/foo-test1)\nsys:1: DeprecationWarning: builtin type swigvarlink has no __module__ attribute\n", "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1734175306.528188-1504532-106424982292273/AnsiballZ_blivet.py\", line 107, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1734175306.528188-1504532-106424982292273/AnsiballZ_blivet.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1734175306.528188-1504532-106424982292273/AnsiballZ_blivet.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible.modules.blivet', init_globals=dict(_module_fqn='ansible.modules.blivet', _modlib_path=modlib_path),\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2541, in <module>\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2537, in main\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2523, in run_module\n File \"/tmp/ansible_blivet_payload_xe0yu5or/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2242, in update_fstab_identifiers\nBlivetAnsibleError: failed to look up device for volume test1 (/dev/mapper/foo-test1//dev/mapper/foo-test1)\nsys:1: DeprecationWarning: builtin type swigvarlink has no __module__ attribute\n", "module_stdout": "", "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error", "rc": 1}}
Metadata
Metadata
Assignees
Labels
No labels