Zun api status Error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun |
New
|
Undecided
|
Unassigned |
Bug Description
When I try to start a container from a controller by specifying the host of a compute node with zun api, the status becomes "error".
| status | Error
| status_reason | There are not enough hosts available.
I checked the status of the host.
"compute5" is a compute node
"compute1" is the controller node
If I use zun-client on the compute node, i can start the container.
The error occurs only when the host is specified from the controller.
root@username:~# openstack appcontainer host show compute5
+------
| Field | Value |
+------
| uuid | 8117ee69-
| links | [{'href': 'http://
| hostname | compute5 |
| mem_total | 64242 |
| mem_used | 1845 |
| total_containers | 0 |
| cpus | 6 |
| cpu_used | 0.0 |
| architecture | x86_64 |
| os_type | linux |
| os | Ubuntu 20.04.2 LTS |
| kernel_version | 5.8.0-53-generic |
| labels | {} |
| disk_total | 365 |
| disk_used | 0 |
| disk_quota_
| runtimes | ['io.containerd
| enable_cpu_pinning | False |
+------
root@username:~# openstack appcontainer host show compute1
+------
| Field | Value |
+------
| uuid | 2149f13e-
| links | [{'href': 'http://
| hostname | compute1 |
| mem_total | 32074 |
| mem_used | 6158 |
| total_containers | 0 |
| cpus | 4 |
| cpu_used | 0.0 |
| architecture | x86_64 |
| os_type | linux |
| os | Ubuntu 20.04.2 LTS |
| kernel_version | 5.8.0-45-generic |
| labels | {} |
| disk_total | 706 |
| disk_used | 0 |
| disk_quota_
| runtimes | ['io.containerd
| enable_cpu_pinning | False |
+------
I get the same error when I specify the availability zone.
root@username:~# openstack appcontainer run --name cirros --host compute5 --net network=
+------
| Field | Value |
+------
| uuid | e70d998c-
| links | [{'href': 'http://
| name | cirros2 |
| project_id | 7133870e4213486
| user_id | 9a6140daebee408
| image | cirros |
| cpu | 1.0 |
| cpu_policy | shared |
| memory | 512 |
| command | [] |
| status | Error |
| status_reason | There are not enough hosts available. |
| task_state | None |
| environment | {} |
| workdir | None |
| auto_remove | False |
| ports | None |
| hostname | None |
| labels | {} |
| addresses | None |
| image_pull_policy | None |
| host | None |
| restart_policy | None |
| status_detail | None |
| interactive | False |
| tty | False |
| image_driver | docker |
| security_groups | None |
| runtime | None |
| disk | 0 |
| auto_heal | False |
| privileged | False |
| healthcheck | None |
| registry_id | None |
| entrypoint | None |
+------
# openstack allocation candidate list --resource VCPU=1 --resource MEMORY_MB=512 ------- ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --+ ------- ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---...
+---+--
| # | allocation | resource provider | inventory used/capacity | traits |
+---+--