Public bug reported:

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',
}

** Affects: nova
     Importance: Undecided
     Assignee: Eli Qiao (taget-9)
         Status: New


** Tags: api

** Changed in: nova
     Assignee: (unassigned) => Eli Qiao (taget-9)

** Tags added: api

-- 
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):
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to