Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1594169

Summary: Unexpected Exception, this is probably a bug: cannot import name to_bytes
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Filip Hubík <fhubik>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED CURRENTRELEASE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1CC: aschoen, ceph-eng-bugs, fhubik, gfidente, gmeno, johfulto, nthomas, sankarshan
Target Milestone: rc   
Target Release: 3.*   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-22 13:44:48 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: 1553640    
Attachments:
Description Flags
/var/lib/mistral/xyz/ansible.log none

Description Filip Hubík 2018-06-22 09:53:39 UTC
Description of problem:
OSP14 can not execute post-deployment ceph-ansible playbook. The error in /var/lib/mistral/xyz/ansible.log is:

ON WARNING]: Using tests as filters is deprecated. Instead of using ", "`result|search` instead use `result is search`. This feature will be removed in", " version 2.9. Deprecation warnings can be disabled by setting ", "deprecation_warnin
gs=False in ansible.cfg.", "[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using ", "`result|version_compare` instead use `result is version_compare`. This feature ", "will be removed in version 2.9. Deprecation wa
rnings can be disabled by setting", " deprecation_warnings=False in ansible.cfg.", "[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using ", "`result|version_compare` instead use `result is version_compare`. This fe
ature ", "will be removed in version 2.9. Deprecation warnings can be disabled by setting", " deprecation_warnings=False in ansible.cfg.", "[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using ", "`result|version_c
ompare` instead use `result is version_compare`. This feature ", "will be removed in version 2.9. Deprecation warnings can be disabled by setting", " deprecation_warnings=False in ansible.cfg.", "[DEPRECATION WARNING]: Using tests as filte
rs is deprecated. Instead of using ", "`result|version_compare` instead use `result is version_compare`. This feature ", "will be removed in version 2.9. Deprecation warnings can be disabled by setting", " deprecation_warnings=False in ansible.cfg."
...
"ERROR! Unexpected Exception, this is probably a bug: cannot import name to_bytes"],
...
"stdout": "ansible-playbook 2.5.4\n  config file = /usr/share/ceph-ansible/ansible.cfg\n  configured module search path = [u'/usr/share/ceph-a
nsible/library']\n  ansible python module location = /usr/lib/python2.7/site-packages/ansible\n  executable location = /usr/bin/ansible-playbook\n  python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-
28)]\nUsing /usr/share/ceph-ansible/ansible.cfg as config file\nstatically imported: /usr/share/ceph-ansible/roles/ceph-defaults/tasks/check_running_cluster.yml\nstatically imported: /usr/share/ceph-ansible/roles/ceph-defaults/tasks/check_
running_containers.yml\nstatically imported: /usr/share/ceph-ansible/roles/ceph-defaults/tasks/check_socket_non_container.yml\nstatically imported: /usr/share/ceph-ansible/roles/ceph-defaults/tasks/facts.yml\nstatically imported: /usr/shar
e/ceph-ansible/roles/ceph-docker-common/tasks/system_checks.yml\nstatically imported: /usr/share/ceph-ansible/roles/ceph-docker-common/tasks/check_mandatory_vars.yml\nstatically imported: /usr/share/ceph-ansible/roles/ceph-docker-common/ta
sks/pre_requisites/prerequisites.yml\nstatically imported: /usr/share/ceph-ansible/roles/ceph-docker-common/tasks/pre_requisites/remove_ceph_udev_rules.yml\nstatically imported: /usr/share/ceph-ansible/roles/ceph-docker-common/tasks/pre_re
quisites/debian_prerequisites.yml\nstatically imported: /usr/share/ceph-ansible/roles/ceph-docker-common/tasks/checks.yml\nstatically imported: /usr/share/ceph

Version-Release number of selected component (if applicable):
OSPd14, puddle 2018-06-19.4

How reproducible:
aways

Steps to Reproduce:
1. Deploy OSP14 using InfraRed topology 1:1.1:1
2. Workaround bug https://bugzilla.redhat.com/show_bug.cgi?id=1593345 with
home for mistral user manually created
3. Redeploy overcloud using overcloud_deploy.sh again


Additional info:
ceph-ansible-3.1.0-0.1.beta7.el7cp.noarch
puppet-ceph-2.5.1-0.20180612095118.e6c31c4.el7ost.noarch
ansible-2.5.4-1.el7ae.noarch
python-tripleoclient-10.2.1-0.20180614123359.bac7317.el7ost.noarch
puppet-tripleo-9.1.1-0.20180614115802.5ad483e.el7ost.noarch
openstack-tripleo-common-9.1.1-0.20180614064914.33e8979.el7ost.noarch
openstack-tripleo-heat-templates-9.0.0-0.20180614125120.76c8fe9.el7ost.noarch
openstack-tripleo-ui-9.1.1-0.20180614162701.17501fb.el7ost.noarch
python-tripleoclient-heat-installer-10.2.1-0.20180614123359.bac7317.el7ost.noarch
openstack-tripleo-common-containers-9.1.1-0.20180614064914.33e8979.el7ost.noarch
openstack-tripleo-image-elements-9.0.0-0.20180601015717.2ac38dd.el7ost.noarch
openstack-tripleo-validations-9.1.1-0.20180613083358.1069c38.el7ost.noarch
ansible-role-tripleo-modify-image-0.0.1-0.20180531094252.f9e8e93.el7ost.noarch
openstack-tripleo-puppet-elements-9.0.0-0.20180602004307.939b586.el7ost.noarch
ansible-tripleo-ipsec-8.1.1-0.20180405121919.325d233.el7ost.noarch

Comment 1 Filip Hubík 2018-06-22 09:55:02 UTC
I can confirm https://github.com/ceph/ceph-ansible/issues/2474 affects this isssue (I am able to get further in flow with this specific error) and if it is confirmed it might be used as workaround?

Comment 2 Filip Hubík 2018-06-22 10:13:54 UTC
Created attachment 1453680 [details]
/var/lib/mistral/xyz/ansible.log

Comment 5 John Fulton 2018-06-22 11:59:35 UTC
Filip, Would you please verify if you can reproduce this issue with ceph-ansible rc9 (you filed this with rc7) and then update the bug?

Comment 7 Filip Hubík 2018-06-22 13:40:22 UTC
I can confirm this issue is not present during deployment when ceph-ansible-3.1.0-0.1.rc9.el7cp.noarch.rpm is installed.