← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1587780] Re: power_state of nova diagnostics is number instead of string

 

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

commit 4e750dfcc6013e980b3d3698115c6b6b8ad3c96b
Author: Eli Qiao <liyong.qiao@xxxxxxxxx>
Date:   Thu Jun 30 10:40:17 2016 +0800

    Mapping power_state from integer to string
    
    To improve user experience, mapping an integer code of power state to
    real string.
    
    Closes-Bug: #1587780
    Change-Id: I4fbeab0f31492a8aa153044f14f588656f3e332f


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1587780

Title:
  power_state of nova diagnostics is number instead of string

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  taget@taget-ThinkStation-P300:~/devstack$ nova diagnostics 87c91515-acc7-4953-b0a3-f942484e986e
  ERROR (Conflict): Cannot 'get_diagnostics' instance 87c91515-acc7-4953-b0a3-f942484e986e while it is in power_state 4 (HTTP 409) (Request-ID: req-caaf21fc-fa11-4382-9f87-c23928b46eb1)

  We need to map instance.power_state to string by
  STATE_MAP = {
      NOSTATE: 'pending',
      RUNNING: 'running',
      PAUSED: 'paused',
      SHUTDOWN: 'shutdown',
      CRASHED: 'crashed',
      SUSPENDED: 'suspended',
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1587780/+subscriptions


References