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

BlivetAnsibleError: failed to look up device for volume test1 (/dev/mapper/foo-test1//dev/mapper/foo-test1) #501

Open
guazhangRH opened this issue Dec 14, 2024 · 0 comments

Comments

@guazhangRH
Copy link

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}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant