Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to install designate - In Openstack Ubuntu 14.04 - Liberty

Hi All,

WHile installing designate in my openstack environment, I am receiving the below error. Any help should be appreciated.

"(pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] ECONNREFUSED)")"

---------------Terminal Snippet Begins------------------------------------------------ root@controller:~# apt-get install designate Reading package lists... Done Building dependency tree
Reading state information... Done designate is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 242 not upgraded. 5 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up designate-common (1:1.0.0-0ubuntu1~cloud0) ... PKG-Openstack now calling: dbc_go designate-common configure dbconfig-common: writing config to /etc/dbconfig-common/designate-common.conf granting access to database designatedb for designate-common@localhost: already exists. creating database designatedb: already exists. dbconfig-common: flushing administrative password Now doing 'designate-manage database sync': this may take a while... Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future. 2016-03-18 12:06:32.435 1075 CRITICAL designate [designate-manage - - - - -] OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] ECONNREFUSED)") 2016-03-18 12:06:32.435 1075 ERROR designate Traceback (most recent call last): 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/bin/designate-manage", line 10, in <module> 2016-03-18 12:06:32.435 1075 ERROR designate sys.exit(main()) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/designate/cmd/manage.py", line 130, in main 2016-03-18 12:06:32.435 1075 ERROR designate fn(fn_args) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/designate/manage/database.py", line 63, in sync 2016-03-18 12:06:32.435 1075 ERROR designate get_manager().upgrade(None) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration_cli/manager.py", line 65, in upgrade 2016-03-18 12:06:32.435 1075 ERROR designate results.append(plugin.upgrade(None)) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration_cli/ext_migrate.py", line 48, in upgrade 2016-03-18 12:06:32.435 1075 ERROR designate init_version=self.init_version) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration.py", line 74, in db_sync 2016-03-18 12:06:32.435 1075 ERROR designate current_version = db_version(engine, abs_path, init_version) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration.py", line 129, in db_version 2016-03-18 12:06:32.435 1075 ERROR designate meta.reflect(bind=engine) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/schema.py", line 3594, in reflect 2016-03-18 12:06:32.435 1075 ERROR designate with bind.connect() as conn: 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2018, in connect 2016-03-18 12:06:32.435 1075 ERROR designate return self._connection_cls(self, *kwargs) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 72, in __init__ 2016-03-18 12:06:32.435 1075 ERROR designate if connection is not None else engine.raw_connection() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2104, in raw_connection 2016-03-18 12:06:32.435 1075 ERROR designate self.pool.unique_connection, _connection) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2078, in _wrap_pool_connect 2016-03-18 12:06:32.435 1075 ERROR designate e, dialect, self) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1405, in _handle_dbapi_exception_noconnection 2016-03-18 12:06:32.435 1075 ERROR designate exc_info 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause 2016-03-18 12:06:32.435 1075 ERROR designate reraise(type(exception), exception, tb=exc_tb) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2074, in _wrap_pool_connect 2016-03-18 12:06:32.435 1075 ERROR designate return fn() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 318, in unique_connection 2016-03-18 12:06:32.435 1075 ERROR designate return _ConnectionFairy._checkout(self) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 713, in _checkout 2016-03-18 12:06:32.435 1075 ERROR designate fairy = _ConnectionRecord.checkout(pool) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 480, in checkout 2016-03-18 12:06:32.435 1075 ERROR designate rec = pool._do_get() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1151, in _do_get 2016-03-18 12:06:32.435 1075 ERROR designate return self._create_connection() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 323, in _create_connection 2016-03-18 12:06:32.435 1075 ERROR designate return _ConnectionRecord(self) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 449, in __init__ 2016-03-18 12:06:32.435 1075 ERROR designate self.connection = self.__connect() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 607, in __connect 2016-03-18 12:06:32.435 1075 ERROR designate connection = self.__pool._invoke_creator(self) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 97, in connect 2016-03-18 12:06:32.435 1075 ERROR designate return dialect.connect(cargs, *cparams) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 385, in connect 2016-03-18 12:06:32.435 1075 ERROR designate return self.dbapi.connect(cargs, *cparams) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/pymysql/__init__.py", line 88, in Connect 2016-03-18 12:06:32.435 1075 ERROR designate return Connection(args, *kwargs) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 626, in __init__ 2016-03-18 12:06:32.435 1075 ERROR designate self._connect() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 818, in _connect 2016-03-18 12:06:32.435 1075 ERROR designate 2003, "Can't connect to MySQL server on %r (%s)" % (self.host, e)) 2016-03-18 12:06:32.435 1075 ERROR designate OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] ECONNREFUSED)") 2016-03-18 12:06:32.435 1075 ERROR designate dpkg: error processing package designate-common (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of designate-agent: designate-agent depends on designate-common (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-common is not configured yet.

dpkg: error processing package designate-agent (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of designate-api: designate-api depends on designate-common (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-common is not configured yet.

dpkg: error processing package designate-api (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of designate-central: designate-central depends on designate-common (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-common is not configured yet.

dpkg: error processing package designate-central (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of designate: designate depends No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because MaxReports is reached already No apport report written because MaxReports is reached already on designate-agent (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-agent is not configured yet. designate depends on designate-api (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-api is not configured yet. designate depends on designate-central (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-central is not configured yet. designate depends on designate-common (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-common is not configured yet.

dpkg: error processing package designate (--configure): dependency problems - leaving unconfigured E: Sub-process /usr/bin/dpkg returned an error code (1) root@controller:~#

---------------Terminal Snippet Ends------------------------------------------------

Unable to install designate - In Openstack Ubuntu 14.04 - Liberty

Hi All,

WHile installing designate in my openstack environment, I am receiving the below error. Any help should be appreciated.

"(pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] ECONNREFUSED)")"

ECONNREFUSED)")"

---------------Terminal Snippet Begins------------------------------------------------ root@controller:~# apt-get install designate Reading package lists... Done Building dependency tree
Reading state information... Done designate is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 242 not upgraded. 5 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up designate-common (1:1.0.0-0ubuntu1~cloud0) ... PKG-Openstack now calling: dbc_go designate-common configure dbconfig-common: writing config to /etc/dbconfig-common/designate-common.conf granting access to database designatedb for designate-common@localhost: already exists. creating database designatedb: already exists. dbconfig-common: flushing administrative password Now doing 'designate-manage database sync': this may take a while... Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future. 2016-03-18 12:06:32.435 1075 CRITICAL designate [designate-manage - - - - -] OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] ECONNREFUSED)") 2016-03-18 12:06:32.435 1075 ERROR designate Traceback (most recent call last): 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/bin/designate-manage", line 10, in <module> 2016-03-18 12:06:32.435 1075 ERROR designate sys.exit(main()) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/designate/cmd/manage.py", line 130, in main 2016-03-18 12:06:32.435 1075 ERROR designate fn(fn_args) fn(*fn_args) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/designate/manage/database.py", line 63, in sync 2016-03-18 12:06:32.435 1075 ERROR designate get_manager().upgrade(None) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration_cli/manager.py", line 65, in upgrade 2016-03-18 12:06:32.435 1075 ERROR designate results.append(plugin.upgrade(None)) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration_cli/ext_migrate.py", line 48, in upgrade 2016-03-18 12:06:32.435 1075 ERROR designate init_version=self.init_version) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration.py", line 74, in db_sync 2016-03-18 12:06:32.435 1075 ERROR designate current_version = db_version(engine, abs_path, init_version) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration.py", line 129, in db_version 2016-03-18 12:06:32.435 1075 ERROR designate meta.reflect(bind=engine) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/schema.py", line 3594, in reflect 2016-03-18 12:06:32.435 1075 ERROR designate with bind.connect() as conn: 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2018, in connect 2016-03-18 12:06:32.435 1075 ERROR designate return self._connection_cls(self, *kwargs) **kwargs) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 72, in __init__ 2016-03-18 12:06:32.435 1075 ERROR designate if connection is not None else engine.raw_connection() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2104, in raw_connection 2016-03-18 12:06:32.435 1075 ERROR designate self.pool.unique_connection, _connection) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2078, in _wrap_pool_connect 2016-03-18 12:06:32.435 1075 ERROR designate e, dialect, self) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1405, in _handle_dbapi_exception_noconnection 2016-03-18 12:06:32.435 1075 ERROR designate exc_info 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause 2016-03-18 12:06:32.435 1075 ERROR designate reraise(type(exception), exception, tb=exc_tb) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2074, in _wrap_pool_connect 2016-03-18 12:06:32.435 1075 ERROR designate return fn() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 318, in unique_connection 2016-03-18 12:06:32.435 1075 ERROR designate return _ConnectionFairy._checkout(self) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 713, in _checkout 2016-03-18 12:06:32.435 1075 ERROR designate fairy = _ConnectionRecord.checkout(pool) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 480, in checkout 2016-03-18 12:06:32.435 1075 ERROR designate rec = pool._do_get() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1151, in _do_get 2016-03-18 12:06:32.435 1075 ERROR designate return self._create_connection() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 323, in _create_connection 2016-03-18 12:06:32.435 1075 ERROR designate return _ConnectionRecord(self) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 449, in __init__ 2016-03-18 12:06:32.435 1075 ERROR designate self.connection = self.__connect() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 607, in __connect 2016-03-18 12:06:32.435 1075 ERROR designate connection = self.__pool._invoke_creator(self) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 97, in connect 2016-03-18 12:06:32.435 1075 ERROR designate return dialect.connect(cargs, *cparams) dialect.connect(*cargs, **cparams) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 385, in connect 2016-03-18 12:06:32.435 1075 ERROR designate return self.dbapi.connect(cargs, *cparams) self.dbapi.connect(*cargs, **cparams) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/pymysql/__init__.py", line 88, in Connect 2016-03-18 12:06:32.435 1075 ERROR designate return Connection(args, *kwargs) Connection(*args, **kwargs) 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 626, in __init__ 2016-03-18 12:06:32.435 1075 ERROR designate self._connect() 2016-03-18 12:06:32.435 1075 ERROR designate File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 818, in _connect 2016-03-18 12:06:32.435 1075 ERROR designate 2003, "Can't connect to MySQL server on %r (%s)" % (self.host, e)) 2016-03-18 12:06:32.435 1075 ERROR designate OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] ECONNREFUSED)") 2016-03-18 12:06:32.435 1075 ERROR designate dpkg: error processing package designate-common (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of designate-agent: designate-agent depends on designate-common (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-common is not configured yet.

yet.

dpkg: error processing package designate-agent (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of designate-api: designate-api depends on designate-common (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-common is not configured yet.

yet.

dpkg: error processing package designate-api (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of designate-central: designate-central depends on designate-common (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-common is not configured yet.

yet.

dpkg: error processing package designate-central (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of designate: designate depends No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because MaxReports is reached already No apport report written because MaxReports is reached already on designate-agent (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-agent is not configured yet. designate depends on designate-api (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-api is not configured yet. designate depends on designate-central (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-central is not configured yet. designate depends on designate-common (= 1:1.0.0-0ubuntu1~cloud0); however: Package designate-common is not configured yet.

yet.

dpkg: error processing package designate (--configure): dependency problems - leaving unconfigured E: Sub-process /usr/bin/dpkg returned an error code (1) root@controller:~#

root@controller:~#

---------------Terminal Snippet Ends------------------------------------------------

Ends------------------------------------------------