Ask Your Question
1

Trove Guest agent fails to start

asked 2016-12-27 00:10:48 -0500

Alok Shrivastwa gravatar image

I have created a trove image, both manually and using the instructions using the DIB, its Maria DB 10.1.20 on CentOS 7. As far as troubleshooting is concerned

  • Trove task manager is creating the file and Injecting - Check
  • Nova instance is booted using a cinder volume and also the correct security group - Check

For troubleshooting, I created a backdoor in the image so that I could check. When I see, the guest agent logs I get the error. I am running

OpenStack Newton on centos 7.2 RDO Install HA Deployment with 3 controllers

 2016-12-27 05:36:27.063 1333 ERROR root Traceback (most recent call last):
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/bin/trove-guestagent", line 10, in <module>
2016-12-27 05:36:27.063 1333 ERROR root     sys.exit(main())
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/cmd/guest.py", line 63, in main
2016-12-27 05:36:27.063 1333 ERROR root     rpc_api_version=rpc_version.RPC_API_VERSION)
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/common/rpc/service.py", line 48, in __init__
2016-12-27 05:36:27.063 1333 ERROR root     self.manager_impl = profiler.trace_cls("rpc")(_manager)
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 219, in decorator
2016-12-27 05:36:27.063 1333 ERROR root     for attr_name, attr in inspect.getmembers(cls):
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib64/python2.7/inspect.py", line 253, in getmembers
2016-12-27 05:36:27.063 1333 ERROR root     value = getattr(object, key)
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/guestagent/datastore/mysql_common/manager.py", line 77, in datastore_log_defs
2016-12-27 05:36:27.063 1333 ERROR root     datastore_dir = self.mysql_app.get_data_dir()
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/guestagent/datastore/mysql_common/service.py", line 636, in get_data_dir
2016-12-27 05:36:27.063 1333 ERROR root     MySQLConfParser.SERVER_CONF_SECTION).get('datadir')
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/guestagent/common/configuration.py", line 103, in get_value
2016-12-27 05:36:27.063 1333 ERROR root     self.refresh_cache()
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/guestagent/common/configuration.py", line 211, in refresh_cache
2016-12-27 05:36:27.063 1333 ERROR root     self._value_cache = self.parse_configuration()
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/guestagent/common/configuration.py", line 118, in parse_configuration
2016-12-27 05:36:27.063 1333 ERROR root     updates = self._override_strategy.parse_updates()
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/guestagent/common/configuration.py", line 399, in parse_updates
2016-12-27 05:36:27.063 1333 ERROR root     for path in self._collect_revision_files():
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/guestagent ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-31 07:10:13 -0500

amrith gravatar image

Seems pretty straightforward, the tail of your stack trace reads:

2016-12-27 05:36:27.063 1333 ERROR root Command: sudo find /etc/mysql/conf.d/ -noleaf -type f -regextype posix-extended -regex .*/.+-([0-9]+)-.+\.cnf$$
2016-12-27 05:36:27.063 1333 ERROR root Exit code: 1
2016-12-27 05:36:27.063 1333 ERROR root Stdout: u''
2016-12-27 05:36:27.063 1333 ERROR root Stderr: 'find: \xe2\x80\x98/etc/mysql/conf.d/\xe2\x80\x99: No such file or directory\n'
2016-12-27 05:36:27.063 1333 ERROR root

which indicates that for some reason the guest is looking for configuration in that location and not finding it. Why? That could depend on any number of things. But, if my memory serves me correctly, trove doesn't provide elements for MariaDB/CentOS so I'd begin by looking at those and figuring out what was going on there.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-12-27 00:10:48 -0500

Seen: 218 times

Last updated: Dec 31 '16