Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Fix some issues when buiding MySQL guest image #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

yysfire
Copy link

@yysfire yysfire commented Apr 6, 2017

No description provided.

@yysfire yysfire changed the title Fix some issues when buiding MySQL guest image - Set datastore_registry_ext for MySQL - Add an empty /etc/trove/conf.d/trove-guestagent.conf to prevent it being injected with wrong user or group permissions - Add /etc/trove/conf.d/guest_info.conf & /etc/trove/conf.d/trove-guestagent.conf as config files to openstack-trove-guestagent.service - Fix the conflict between mysql-community-server and mariadb-libs on CentOS - Install wget on CentOS because centos-mysql-guest-image/install.d/30-mysql will use it - Enable the RDO yum repository for a released version of OpenStack on CentOS with using RDO_RELEASE Fix some issues when buiding MySQL guest image Apr 6, 2017
@@ -88,7 +88,7 @@ swift_service_type = $DIB_TROVE_SWIFT_SERVICE_TYPE
# ========== Datastore Manager Configurations ==========
# Datastore manager implementations.
# Format: list of 'datastore-type:datastore.manager.implementation.module'
# datastore_registry_ext = mysql:trove.guestagent.datastore.mysql.manager.Manager, percona:trove.guestagent.datastore.mysql.manager.Manager
datastore_registry_ext = mysql:trove.guestagent.datastore.mysql.manager.Manager, percona:trove.guestagent.datastore.mysql.manager.Manager

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting this brings the following error:

Mar 08 11:12:39 db2.novalocal systemd[1]: Started OpenStack Trove Guest. Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: Traceback (most recent call last): Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/bin/trove-guestagent", line 10, in <module> Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: sys.exit(main()) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib/python2.7/site-packages/trove/cmd/guest.py", line 37, in main Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: cfg.parse_args(sys.argv) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib/python2.7/site-packages/trove/common/cfg.py", line 1578, in parse_args Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: default_config_files=default_config_files) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2575, in __call__ Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: else sys.argv[1:]) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 3316, in _parse_cli_opts Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: return self._parse_config_files() Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 3352, in _parse_config_files Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: self._oparser.parse_args(self._args, namespace) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2366, in parse_args Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: return super(_CachedArgumentParser, self).parse_args(args, namespace) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib64/python2.7/argparse.py", line 1688, in parse_args Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: args, argv = self.parse_known_args(args, namespace) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib64/python2.7/argparse.py", line 1720, in parse_known_args Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: namespace, args = self._parse_known_args(args, namespace) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib64/python2.7/argparse.py", line 1926, in _parse_known_args Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: start_index = consume_optional(start_index) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib64/python2.7/argparse.py", line 1866, in consume_optional Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: take_action(action, args, option_string) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib64/python2.7/argparse.py", line 1794, in take_action Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: action(self, namespace, argument_values, option_string) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 1803, in __call__ Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: ConfigParser._parse_file(values, namespace) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2058, in _parse_file Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: raise ConfigFileParseError(pe.filename, str(pe)) Mar 08 11:14:31 db2.novalocal trove-guestagent[3040]: oslo_config.cfg.ConfigFileParseError: Failed to parse /etc/trove/trove-guestagent.conf: at /etc/trove/trove-guestagent.conf:70, Unexpected continuation line: ' datastore_registry_ext = mysql:trove.guestagent.datastore.mysql.manager.Manager, percona:trove.guestagent.datastore.mysql.manager.Manager' Mar 08 11:14:32 db2.novalocal systemd[1]: openstack-trove-guestagent.service: main process exited, code=exited, status=1/FAILURE Mar 08 11:14:32 db2.novalocal systemd[1]: Unit openstack-trove-guestagent.service entered failed state. Mar 08 11:14:32 db2.novalocal systemd[1]: openstack-trove-guestagent.service failed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants