Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-70876

[RHEL10 storage role] bytesize.bytesize.ZeroDivisionError: Division by zero

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • No
    • None
    • rhel-system-roles
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

       

      TASK [linux-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-1733913214.960013-507953-68777903525257/AnsiballZ_blivet.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1733913214.960013-507953-68777903525257/AnsiballZ_blivet.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1733913214.960013-507953-68777903525257/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_5_i6wcy4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2531, in <module>\n  File \"/tmp/ansible_blivet_payload_5_i6wcy4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2527, in main\n  File \"/tmp/ansible_blivet_payload_5_i6wcy4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2478, in run_module\n  File \"/tmp/ansible_blivet_payload_5_i6wcy4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2068, in manage_pool\n  File \"/tmp/ansible_blivet_payload_5_i6wcy4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1685, in manage\n  File \"/tmp/ansible_blivet_payload_5_i6wcy4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1656, in _manage_volumes\n  File \"/tmp/ansible_blivet_payload_5_i6wcy4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 878, in manage\n  File \"/tmp/ansible_blivet_payload_5_i6wcy4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1188, in _create\n  File \"/tmp/ansible_blivet_payload_5_i6wcy4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1019, in _trim_size\n  File \"/usr/lib/python3.12/site-packages/blivet/size.py\", line 77, in __truediv__\n    ret = bytesize.Size.__truediv__(self, other)\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib64/python3.12/site-packages/bytesize/bytesize.py\", line 327, in fn_with_neutralization\n    return fn(sz, Size(0) if other is None else other)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib64/python3.12/site-packages/bytesize/bytesize.py\", line 509, in __truediv__\n    return _str_to_decimal(self._c_size.true_div(other._c_size))\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib64/python3.12/site-packages/bytesize/bytesize.py\", line 191, in true_div\n    get_error(err)\n  File \"/usr/lib64/python3.12/site-packages/bytesize/bytesize.py\", line 82, in get_error\n    raise ex\nbytesize.bytesize.ZeroDivisionError: Division by zero\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}
       

      rhel-system-roles-1.90.3-0.1.el10.noarch

      ansible-core-2.16.13-1.el10.noarch

      python3-3.12.6-2.el10.x86_64

       

      same issue can be reproduce with upstream storage role.

      TASK [linux-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-1733911874.286198-478394-37375962563948/AnsiballZ_blivet.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1733911874.286198-478394-37375962563948/AnsiballZ_blivet.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1733911874.286198-478394-37375962563948/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_xhzhyf1h/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2531, in <module>\n  File \"/tmp/ansible_blivet_payload_xhzhyf1h/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2527, in main\n  File \"/tmp/ansible_blivet_payload_xhzhyf1h/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2478, in run_module\n  File \"/tmp/ansible_blivet_payload_xhzhyf1h/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 2068, in manage_pool\n  File \"/tmp/ansible_blivet_payload_xhzhyf1h/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1685, in manage\n  File \"/tmp/ansible_blivet_payload_xhzhyf1h/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1656, in _manage_volumes\n  File \"/tmp/ansible_blivet_payload_xhzhyf1h/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 878, in manage\n  File \"/tmp/ansible_blivet_payload_xhzhyf1h/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1188, in _create\n  File \"/tmp/ansible_blivet_payload_xhzhyf1h/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1019, in _trim_size\n  File \"/usr/lib/python3.12/site-packages/blivet/size.py\", line 77, in __truediv__\n    ret = bytesize.Size.__truediv__(self, other)\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib64/python3.12/site-packages/bytesize/bytesize.py\", line 327, in fn_with_neutralization\n    return fn(sz, Size(0) if other is None else other)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib64/python3.12/site-packages/bytesize/bytesize.py\", line 509, in __truediv__\n    return _str_to_decimal(self._c_size.true_div(other._c_size))\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib64/python3.12/site-packages/bytesize/bytesize.py\", line 191, in true_div\n    get_error(err)\n  File \"/usr/lib64/python3.12/site-packages/bytesize/bytesize.py\", line 82, in get_error\n    raise ex\nbytesize.bytesize.ZeroDivisionError: Division by zero\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}
      

       

        1. blivet.log
          20.26 MB
        2. new_tests_luks_pool.yml
          8 kB

              vtrefny@redhat.com Vojtěch Trefný
              guazhang@redhat.com Guangwu Zhang
              Richard Megginson Richard Megginson
              Guangwu Zhang Guangwu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: