2020-06-04 13:01:06.571 58791 ERROR oslo_service.service Traceback (most recent call last): 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 731, in run_service 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service service.start() 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/ironic/common/rpc_service.py", line 54, in start 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service self.manager.init_host(admin_context) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/ironic/conductor/base_manager.py", line 167, in init_host 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service self.dbapi.clear_node_target_power_state(self.host) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 154, in wrapper 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service ectxt.value = e.inner_exc 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service self.force_reraise() 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service six.reraise(self.type_, self.value, self.tb) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 142, in wrapper 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service return f(*args, **kwargs) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/ironic/db/sqlalchemy/api.py", line 839, in clear_node_target_power_state 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service nodes = [node['uuid'] for node in query] 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/query.py", line 2878, in __iter__ 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service return self._execute_and_instances(context) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/query.py", line 2901, in _execute_and_instances 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service result = conn.execute(querycontext.statement, self._params) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 948, in execute 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service return meth(self, multiparams, params) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/elements.py", line 269, in _execute_on_connection 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service return connection._execute_clauseelement(self, multiparams, params) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1060, in _execute_clauseelement 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service compiled_sql, distilled_params 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service context) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1409, in _handle_dbapi_exception 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service util.raise_from_cause(newraise, exc_info) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service reraise(type(exception), exception, tb=exc_tb, cause=cause) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service context) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service cursor.execute(statement, parameters) 2020-06-04 13:01:06.571 58791 ERROR oslo_service.service DBNonExistentTable: (sqlite3.OperationalError) no such table: nodes [SQL: u'SELECT nodes.created_at AS nodes_created_at, nodes.updated_at AS nodes_updated_at, nodes.version AS nodes_version, nodes.id AS nodes_id, nodes.uuid AS nodes_uuid, nodes.instance_uuid AS nodes_instance_uuid, nodes.name AS nodes_name, nodes.chassis_id AS nodes_chassis_id, nodes.power_state AS nodes_power_state, nodes.target_power_state AS nodes_target_power_state, nodes.provision_state AS nodes_provision_state, nodes.target_provision_state AS nodes_target_provision_state, nodes.provision_updated_at AS nodes_provision_updated_at, nodes.last_error AS nodes_last_error, nodes.instance_info AS nodes_instance_info, nodes.properties AS nodes_properties, nodes.driver AS nodes_driver, nodes.driver_info AS nodes_driver_info, nodes.driver_internal_info AS nodes_driver_internal_info, nodes.clean_step AS nodes_clean_step, nodes.resource_class AS nodes_resource_class, nodes.raid_config AS nodes_raid_config, nodes.target_raid_config AS nodes_target_raid_config, nodes.reservation AS nodes_reservation, nodes.conductor_affinity AS nodes_conductor_affinity, nodes.maintenance AS nodes_maintenance, nodes.maintenance_reason AS nodes_maintenance_reason, nodes.console_enabled AS nodes_console_enabled, nodes.inspection_finished_at AS nodes_inspection_finished_at, nodes.inspection_started_at AS nodes_inspection_started_at, nodes.extra AS nodes_extra, nodes.boot_interface AS nodes_boot_interface, nodes.console_interface AS nodes_console_interface, nodes.deploy_interface AS nodes_deploy_interface, nodes.inspect_interface AS nodes_inspect_interface, nodes.management_interface AS nodes_management_interface, nodes.network_interface AS nodes_network_interface, nodes.raid_interface AS nodes_raid_interface, nodes.rescue_interface AS nodes_rescue_interface, nodes.storage_interface AS nodes_storage_interface, nodes.power_interface AS nodes_power_interface, nodes.vendor_interface AS nodes_vendor_interface FROM nodes WHERE nodes.reservation = ? AND nodes.target_power_state IS NOT NULL'] [parameters: ('bogon',)] (Background on this error at: http://sqlalche.me/e/e3q8)
2020-06-04 13:01:06.571 58791 ERROR oslo_service.service 2020-06-04 13:01:06.585 58791 INFO ironic.common.rpc_service [-] Stopped RPC server for service ironic.conductor_manager on host bogon. [root@bogon ~]# ironic-dbsync --config-file /etc/ironic/ironic.conf create_schema 2020-06-04 13:03:45.514 59054 INFO alembic.runtime.migration [-] Context impl SQLiteImpl. 2020-06-04 13:03:45.514 59054 INFO alembic.runtime.migration [-] Will assume non-transactional DDL. INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. INFO [alembic.runtime.migration] Running stamp_revision -> e918ff30eb42 [root@bogon ~]# systemctl restart openstack-ironic-api [root@bogon ~]# systemctl restart openstack-ironic-conductor [root@bogon ~]#
Background on this error at: http://sqlalche.me/e/e3q8
[root@bogon ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or g. Your MariaDB connection id is 44354 Server version: 10.1.20-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement. MariaDB [(none)]>
MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | glance | | information_schema | | ironic | | keystone | | mysql | | neutron | | nova | | nova_api | | nova_cell0 | | nova_placement | | performance_schema | | test | +--------------------+ 12 rows in set (0.03 sec) MariaDB [(none)]> use ironic; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed MariaDB [ironic]> show tablese -> show tables; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'tablese show tables' at line 2 MariaDB [ironic]> MariaDB [ironic]> show table; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 MariaDB [ironic]> show tables; +-------------------------------+ | Tables_in_ironic | +-------------------------------+ | alembic_version | | chassis | | conductor_hardware_interfaces | | conductors | | node_tags | | node_traits | | nodes | | portgroups | | ports | | volume_connectors | | volume_targets | +-------------------------------+ 11 rows in set (0.00 sec) MariaDB [ironic]>