Add Allocations record failed in the startup of compute node

Bug #1621437 reported by Alex Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Alex Xu

Bug Description

When startup the compute node, the allocation record failed to add, the message as below:

2016-09-08 19:51:43.615 WARNING nova.scheduler.client.report [req-78558a2d-3d4c-4357-bbc2-d53281e1300e None None] Unable to submit allocation for instance 31bdb2e4-fb77-41b0-afb9-0cfe4292234d (400 400 Bad Requet

The server could not comply with the request since it is either malformed or otherwise incorrect.

 Allocation for resource provider 'e1c72350-56dd-468a-a035-44b224ff2d05' that does not exist. )

This due to we create ResourceProvider and Inventory in the end of available resource update.

Tags: api placement
Alex Xu (xuhj)
Changed in nova:
assignee: nobody → Alex Xu (xuhj)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/367307

Changed in nova:
status: New → In Progress
tags: added: api placement
Changed in nova:
importance: Undecided → Medium
Revision history for this message
Matt Riedemann (mriedem) wrote :

I don't see this happening in our CI runs:

http://goo.gl/QShov3

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/367307
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b6edbce9b3b092581eeda6be15059a1ba2bfcfdf
Submitter: Jenkins
Branch: master

commit b6edbce9b3b092581eeda6be15059a1ba2bfcfdf
Author: He Jie Xu <email address hidden>
Date: Thu Sep 8 19:46:24 2016 +0800

    Ensure ResourceProvider/Inventory created before add Allocations record

    In the startup of compute node, the first available resource update
    will fail to add Allocations record. This is due to ResourceProvider
    will be created at the end of available resource update.

    This patch ensure the ResourceProvider and Inventory created in the
    beginning of available resource update.

    Closes-Bug: #1621437
    Change-Id: I91fa7b8354a7613848225429ac9d38c6305b03c6

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 14.0.0.0rc1

This issue was fixed in the openstack/nova 14.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/529236

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https://review.opendev.org/529236
Reason: This was resolved in https://review.opendev.org/#/c/520024/

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.