New instance on compute fails

Bug #1744455 reported by Naveen Kumar
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

I am installing openstack Pike release. While trying to create the instance on compute node, I see the below errors in nova-schedular logs:

2018-01-20 16:17:31.864 1011 INFO nova.scheduler.host_manager [req-f0b60f13-637f-4856-a321-76914742652c - - - - -] Successfully synced instances from host 'compute'.
2018-01-20 16:18:28.287 1011 WARNING nova.scheduler.client.report [req-07c5ee94-dd71-4328-8f63-f24550f16e37 c8e5bcf05f67431ba5c89518238ef4d7 6a17e79098ab478fa728b4ace304d591 - default default] Unable to submit allocation for instance c9120f12-02b7-4515-ba9f-37faca050cc3 (409 <html>
 <head>
  <title>409 Conflict</title>
 </head>
 <body>
  <h1>409 Conflict</h1>
  There was a conflict when trying to complete your request.<br /><br />
Unable to allocate inventory: Unable to create allocation for 'VCPU' on resource provider '5841aceb-452b-44b2-b96d-653c394a543c'. The requested amount would violate inventory constraints.

 </body>
</html>)
2018-01-20 16:18:28.919 1011 WARNING nova.scheduler.client.report [req-07c5ee94-dd71-4328-8f63-f24550f16e37 c8e5bcf05f67431ba5c89518238ef4d7 6a17e79098ab478fa728b4ace304d591 - default default] Unable to submit allocation for instance c9120f12-02b7-4515-ba9f-37faca050cc3 (409 <html>
 <head>
  <title>409 Conflict</title>
 </head>
 <body>
  <h1>409 Conflict</h1>
  There was a conflict when trying to complete your request.<br /><br />
Unable to allocate inventory: Unable to create allocation for 'VCPU' on resource provider '5841aceb-452b-44b2-b96d-653c394a543c'. The requested amount would violate inventory constraints.

 </body>
</html>)

While Checking the resource available in nova registered compute. I don't see the problem.

MariaDB [nova]> select id,vcpus,vcpus_used,hypervisor_type,host,uuid,memory_mb,memory_mb_used from compute_nodes;
+----+-------+------------+-----------------+---------+--------------------------------------+-----------+----------------+
| id | vcpus | vcpus_used | hypervisor_type | host | uuid | memory_mb | memory_mb_used |
+----+-------+------------+-----------------+---------+--------------------------------------+-----------+----------------+
| 1 | 1 | 0 | QEMU | compute | 5841aceb-452b-44b2-b96d-653c394a543c | 3723 | 696 |
+----+-------+------------+-----------------+---------+--------------------------------------+-----------+----------------+
1 row in set (0.00 sec)

MariaDB [nova]>

Revision history for this message
李学海 (lixuehai) wrote :

try log in database ,use nova_api ,DELETE from resource_providers where uuid='5841aceb-452b-44b2-b96d-653c394a543c'!

Revision history for this message
David Hill (david-hill-ubisoft) wrote :

There're constraint on one of the columns... this will fail.

affects: nova-solver-scheduler → nova
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.