将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 177|回复: 0
收起左侧

Container exited with non-zero return code 报错 kolla-ansible

[复制链接]
发表于 2021-7-23 15:59:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?开始注册

x
fatal: [controller1 -> controller1]: FAILED! => {"changed": true, "msg": "Container exited with non-zero return code 1", "rc": 1, "stderr": "+ sudo -E kolla_set_configs\nINFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json\nINFO:__main__:Validating config file\nINFO:__main__:Kolla config strategy set to: COPY_ALWAYS\nINFO:__main__:Copying service configuration files\nINFO:__main__:Deleting /etc/nova/nova.conf\nINFO:__main__:Copying /var/lib/kolla/config_files/nova.conf to /etc/nova/nova.conf\nINFO:__main__:Setting permission for /etc/nova/nova.conf\nINFO:__main__:Writing out command to execute\n++ cat /run_command\n+ CMD=nova-api\n+ ARGS=\n+ [[ ! -n '' ]]\n+ . kolla_extend_start\n++ [[ ! -d /var/log/kolla/nova ]]\n++ mkdir -p /var/log/kolla/nova\n+++ stat -c %a /var/log/kolla/nova\n++ [[ 2755 != \\7\\5\\5 ]]\n++ chmod 755 /var/log/kolla/nova\n++ . /usr/local/bin/kolla_nova_extend_start\n+++ [[ -n 0 ]]\n+++ nova-manage db sync\n/usr/lib/python2.7/site-packages/pymysql/cursors.py:170: Warning: (1831, u'Duplicate index `block_device_mapping_instance_uuid_virtual_name_device_name_idx`. This is deprecated and will be disallowed in a future release.')\n  result = self._query(query)\n/usr/lib/python2.7/site-packages/pymysql/cursors.py:170: Warning: (1831, u'Duplicate index `uniq_instances0uuid`. This is deprecated and will be disallowed in a future release.')\n  result = self._query(query)\n", "stderr_lines": ["+ sudo -E kolla_set_configs", "INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json", "INFO:__main__:Validating config file", "INFO:__main__:Kolla config strategy set to: COPY_ALWAYS", "INFO:__main__:Copying service configuration files", "INFO:__main__:Deleting /etc/nova/nova.conf", "INFO:__main__:Copying /var/lib/kolla/config_files/nova.conf to /etc/nova/nova.conf", "INFO:__main__:Setting permission for /etc/nova/nova.conf", "INFO:__main__:Writing out command to execute", "++ cat /run_command", "+ CMD=nova-api", "+ ARGS=", "+ [[ ! -n '' ]]", "+ . kolla_extend_start", "++ [[ ! -d /var/log/kolla/nova ]]", "++ mkdir -p /var/log/kolla/nova", "+++ stat -c %a /var/log/kolla/nova", "++ [[ 2755 != \\7\\5\\5 ]]", "++ chmod 755 /var/log/kolla/nova", "++ . /usr/local/bin/kolla_nova_extend_start", "+++ [[ -n 0 ]]", "+++ nova-manage db sync", "/usr/lib/python2.7/site-packages/pymysql/cursors.py:170: Warning: (1831, u'Duplicate index `block_device_mapping_instance_uuid_virtual_name_device_name_idx`. This is deprecated and will be disallowed in a future release.')", "  result = self._query(query)", "/usr/lib/python2.7/site-packages/pymysql/cursors.py:170: Warning: (1831, u'Duplicate index `uniq_instances0uuid`. This is deprecated and will be disallowed in a future release.')", "  result = self._query(query)"], "stdout": "ERROR: Could not access cell0.\nHas the nova_api database been created?\nHas the nova_cell0 database been created?\nHas \"nova-manage api_db sync\" been run?\nHas \"nova-manage cell_v2 map_cell0\" been run?\nIs [api_database]/connection set in nova.conf?\nIs the cell0 database connection URL correct?\nError: (pymysql.err.ProgrammingError) (1146, u\"Table 'nova_api.cell_mappings' doesn't exist\") [SQL: u'SELECT cell_mappings.created_at AS cell_mappings_created_at, cell_mappings.updated_at AS cell_mappings_updated_at, cell_mappings.id AS cell_mappings_id, cell_mappings.uuid AS cell_mappings_uuid, cell_mappings.name AS cell_mappings_name, cell_mappings.transport_url AS cell_mappings_transport_url, cell_mappings.database_connection AS cell_mappings_database_connection \\nFROM cell_mappings \\nWHERE cell_mappings.uuid = %(uuid_1)s \\n LIMIT %(param_1)s'] [parameters: {u'uuid_1': '00000000-0000-0000-0000-000000000000', u'param_1': 1}] (Background on this error at: http://sqlalche.me/e/f405)\nAn error has occurred:\nTraceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/nova/cmd/manage.py\", line 1657, in main\n    ret = fn(*fn_args, **fn_kwargs)\n  File \"/usr/lib/python2.7/site-packages/nova/cmd/manage.py\", line 487, in sync\n    return migration.db_sync(version)\n  File \"/usr/lib/python2.7/site-packages/nova/db/migration.py\", line 26, in db_sync\n    return IMPL.db_sync(version=version, database=database, context=context)\n  File \"/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/migration.py\", line 57, in db_sync\n    repository, version)\n  File \"/usr/lib/python2.7/site-packages/migrate/versioning/api.py\", line 186, in upgrade\n    return _migrate(url, repository, version, upgrade=True, err=err, **opts)\n  File \"<string>\", line 2, in _migrate\n  File \"/usr/lib/python2.7/site-packages/migrate/versioning/util/__init__.py\", line 167, in with_engine\n    return f(*a, **kw)\n  File \"/usr/lib/python2.7/site-packages/migrate/versioning/api.py\", line 366, in _migrate\n    schema.runchange(ver, change, changeset.step)\n  File \"/usr/lib/python2.7/site-packages/migrate/versioning/schema.py\", line 91, in runchange\n    (self.version, startver))\nInvalidVersionError: 336 is not 337\n\n", "stdout_lines": ["ERROR: Could not access cell0.", "Has the nova_api database been created?", "Has the nova_cell0 database been created?", "Has \"nova-manage api_db sync\" been run?", "Has \"nova-manage cell_v2 map_cell0\" been run?", "Is [api_database]/connection set in nova.conf?", "Is the cell0 database connection URL correct?", "Error: (pymysql.err.ProgrammingError) (1146, u\"Table 'nova_api.cell_mappings' doesn't exist\") [SQL: u'SELECT cell_mappings.created_at AS cell_mappings_created_at, cell_mappings.updated_at AS cell_mappings_updated_at, cell_mappings.id AS cell_mappings_id, cell_mappings.uuid AS cell_mappings_uuid, cell_mappings.name AS cell_mappings_name, cell_mappings.transport_url AS cell_mappings_transport_url, cell_mappings.database_connection AS cell_mappings_database_connection \\nFROM cell_mappings \\nWHERE cell_mappings.uuid = %(uuid_1)s \\n LIMIT %(param_1)s'] [parameters: {u'uuid_1': '00000000-0000-0000-0000-000000000000', u'param_1': 1}] (Background on this error at: http://sqlalche.me/e/f405)", "An error has occurred:", "Traceback (most recent call last):", "  File \"/usr/lib/python2.7/site-packages/nova/cmd/manage.py\", line 1657, in main", "    ret = fn(*fn_args, **fn_kwargs)", "  File \"/usr/lib/python2.7/site-packages/nova/cmd/manage.py\", line 487, in sync", "    return migration.db_sync(version)", "  File \"/usr/lib/python2.7/site-packages/nova/db/migration.py\", line 26, in db_sync", "    return IMPL.db_sync(version=version, database=database, context=context)", "  File \"/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/migration.py\", line 57, in db_sync", "    repository, version)", "  File \"/usr/lib/python2.7/site-packages/migrate/versioning/api.py\", line 186, in upgrade", "    return _migrate(url, repository, version, upgrade=True, err=err, **opts)", "  File \"<string>\", line 2, in _migrate", "  File \"/usr/lib/python2.7/site-packages/migrate/versioning/util/__init__.py\", line 167, in with_engine", "    return f(*a, **kw)", "  File \"/usr/lib/python2.7/site-packages/migrate/versioning/api.py\", line 366, in _migrate", "    schema.runchange(ver, change, changeset.step)", "  File \"/usr/lib/python2.7/site-packages/migrate/versioning/schema.py\", line 91, in runchange", "    (self.version, startver))", "InvalidVersionError: 336 is not 337", ""]}# e  ]/ j& ]: o0 n! _
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-9-27 02:07 , Processed in 0.388803 second(s), 25 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

快速回复 返回顶部 返回列表