PowerVM driver spawn failed due to missing attribute supported_instances

Bug #1155498 reported by Feilong Wang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Feilong Wang
Folsom
Fix Released
Medium
Yaguang Tang

Bug Description

During test in a cross-hypervisor environment (KVM+PowerVM), I ran into an issue deploying an instance for Power host by PowerVM driver. And I have configured the property "hypervisor_type" for the PowerVM image.

Below is the error log:
2013-03-15 12:37:03.207 DEBUG nova.scheduler.filters.image_props_filter [req-02c03c76-7ab9-4f7e-b610-ec76879f94b6 d23b99a77d784eb48de60ce44cf95616 5b4c5924656c4daa96f813608fa91a09] Instance contains properties {u'hypervisor_type': u'powervm'}, but no corresponding capabilities are advertised by the compute node _instance_supported /usr/lib/python2.6/site-packages/nova/scheduler/filters/image_props_filter.py:53
2013-03-15 12:37:03.209 DEBUG nova.scheduler.filters.image_props_filter [req-02c03c76-7ab9-4f7e-b610-ec76879f94b6 d23b99a77d784eb48de60ce44cf95616 5b4c5924656c4daa96f813608fa91a09] (IVM, IVM) ram:65024 disk:410517504 io_ops:0 instances:0 vm_type:all does not support requested instance_properties host_passes /usr/lib/python2.6/site-packages/nova/scheduler/filters/image_props_filter.py:86
2013-03-15 12:37:03.212 WARNING nova.scheduler.driver [req-02c03c76-7ab9-4f7e-b610-ec76879f94b6 d23b99a77d784eb48de60ce44cf95616 5b4c5924656c4daa96f813608fa91a09] [instance: 58f4af64-6586-4740-b78d-215347a28d22] Setting instance to ERROR state.

After review the code of PowerVM driver and image_props_filter.py, I found the method _update_host_stats of PowerVM driver missing the attribute "supported_instances".

Feilong Wang (flwang)
Changed in nova:
assignee: nobody → Fei Long Wang (flwang)
Dan Smith (danms)
Changed in nova:
status: New → Triaged
Dan Smith (danms)
Changed in nova:
importance: Undecided → Medium
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/24630

Changed in nova:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/24630
Committed: http://github.com/openstack/nova/commit/ecab528830a294881569aa20a6e07c9bb65ce460
Submitter: Jenkins
Branch: master

commit ecab528830a294881569aa20a6e07c9bb65ce460
Author: Fei Long Wang <email address hidden>
Date: Mon Mar 18 12:37:30 2013 +0800

    Fixes PowerVM spawn failed as missing attr supported_instances

    During test in a cross-hypervisor environment (KVM+PowerVM), user will run
    into an issue during deploying an instance for Power host by PowerVM driver,
    though the property "hypervisor_type" for the PowerVM image have been
    configured. Since the _update_host_stats of PowerVM driver missing the
    attribute "supported_instances".

    Fixes bug: 1155498

    Change-Id: I81259d153a7b5ae35747e57c53b14e0075d28d78

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/folsom)

Fix proposed to branch: stable/folsom
Review: https://review.openstack.org/24867

Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/folsom)

Reviewed: https://review.openstack.org/24867
Committed: http://github.com/openstack/nova/commit/69ba48960aeea0173fddba42529ceb5543e4a172
Submitter: Jenkins
Branch: stable/folsom

commit 69ba48960aeea0173fddba42529ceb5543e4a172
Author: Fei Long Wang <email address hidden>
Date: Mon Mar 18 12:37:30 2013 +0800

    Fixes PowerVM spawn failed as missing attr supported_instances

    During test in a cross-hypervisor environment (KVM+PowerVM), user will run
    into an issue during deploying an instance for Power host by PowerVM driver,
    though the property "hypervisor_type" for the PowerVM image have been
    configured. Since the _update_host_stats of PowerVM driver missing the
    attribute "supported_instances".

    Fixes bug: 1155498

    Change-Id: I81259d153a7b5ae35747e57c53b14e0075d28d78
    (cherry picked from commit ecab528830a294881569aa20a6e07c9bb65ce460)

Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-rc1 → 2013.1
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.