← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1537674] [NEW] host action should use POST instead of GET for power on , reboot etc

 

Public bug reported:

288 class Hosts(extensions.V21APIExtensionBase):
289     """Admin-only host administration."""
290
291     name = "Hosts"
292     alias = ALIAS
293     version = 1
294
295     def get_resources(self):
296         resources = [extensions.ResourceExtension(ALIAS,
297                 HostController(),
298                 member_actions={"startup": "GET", "shutdown": "GET",
299                         "reboot": "GET"})]


we use GET for thoes actions, POST will be a better choice

** Affects: nova
     Importance: Undecided
     Assignee: jichenjc (jichenjc)
         Status: New


** Tags: api

** Changed in: nova
     Assignee: (unassigned) => jichenjc (jichenjc)

** 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/1537674

Title:
  host action should use POST instead of GET for power on , reboot etc

Status in OpenStack Compute (nova):
  New

Bug description:
  288 class Hosts(extensions.V21APIExtensionBase):
  289     """Admin-only host administration."""
  290
  291     name = "Hosts"
  292     alias = ALIAS
  293     version = 1
  294
  295     def get_resources(self):
  296         resources = [extensions.ResourceExtension(ALIAS,
  297                 HostController(),
  298                 member_actions={"startup": "GET", "shutdown": "GET",
  299                         "reboot": "GET"})]

  
  we use GET for thoes actions, POST will be a better choice

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


Follow ups