host update disable/enable report HTTP 400

Bug #1251589 reported by Guangya Liu (Jay Lau)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Guangya Liu (Jay Lau)

Bug Description

liugya@liugya-ubuntu:~$ nova host-update --status disable liugya-ubuntu
ERROR: Bad request (HTTP 400) (Request-ID: req-f8c083dc-a327-48dc-b705-293f03e834dd)
liugya@liugya-ubuntu:~$ nova service-list
+------------------+---------------+----------+----------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+---------------+----------+----------+-------+----------------------------+-----------------+
| nova-conductor | liugya-ubuntu | internal | enabled | up | 2013-11-15T11:06:46.000000 | None |
| nova-compute | liugya-ubuntu | nova | disabled | up | 2013-11-15T11:06:42.000000 | | << disabled already
| nova-cert | liugya-ubuntu | internal | enabled | up | 2013-11-15T11:06:38.000000 | None |
| nova-network | liugya-ubuntu | internal | enabled | up | 2013-11-15T11:06:39.000000 | None |
| nova-scheduler | liugya-ubuntu | internal | enabled | up | 2013-11-15T11:06:40.000000 | None |
| nova-consoleauth | liugya-ubuntu | internal | enabled | up | 2013-11-15T11:06:45.000000 | None |
+------------------+---------------+----------+----------+-------+----------------------------+-----------------+

Changed in nova:
assignee: nobody → Jay Lau (jay-lau-513)
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/56759

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

Reviewed: https://review.openstack.org/56759
Committed: http://github.com/openstack/nova/commit/29f2d666e9ad64fd646d4711fd32cf325e039f5b
Submitter: Jenkins
Branch: master

commit 29f2d666e9ad64fd646d4711fd32cf325e039f5b
Author: Jay Lau <email address hidden>
Date: Thu Nov 28 22:02:51 2013 +0800

    libvirt: host update disable/enable report HTTP 400

    When disable/enable host with host-update command, end user will
    get HTTP 400 error even if the host was updated(disabled/enabled)
    successfully.

    The root cause is that after the host was disabled/enabled, nova
    api need depend on host status result to check if the host was
    disabled or enabled, but libvirt driver did not return host status
    to nova api.

    Change-Id: I0688134eecb0628b680c8ed01741f00f80eec53f
    Closes-Bug: #1251589

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.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.