Ask Your Question
0

NoValidHost exception with message: 'No valid host was found on Rdo juno docker setup

asked 2015-08-19 05:03:25 -0500

spark.liu gravatar image

launch a container with error status ,

my setup is centos 7 with RDO juno build and one controller node and one compute-node

docker version :Docker version 1.8.1, build d12ea79

docker-driver version :stable/juno nova-docker (0.0.1.dev140, /root/src/novadocker)

the issue ,after launch a container as a vm , the instance with error status

[root@RDO-Controller docker(keystone_admin)]# nova list 
+--------------------------------------+----------+--------+------------+-------------+--------------+
| ID                                   | Name     | Status | Task State | Power State | Networks     |
+--------------------------------------+----------+--------+------------+-------------+--------------+
| 0a655671-3f1e-4a25-b950-ab5664aa8ccc | test1    | ERROR  | -          | NOSTATE     | test=1.1.1.6 |
| 50a5db80-e5cf-4ed4-b590-27278c478c69 | test1    | ERROR  | -          | NOSTATE     |              |

log on controller

[root@RDO-Controller docker(keystone_admin)]# tail -n 10 /var/log/nova/nova-conductor.log     
2015-08-19 12:49:15.964 4099 WARNING nova.scheduler.driver [req-3dc81619-182d-4f9f-b3b7-cb1965cdff0f None] [instance: efa4ab3d-f1df-49ff-a8de-0b66e2f41034] NoValidHost exception with message: 'No valid host was found.'
2015-08-19 12:49:15.967 4099 WARNING nova.scheduler.driver [req-3dc81619-182d-4f9f-b3b7-cb1965cdff0f None] [instance: efa4ab3d-f1df-49ff-a8de-0b66e2f41034] Setting instance to ERROR state.<<<<<<<<<
[root@RDO-Controller docker(keystone_admin)]#

compute log

 [root@RDO-Compute novadocker]# tail -n 60 /var/log/nova/nova-compute.log  
    2015-08-19 12:48:45.363 27977 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 45
    2015-08-19 12:48:45.364 27977 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 1, total allocated vcpus: 0
    2015-08-19 12:48:45.365 27977 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2015-08-19 12:48:45.366 27977 INFO nova.compute.resource_tracker [-] Compute_service record updated for RDO-Compute:RDO-Compute
    2015-08-19 12:49:45.212 27977 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
    2015-08-19 12:49:45.355 27977 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 1840, total allocated virtual ram (MB): 2560
    2015-08-19 12:49:45.356 27977 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 45
    2015-08-19 12:49:45.356 27977 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 1, total allocated vcpus: 0
    2015-08-19 12:49:45.357 27977 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2015-08-19 12:49:45.358 27977 INFO nova.compute.resource_tracker [-] Compute_service record updated for RDO-Compute:RDO-Compute
    2015-08-19 12:50:46.212 27977 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
    2015-08-19 12:50:46.411 27977 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 1840, total allocated virtual ram (MB): 2560
    2015-08-19 12:50:46.412 27977 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 45
    2015-08-19 12:50:46.413 27977 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 1, total allocated vcpus: 0
    2015-08-19 12:50:46.413 27977 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2015-08-19 12:50:46.413 27977 INFO nova.compute.resource_tracker [-] Compute_service record updated for RDO-Compute:RDO-Compute

status

[root@RDO-Controller docker(keystone_admin)]# nova  hypervisor-show  RDO-Compute  
+-------------------------+-------------+
| Property                | Value       |
+-------------------------+-------------+
| cpu_info                | ?           |
| current_workload        | 0           |
| disk_available_least    | 46          |
| free_disk_gb            | 45          |
| free_ram_mb             | -720        |
| host_ip                 | 10.0.2.10   |
| hypervisor_hostname     | RDO-Compute |
| hypervisor_type         | docker      |<<<<<<<<<<<<
| hypervisor_version      | 1000        |
| id                      | 1           |
| local_gb                | 49          |
| local_gb_used           | 4           |
| memory_mb               | 1840        |
| memory_mb_used          | 2560        |
| running_vms             | 4           |
| service_disabled_reason | -           |
| service_host            | RDO-Compute |
| service_id              | 5           |
| state                   | up          |
| status                  | enabled     |
| vcpus                   | 1           |
| vcpus_used              | 4           |
+-------------------------+-------------+

hypervisor is up on compute node

[root@RDO-Compute novadocker]# openstack-status 
== Nova services ==
openstack-nova-api:                     inactive  (disabled on boot)
openstack-nova-compute:                 active<<<<<<<<<<<<<<<
edit retag flag offensive close merge delete

Comments

and the cpu infor can recognize by docker-driver , I have 32 core cpu host ,but driver can't know it

  2015-08-19 12:50:46.413 27977 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 1, total allocated vcpus: 0
spark.liu gravatar imagespark.liu ( 2015-08-19 05:10:16 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-25 14:37:50 -0500

Edit the following file on the hosts running docker:

vi /usr/lib/python2.7/site-packages/novadocker/virt/docker/driver.py

stats = { 'vcpus': 1, # Replace it with with vCPU cores you have on that host 'vcpus_used': 0, 'memory_mb': memory['total'] / units.Mi, . .

Restart docker and openstack-nova-compute services

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-19 04:22:55 -0500

Seen: 704 times

Last updated: Aug 19 '15