Skip to content

Instantly share code, notes, and snippets.

@elkoniu
Created November 29, 2019 08:57
Show Gist options
  • Save elkoniu/c4993d2e5761c7f773018828f02c5cdb to your computer and use it in GitHub Desktop.
Save elkoniu/c4993d2e5761c7f773018828f02c5cdb to your computer and use it in GitHub Desktop.
koniu@blackbox<sssd-test-suite><master>$ ./sssd-test-suite provision guest all
PLAY [all] ***********************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************
ok: [localhost]
ok: [ldap]
ok: [client]
ok: [ipa]
ok: [ad-child]
ok: [ad]
TASK [python : Python interpreter] ***********************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'discovered_interpreter_python' is undefined\n\nThe error appears to be in '/home/koniu/RedHat/git/sssd-test-suite/provision/roles/python/tasks/main.yml': line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Python interpreter\n ^ here\n"}
fatal: [ad]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'discovered_interpreter_python' is undefined\n\nThe error appears to be in '/home/koniu/RedHat/git/sssd-test-suite/provision/roles/python/tasks/main.yml': line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Python interpreter\n ^ here\n"}
fatal: [ad-child]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'discovered_interpreter_python' is undefined\n\nThe error appears to be in '/home/koniu/RedHat/git/sssd-test-suite/provision/roles/python/tasks/main.yml': line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Python interpreter\n ^ here\n"}
ok: [ipa] => {
"msg": "/usr/bin/python3 (3.7.4)"
}
ok: [ldap] => {
"msg": "/usr/bin/python3 (3.7.4)"
}
ok: [client] => {
"msg": "/usr/bin/python3 (3.7.5)"
}
PLAY [ipa:ldap:client] ***********************************************************************************************************************************
TASK [packages : Upgrade all packages to their latest version] *******************************************************************************************
changed: [client]
changed: [ldap]
changed: [ipa]
TASK [packages : Include distribution specific package tasks [Fedora 30]] ********************************************************************************
included: /home/koniu/RedHat/git/sssd-test-suite/provision/roles/packages/tasks/Fedora30.yml for ipa, ldap, client
TASK [packages : Packages are the same as in Fedora 29] **************************************************************************************************
included: /home/koniu/RedHat/git/sssd-test-suite/provision/roles/packages/tasks/Fedora29.yml for ipa, ldap, client
TASK [packages : Packages are the same as in Fedora 28] **************************************************************************************************
included: /home/koniu/RedHat/git/sssd-test-suite/provision/roles/packages/tasks/Fedora28.yml for ipa, ldap, client
TASK [packages : Packages are the same as in Fedora 27] **************************************************************************************************
included: /home/koniu/RedHat/git/sssd-test-suite/provision/roles/packages/tasks/Fedora27.yml for ipa, ldap, client
TASK [packages : SELinux is enabled in Fedora] ***********************************************************************************************************
ok: [ipa]
ok: [ldap]
ok: [client]
TASK [packages : Set debuginfo repositories to *-debuginfo] **********************************************************************************************
ok: [ipa]
ok: [ldap]
ok: [client]
TASK [packages : Install common packages] ****************************************************************************************************************
ok: [client]
ok: [ipa]
ok: [ldap]
TASK [packages : Install IPA specific packages] **********************************************************************************************************
skipping: [ldap]
skipping: [client]
ok: [ipa]
TASK [packages : Install LDAP specific packages] *********************************************************************************************************
skipping: [ipa]
skipping: [client]
ok: [ldap]
TASK [packages : Install Client specific packages] *******************************************************************************************************
skipping: [ipa]
skipping: [ldap]
ok: [client]
TASK [packages : Install Client specific packages required for integration tests] ************************************************************************
skipping: [ipa]
skipping: [ldap]
ok: [client]
TASK [packages : Install debug information for specific packages] ****************************************************************************************
skipping: [ipa]
skipping: [ldap]
ok: [client]
TASK [packages : Install additional packages] ************************************************************************************************************
ok: [ipa]
ok: [ldap]
ok: [client]
TASK [packages : Install LDAP legacy tools] **************************************************************************************************************
skipping: [ipa]
skipping: [client]
ok: [ldap]
TASK [packages : Install additional packages] ************************************************************************************************************
ok: [ldap]
ok: [ipa]
ok: [client]
TASK [common : Run SELinux in permissive mode] ***********************************************************************************************************
ok: [client]
ok: [ldap]
ok: [ipa]
TASK [common : Add .bashrc for user] *********************************************************************************************************************
ok: [ldap]
ok: [client]
ok: [ipa]
TASK [common : Add .vimrc for user] **********************************************************************************************************************
ok: [client]
ok: [ldap]
ok: [ipa]
TASK [common : Add .bashrc for root] *********************************************************************************************************************
ok: [client]
ok: [ipa]
ok: [ldap]
TASK [common : Add .vimrc for root] **********************************************************************************************************************
ok: [client]
ok: [ldap]
ok: [ipa]
TASK [common : Keep SSSD_TEST_SUITE_BASHRC variable when sudo] *******************************************************************************************
ok: [client]
ok: [ldap]
ok: [ipa]
TASK [common : Accept SSSD_TEST_SUITE_BASHRC variable through ssh] ***************************************************************************************
ok: [ldap]
ok: [ipa]
ok: [client]
TASK [common : Reload sshd] ******************************************************************************************************************************
skipping: [ipa]
skipping: [ldap]
skipping: [client]
TASK [common : Add ssh key for vagrant user] *************************************************************************************************************
fatal: [client]: FAILED! => {"changed": true, "cmd": "if [ -f /home/vagrant/.ssh/id_rsa ]; then\n echo \"Key already exist. Nothing to do.\"\n exit 255\nfi\n\nssh-keygen -b 2048 -t rsa -q -N \"\" -f /home/vagrant/.ssh/id_rsa\n", "delta": "0:00:00.004028", "end": "2019-11-29 08:46:27.558193", "msg": "non-zero return code", "rc": 255, "start": "2019-11-29 08:46:27.554165", "stderr": "", "stderr_lines": [], "stdout": "Key already exist. Nothing to do.", "stdout_lines": ["Key already exist. Nothing to do."]}
changed: [ldap]
changed: [ipa]
PLAY [ad:ad-child] ***************************************************************************************************************************************
PLAY [ad] ************************************************************************************************************************************************
PLAY [ipa] ***********************************************************************************************************************************************
TASK [ipa : Remove hostname from /etc/hosts] *************************************************************************************************************
ok: [ipa]
TASK [ipa : Install IPA server] **************************************************************************************************************************
ok: [ipa]
TASK [ipa : Remove vagrant IP addresses from /etc/hosts because they can change over time] ***************************************************************
ok: [ipa]
TASK [ipa : Create /etc/NetworkManager/conf.d/disable_dns.conf] ******************************************************************************************
ok: [ipa]
TASK [ipa : Start NetworkManager] ************************************************************************************************************************
ok: [ipa]
TASK [ipa : Reload NetworkManager configuration] *********************************************************************************************************
skipping: [ipa]
TASK [ipa : Remove vagrant DNS A records] ****************************************************************************************************************
ok: [ipa] => (item={'zone': 'ipa.vm', 'name': 'ipa-ca', 'ip': '192.168.121.238'})
ok: [ipa] => (item={'zone': 'ipa.vm', 'name': 'master', 'ip': '192.168.121.238'})
TASK [ipa : Create pw-never-expires group] ***************************************************************************************************************
ok: [ipa]
TASK [ipa : Create pw-never-expires password policy] *****************************************************************************************************
ok: [ipa]
TASK [ipa : Add admin to pw-never-expires group] *********************************************************************************************************
ok: [ipa]
TASK [ipa : Reset admin password to apply pw-never-expires policy] ***************************************************************************************
skipping: [ipa]
PLAY [ad-child] ******************************************************************************************************************************************
PLAY [ldap:client] ***************************************************************************************************************************************
TASK [dnsclient : Create /etc/NetworkManager/conf.d/enable_dnsmasq.conf] *********************************************************************************
ok: [ldap]
TASK [dnsclient : Create /etc/NetworkManager/dnsmasq.d/zone_vm.dnsmasq] **********************************************************************************
ok: [ldap]
TASK [dnsclient : Start NetworkManager] ******************************************************************************************************************
ok: [ldap]
TASK [dnsclient : Reload NetworkManager configuration] ***************************************************************************************************
skipping: [ldap]
PLAY [ldap] **********************************************************************************************************************************************
TASK [ldap : Fetch SSL setup script] *********************************************************************************************************************
changed: [ldap]
TASK [ldap : Create directory server instance] ***********************************************************************************************************
ok: [ldap]
TASK [ldap : Enable SSL for directory server instance] ***************************************************************************************************
ok: [ldap]
TASK [ldap : Restart directory server] *******************************************************************************************************************
skipping: [ldap]
TASK [ldap : Restart directory server instance] **********************************************************************************************************
skipping: [ldap]
TASK [ldap : Remove all objects but "cn=Directory Administrators"] ***************************************************************************************
ok: [ldap]
PLAY RECAP ***********************************************************************************************************************************************
ad : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
ad-child : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
client : ok=22 changed=1 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0
ipa : ok=30 changed=2 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0
ldap : ok=29 changed=3 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
[sssd-test-suite] The following command exited with 2:
[sssd-test-suite] Working directory: /home/koniu/RedHat/git/sssd-test-suite
[sssd-test-suite] Environment: ANSIBLE_HOST_KEY_CHECKING='false' ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s -o ServerAliveInterval=15'
[sssd-test-suite] Command: ansible-playbook --limit all --inventory-file /home/koniu/RedHat/git/sssd-test-suite/provision/inventory.yml /home/koniu/RedHat/git/sssd-test-suite/provision/prepare-guests.yml
koniu@blackbox<sssd-test-suite><master>$ ./sssd-test-suite provision enroll all
[sssd-test-suite] [Enroll] [1/2] Start Guest Machines
Bringing machine 'ad' up with 'libvirt' provider...
Bringing machine 'ad-child' up with 'libvirt' provider...
Bringing machine 'client' up with 'libvirt' provider...
Bringing machine 'ipa' up with 'libvirt' provider...
Bringing machine 'ldap' up with 'libvirt' provider...
==> ad: Checking if box 'peru/windows-server-2019-datacenter-x64-eval' version '20191101.01' is up to date...
==> client: Checking if box 'sssd-vagrant/fedora30-client' version '20191123.01' is up to date...
==> ipa: Checking if box 'sssd-vagrant/fedora30-ipa' version '20191029.01' is up to date...
==> ldap: Checking if box 'sssd-vagrant/fedora30-ldap' version '20191029.01' is up to date...
==> ad: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> ad: flag to force provisioning. Provisioners marked to run always will still run.
==> ad-child: Checking if box 'peru/windows-server-2019-datacenter-x64-eval' version '20191101.01' is up to date...
==> ad-child: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> ad-child: flag to force provisioning. Provisioners marked to run always will still run.
==> ldap: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> ldap: flag to force provisioning. Provisioners marked to run always will still run.
==> ipa: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> ipa: flag to force provisioning. Provisioners marked to run always will still run.
==> client: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> client: flag to force provisioning. Provisioners marked to run always will still run.
[sssd-test-suite] [Enroll] [2/2] Enroll Machines
BECOME password:
PLAY [ipa] ***********************************************************************************************************************************************
TASK [enroll-ipa : Create /shared/enrollment/ipa directory] **********************************************************************************************
changed: [ipa]
TASK [enroll-ipa : Copy certificate to shared folder] ****************************************************************************************************
changed: [ipa]
TASK [enroll-ipa : Install IPA-AD trust] *****************************************************************************************************************
changed: [ipa]
TASK [enroll-ipa : Setup trust with ad.vm] ***************************************************************************************************************
fatal: [ipa]: FAILED! => {"changed": false, "cmd": "echo 123456789 | kinit admin\n\nipa trust-show ad.vm\nif [ $? -eq 0 ]; then\n echo \"Trust with ad.vm already exists. Nothing to do.\"\n exit 255\nfi\n\necho vagrant | ipa trust-add ad.vm --admin Administrator --password\n", "delta": "0:00:01.866779", "end": "2019-11-29 08:50:33.685654", "failed_when_result": true, "msg": "non-zero return code", "rc": 2, "start": "2019-11-29 08:50:31.818875", "stderr": "ipa: ERROR: ad.vm: trust not found\nipa: ERROR: Cannot perform the selected command without Samba 4 support installed. Make sure you have installed server-trust-ad sub-package of IPA. Alternatively, following servers are capable of running this command: master.ipa.vm", "stderr_lines": ["ipa: ERROR: ad.vm: trust not found", "ipa: ERROR: Cannot perform the selected command without Samba 4 support installed. Make sure you have installed server-trust-ad sub-package of IPA. Alternatively, following servers are capable of running this command: master.ipa.vm"], "stdout": "Password for admin@IPA.VM: ", "stdout_lines": ["Password for admin@IPA.VM: "]}
PLAY RECAP ***********************************************************************************************************************************************
ipa : ok=3 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
[sssd-test-suite] [Enroll] [ERROR] ShellScriptError: Command '['ansible-playbook', '--limit', 'all', '--inventory-file', '/home/koniu/RedHat/git/sssd-test-suite/provision/inventory.yml', '--ask-become-pass', '/home/koniu/RedHat/git/sssd-test-suite/provision/enroll.yml']' returned non-zero exit status 2.
[sssd-test-suite] [Enroll] Finished with error ShellScriptError: Command '['ansible-playbook', '--limit', 'all', '--inventory-file', '/home/koniu/RedHat/git/sssd-test-suite/provision/inventory.yml', '--ask-become-pass', '/home/koniu/RedHat/git/sssd-test-suite/provision/enroll.yml']' returned non-zero exit status 2.
[sssd-test-suite] The following command exited with 2:
[sssd-test-suite] Working directory: /home/koniu/RedHat/git/sssd-test-suite
[sssd-test-suite] Environment: ANSIBLE_HOST_KEY_CHECKING='false' ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s -o ServerAliveInterval=15'
[sssd-test-suite] Command: ansible-playbook --limit all --inventory-file /home/koniu/RedHat/git/sssd-test-suite/provision/inventory.yml --ask-become-pass /home/koniu/RedHat/git/sssd-test-suite/provision/enroll.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment