<div dir="ltr">Hi Dan,<div><br></div><div>When running ironic node-list it showed that all nodes are available.</div><div><br></div><div>Samuel</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Mar 27, 2017 at 7:54 PM Dan Sneddon <<a href="mailto:dsneddon@redhat.com">dsneddon@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 03/27/2017 07:10 AM, Samuel Monderer wrote:<br class="gmail_msg">
> Hi,<br class="gmail_msg">
><br class="gmail_msg">
> After deleting a stack and running the deployment again I get No hosts<br class="gmail_msg">
> available for the compute node.<br class="gmail_msg">
> /var/log/nova/nova-scheduler shows the following<br class="gmail_msg">
> 2017-03-27 16:34:56.510 19784 DEBUG<br class="gmail_msg">
> nova.scheduler.filters.compute_capabilities_filter<br class="gmail_msg">
> [req-12df93c6-1226-4292-9938-e6ace00f88cc<br class="gmail_msg">
> eece59c584b8439e992306a27ab78eb7 5495048e618b444288911f261b2c10e2 - - -]<br class="gmail_msg">
> (<a href="http://edge-rhos-director.vasonanetworks.com" rel="noreferrer" class="gmail_msg" target="_blank">edge-rhos-director.vasonanetworks.com</a><br class="gmail_msg">
> <<a href="http://edge-rhos-director.vasonanetworks.com" rel="noreferrer" class="gmail_msg" target="_blank">http://edge-rhos-director.vasonanetworks.com</a>>,<br class="gmail_msg">
> 82d68395-d33e-4332-99ff-e48daa38861a) ram: 0MB disk: 0MB io_ops: 0<br class="gmail_msg">
> instances: 0 fails extra_spec requirements. 'compute' does not match<br class="gmail_msg">
> 'control' _satisfies_extra_specs<br class="gmail_msg">
> /usr/lib/python2.7/site-packages/nova/scheduler/filters/compute_capabilities_filter.py:103<br class="gmail_msg">
> 2017-03-27 16:34:56.511 19784 DEBUG<br class="gmail_msg">
> nova.scheduler.filters.compute_capabilities_filter<br class="gmail_msg">
> [req-12df93c6-1226-4292-9938-e6ace00f88cc<br class="gmail_msg">
> eece59c584b8439e992306a27ab78eb7 5495048e618b444288911f261b2c10e2 - - -]<br class="gmail_msg">
> (<a href="http://edge-rhos-director.vasonanetworks.com" rel="noreferrer" class="gmail_msg" target="_blank">edge-rhos-director.vasonanetworks.com</a><br class="gmail_msg">
> <<a href="http://edge-rhos-director.vasonanetworks.com" rel="noreferrer" class="gmail_msg" target="_blank">http://edge-rhos-director.vasonanetworks.com</a>>,<br class="gmail_msg">
> 82d68395-d33e-4332-99ff-e48daa38861a) ram: 0MB disk: 0MB io_ops: 0<br class="gmail_msg">
> instances: 0 fails instance_type extra_specs requirements host_passes<br class="gmail_msg">
> /usr/lib/python2.7/site-packages/nova/scheduler/filters/compute_capabilities_filter.py:112<br class="gmail_msg">
> 2017-03-27 16:34:56.512 19784 INFO nova.filters<br class="gmail_msg">
> [req-12df93c6-1226-4292-9938-e6ace00f88cc<br class="gmail_msg">
> eece59c584b8439e992306a27ab78eb7 5495048e618b444288911f261b2c10e2 - - -]<br class="gmail_msg">
> Filter ComputeCapabilitiesFilter returned 0 hosts<br class="gmail_msg">
> 2017-03-27 16:34:56.512 19784 DEBUG nova.filters<br class="gmail_msg">
> [req-12df93c6-1226-4292-9938-e6ace00f88cc<br class="gmail_msg">
> eece59c584b8439e992306a27ab78eb7 5495048e618b444288911f261b2c10e2 - - -]<br class="gmail_msg">
> Filtering removed all hosts for the request with instance ID<br class="gmail_msg">
> '4fa2af02-8c0b-4440-aa3b-10ffe2016d48'. Filter results: [('RetryFilter',<br class="gmail_msg">
> [(u'<a href="http://edge-rhos-director.vasonanetworks.com" rel="noreferrer" class="gmail_msg" target="_blank">edge-rhos-director.vasonanetworks.com</a><br class="gmail_msg">
> <<a href="http://edge-rhos-director.vasonanetworks.com" rel="noreferrer" class="gmail_msg" target="_blank">http://edge-rhos-director.vasonanetworks.com</a>>',<br class="gmail_msg">
> u'82d68395-d33e-4332-99ff-e48daa38861a')]),<br class="gmail_msg">
> ('TripleOCapabilitiesFilter', [(u'<a href="http://edge-rhos-director.vasonanetworks.com" rel="noreferrer" class="gmail_msg" target="_blank">edge-rhos-director.vasonanetworks.com</a><br class="gmail_msg">
> <<a href="http://edge-rhos-director.vasonanetworks.com" rel="noreferrer" class="gmail_msg" target="_blank">http://edge-rhos-director.vasonanetworks.com</a>>',<br class="gmail_msg">
> u'82d68395-d33e-4332-99ff-e48daa38861a')]),<br class="gmail_msg">
> ('ComputeCapabilitiesFilter', None)] get_filtered_objects<br class="gmail_msg">
> /usr/lib/python2.7/site-packages/nova/filters.py:129<br class="gmail_msg">
> 2017-03-27 16:34:56.513 19784 INFO nova.filters<br class="gmail_msg">
> [req-12df93c6-1226-4292-9938-e6ace00f88cc<br class="gmail_msg">
> eece59c584b8439e992306a27ab78eb7 5495048e618b444288911f261b2c10e2 - - -]<br class="gmail_msg">
> Filtering removed all hosts for the request with instance ID<br class="gmail_msg">
> '4fa2af02-8c0b-4440-aa3b-10ffe2016d48'. Filter results: ['RetryFilter:<br class="gmail_msg">
> (start: 2, end: 1)', 'TripleOCapabilitiesFilter: (start: 1, end: 1)',<br class="gmail_msg">
> 'ComputeCapabilitiesFilter: (start: 1, end: 0)']<br class="gmail_msg">
> 2017-03-27 16:34:56.514 19784 DEBUG nova.scheduler.filter_scheduler<br class="gmail_msg">
> [req-12df93c6-1226-4292-9938-e6ace00f88cc<br class="gmail_msg">
> eece59c584b8439e992306a27ab78eb7 5495048e618b444288911f261b2c10e2 - - -]<br class="gmail_msg">
> There are 0 hosts available but 1 instances requested to build.<br class="gmail_msg">
> select_destinations<br class="gmail_msg">
> /usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py:71<br class="gmail_msg">
><br class="gmail_msg">
> But when check the available node for compute I get<br class="gmail_msg">
> [stack@edge-rhos-director ~]$ ironic node-list --provision-state<br class="gmail_msg">
> available --maintenance false --associated false<br class="gmail_msg">
> +--------------------------------------+---------------+---------------+-------------+--------------------+-------------+<br class="gmail_msg">
> | UUID | Name | Instance UUID |<br class="gmail_msg">
> Power State | Provisioning State | Maintenance |<br class="gmail_msg">
> +--------------------------------------+---------------+---------------+-------------+--------------------+-------------+<br class="gmail_msg">
> | ded46c41-c5a5-4aa7-a1ee-3df75e6cf976 | rhos-compute0 | None |<br class="gmail_msg">
> power off | available | False |<br class="gmail_msg">
> +--------------------------------------+---------------+---------------+-------------+--------------------+-------------+<br class="gmail_msg">
><br class="gmail_msg">
> [stack@edge-rhos-director ~]$ ironic node-show rhos-compute0<br class="gmail_msg">
> +------------------------+-------------------------------------------------------------------------+<br class="gmail_msg">
> | Property | Value<br class="gmail_msg">
> |<br class="gmail_msg">
> +------------------------+-------------------------------------------------------------------------+<br class="gmail_msg">
> | chassis_uuid |<br class="gmail_msg">
> |<br class="gmail_msg">
> | clean_step | {}<br class="gmail_msg">
> |<br class="gmail_msg">
> | console_enabled | False<br class="gmail_msg">
> |<br class="gmail_msg">
> | created_at | 2017-03-23T14:41:35+00:00<br class="gmail_msg">
> |<br class="gmail_msg">
> | driver | pxe_drac<br class="gmail_msg">
> |<br class="gmail_msg">
> | driver_info | {u'deploy_kernel':<br class="gmail_msg">
> u'95a09fe8-919a-4c15-9f0e-c5936b6bcecf', |<br class="gmail_msg">
> | | u'drac_password': u'******',<br class="gmail_msg">
> u'drac_username': u'root', |<br class="gmail_msg">
> | | u'deploy_ramdisk':<br class="gmail_msg">
> u'5c5f25c4-c9bf-4859-aa33-2e4352eb5620', |<br class="gmail_msg">
> | | u'drac_host': u'192.168.61.7'}<br class="gmail_msg">
> |<br class="gmail_msg">
> | driver_internal_info | {u'agent_url': u'<a href="http://192.0.2.9:9999" rel="noreferrer" class="gmail_msg" target="_blank">http://192.0.2.9:9999</a>',<br class="gmail_msg">
> u'root_uuid_or_disk_id': |<br class="gmail_msg">
> | | u'c2bb0683-ebe8-4541-9c5c-a811d0326ae5',<br class="gmail_msg">
> u'is_whole_disk_image': False, |<br class="gmail_msg">
> | | u'drac_boot_device': {u'boot_device': u'pxe',<br class="gmail_msg">
> u'persistent': True}, |<br class="gmail_msg">
> | | u'agent_last_heartbeat': 1490597251}<br class="gmail_msg">
> |<br class="gmail_msg">
> | extra | {u'hardware_swift_object':<br class="gmail_msg">
> u'extra_hardware-ded46c41-c5a5-4aa7-a1ee- |<br class="gmail_msg">
> | | 3df75e6cf976'}<br class="gmail_msg">
> |<br class="gmail_msg">
> | inspection_finished_at | None<br class="gmail_msg">
> |<br class="gmail_msg">
> | inspection_started_at | None<br class="gmail_msg">
> |<br class="gmail_msg">
> | instance_info | {}<br class="gmail_msg">
> |<br class="gmail_msg">
> | instance_uuid | None<br class="gmail_msg">
> |<br class="gmail_msg">
> | last_error | None<br class="gmail_msg">
> |<br class="gmail_msg">
> | maintenance | False<br class="gmail_msg">
> |<br class="gmail_msg">
> | maintenance_reason | None<br class="gmail_msg">
> |<br class="gmail_msg">
> | name | rhos-compute0<br class="gmail_msg">
> |<br class="gmail_msg">
> | network_interface |<br class="gmail_msg">
> |<br class="gmail_msg">
> | power_state | power off<br class="gmail_msg">
> |<br class="gmail_msg">
> | properties | {u'memory_mb': u'131072', u'cpu_arch':<br class="gmail_msg">
> u'x86_64', u'local_gb': u'557', |<br class="gmail_msg">
> | | u'cpus': u'48', u'capabilities':<br class="gmail_msg">
> u'profile:compute,boot_option:local'} |<br class="gmail_msg">
> | provision_state | available<br class="gmail_msg">
> |<br class="gmail_msg">
> | provision_updated_at | 2017-03-27T13:34:51+00:00<br class="gmail_msg">
> |<br class="gmail_msg">
> | raid_config |<br class="gmail_msg">
> |<br class="gmail_msg">
> | reservation | None<br class="gmail_msg">
> |<br class="gmail_msg">
> | resource_class |<br class="gmail_msg">
> |<br class="gmail_msg">
> | target_power_state | None<br class="gmail_msg">
> |<br class="gmail_msg">
> | target_provision_state | None<br class="gmail_msg">
> |<br class="gmail_msg">
> | target_raid_config |<br class="gmail_msg">
> |<br class="gmail_msg">
> | updated_at | 2017-03-27T13:34:51+00:00<br class="gmail_msg">
> |<br class="gmail_msg">
> | uuid | ded46c41-c5a5-4aa7-a1ee-3df75e6cf976<br class="gmail_msg">
> |<br class="gmail_msg">
> +------------------------+-------------------------------------------------------------------------+<br class="gmail_msg">
><br class="gmail_msg">
> and it suites the compute flavor<br class="gmail_msg">
> [stack@edge-rhos-director ~]$ openstack flavor show compute<br class="gmail_msg">
> +----------------------------+------------------------------------------------------------------+<br class="gmail_msg">
> | Field | Value<br class="gmail_msg">
> |<br class="gmail_msg">
> +----------------------------+------------------------------------------------------------------+<br class="gmail_msg">
> | OS-FLV-DISABLED:disabled | False<br class="gmail_msg">
> |<br class="gmail_msg">
> | OS-FLV-EXT-DATA:ephemeral | 0<br class="gmail_msg">
> |<br class="gmail_msg">
> | access_project_ids | None<br class="gmail_msg">
> |<br class="gmail_msg">
> | disk | 40<br class="gmail_msg">
> |<br class="gmail_msg">
> | id | 1f44e78f-5121-4b8f-ab9d-19a64fb1d020<br class="gmail_msg">
> |<br class="gmail_msg">
> | name | compute<br class="gmail_msg">
> |<br class="gmail_msg">
> | os-flavor-access:is_public | True<br class="gmail_msg">
> |<br class="gmail_msg">
> | properties | capabilities:boot_option='local',<br class="gmail_msg">
> capabilities:profile='compute' |<br class="gmail_msg">
> | ram | 4096<br class="gmail_msg">
> |<br class="gmail_msg">
> | rxtx_factor | 1.0<br class="gmail_msg">
> |<br class="gmail_msg">
> | swap |<br class="gmail_msg">
> |<br class="gmail_msg">
> | vcpus | 1<br class="gmail_msg">
> |<br class="gmail_msg">
> +----------------------------+------------------------------------------------------------------+<br class="gmail_msg">
><br class="gmail_msg">
> Any Idea what could be the reason why it's not finding a suitable host?<br class="gmail_msg">
><br class="gmail_msg">
> Samuel<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> _______________________________________________<br class="gmail_msg">
> rdo-list mailing list<br class="gmail_msg">
> <a href="mailto:rdo-list@redhat.com" class="gmail_msg" target="_blank">rdo-list@redhat.com</a><br class="gmail_msg">
> <a href="https://www.redhat.com/mailman/listinfo/rdo-list" rel="noreferrer" class="gmail_msg" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br class="gmail_msg">
><br class="gmail_msg">
> To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com" class="gmail_msg" target="_blank">rdo-list-unsubscribe@redhat.com</a><br class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
When I have seen this, it was because the stack didn't fully reset all<br class="gmail_msg">
the nodes to available (assuming the stack was fully deleted). Can you<br class="gmail_msg">
run "ironic node-list" at the undercloud command-line, and make sure<br class="gmail_msg">
that all your nodes are set to "available"? If not, you can manually set<br class="gmail_msg">
the provisioning mode with "ironic node-set-provision-state <UUID><br class="gmail_msg">
provide" for each node. Also, make sure that the stack has been fully<br class="gmail_msg">
deleted ("heat stack-list"), although I don't think that is the issue here.<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
Dan Sneddon | Senior Principal Software Engineer<br class="gmail_msg">
<a href="mailto:dsneddon@redhat.com" class="gmail_msg" target="_blank">dsneddon@redhat.com</a> | <a href="http://redhat.com/openstack" rel="noreferrer" class="gmail_msg" target="_blank">redhat.com/openstack</a><br class="gmail_msg">
dsneddon:irc | @dxs:twitter<br class="gmail_msg">
</blockquote></div>