Bug 1322049

Summary: nova-conductor Deprecation Warning
Product: Red Hat OpenStack Reporter: nalmond
Component: python-migrateAssignee: Artom Lifshitz <alifshit>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: high    
Version: 5.0 (RHEL 7)CC: alifshit, berrange, cshastri, dasmith, eglynn, kchamart, ndipanov, sbauza, sferdjao, sgordon, srevivo, vromanso, yeylon
Target Milestone: asyncKeywords: ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-migrate-0.9.1-3.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1353011 (view as bug list) Environment:
Last Closed: 2016-07-20 19:53:10 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:
Bug Depends On:    
Bug Blocks: 1353011    

Description nalmond 2016-03-29 16:04:26 UTC
Description of problem:
A large number of deprecation warnings are appearing in /var/log/messages reducing its readability. These warnings appear fairly frequently and can be seen appearing more than 20 times in one second.

Version-Release number of selected component (if applicable):
python-migrate-0.9.1-1.el7ost

How reproducible:
Occurs frequently

Steps to Reproduce:
1. Install OSP 5 on RHEL 7
2. Observe /var/log/messages

Mar 17 12:54:34 node nova-conductor: /usr/lib/python2.7/site-packages/amqp/channel.py:616: VDeprecationWarning: The auto_delete flag for exchanges has been deprecated and will be removed 
Mar 17 12:54:34 node nova-conductor: from py-amqp v1.5.0. 
Mar 17 12:54:34 node nova-conductor: warn(VDeprecationWarning(EXCHANGE_AUTODELETE_DEPRECATED))
Mar 17 12:54:34 node nova-conductor: /usr/lib/python2.7/site-packages/amqp/channel.py:616: VDeprecationWarning: The auto_delete flag for exchanges has been deprecated and will be removed 
Mar 17 12:54:34 node nova-conductor: from py-amqp v1.5.0. 
Mar 17 12:54:34 node nova-conductor: warn(VDeprecationWarning(EXCHANGE_AUTODELETE_DEPRECATED))
Mar 17 12:54:34 node nova-conductor: /usr/lib/python2.7/site-packages/amqp/channel.py:616: VDeprecationWarning: The auto_delete flag for exchanges has been deprecated and will be removed 
Mar 17 12:54:34 node nova-conductor: from py-amqp v1.5.0. 
Mar 17 12:54:34 node nova-conductor: warn(VDeprecationWarning(EXCHANGE_AUTODELETE_DEPRECATED))
Mar 17 12:54:34 node nova-conductor: /usr/lib/python2.7/site-packages/amqp/channel.py:616: VDeprecationWarning: The auto_delete flag for exchanges has been deprecated and will be removed 
Mar 17 12:54:34 node nova-conductor: from py-amqp v1.5.0. 
Mar 17 12:54:34 node nova-conductor: warn(VDeprecationWarning(EXCHANGE_AUTODELETE_DEPRECATED))

Additional info:
This looks to be the same as the issue in BZ 1104239 however, these are more recent packages than the ones reference in the errata.

Comment 2 Artom Lifshitz 2016-03-31 17:08:39 UTC
Hi,

I haven't been able to reproduce this with the latest python-migrate-0.9.6-1.el7ost package in RHOS5.

Based on the information in BZ 1104239, I diff'ed the different versions's migrate/changeset/__init__.py files and sure enough, the guilty line is present in 0.9.1 but absent in 0.9.6:

$ diff 0.9.1/usr/lib/python2.7/site-packages/migrate/changeset/__init__.py 0.9.6/usr/lib/python2.7/site-packages/migrate/changeset/__init__.py
8d7
< import warnings
12,13d10
< 
< warnings.simplefilter('always', DeprecationWarning)

Cheers!

Comment 8 nlevinki 2016-07-17 11:55:58 UTC
I verified the fix is in the puddle and our automation didn't report any issue.
https://rhos-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/RHOS/view/RHOS5/job/rhos-jenkins-rhos-5.0-puddle-rhel-7.2-all-in-one-packstack-nova-flatdhcp-rabbitmq-tempest-git-all/24/
according to the DEV report I am moving this ticket to verify

Comment 10 errata-xmlrpc 2016-07-20 19:53:10 UTC
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/RHBA-2016:1469