Nova unable to find valid hosts caused failure creating servers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Invalid
|
Low
|
Unassigned |
Bug Description
Brief Description
-----------------
Nova is unable to create a server, the openstack server show command shows a 'No valid host was found' error.
Severity
--------
Major
Steps to Reproduce
------------------
Try to create a server with:
openstack server create --image cirros --flavor f1.small --nic net-id=
Expected Behavior
------------------
The server should be created, up and running.
Actual Behavior
----------------
The server remains in ERROR state. See the output of openstack server show vm-cirros-1 --format yaml
OS-DCF:diskConfig: MANUAL
OS-EXT-
OS-EXT-
OS-EXT-
OS-EXT-
OS-EXT-
OS-EXT-
OS-EXT-
OS-SRV-
OS-SRV-
accessIPv4: ''
accessIPv6: ''
addresses: ''
config_drive: ''
created: '2019-06-
fault:
code: 500
created: '2019-06-
details: " File \"/var/
, line 1326, in schedule_
\ File \"/var/
, line 780, in _schedule_
\ File \"/var/
, line 42, in select_
\ File \"/var/
, line 160, in select_
\ **msg_args)\n File \"/var/
, line 178, in call\n retry=self.retry)\n File \"/var/
, line 128, in _send\n retry=retry)\n File \"/var/
, line 645, in send\n call_monitor_
, line 636, in _send\n raise result\n"
message: No valid host was found. There are not enough hosts available.
flavor: f1.small (73b04076-
hostId: ''
id: adf2799c-
image: cirros (0a1e049c-
key_name: null
name: vm-cirros-1
project_id: dc3b3d8cb4444ab
properties: ''
status: ERROR
updated: '2019-06-
user_id: 63a6cc7cfa6b461
volumes_attached: ''
Reproducibility
---------------
100%
System Configuration
-------
So far in Simplex and External storage baremetal.
Branch/Pull Time/Commit
-------
OS="centos"
SW_VERSION="19.01"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID=
JOB="STX_
<email address hidden>"
BUILD_NUMBER="136"
BUILD_HOST=
BUILD_DATE=
Timestamp/Logs
--------------
See attached logs.
Test Activity
-------------
Sanity
It turns out that running `openstack compute service list` I got:
+----+- ------- ------- ---+--- ------- ------- ------- ------- ----+-- ------- -+----- ----+-- -----+- ------- ------- ------- ------+ ------- ------- ---+--- ------- ------- ------- ------- ----+-- ------- -+----- ----+-- -----+- ------- ------- ------- ------+ h-6fdfb5c47f- tnbv8 | internal | enabled | up | 2019-06- 10T18:07: 04.000000 | 6cb694cbb6- xsjcj | internal | enabled | up | 2019-06- 10T18:07: 09.000000 | 54cc9bfd99- j87ww | internal | enabled | down | 2019-06- 10T17:22: 45.000000 | 10T18:07: 05.000000 | 54cc9bfd99- wj8rp | internal | enabled | up | 2019-06- 10T18:07: 06.000000 | ------- ------- ---+--- ------- ------- ------- ------- ----+-- ------- -+----- ----+-- -----+- ------- ------- ------- ------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+-
| 2 | nova-consoleauth | nova-consoleaut
| 3 | nova-scheduler | nova-scheduler-
| 4 | nova-conductor | nova-conductor-
| 5 | nova-compute | controller-0 | nova | disabled | up | 2019-06-
| 7 | nova-conductor | nova-conductor-
+----+-
Notice the 'disabled' state for nova-compute. After doing a openstack compute service set --enable controller-0 nova-compute I was able to create the server.
controller-0:~$ openstack server list ------- ------- ------- ------- ----+-- ------- ----+-- ------+ ------- ------- ------- ---+--- -----+- ------- --+ ------- ------- ------- ------- ----+-- ------- ----+-- ------+ ------- ------- ------- ---+--- -----+- ------- --+ b8b2-4161- b1e7-b258f3d6ef e3 | vm-cirros-1 | ACTIVE | network- 1=192.168. 0.48 | cirros | f1.small | ------- ------- ------- ------- ----+-- ------- ----+-- ------+ ------- ------- ------- ---+--- -----+- ------- --+
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| 14394307-
+------