← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1257661] [NEW] should handle boolean string parameters through migrate_live API

 

Public bug reported:

If specifying false string ("False") as "block_migration" parameter of
migrate_live API like the following, nova considers it as True.

$ curl -i 'http://10.21.42.81:8774/v2/[..]/servers/[..]/action' -X POST
[..] -d '{"os-migrateLive": {"disk_over_commit": "False",
"block_migration": "False", "host": "localhost"}}'

On the other hand, nova can consider false string as false in the case of "on_shared_storage" parameter of evacuate API.
That behavior seems API inconsistency.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1257661

Title:
  should handle boolean string parameters through migrate_live API

Status in OpenStack Compute (Nova):
  New

Bug description:
  If specifying false string ("False") as "block_migration" parameter of
  migrate_live API like the following, nova considers it as True.

  $ curl -i 'http://10.21.42.81:8774/v2/[..]/servers/[..]/action' -X
  POST [..] -d '{"os-migrateLive": {"disk_over_commit": "False",
  "block_migration": "False", "host": "localhost"}}'

  On the other hand, nova can consider false string as false in the case of "on_shared_storage" parameter of evacuate API.
  That behavior seems API inconsistency.

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


Follow ups

References