Bug 1565374
Summary: | FFU: running deploy_steps_playbook.yaml on a specific compute node fails with TASK [check if libvirt is installed] fatal: [192.168.0.24]: FAILED! => {"msg": "The conditional check 'False' failed. The error was: expected string or buffer"} | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Marius Cornea <mcornea> | ||||
Component: | openstack-tripleo-common | Assignee: | Jose Luis Franco <jfrancoa> | ||||
Status: | CLOSED ERRATA | QA Contact: | Marius Cornea <mcornea> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 13.0 (Queens) | CC: | ccamacho, dbecker, jfrancoa, jschluet, jstransk, lbezdick, mbracho, mbultel, mburns, morazi, rhel-osp-director-maint, sclewis, slinaber | ||||
Target Milestone: | rc | Keywords: | Triaged | ||||
Target Release: | 13.0 (Queens) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Fixed In Version: | openstack-tripleo-common-8.6.1-9.el7ost | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-06-27 13:50:52 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1561169 | ||||||
Attachments: |
|
Description
Marius Cornea
2018-04-09 23:53:45 UTC
Created attachment 1419613 [details]
logs and playbooks
Attaching the playbooks and their outputs.The error can be seen in ffu_deploy_steps_playbook_script_compute-r00-00.log file
Running the playbook with increased verbosity: ansible-playbook --module-path /usr/share/ansible-modules/ -i /home/stack/tripleo-ansible-inventory-static.yaml -b /home/stack/tripleo-ureIl_-config/deploy_steps_playbook.yaml --limit=compute-r00-00 -vvvvvvv TASK [check if libvirt is installed] ********************************************************************************************************************************************************************************************************* task path: /home/stack/tripleo-ureIl_-config/Compute/host_prep_tasks.yaml:88 Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py <192.168.0.24> ESTABLISH SSH CONNECTION FOR USER: heat-admin <192.168.0.24> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s) <192.168.0.24> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no) <192.168.0.24> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=heat-admin) <192.168.0.24> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10) <192.168.0.24> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/stack/.ansible/cp/cf7b81f744) <192.168.0.24> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=heat-admin -o ConnectTimeout=10 -o ControlPath=/home/stack/.ansible/cp/cf7b81f744 192.168.0.24 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' <192.168.0.24> (0, '/home/heat-admin\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /home/stack/.ssh/config\r\ndebug1: /home/stack/.ssh/config line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 21364\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') <192.168.0.24> ESTABLISH SSH CONNECTION FOR USER: heat-admin <192.168.0.24> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s) <192.168.0.24> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no) <192.168.0.24> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=heat-admin) <192.168.0.24> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10) <192.168.0.24> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/stack/.ansible/cp/cf7b81f744) <192.168.0.24> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=heat-admin -o ConnectTimeout=10 -o ControlPath=/home/stack/.ansible/cp/cf7b81f744 192.168.0.24 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768 `" && echo ansible-tmp-1523318477.13-97902695833768="` echo /home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768 `" ) && sleep 0'"'"'' <192.168.0.24> (0, 'ansible-tmp-1523318477.13-97902695833768=/home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /home/stack/.ssh/config\r\ndebug1: /home/stack/.ssh/config line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 21364\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') <192.168.0.24> PUT /tmp/tmp_bN881 TO /home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768/command.py <192.168.0.24> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s) <192.168.0.24> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no) <192.168.0.24> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=heat-admin) <192.168.0.24> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10) <192.168.0.24> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/stack/.ansible/cp/cf7b81f744) <192.168.0.24> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=heat-admin -o ConnectTimeout=10 -o ControlPath=/home/stack/.ansible/cp/cf7b81f744 '[192.168.0.24]' <192.168.0.24> (0, 'sftp> put /tmp/tmp_bN881 /home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768/command.py\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /home/stack/.ssh/config\r\ndebug1: /home/stack/.ssh/config line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 21364\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename" revision 1\r\ndebug2: Server supports extension "statvfs" revision 2\r\ndebug2: Server supports extension "fstatvfs" revision 2\r\ndebug2: Server supports extension "hardlink" revision 1\r\ndebug2: Server supports extension "fsync" revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/heat-admin size 0\r\ndebug3: Looking up /tmp/tmp_bN881\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768/command.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:1279\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 1279 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') <192.168.0.24> ESTABLISH SSH CONNECTION FOR USER: heat-admin <192.168.0.24> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s) <192.168.0.24> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no) <192.168.0.24> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=heat-admin) <192.168.0.24> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10) <192.168.0.24> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/stack/.ansible/cp/cf7b81f744) <192.168.0.24> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=heat-admin -o ConnectTimeout=10 -o ControlPath=/home/stack/.ansible/cp/cf7b81f744 192.168.0.24 '/bin/sh -c '"'"'chmod u+x /home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768/ /home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768/command.py && sleep 0'"'"'' <192.168.0.24> (0, '', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /home/stack/.ssh/config\r\ndebug1: /home/stack/.ssh/config line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 21364\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') <192.168.0.24> ESTABLISH SSH CONNECTION FOR USER: heat-admin <192.168.0.24> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s) <192.168.0.24> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no) <192.168.0.24> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=heat-admin) <192.168.0.24> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10) <192.168.0.24> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/stack/.ansible/cp/cf7b81f744) <192.168.0.24> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=heat-admin -o ConnectTimeout=10 -o ControlPath=/home/stack/.ansible/cp/cf7b81f744 -tt 192.168.0.24 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-gtwvdcxkztsyjqwylkvbvygpzgseraly; /usr/bin/python /home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768/command.py; rm -rf "/home/heat-admin/.ansible/tmp/ansible-tmp-1523318477.13-97902695833768/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <192.168.0.24> (0, '\r\n{"changed": true, "end": "2018-04-10 00:01:17.438080", "stdout": "libvirt-daemon-3.9.0-14.el7.x86_64", "cmd": ["/usr/bin/rpm", "-q", "libvirt-daemon"], "rc": 0, "start": "2018-04-10 00:01:17.395856", "stderr": "", "delta": "0:00:00.042224", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": false, "_raw_params": "/usr/bin/rpm -q libvirt-daemon", "removes": null, "creates": null, "chdir": null, "stdin": null}}, "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]}\r\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /home/stack/.ssh/config\r\ndebug1: /home/stack/.ssh/config line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 21364\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 192.168.0.24 closed.\r\n') fatal: [192.168.0.24]: FAILED! => { "msg": "The conditional check 'False' failed. The error was: expected string or buffer" } Running the failing task adhoc works fine: [stack@undercloud-0 ~]$ ansible -i tripleo-ansible-inventory-static.yaml -m command -a '/usr/bin/rpm -q libvirt-daemon' compute-r00-00 [WARNING]: Skipping unexpected key (hostvars) in group (_meta), only "vars", "children" and "hosts" are valid [WARNING]: Consider using yum, dnf or zypper module rather than running rpm 192.168.0.24 | SUCCESS | rc=0 >> libvirt-daemon-3.9.0-14.el7.x86_64 *** Bug 1565395 has been marked as a duplicate of this bug. *** Changed assignee from default (me) to UA of the DFG who owns this BZ. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:2086 |