RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1973173 - [ansible-freeipa] Backup-restore is failing due to ansible_python_interpreter and python is not set by default.
Summary: [ansible-freeipa] Backup-restore is failing due to ansible_python_interpreter...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ansible-freeipa
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Thomas Woerner
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On: 1969847
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-17 11:08 UTC by Thomas Woerner
Modified: 2021-12-07 21:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1969847
Environment:
Last Closed: 2021-12-07 21:30:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7450 0 None None None 2021-12-02 14:33:10 UTC

Comment 6 Varun Mylaraiah 2021-08-09 11:46:54 UTC
Verified

ansible-freeipa-0.3.8-1.el9.noarch
ipa-server-4.9.6-4.el9.x86_64

Red Hat Enterprise Linux release 9.0 Beta (Plow)

Passed	ansible_freeipa_tests/backuprestore/test_backuprestore.py::TestBackup::()::test_backup_present_locally	751.80	
------------------------------ Captured log call -------------------------------
transport.py               392 DEBUG    SSH invocation: ['ssh', '-l', 'root', '-o', 'ControlPath=/tmp/multihost_tests.ky5d7tg3/control', '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/tmp/multihost_tests.ky5d7tg3/known_hosts', '-i', '/home/jenkins/workspace/trigger-test-suite-tool/test-suite/config/id_rsa', '-o', 'BatchMode=yes', 'vm-idm-031.lab.eng.pnq.redhat.com']
transport.py               519 DEBUG    RUN ['-o', 'ControlMaster=yes', '/usr/bin/cat']
transport.py               397 INFO     RUN ['ipactl', 'status']
transport.py               519 DEBUG    RUN ['ipactl', 'status']
transport.py               563 DEBUG    Warning: Permanently added 'vm-idm-031.lab.eng.pnq.redhat.com' (ED25519) to the list of known hosts.
transport.py               563 DEBUG    bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    bash: line 4: ipactl: command not found
transport.py               217 DEBUG    Exit code: 127
transport.py               392 DEBUG    SSH invocation: ['ssh', '-l', 'root', '-o', 'ControlPath=/tmp/multihost_tests.cy5lh9yd/control', '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/tmp/multihost_tests.cy5lh9yd/known_hosts', '-i', '/home/jenkins/workspace/trigger-test-suite-tool/test-suite/config/id_rsa', '-o', 'BatchMode=yes', 'vm-idm-030.lab.eng.pnq.redhat.com']
transport.py               519 DEBUG    RUN ['-o', 'ControlMaster=yes', '/usr/bin/cat']
transport.py               433 INFO     PUT inventory/master.hosts
transport.py               519 DEBUG    RUN ['tee', 'inventory/master.hosts']
transport.py               563 DEBUG    Warning: Permanently added 'vm-idm-030.lab.eng.pnq.redhat.com' (ED25519) to the list of known hosts.
transport.py               217 DEBUG    Exit code: 0
transport.py               433 INFO     PUT install-server.yaml
transport.py               519 DEBUG    RUN ['tee', 'install-server.yaml']
transport.py               217 DEBUG    Exit code: 0
transport.py               397 INFO     RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/master.hosts', 'install-server.yaml']
transport.py               519 DEBUG    RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/master.hosts', 'install-server.yaml']
transport.py               563 DEBUG    bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    ansible-playbook 2.9.24
transport.py               563 DEBUG      config file = None
transport.py               563 DEBUG      configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
transport.py               563 DEBUG      ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
transport.py               563 DEBUG      executable location = /usr/local/bin/ansible-playbook
transport.py               563 DEBUG      python version = 3.9.6 (default, Jul 29 2021, 00:00:00) [GCC 11.1.1 20210623 (Red Hat 11.1.1-6)]
transport.py               563 DEBUG    No config file found; using defaults
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAYBOOK: backuprestore_module.yml *********************************************
transport.py               563 DEBUG    1 plays in backuprestore_module.yml
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAY [Playbook to remove all backups from IPA server] **************************
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Gathering Facts] *********************************************************
transport.py               563 DEBUG    task path: /root/backuprestore_module.yml:2
transport.py               563 DEBUG    ok: [master.ipadomain.test]
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Check for empty vars] ****************************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:4
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipabackup_backend)  => {"ansible_loop_var": "item", "changed": false, "item": "ipabackup_backend", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipabackup_gpg_keyring)  => {"ansible_loop_var": "item", "changed": false, "item": "ipabackup_gpg_keyring", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipabackup_instance)  => {"ansible_loop_var": "item", "changed": false, "item": "ipabackup_instance", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipabackup_log_file)  => {"ansible_loop_var": "item", "changed": false, "item": "ipabackup_log_file", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipabackup_password)  => {"ansible_loop_var": "item", "changed": false, "item": "ipabackup_password", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipabackup_name)  => {"ansible_loop_var": "item", "changed": false, "item": "ipabackup_name", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipabackup_controller_path)  => {"ansible_loop_var": "item", "changed": false, "item": "ipabackup_controller_path", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipabackup_name_prefix)  => {"ansible_loop_var": "item", "changed": false, "item": "ipabackup_name_prefix", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipabackup_firewalld_zone)  => {"ansible_loop_var": "item", "changed": false, "item": "ipabackup_firewalld_zone", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Set ipabackup_data if ipabackup_data is not set but ipabackup_online is] ***
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:20
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Fail if ipabackup_from_controller and ipabackup_to_controller are set] ***
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:25
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Get ipabackup_dir from IPA installation] *********************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:29
transport.py               563 DEBUG    included: /usr/share/ansible/roles/ipabackup/tasks/get_ipabackup_dir.yml for master.ipadomain.test
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Get IPA_BACKUP_DIR from ipaplatform] *************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/get_ipabackup_dir.yml:2
transport.py               563 DEBUG    ok: [master.ipadomain.test] => {"backup_dir": "/var/lib/ipa/backup", "changed": false}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Set IPA backup dir] ******************************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/get_ipabackup_dir.yml:6
transport.py               563 DEBUG    ok: [master.ipadomain.test] => {"ansible_facts": {"ipabackup_dir": "/var/lib/ipa/backup"}, "changed": false}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Backup IPA server] *******************************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:32
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Fail for given ipabackup_name if state is not copied, restored or absent] ***
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:36
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Fail on missing ipabackup_name] ******************************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:42
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Get list of all backups on IPA server] ***********************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:49
transport.py               563 DEBUG    changed: [master.ipadomain.test] => {"changed": true, "cmd": "find . -name \"ipa-full-*\" -o -name \"ipa-data-*\" | cut -d\"/\" -f 2", "delta": "0:00:00.006505", "end": "2021-08-09 15:06:14.457007", "rc": 0, "start": "2021-08-09 15:06:14.450502", "stderr": "", "stderr_lines": [], "stdout": "ipa-full-2021-08-09-15-06-04", "stdout_lines": ["ipa-full-2021-08-09-15-06-04"]}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Set ipabackup_names using backup list] ***********************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:56
transport.py               563 DEBUG    ok: [master.ipadomain.test] => {"ansible_facts": {"ipabackup_names": ["ipa-full-2021-08-09-15-06-04"]}, "changed": false}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Fail on ipabackup_name all] **********************************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:66
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Set ipabackup_names from ipabackup_name string] **************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:70
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Set ipabackup_names from ipabackup_name list] ****************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:75
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Set empty ipabackup_names if ipabackup_name is not defined] **************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:81
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Copy backup from IPA server] *********************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:87
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => (item=ipa-full-2021-08-09-15-06-04)  => {"ansible_loop_var": "main_item", "changed": false, "main_item": "ipa-full-2021-08-09-15-06-04", "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Remove backup from IPA server] *******************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:97
transport.py               563 DEBUG    included: /usr/share/ansible/roles/ipabackup/tasks/remove_backup_from_server.yml for master.ipadomain.test
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Remove backup "ipa-full-2021-08-09-15-06-04"] ****************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/remove_backup_from_server.yml:2
transport.py               563 DEBUG    changed: [master.ipadomain.test] => {"changed": true, "path": "/var/lib/ipa/backup/ipa-full-2021-08-09-15-06-04", "state": "absent"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Fail to copy or restore more than one backup on the server] ***
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:113
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Copy backup to server] ***************************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:121
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Restore IPA server after copy] *******************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:124
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipabackup : Restore IPA server] ******************************************
transport.py               563 DEBUG    task path: /usr/share/ansible/roles/ipabackup/tasks/main.yml:133
transport.py               563 DEBUG    skipping: [master.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAY RECAP *********************************************************************
transport.py               563 DEBUG    master.ipadomain.test      : ok=8    changed=2    unreachable=0    failed=0    skipped=15   rescued=0    ignored=0


Note You need to log in before you can comment on or make changes to this bug.