Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Trove Guest agent fails to start

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/common/configuration.py", line 436, in _collect_revision_files
2016-12-27 05:36:27.063 1333 ERROR root     as_root=self._requires_root))
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/guestagent/common/operating_system.py", line 770, in list_files_in_directory
2016-12-27 05:36:27.063 1333 ERROR root     files = _execute_shell_cmd('find', [], *cmd_args, as_root=True)
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/guestagent/common/operating_system.py", line 809, in _execute_shell_cmd
2016-12-27 05:36:27.063 1333 ERROR root     stdout, stderr = utils.execute_with_timeout(cmd, *cmd_args, **exec_args)
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/trove/common/utils.py", line 239, in execute_with_timeout
2016-12-27 05:36:27.063 1333 ERROR root     return execute(*args, **kwargs)
2016-12-27 05:36:27.063 1333 ERROR root   File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 389, in execute
2016-12-27 05:36:27.063 1333 ERROR root     cmd=sanitized_cmd)
2016-12-27 05:36:27.063 1333 ERROR root ProcessExecutionError: Unexpected error while running command.
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