[Openstack] failing to boot instance "message": "No valid host was found. There are not enough hosts available."
somshekar kadam
som_kadam at yahoo.co.in
Mon Dec 8 08:15:52 UTC 2014
Hello Eric and All,
Found that compuet on my controller has issues,
Please let me know howto fix this issue.
I tried your setting still the problem exists.
log---sudo service nova-compute status
Redirecting to /bin/systemctl status nova-compute.service
nova-compute.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
--------------
thanks in advance
regardssomshekar
Regards
Neelu
On Monday, 1 December 2014 8:25 PM, somshekar kadam <som_kadam at yahoo.co.in> wrote:
erl.crash http://paste.openstack.org/show/142629/
Regards
Neelu
On Monday, 1 December 2014 9:35 AM, somshekar kadam <som_kadam at yahoo.co.in> wrote:
Sure I try it out.
I getting this error when i run ./stack.sh on the controller node I am looking into it.
[neelumadhu at controller devstack]$ sudo systemctl -l status rabbitmq-server.servicerabbitmq-server.service - RabbitMQ broker Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled) Active: failed (Result: exit-code) since Mon 2014-12-01 09:29:22 EST; 23s ago Process: 11842 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=1/FAILURE) Process: 11806 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE) Main PID: 11806 (code=exited, status=1/FAILURE)
Dec 01 09:29:22 controller rabbitmqctl[11842]: {error_logger,{{2014,12,1},{9,29,22}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{offender,[{pid,undefined},{name,auth},{mfargs,{auth,start_link,[]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}Dec 01 09:29:22 controller rabbitmqctl[11842]: {error_logger,{{2014,12,1},{9,29,22}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,{shutdown,{failed_to_start_child,auth,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}Dec 01 09:29:22 controller rabbitmqctl[11842]: {error_logger,{{2014,12,1},{9,29,22}},crash_report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{ancestors,[<0.8.0>]},{messages,[{'EXIT',<0.10.0>,normal}]},{links,[<0.8.0>,<0.7.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,27},{reductions,165}],[]]}Dec 01 09:29:22 controller rabbitmqctl[11842]: {error_logger,{{2014,12,1},{9,29,22}},std_info,[{application,kernel},{exited,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}}},{type,permanent}]}Dec 01 09:29:22 controller rabbitmqctl[11842]: {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{\"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only\",[{auth,init_cookie,0,[{file,\"auth.erl\"},{line,285}]},{auth,init,1,[{file,\"auth.erl\"},{line,139}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}}}"}Dec 01 09:29:22 controller rabbitmqctl[11842]: Crash dump was written to: erl_crash.dumpDec 01 09:29:22 controller rabbitmqctl[11842]: Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"Cookie file /var/lib/rabbitmq/.erlDec 01 09:29:22 controller systemd[1]: rabbitmq-server.service: control process exited, code=exited status=1Dec 01 09:29:22 controller systemd[1]: Failed to start RabbitMQ broker.Dec 01 09:29:22 controller systemd[1]: Unit rabbitmq-server.service entered failed state.[neelumadhu at controller devstack]$
Regards
Neelu
On Monday, 1 December 2014 4:23 AM, Eric Eleazar Perez <ericperez at komiyaph.com> wrote:
Hi,
You can paste this on your nova.conf (both nodes) then restart services.
scheduler_default_filters=AllHostsFilter
Regards,Eric Perez
On Mon, Dec 1, 2014 at 4:31 PM, somshekar kadam <som_kadam at yahoo.co.in> wrote:
Hi Geo Varghese,
No neutron service I use nova legacy networking. Neutron is disabled.
Regards
Neelu
On Monday, 1 December 2014 1:35 AM, Geo Varghese <gvarghese at aqorn.com> wrote:
Please paste the output of
neutron agent-list
I think something will be down in it.
On Sun, Nov 30, 2014 at 5:06 PM, somshekar kadam <som_kadam at yahoo.co.in> wrote:
Seems text size was not proper resending it.
Hi All,
I am newbie to openstack, I am trying to get my first istance to boot. ANy pointers on this will help, thanks in advance
I see this error while booting. I have not installed glance or swift on compute node. On controller node its full stack setup done by devops quick start ..
fault | {"message": "No valid host was found. There are not enough hosts available.", "code": 500, "details": " File \"/opt/stack/nova/nova/conductor/manager.py\", line 632, in build_instances || | request_spec,
openstack paste link
Paste #141783 | LodgeIt!
| |
| | | | | |
| Paste #141783 | LodgeIt![neelumadhu at localhost devstack]$ nova-manage service list 2014-11-30 05:53:26.795 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db from (pid=29295) __new__ /opt/stack/nova/nova/servicegroup/api.py:65 2014-11-30 05:53:26.860 DEBUG oslo.db.api [req-e8... |
| |
| View on paste.openstack.org | Preview by Yahoo |
| |
| |
logs given below with each command
On controller side I have setup using Devops quick start to setup steps. On compute node I have followed steps mentioned at openstack manual steps.
logs-----[neelumadhu at localhost devstack]$ nova-manage service list2014-11-30 05:53:26.795 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db from (pid=29295) __new__ /opt/stack/nova/nova/servicegroup/api.py:652014-11-30 05:53:26.860 DEBUG oslo.db.api [req-e81e7530-7d86-4723-8fcd-e640e4d4838f None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=29295) _load_backend /usr/lib/python2.7/site-packages/oslo/db/api.py:1822014-11-30 05:53:28.241 DEBUG oslo.db.sqlalchemy.session [req-e81e7530-7d86-4723-8fcd-e640e4d4838f None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION from (pid=29295) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:509Binary Host Zone Status State Updated_Atnova-conductor localhost.localdomain internal enabled :-) 2014-11-30 10:53:26nova-cert localhost.localdomain internal enabled :-) 2014-11-30 10:53:192014-11-30 05:53:28.398 DEBUG nova.servicegroup.drivers.db [req-e81e7530-7d86-4723-8fcd-e640e4d4838f None None] Seems service is down. Last heartbeat was 2014-11-30 10:40:47. Elapsed time is 761.398104 from (pid=29295) is_up /opt/stack/nova/nova/servicegroup/drivers/db.py:75nova-compute localhost.localdomain nova enabled XXX None nova-scheduler localhost.localdomain internal enabled :-) 2014-11-30 10:53:25nova-consoleauth localhost.localdomain internal enabled :-) 2014-11-30 10:53:24nova-network compute1 internal enabled :-) 2014-11-30 10:53:24nova-compute compute1 nova enabled :-) 2014-11-30 10:53:19
[neelumadhu at localhost devstack]$ nova image-list+--------------------------------------+---------------------------------+--------+--------+| ID | Name | Status | Server |+--------------------------------------+---------------------------------+--------+--------+| db82f672-df9f-403c-a7de-7f0b4ba487d9 | Fedora-x86_64-20-20140618-sda | ACTIVE | || 0af91b22-5306-4c97-8761-3800f9029907 | cirros-0.3.2-x86_64-uec | ACTIVE | || da9e55ab-f25e-4886-8b75-9fc2e7069cb6 | cirros-0.3.2-x86_64-uec-kernel | ACTIVE | || e3f5ef50-433a-4bbd-9007-b1386c129be0 | cirros-0.3.2-x86_64-uec-ramdisk | ACTIVE | |+--------------------------------------+---------------------------------+--------+--------+[neelumadhu at localhost devstack]$
[neelumadhu at localhost devstack]$ nova boot --flavor 2 --image 0af91b22-5306-4c97-8761-3800f9029907 test44+--------------------------------------+----------------------------------------------------------------+| 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-00000001 || 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 | SUFRq8WmQy3p || config_drive | || created | 2014-11-30T10:56:31Z || flavor | m1.small (2) || hostId | || id | 16e847eb-7f51-48d5-a8b8-cafb99a12605 || image | cirros-0.3.2-x86_64-uec (0af91b22-5306-4c97-8761-3800f9029907) || key_name | - || metadata | {} || name | test44 || os-extended-volumes:volumes_attached | [] || progress | 0 || security_groups | default || status | BUILD || tenant_id | e3ae515070c740b89199b8a7e312cb6f || updated | 2014-11-30T10:56:32Z || user_id | 45dfecb18d8a4b069085107f9c2f314a |+--------------------------------------+----------------------------------------------------------------+
[neelumadhu at localhost devstack]$ nova show 16e847eb-7f51-48d5-a8b8-cafb99a12605+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+| Property | Value |+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+| OS-DCF:diskConfig | MANUAL || OS-EXT-AZ:availability_zone | nova || OS-EXT-SRV-ATTR:host | compute1 || OS-EXT-SRV-ATTR:hypervisor_hostname | compute1 || OS-EXT-SRV-ATTR:instance_name | instance-00000001 || 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-11-30T10:56:31Z || fault | {"message": "No valid host was found. There are not enough hosts available.", "code": 500, "details": " File \"/opt/stack/nova/nova/conductor/manager.py\", line 632, in build_instances || | request_spec, filter_properties) || | File \"/opt/stack/nova/nova/scheduler/client/__init__.py\", line 49, in select_destinations || | context, request_spec, filter_properties) || | File \"/opt/stack/nova/nova/scheduler/client/__init__.py\", line 35, in __run_method || | return getattr(self.instance, __name)(*args, **kwargs) || | File \"/opt/stack/nova/nova/scheduler/client/query.py\", line 34, in select_destinations || | context, request_spec, filter_properties) || | File \"/opt/stack/nova/nova/scheduler/rpcapi.py\", line 112, in select_destinations || | request_spec=request_spec, filter_properties=filter_properties) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py\", line 152, in call || | retry=self.retry) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/transport.py\", line 90, in _send || | timeout=timeout, retry=retry) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py\", line 408, in send || | retry=retry) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py\", line 399, in _send || | raise result || | ", "created": "2014-11-30T10:58:20Z"} || flavor | m1.small (2) || hostId | d084bb735e188f6a0d20e6485ba7347c6d9cea4ceae2f9763af00b09 || id | 16e847eb-7f51-48d5-a8b8-cafb99a12605 || image | cirros-0.3.2-x86_64-uec (0af91b22-5306-4c97-8761-3800f9029907) || key_name | - || metadata | {} || name | test44 || os-extended-volumes:volumes_attached | [] || private network | || security_groups | default || status | ERROR || tenant_id | e3ae515070c740b89199b8a7e312cb6f || updated | 2014-11-30T10:58:19Z || user_id | 45dfecb18d8a4b069085107f9c2f314a |+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+[neelumadhu at localhost devstack]$
[neelumadhu at localhost devstack]$ nova host-list+-----------------------+-------------+----------+| host_name | service | zone |+-----------------------+-------------+----------+| localhost.localdomain | conductor | internal || localhost.localdomain | cert | internal || localhost.localdomain | compute | nova || localhost.localdomain | scheduler | internal || localhost.localdomain | consoleauth | internal || compute1 | network | internal || compute1 | compute | nova |+-----------------------+-------------+----------+[neelumadhu at localhost devstack]$ nova service-list+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+| 1 | nova-conductor | localhost.localdomain | internal | enabled | up | 2014-11-30T11:03:06.000000 | - || 2 | nova-cert | localhost.localdomain | internal | enabled | up | 2014-11-30T11:02:59.000000 | - || 3 | nova-compute | localhost.localdomain | nova | enabled | down | - | - || 4 | nova-scheduler | localhost.localdomain | internal | enabled | up | 2014-11-30T11:03:06.000000 | - || 5 | nova-consoleauth | localhost.localdomain | internal | enabled | up | 2014-11-30T11:03:04.000000 | - || 6 | nova-network | compute1 | internal | enabled | up | 2014-11-30T11:03:04.000000 | - || 7 | nova-compute | compute1 | nova | enabled | up | 2014-11-30T11:03:06.000000 | - |+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+[neelumadhu at localhost devstack]$ nova-manage service list2014-11-30 06:03:26.915 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db from (pid=29950) __new__ /opt/stack/nova/nova/servicegroup/api.py:652014-11-30 06:03:26.955 DEBUG oslo.db.api [req-d76a610c-a3c9-43a3-9d1c-bffb9947de7d None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=29950) _load_backend /usr/lib/python2.7/site-packages/oslo/db/api.py:1822014-11-30 06:03:27.400 DEBUG oslo.db.sqlalchemy.session [req-d76a610c-a3c9-43a3-9d1c-bffb9947de7d None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION from (pid=29950) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:509Binary Host Zone Status State Updated_Atnova-conductor localhost.localdomain internal enabled :-) 2014-11-30 11:03:26nova-cert localhost.localdomain internal enabled :-) 2014-11-30 11:03:192014-11-30 06:03:27.669 DEBUG nova.servicegroup.drivers.db [req-d76a610c-a3c9-43a3-9d1c-bffb9947de7d None None] Seems service is down. Last heartbeat was 2014-11-30 10:40:47. Elapsed time is 1360.669212 from (pid=29950) is_up /opt/stack/nova/nova/servicegroup/drivers/db.py:75nova-compute localhost.localdomain nova enabled XXX None nova-scheduler localhost.localdomain internal enabled :-) 2014-11-30 11:03:26nova-consoleauth localhost.localdomain internal enabled :-) 2014-11-30 11:03:24nova-network compute1 internal enabled :-) 2014-11-30 11:03:24nova-compute compute1 nova enabled :-) 2014-11-30 11:03:26[neelumadhu at localhost devstack]$ nova-manage host list
host zone 2014-11-30 06:04:08.471 DEBUG oslo.db.api [req-ae7268ec-7f2b-4515-a444-22d800a14932 None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=29971) _load_backend /usr/lib/python2.7/site-packages/oslo/db/api.py:1822014-11-30 06:04:08.875 DEBUG oslo.db.sqlalchemy.session [req-ae7268ec-7f2b-4515-a444-22d800a14932 None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION from (pid=29971) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:509localhost.localdomain internal compute1 internal [neelumadhu at localhost devstack]$ [neelumadhu at localhost devstack]$
----------------log ends
Neelu
On Sunday, 30 November 2014 6:25 AM, somshekar kadam <som_kadam at yahoo.co.in> wrote:
Hi All,
I am newbie to openstack, I am trying to get my first istance to boot. ANy pointers on this will help, thanks in advance
I see this error while booting. I have not installed glance or swift on compute node. On controller node its full stack setup done by devops quick start ..
fault | {"message": "No valid host was found. There are not enough hosts available.", "code": 500, "details": " File \"/opt/stack/nova/nova/conductor/manager.py\", line 632, in build_instances || | request_spec,
openstack paste link
Paste #141783 | LodgeIt!
| |
| | | | | |
| Paste #141783 | LodgeIt![neelumadhu at localhost devstack]$ nova-manage service list2014-11-30 05:53:26.795 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db from (pid=29295) __new__ /opt/stack/nova/nova/servicegroup/api.py:652014-11-30 05:53:26.860 DEBUG oslo.db.api [req-e8... |
| |
| View on paste.openstack.org | Preview by Yahoo |
| |
| |
logs given below with each command
On controller side I have setup using Devops quick start to setup steps. On compute node I have followed steps mentioned at openstack manual steps.
logs-----[neelumadhu at localhost devstack]$ nova-manage service list2014-11-30 05:53:26.795 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db from (pid=29295) __new__ /opt/stack/nova/nova/servicegroup/api.py:652014-11-30 05:53:26.860 DEBUG oslo.db.api [req-e81e7530-7d86-4723-8fcd-e640e4d4838f None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=29295) _load_backend /usr/lib/python2.7/site-packages/oslo/db/api.py:1822014-11-30 05:53:28.241 DEBUG oslo.db.sqlalchemy.session [req-e81e7530-7d86-4723-8fcd-e640e4d4838f None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION from (pid=29295) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:509Binary Host Zone Status State Updated_Atnova-conductor localhost.localdomain internal enabled :-) 2014-11-30 10:53:26nova-cert localhost.localdomain internal enabled :-) 2014-11-30 10:53:192014-11-30 05:53:28.398 DEBUG nova.servicegroup.drivers.db [req-e81e7530-7d86-4723-8fcd-e640e4d4838f None None] Seems service is down. Last heartbeat was 2014-11-30 10:40:47. Elapsed time is 761.398104 from (pid=29295) is_up /opt/stack/nova/nova/servicegroup/drivers/db.py:75nova-compute localhost.localdomain nova enabled XXX None nova-scheduler localhost.localdomain internal enabled :-) 2014-11-30 10:53:25nova-consoleauth localhost.localdomain internal enabled :-) 2014-11-30 10:53:24nova-network compute1 internal enabled :-) 2014-11-30 10:53:24nova-compute compute1 nova enabled :-) 2014-11-30 10:53:19
[neelumadhu at localhost devstack]$ nova image-list+--------------------------------------+---------------------------------+--------+--------+| ID | Name | Status | Server |+--------------------------------------+---------------------------------+--------+--------+| db82f672-df9f-403c-a7de-7f0b4ba487d9 | Fedora-x86_64-20-20140618-sda | ACTIVE | || 0af91b22-5306-4c97-8761-3800f9029907 | cirros-0.3.2-x86_64-uec | ACTIVE | || da9e55ab-f25e-4886-8b75-9fc2e7069cb6 | cirros-0.3.2-x86_64-uec-kernel | ACTIVE | || e3f5ef50-433a-4bbd-9007-b1386c129be0 | cirros-0.3.2-x86_64-uec-ramdisk | ACTIVE | |+--------------------------------------+---------------------------------+--------+--------+[neelumadhu at localhost devstack]$
[neelumadhu at localhost devstack]$ nova boot --flavor 2 --image 0af91b22-5306-4c97-8761-3800f9029907 test44+--------------------------------------+----------------------------------------------------------------+| 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-00000001 || 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 | SUFRq8WmQy3p || config_drive | || created | 2014-11-30T10:56:31Z || flavor | m1.small (2) || hostId | || id | 16e847eb-7f51-48d5-a8b8-cafb99a12605 || image | cirros-0.3.2-x86_64-uec (0af91b22-5306-4c97-8761-3800f9029907) || key_name | - || metadata | {} || name | test44 || os-extended-volumes:volumes_attached | [] || progress | 0 || security_groups | default || status | BUILD || tenant_id | e3ae515070c740b89199b8a7e312cb6f || updated | 2014-11-30T10:56:32Z || user_id | 45dfecb18d8a4b069085107f9c2f314a |+--------------------------------------+----------------------------------------------------------------+
[neelumadhu at localhost devstack]$ nova show 16e847eb-7f51-48d5-a8b8-cafb99a12605+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+| Property | Value |+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+| OS-DCF:diskConfig | MANUAL || OS-EXT-AZ:availability_zone | nova || OS-EXT-SRV-ATTR:host | compute1 || OS-EXT-SRV-ATTR:hypervisor_hostname | compute1 || OS-EXT-SRV-ATTR:instance_name | instance-00000001 || 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-11-30T10:56:31Z || fault | {"message": "No valid host was found. There are not enough hosts available.", "code": 500, "details": " File \"/opt/stack/nova/nova/conductor/manager.py\", line 632, in build_instances || | request_spec, filter_properties) || | File \"/opt/stack/nova/nova/scheduler/client/__init__.py\", line 49, in select_destinations || | context, request_spec, filter_properties) || | File \"/opt/stack/nova/nova/scheduler/client/__init__.py\", line 35, in __run_method || | return getattr(self.instance, __name)(*args, **kwargs) || | File \"/opt/stack/nova/nova/scheduler/client/query.py\", line 34, in select_destinations || | context, request_spec, filter_properties) || | File \"/opt/stack/nova/nova/scheduler/rpcapi.py\", line 112, in select_destinations || | request_spec=request_spec, filter_properties=filter_properties) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py\", line 152, in call || | retry=self.retry) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/transport.py\", line 90, in _send || | timeout=timeout, retry=retry) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py\", line 408, in send || | retry=retry) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py\", line 399, in _send || | raise result || | ", "created": "2014-11-30T10:58:20Z"} || flavor | m1.small (2) || hostId | d084bb735e188f6a0d20e6485ba7347c6d9cea4ceae2f9763af00b09 || id | 16e847eb-7f51-48d5-a8b8-cafb99a12605 || image | cirros-0.3.2-x86_64-uec (0af91b22-5306-4c97-8761-3800f9029907) || key_name | - || metadata | {} || name | test44 || os-extended-volumes:volumes_attached | [] || private network | || security_groups | default || status | ERROR || tenant_id | e3ae515070c740b89199b8a7e312cb6f || updated | 2014-11-30T10:58:19Z || user_id | 45dfecb18d8a4b069085107f9c2f314a |+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+[neelumadhu at localhost devstack]$
[neelumadhu at localhost devstack]$ nova host-list+-----------------------+-------------+----------+| host_name | service | zone |+-----------------------+-------------+----------+| localhost.localdomain | conductor | internal || localhost.localdomain | cert | internal || localhost.localdomain | compute | nova || localhost.localdomain | scheduler | internal || localhost.localdomain | consoleauth | internal || compute1 | network | internal || compute1 | compute | nova |+-----------------------+-------------+----------+[neelumadhu at localhost devstack]$ nova service-list+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+| 1 | nova-conductor | localhost.localdomain | internal | enabled | up | 2014-11-30T11:03:06.000000 | - || 2 | nova-cert | localhost.localdomain | internal | enabled | up | 2014-11-30T11:02:59.000000 | - || 3 | nova-compute | localhost.localdomain | nova | enabled | down | - | - || 4 | nova-scheduler | localhost.localdomain | internal | enabled | up | 2014-11-30T11:03:06.000000 | - || 5 | nova-consoleauth | localhost.localdomain | internal | enabled | up | 2014-11-30T11:03:04.000000 | - || 6 | nova-network | compute1 | internal | enabled | up | 2014-11-30T11:03:04.000000 | - || 7 | nova-compute | compute1 | nova | enabled | up | 2014-11-30T11:03:06.000000 | - |+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+[neelumadhu at localhost devstack]$ nova-manage service list2014-11-30 06:03:26.915 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db from (pid=29950) __new__ /opt/stack/nova/nova/servicegroup/api.py:652014-11-30 06:03:26.955 DEBUG oslo.db.api [req-d76a610c-a3c9-43a3-9d1c-bffb9947de7d None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=29950) _load_backend /usr/lib/python2.7/site-packages/oslo/db/api.py:1822014-11-30 06:03:27.400 DEBUG oslo.db.sqlalchemy.session [req-d76a610c-a3c9-43a3-9d1c-bffb9947de7d None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION from (pid=29950) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:509Binary Host Zone Status State Updated_Atnova-conductor localhost.localdomain internal enabled :-) 2014-11-30 11:03:26nova-cert localhost.localdomain internal enabled :-) 2014-11-30 11:03:192014-11-30 06:03:27.669 DEBUG nova.servicegroup.drivers.db [req-d76a610c-a3c9-43a3-9d1c-bffb9947de7d None None] Seems service is down. Last heartbeat was 2014-11-30 10:40:47. Elapsed time is 1360.669212 from (pid=29950) is_up /opt/stack/nova/nova/servicegroup/drivers/db.py:75nova-compute localhost.localdomain nova enabled XXX None nova-scheduler localhost.localdomain internal enabled :-) 2014-11-30 11:03:26nova-consoleauth localhost.localdomain internal enabled :-) 2014-11-30 11:03:24nova-network compute1 internal enabled :-) 2014-11-30 11:03:24nova-compute compute1 nova enabled :-) 2014-11-30 11:03:26[neelumadhu at localhost devstack]$ nova-manage host list
host zone 2014-11-30 06:04:08.471 DEBUG oslo.db.api [req-ae7268ec-7f2b-4515-a444-22d800a14932 None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=29971) _load_backend /usr/lib/python2.7/site-packages/oslo/db/api.py:1822014-11-30 06:04:08.875 DEBUG oslo.db.sqlalchemy.session [req-ae7268ec-7f2b-4515-a444-22d800a14932 None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION from (pid=29971) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:509localhost.localdomain internal compute1 internal [neelumadhu at localhost devstack]$ [neelumadhu at localhost devstack]$
----------------log ends
Neelu
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
--
--Regards,Geo Varghese
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141208/7a5d3c5b/attachment.html>
More information about the Openstack
mailing list