Bug 1210361

Summary: TRACE in trove-guest agent while
Product: Red Hat OpenStack Reporter: Eduard Barrera <ebarrera>
Component: openstack-troveAssignee: Victoria Martinez de la Cruz <vimartin>
Status: CLOSED WONTFIX QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0 (Juno)CC: apevec, lhh, lyarwood, nbarcet, pmackinn, srevivo, vimartin
Target Milestone: ---Keywords: ZStream
Target Release: 7.0 (Kilo)Flags: vimartin: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 20:01:49 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 Eduard Barrera 2015-04-09 14:05:39 UTC
Description of problem:

We are getting this trace in trove-guestagent


2015-03-26 16:27:09.483 1962 ERROR trove.openstack.common.rpc.amqp [req-72feccaf-406d-47a0-88fe-c3ab163ab76d 1dca4f7e8043465db5e603b9108cca03 90020810ec8f49fab3a8661a08a9b1d0 - - -] Exception during message handling
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp Traceback (most recent call last):
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/site-packages/trove/openstack/common/rpc/amqp.py", line 440, in _process_data
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp **args)
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/site-packages/trove/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs)
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/site-packages/trove/guestagent/datastore/mysql/manager.py", line 120, in prepare
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp app.install_if_needed(packages)
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/site-packages/trove/guestagent/datastore/mysql/service.py", line 601, in install_if_needed
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp self._clear_mysql_config()
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/site-packages/trove/guestagent/datastore/mysql/service.py", line 645, in _clear_mysql_config
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp root_helper="sudo")
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/site-packages/trove/common/utils.py", line 279, in execute_with_timeout
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp return execute(*args, **kwargs)
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/site-packages/trove/openstack/common/processutils.py", line 196, in execute
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp sanitized_stderr = strutils.mask_password(stderr)
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/site-packages/trove/openstack/common/strutils.py", line 295, in mask_password
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp message = six.text_type(message)
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 16: ordinal not in range(128)
2015-03-26 16:27:09.483 1962 TRACE trove.openstack.common.rpc.amqp
 

Version-Release number of selected component (if applicable):
Juno

How reproducible:
not sure

Steps to Reproduce:
1.
2.
3.

Actual results:
Instance can't be launched
Traces in log files

Expected results:
Instance launched

Additional info:

Comment 7 Lee Yarwood 2015-04-15 09:13:54 UTC
AFAICT this is just due to Trove carrying an out dated copy of strutils from oslo_utils, specifically missing the following patch :

Enable mask_password to handle byte code strings
https://review.openstack.org/#/c/121657/

Easy to workaround while Trove is tech preview.

Comment 15 Victoria Martinez de la Cruz 2015-04-27 11:46:30 UTC
Seems like we have two problems here

- An outdated oslo_utils dependency
- Misuse of the execute command

I'll file a bz and submit a fix for the package respectively.

Comment 18 Nick Barcet 2016-06-29 20:01:49 UTC
Based on ​customer feedback, and the constant message that support for commercially available database was an absolute must from the almost all of the customers we surveyed, we have came to the conclusion that we should rather concentrate our effort in having successful partnerships around Trove rather than building a fully open-source solution that will not benefit our customers.