openstack Q
[root@controller ~]# openstack appcontainer service list +----+------------+-------------+-------+----------+-----------------+---------------------+-------------------+ | Id | Host | Binary | State | Disabled | Disabled Reason | Updated At | Availability Zone | +----+------------+-------------+-------+----------+-----------------+---------------------+-------------------+ | 1 | controller | zun-compute | up | False | None | 2018-07-16 13:20:58 | nova | | 2 | compute01 | zun-compute | up | False | None | 2018-07-16 13:21:57 | nova | +----+------------+-------------+-------+----------+-----------------+---------------------+-------------------+
[root@compute01 ~]# tail -f /var/log/zun/zun-compute.log 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task result.read() 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1340, in read 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task first_packet = self.connection._read_packet() 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1014, in _read_packet 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task packet.check_error() 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 393, in check_error 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task err.raise_mysql_exception(self._data) 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task File "/usr/lib/python2.7/site-packages/pymysql/err.py", line 107, in raise_mysql_exception 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task raise errorclass(errno, errval) 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task DBError: (pymysql.err.InternalError) (1364, u"Field 'disk_total' doesn't have a default value") [SQL: u'INSERT INTO compute_node (created_at, updated_at, uuid, hostname, numa_topology, mem_total, mem_free, mem_available, mem_used, total_containers, running_containers, paused_containers, stopped_containers, cpus, cpu_used, architecture, os_type, os, kernel_version, labels, pci_stats) VALUES (%(created_at)s, %(updated_at)s, %(uuid)s, %(hostname)s, %(numa_topology)s, %(mem_total)s, %(mem_free)s, %(mem_available)s, %(mem_used)s, %(total_containers)s, %(running_containers)s, %(paused_containers)s, %(stopped_containers)s, %(cpus)s, %(cpu_used)s, %(architecture)s, %(os_type)s, %(os)s, %(kernel_version)s, %(labels)s, %(pci_stats)s)'] [parameters: {'kernel_version': None, 'uuid': '38947f39-5015-4db9-8301-536da33e308b', 'hostname': u'compute01', 'pci_stats': None, 'running_containers': 0, 'mem_free': 0, 'created_at': datetime.datetime(2018, 7, 16, 13, 19, 25, 184517), 'labels': '{}', 'cpus': 0, 'numa_topology': '{"nodes": [{"cpuset": [0, 1, 2, 3], "pinned_cpus": [], "id": 0}]}', 'updated_at': None, 'stopped_containers': 0, 'mem_used': 0, 'mem_total': 0, 'total_containers': 0, 'os_type': None, 'paused_containers': 0, 'os': None, 'cpu_used': 0.0, 'mem_available': 0, 'architecture': None}] (Background on this error at: http://sqlalche.me/e/2j85) 2018-07-16 21:19:25.187 24095 ERROR oslo_service.periodic_task 2018-07-16 21:19:26.104 24095 DEBUG oslo_service.periodic_task [-] Running periodic task Manager.delete_unused_containers run_periodic_tasks /usr/lib/python2.7/site-packages/oslo_service/periodic_task.py:215
create containers : [root@controller ~]# openstack appcontainer run --name container01 --net network=c10df5e8-661e-4f52-b56b-a2f83b18a60e centos ping 8.8.8.8
controller zun-compute: Can create containers normally compute01 zun-compute: Unable to create containers
openstack Q
[root@controller ~]# openstack appcontainer service list ------- ----+-- ------- ----+-- -----+- ------- --+---- ------- ------+ ------- ------- ------- +------ ------- ------+ ------- ----+-- ------- ----+-- -----+- ------- --+---- ------- ------+ ------- ------- ------- +------ ------- ------+ ------- ----+-- ------- ----+-- -----+- ------- --+---- ------- ------+ ------- ------- ------- +------ ------- ------+
+----+-
| Id | Host | Binary | State | Disabled | Disabled Reason | Updated At | Availability Zone |
+----+-
| 1 | controller | zun-compute | up | False | None | 2018-07-16 13:20:58 | nova |
| 2 | compute01 | zun-compute | up | False | None | 2018-07-16 13:21:57 | nova |
+----+-
[root@compute01 ~]# tail -f /var/log/ zun/zun- compute. log periodic_ task result.read() periodic_ task File "/usr/lib/ python2. 7/site- packages/ pymysql/ connections. py", line 1340, in read periodic_ task first_packet = self.connection ._read_ packet( ) periodic_ task File "/usr/lib/ python2. 7/site- packages/ pymysql/ connections. py", line 1014, in _read_packet periodic_ task packet. check_error( ) periodic_ task File "/usr/lib/ python2. 7/site- packages/ pymysql/ connections. py", line 393, in check_error periodic_ task err.raise_ mysql_exception (self._ data) periodic_ task File "/usr/lib/ python2. 7/site- packages/ pymysql/ err.py" , line 107, in raise_mysql_ exception periodic_ task raise errorclass(errno, errval) periodic_ task DBError: (pymysql. err.InternalErr or) (1364, u"Field 'disk_total' doesn't have a default value") [SQL: u'INSERT INTO compute_node (created_at, updated_at, uuid, hostname, numa_topology, mem_total, mem_free, mem_available, mem_used, total_containers, running_containers, paused_containers, stopped_containers, cpus, cpu_used, architecture, os_type, os, kernel_version, labels, pci_stats) VALUES (%(created_at)s, %(updated_at)s, %(uuid)s, %(hostname)s, %(numa_topology)s, %(mem_total)s, %(mem_free)s, %(mem_available)s, %(mem_used)s, %(total_ containers) s, %(running_ containers) s, %(paused_ containers) s, %(stopped_ containers) s, %(cpus)s, %(cpu_used)s, %(architecture)s, %(os_type)s, %(os)s, %(kernel_version)s, %(labels)s, %(pci_stats)s)'] [parameters: {'kernel_version': None, 'uuid': '38947f39- 5015-4db9- 8301-536da33e30 8b', 'hostname': u'compute01', 'pci_stats': None, 'running_ containers' : 0, 'mem_free': 0, 'created_at': datetime. datetime( 2018, 7, 16, 13, 19, 25, 184517), 'labels': '{}', 'cpus': 0, 'numa_topology': '{"nodes": [{"cpuset": [0, 1, 2, 3], "pinned_cpus": [], "id": 0}]}', 'updated_at': None, 'stopped_ containers' : 0, 'mem_used': 0, 'mem_total': 0, 'total_containers': 0, 'os_type': None, 'paused_ containers' : 0, 'os': None, 'cpu_used': 0.0, 'mem_available': 0, 'architecture': None}] (Background on this error at: http:// sqlalche. me/e/2j85) periodic_ task periodic_ task [-] Running periodic task Manager. delete_ unused_ containers run_periodic_tasks /usr/lib/ python2. 7/site- packages/ oslo_service/ periodic_ task.py: 215
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:25.187 24095 ERROR oslo_service.
2018-07-16 21:19:26.104 24095 DEBUG oslo_service.
create containers : c10df5e8- 661e-4f52- b56b-a2f83b18a6 0e centos ping 8.8.8.8
[root@controller ~]# openstack appcontainer run --name container01 --net network=
controller zun-compute:
Can create containers normally
compute01 zun-compute:
Unable to create containers