Physical reservations don't work when service name != hypervisor_name

Bug #1301294 reported by Sylvain Bauza
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Blazar
Fix Released
Medium
Pablo Andres Fuente

Bug Description

Due to FQDN troubles with Havana, sometimes service_name for compute doesn't match with hypervisor_hostname.
When an host is dedicated to Climate thanks to host-create, Nova puts the host in the freepool agg and take use of service_name.

But, when the lease is starting, when trying to move the host from the freepool to the user agg, it is not found as possibly the names are different.

Ideally, we should store service_name as well, and search from the service_name here (instead of hypervisor_hostname) :

https://github.com/stackforge/climate/blob/1248fca327feba96b67cc319ed5fd75ff8c22fbf/climate/plugins/oshosts/host_plugin.py#L176

Changed in climate:
assignee: nobody → Pablo Andres Fuente (pablo-a-fuente)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to climate (master)

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

Changed in climate:
status: New → In Progress
Dina Belova (dbelova)
Changed in climate:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to climate (master)

Reviewed: https://review.openstack.org/85477
Committed: https://git.openstack.org/cgit/stackforge/climate/commit/?id=7f9b1516dcf9e55c27f5fee6b44aad695479d696
Submitter: Jenkins
Branch: master

commit 7f9b1516dcf9e55c27f5fee6b44aad695479d696
Author: Pablo Andres Fuente <email address hidden>
Date: Fri Apr 4 14:50:02 2014 -0300

    PR Plugin now uses service_name to identify hosts

    Now the Physical Resource plugin uses the service name instead of
    hypervisor host name. This is because in Havana (and could be
    a chance that happens in Icehouse), the host name of the compute node
    is not the same as the service name.

    Change-Id: Id958f57539d2e3bcbc93698cb6151dcedfcb549f
    Closes-Bug: #1301294

Changed in climate:
status: In Progress → Fix Committed
Changed in blazar:
milestone: none → 0.1.1
Changed in blazar:
status: Fix Committed → Fix Released
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.