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

Ansible role-based replica install failing

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.7
    • ansible-freeipa
    • None
    • None
    • None
    • rhel-idm-zta
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

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

      Install IdM replica via redhat.rhel_idm.ipareplica role

      What is the impact of this issue to you?

      Unable to install replicas

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

      ipa-server-4.12.2-22.el9_7.1

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Install IdM primary server via redhat.rhel_idm.ipaserver role
      2. Attempt to install replica(s) via redhat.rhel_idm.ipareplica role

      Expected results

      Installed, functional replicas

      Actual results

      TASK [redhat.rhel_idm.ipareplica : Install - Replica preparation] **************
      An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'Env' object has no attribute 'realm'
      fatal: [ipa2.lab.jbho.me]: FAILED! => {"changed": false, "module_stderr": "Shared connection to ipa2.lab.jbho.me closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/home/opie/.ansible/tmp/ansible-tmp-1763645839.2870288-227-236229951992695/AnsiballZ_ipareplica_prepare.py\", line 107, in <module>\r\n    _ansiballz_main()\r\n  File \"/home/opie/.ansible/tmp/ansible-tmp-1763645839.2870288-227-236229951992695/AnsiballZ_ipareplica_prepare.py\", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/home/opie/.ansible/tmp/ansible-tmp-1763645839.2870288-227-236229951992695/AnsiballZ_ipareplica_prepare.py\", line 47, in invoke_module\r\n    runpy.run_module(mod_name='ansible_collections.redhat.rhel_idm.plugins.modules.ipareplica_prepare', init_globals=dict(_module_fqn='ansible_collections.redhat.rhel_idm.plugins.modules.ipareplica_prepare', _modlib_path=modlib_path),\r\n  File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module\r\n    return _run_module_code(code, init_globals, run_name, mod_spec)\r\n  File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\r\n    _run_code(code, mod_globals, init_globals,\r\n  File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/tmp/ansible_redhat.rhel_idm.ipareplica_prepare_payload_miigi7vg/ansible_redhat.rhel_idm.ipareplica_prepare_payload.zip/ansible_collections/redhat/rhel_idm/plugins/modules/ipareplica_prepare.py\", line 1008, in <module>\r\n  File \"/tmp/ansible_redhat.rhel_idm.ipareplica_prepare_payload_miigi7vg/ansible_redhat.rhel_idm.ipareplica_prepare_payload.zip/ansible_collections/redhat/rhel_idm/plugins/modules/ipareplica_prepare.py\", line 534, in main\r\nAttributeError: 'Env' object has no attribute 'realm'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
      An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'Env' object has no attribute 'realm'
      fatal: [ipa3.lab.jbho.me]: FAILED! => {"changed": false, "module_stderr": "Shared connection to ipa3.lab.jbho.me closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/home/opie/.ansible/tmp/ansible-tmp-1763645839.2974973-228-107677755453663/AnsiballZ_ipareplica_prepare.py\", line 107, in <module>\r\n    _ansiballz_main()\r\n  File \"/home/opie/.ansible/tmp/ansible-tmp-1763645839.2974973-228-107677755453663/AnsiballZ_ipareplica_prepare.py\", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/home/opie/.ansible/tmp/ansible-tmp-1763645839.2974973-228-107677755453663/AnsiballZ_ipareplica_prepare.py\", line 47, in invoke_module\r\n    runpy.run_module(mod_name='ansible_collections.redhat.rhel_idm.plugins.modules.ipareplica_prepare', init_globals=dict(_module_fqn='ansible_collections.redhat.rhel_idm.plugins.modules.ipareplica_prepare', _modlib_path=modlib_path),\r\n  File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module\r\n    return _run_module_code(code, init_globals, run_name, mod_spec)\r\n  File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\r\n    _run_code(code, mod_globals, init_globals,\r\n  File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/tmp/ansible_redhat.rhel_idm.ipareplica_prepare_payload_vbk2knhy/ansible_redhat.rhel_idm.ipareplica_prepare_payload.zip/ansible_collections/redhat/rhel_idm/plugins/modules/ipareplica_prepare.py\", line 1008, in <module>\r\n  File \"/tmp/ansible_redhat.rhel_idm.ipareplica_prepare_payload_vbk2knhy/ansible_redhat.rhel_idm.ipareplica_prepare_payload.zip/ansible_collections/redhat/rhel_idm/plugins/modules/ipareplica_prepare.py\", line 534, in main\r\nAttributeError: 'Env' object has no attribute 'realm'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

        1. idm.yml
          0.7 kB
        2. idm-install-log.json
          388 kB
        3. inventory-idm
          0.1 kB

              twoerner Thomas Woerner
              rhn-gps-jberning John Berninger
              Thomas Woerner Thomas Woerner
              Varun Mylaraiah Varun Mylaraiah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: