Ask Your Question
0

nova scheduler

asked 2014-05-09 08:13:41 -0500

rajcoumar gravatar image

I am working on Openstack Icehouse package. I installed Keystone, glance, Cinder and rabbitmq server in one virtual machine. Nova on another virtual machine. Now problem is Whenever launch the instance it throw errors

 # nova boot --flavor 1 --image 3eea0501-c29a-4646-97f5-e853ff847ab5 cirrosvm2
 +--------------------------------------+-----------------------------------------------+
 | Property                             | Value                                         |
+--------------------------------------+-----------------------------------------------+
 | OS-DCF:diskConfig                                 | MANUAL                                        |
 | OS-EXT-AZ:availability_zone                       | nova                                          |
 | OS-EXT-SRV-ATTR:host                              | -                                              |
 | OS-EXT-SRV-ATTR:hypervisor_hostname               | -                          |
 | OS-EXT-SRV-ATTR:instance_name                     | instance-0000001e                             |
 | OS-EXT-STS:power_state                            | 0                                             |
 | OS-EXT-STS:task_state                             | scheduling                          |
 | OS-EXT-STS:vm_state                               | building                                 |
 | OS-SRV-USG:launched_at                            | -                                        |
 | OS-SRV-USG:terminated_at                          | -                                        |
 | accessIPv4                                        |                                          |
 | accessIPv6                                        |                                          |
 | adminPass                                         | 35Cxvz9FaKHK                                  |
 | config_drive                                      |                                |
 | created                                           | 2014-05-09T11:12:08Z                          |
 | flavor                                            | m1.tiny (1)                   |
 | hostId                                            |                                               |
 | id                                                | 08892a76-ba1d-4f8d-a2d0-e5eaf1adeb42     |
 | image                                             | cirros (3eea0501-c29a-4646-97f5-e853ff847ab5) |
 | key_name                                          | -                                 |
 | metadata                                          | {}                                            |
 | name                                              | cirrosvm2                                     |
 | os-extended-volumes:volumes_attached              | []        |
 | progress                                          | 0                                             |
 | security_groups                                   | default               |
 | status                                            | BUILD             |
 | tenant_id                                         | 9ab7bb377eb74a53ac2557e3ba118c65              |
 | updated                                           | 2014-05-09T11:12:08Z                          |
 | user_id                                           | 9f198f7ae46b47719fb3fcd9af2ed496              |
 +--------------------------------------+-----------------------------------------------+

  # nova list
  +--------------------------------------+-----------+---------+------------+-------------+----------+
  | ID                                   | Name      | Status  | Task State | Power State | Networks |
  +--------------------------------------+-----------+---------+------------+-------------+--------+
  | 08892a76-ba1d-4f8d-a2d0-e5eaf1adeb42 | cirrosvm2 | ERROR   | -          | NOSTATE     |          |
  +--------------------------------------+-----------+---------+------------+-------------+--------+

  # nova show 08892a76-ba1d-4f8d-a2d0-e5eaf1adeb42
  +--------------------------------------------------------------------------------------------------
    Property           |    Value 
  +-------------------------------------------------------------------------------------------
   | OS-DCF:diskConfig                    | MANUAL 
   | OS-EXT-AZ:availability_zone          | nova                   
   | OS-EXT-SRV-ATTR:host                 | -                     
   | OS-EXT-SRV-ATTR:hypervisor_hostname  | -                     
   | OS-EXT-SRV-ATTR:instance_name        | instance-0000001e     
   | OS-EXT-STS:power_state               | 0                     
   | OS-EXT-STS:task_state                | -                  
   | OS-EXT-STS:vm_state                  | error                 
   | OS-SRV-USG:launched_at               | -                    
   | OS-SRV-USG:terminated_at             | -                     
   | accessIPv4                           |                       
   | accessIPv6                           |                      
   | config_drive                         |                       
   | created                              | 2014-05-09T11:12:08Z  
   | fault                                | {"message": "No valid host was found. ", "code": 500, "details": "  File \"/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py\", line 108, in schedule_run_instance |
   |                                      |     raise exception.NoValidHost(reason=\"\")
   |                                      | ", "created": "2014-05-09T11:12:08Z"}  
   | flavor                               | m1.tiny (1)            
   | hostId                               |                         
   | id                                   | 08892a76-ba1d-4f8d-a2d0-e5eaf1adeb42 
   | image                                | cirros (3eea0501-c29a-4646-97f5-e853ff847ab5)
   | key_name                             | -                     
   | metadata                             | {}                    
   | name                                 | cirrosvm2             
   | os-extended-volumes:volumes_attached | []                    
   | security_groups                      | default               
   | status                               | ERROR                 
   | tenant_id                            | 9ab7bb377eb74a53ac2557e3ba118c65  
   | updated                              | 2014-05-09T11:12:08Z      
   | user_id                              | 9f198f7ae46b47719fb3fcd9af2ed496

In nova-scheduler logs:

  2014-05-09 16:42:08.642 3994 WARNING nova.scheduler.driver [req-0f445770-97a2-4ecf-896e-1b894999c3ba 9f198f7ae46b47719fb3fcd9af2ed496 9ab7bb377eb74a53ac2557e3ba118c65] [instance: 08892a76-ba1d-4f8d-a2d0-e5eaf1adeb42] Setting instance to ERROR state.

In nova-compute logs:

2014-05-09 16:41:41.157 4031 WARNING nova.virt.libvirt.driver [-] URI qemu:///system does not support events: internal error: could not initialize domain event timer

WARNING nova.compute.manager [req-9fe4339b-18f6-4c0f-af79-82f6e8eddf13 None None] Found 1 in the database and 0 on the hypervisor

In libvirt logs :

2014-05-09 10:57:40.539+0000: 1866: info : libvirt version: 1.2.2
2014-05-09 10:57:40.539+0000: 1866: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
2014-05-09 11:01:23.172+0000: 1866: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
2014-05-09 11:03:42.046+0000: 1763: info : libvirt version: 1.2.2
2014-05-09 11:03:42.046+0000: 1763: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
2014-05-09 11:09:40.780+0000: 1763: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
2014-05-09 11:11:23.754+0000: 1763: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
2014-05-09 12:48:50.348+0000: 1763: error : netcfStateCleanup:109 : internal error: Attempt to close netcf state driver with open connections

How to solve this problem ? Anyone help me.... Thanks in Advance

edit retag flag offensive close merge delete

Comments

are you using neutron for networks, in that you need to specify nic. also check if nova availability zone is available and n-cpu is running.

SGPJ gravatar imageSGPJ ( 2014-05-09 08:29:43 -0500 )edit

i didnt install neutron till now.

rajcoumar gravatar imagerajcoumar ( 2014-05-09 08:31:52 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-09 19:27:56 -0500

9lives gravatar image

This issue might caused by libvirt version try to update to the latest 1.24 from this link ftp://libvirt.org/libvirt/libvirt-1.2.4.tar.gz and try again.

Hope that helps!

Vic

edit flag offensive delete link more

Comments

When i execute make command throws some errors..

/libvirt-1.2.4# make

   CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /root/libvirt-1.2.4/build-aux/missing aclocal-1.13 -I m4
      /root/libvirt-1.2.4/build-aux/missing: line 81: aclocal-1.13: command not found   
      WARNING: 'aclocal-1.13' is missing on your system.
      You should only need it if you modified 'acinclude.m4' or
      'configure.ac' or m4 files included by 'configure.ac'.
      The 'aclocal' program is part of the GNU Automake package:
      <http://www.gnu.org/software/automake>
      It also requires GNU Autoconf, GNU m4 and Perl in order to run:
      <http://www.gnu.org/software/autoconf>
      <http://www.gnu.org/software/m4/>
      <http://www.perl.org/>
      make: *** [aclocal.m4] Error 127
rajcoumar gravatar imagerajcoumar ( 2014-05-10 01:23:34 -0500 )edit

Which os distro are u using?Try to update the libvirt using the package tools provided by ur os distro eg: On Ubuntu download the libvirt install package and install it using sudo dpkg -i <libvirt-package-name>

Hope that helps

Vic

9lives gravatar image9lives ( 2014-05-10 20:18:06 -0500 )edit

@9lives when I installing it it is showing configure: error: You must install the libyajl library & headers to compile libvirt

amitabh sinha gravatar imageamitabh sinha ( 2015-04-01 23:59:43 -0500 )edit

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: 2014-05-09 08:13:41 -0500

Seen: 2,607 times

Last updated: May 09 '14