Exceeded maximum number of retries. Exhausted all hosts available for retrying

Bug #1952465 reported by jay
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Expired
Undecided
Unassigned

Bug Description

after installed openstack, I used the following command to create an instance, but it's failed.
# openstack network list
# openstack security group list
# openstack server create --flavor m1.nano --image cirros-0.5.1-x86_64-disk --nic net-id=xxx --security-group xxx instance_name

It shows the following errors:
```
Traceback (most recent call last): File "/opt/stack/nova/nova/conductor/manager.py", line 669, in build_instances raise exception.MaxRetriesExceeded(reason=msg) nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 122d7907-a8c9-49ec-b55c-066e18eb20a4.
```

Revision history for this message
jay (jay763190097) wrote :

It hint me an error on the dashboard:
```
Invalid service catalog: identity Details
Invalid service catalog: identity
```

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

You would have to check for errors in the logs for the various Nova services, e.g. "journalctl -u devstack@n-cpu"

Changed in devstack:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
Revision history for this message
jay (jay763190097) wrote :
Download full text (3.9 KiB)

the log seems ok
```
Jul 03 11:25:21 jay-server nova-compute[1434]: DEBUG oslo_concurrency.lockutils [None req-696b8f71-d458-4297-ac38-520411b0f1e7 None None] Lock "compute_resources" acquired by "nova.compute.resource_tracker.ResourceTracker._update_available_resource" :: waited 0.000s {{(pid=1434) inner /usr/local/lib/python3.6/site-packages/oslo_concurrency/lockutils.py:390}}
Jul 03 11:25:21 jay-server nova-compute[1434]: DEBUG nova.compute.resource_tracker [None req-696b8f71-d458-4297-ac38-520411b0f1e7 None None] Instance 9278909f-454c-4f98-a29a-2b2ff0c55473 actively managed on this compute host and has allocations in placement: {'resources': {'DISK_GB': 1, 'MEMORY_MB': 128, 'VCPU': 1}}. {{(pid=1434) _remove_deleted_instances_allocations /opt/stack/nova/nova/compute/resource_tracker.py:1532}}
Jul 03 11:25:21 jay-server nova-compute[1434]: DEBUG nova.compute.resource_tracker [None req-696b8f71-d458-4297-ac38-520411b0f1e7 None None] Instance 359c78a9-4411-456a-985d-5ad86c447505 actively managed on this compute host and has allocations in placement: {'resources': {'MEMORY_MB': 192, 'VCPU': 1}}. {{(pid=1434) _remove_deleted_instances_allocations /opt/stack/nova/nova/compute/resource_tracker.py:1532}}
Jul 03 11:25:21 jay-server nova-compute[1434]: DEBUG nova.compute.resource_tracker [None req-696b8f71-d458-4297-ac38-520411b0f1e7 None None] Instance ea0df663-7cf0-4885-8c3c-b64ac3a563df actively managed on this compute host and has allocations in placement: {'resources': {'MEMORY_MB': 128, 'VCPU': 1}}. {{(pid=1434) _remove_deleted_instances_allocations /opt/stack/nova/nova/compute/resource_tracker.py:1532}}
Jul 03 11:25:21 jay-server nova-compute[1434]: DEBUG nova.compute.resource_tracker [None req-696b8f71-d458-4297-ac38-520411b0f1e7 None None] Total usable vcpus: 32, total allocated vcpus: 3 {{(pid=1434) _report_final_resource_view /opt/stack/nova/nova/compute/resource_tracker.py:1042}}
Jul 03 11:25:21 jay-server nova-compute[1434]: DEBUG nova.compute.resource_tracker [None req-696b8f71-d458-4297-ac38-520411b0f1e7 None None] Final resource view: name=jay-server phys_ram=64067MB used_ram=960MB phys_disk=69GB used_disk=1GB total_vcpus=32 used_vcpus=3 pci_stats=[] {{(pid=1434) _report_final_resource_view /opt/stack/nova/nova/compute/resource_tracker.py:1064}}
Jul 03 11:25:21 jay-server nova-compute[1434]: DEBUG nova.compute.provider_tree [None req-696b8f71-d458-4297-ac38-520411b0f1e7 None None] Inventory has not changed in ProviderTree for provider: cc42b5e9-fb8a-4cf5-b294-98b1447d72f7 {{(pid=1434) update_inventory /opt/stack/nova/nova/compute/provider_tree.py:181}}
Jul 03 11:25:21 jay-server nova-compute[1434]: DEBUG nova.scheduler.client.report [None req-696b8f71-d458-4297-ac38-520411b0f1e7 None None] Inventory has not changed for provider cc42b5e9-fb8a-4cf5-b294-98b1447d72f7 based on inventory data: {'VCPU': {'total': 32, 'reserved': 0, 'min_unit': 1, 'max_unit': 32, 'step_size': 1, 'allocation_ratio': 16.0}, 'MEMORY_MB': {'total': 64067, 'reserved': 512, 'min_unit': 1, 'max_unit': 64067, 'step_size': 1, 'allocation_ratio': 1.5}, 'DISK_GB': {'total': 69, 'reserved': 0, 'min_unit': 1, 'max_unit': 69, 'step_size': 1, 'allocation_ratio': 1.0}} {{...

Read more...

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

This looks o.k., is there some error later? Please also share your local.conf file.

Changed in devstack:
status: Expired → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
Revision history for this message
yosef (yosex) wrote :

In my case I was using another projects security group, which resulted in this error

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.