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 1504800

Summary: [maintenance] clean deprecation warnings from running ceph-ansible
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: John Fulton <johfulto>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED CURRENTRELEASE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, gfidente, gmeno, johfulto, jschluet, kdreyer, nthomas, sankarshan
Target Milestone: rc   
Target Release: 3.*   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.1.0-0.1.beta3.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-10 16:29:23 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:

Description John Fulton 2017-10-20 16:27:21 UTC
The average run of ceph-ansible (e.g. ceph-ansible-3.0.3-1.el7cp.noarch) generates about 700 deprecation warnings (e.g. ansible-playbook ... grep -i deprecation | wc -l). 

This is a bug to track, as a maintenance item for the future, cleaning these up in a future version. 

As a workaround until these are cleaned do we default /usr/share/ceph-ansible/ansible.cfg with "deprecation_warnings=False" for the version that's being shipped so it doesn't end up in logs (e.g. /var/log/mistral/ceph-install-workflow.log for OpenStack TripleO Pike)?

Comment 3 Sébastien Han 2017-10-20 16:30:29 UTC
These have been addressed upstream and will be in 3.1.

Comment 5 Ken Dreyer (Red Hat) 2018-03-19 16:02:05 UTC
John would you please confirm this is resolved in the latest betas of ceph-ansible-3.1.0?

Comment 6 John Fulton 2018-03-23 02:06:54 UTC
Situation is greatly improved. We dropped from 700 to 48: 

[root@undercloud mistral]# grep -i deprecation ceph-install-workflow.log  | wc -l
48
[root@undercloud mistral]#

Comment 7 John Fulton 2018-03-23 02:07:30 UTC
List of deprecation warnings: 

[root@undercloud mistral]# grep -i deprecation ceph-install-workflow.log  
2018-03-23 02:53:25,712 p=27481 u=mistral |  [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 
 This feature will be removed in a future release. Deprecation warnings can be 
disabled by setting deprecation_warnings=False in ansible.cfg.
2018-03-23 02:53:25,774 p=27481 u=mistral |  [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is
 rationale.. This feature will be removed in a future release. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
2018-03-23 02:53:26,414 p=27481 u=mistral |  [DEPRECATION WARNING]: The use of 'static' has been deprecated. Use 
This feature will be removed in a future release. Deprecation warnings can be 
disabled by setting deprecation_warnings=False in ansible.cfg.
2018-03-23 02:53:26,451 p=27481 u=mistral |  [DEPRECATION WARNING]: docker is kept for backwards compatibility but usage is 
rationale.. This feature will be removed in a future release. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
2018-03-23 02:54:02,572 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_bytes is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:54:02,573 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_unicode is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:55:04,746 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_bytes is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:55:04,746 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_unicode is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:55:29,272 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_bytes is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:55:29,273 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_unicode is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:56:07,824 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_bytes is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:56:07,824 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_unicode is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:56:54,680 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_bytes is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:56:54,682 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_unicode is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:56:54,695 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_bytes is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-03-23 02:56:54,696 p=27481 u=mistral |  [DEPRECATION WARNING]: ansible.utils.unicode.to_unicode is deprecated.  Use 
version 2.4. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
[root@undercloud mistral]#

Comment 9 Sébastien Han 2018-03-29 11:51:50 UTC
I don't think we will ever close this one since new releases will likely come with new deprecation warnings. So unless we clarify which one should be removed I don't see how we can move forward with this one.

Comment 10 Ken Dreyer (Red Hat) 2018-04-02 15:12:22 UTC
Let's use this BZ to track cleaning up the exact warnings John pasted in Comment 7.

We can fix any future warnings in future BZs.

Comment 11 Sébastien Han 2018-04-12 13:40:47 UTC
Alright sounds good. I think ansible.utils.unicode.to_bytes is handled by https://github.com/ceph/ceph-ansible/pull/2476