← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1334846] [NEW] can not delete metadata key using aggregate-set-metadata

 

Public bug reported:


before i updated to latest code base ( my branch was i guess 20 days old) 
i was able to delete metadata  from the list using 
nova aggregate-set-metadata  id "key"
and add metadata by 
nova aggregate-set-metadata id "key=value"


I am still abel to add but seems like the recent changes have messed up the delete

this is what is see now:-

njain@njain3:~/projects/devstack$ nova aggregate-set-metadata 2 "s=9"
Metadata has been successfully updated for aggregate 2.
+----+------+-------------------+-------+---------------------+
| Id | Name | Availability Zone | Hosts | Metadata            |
+----+------+-------------------+-------+---------------------+
| 2  | 2    | -                 |       | 'k=9', 's=9', 't=k' |
+----+------+-------------------+-------+---------------------+
njain@njain3:~/projects/devstack$ nova aggregate-set-metadata 2 "s"
ERROR (BadRequest): metadata.value is not a string or unicode (HTTP 400) (Request-ID: req-bf6dca91-d89e-4956-997c-1248c50fda56)
njain@njain3:~/projects/devstack$ nova aggregate-set-metadata 2 s
ERROR (BadRequest): metadata.value is not a string or unicode (HTTP 400) (Request-ID: req-14b9a48d-8e96-4a54-861a-fd52ea693abe)

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: nova-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/1334846

Title:
  can not delete metadata key using aggregate-set-metadata

Status in OpenStack Compute (Nova):
  New

Bug description:
  
  before i updated to latest code base ( my branch was i guess 20 days old) 
  i was able to delete metadata  from the list using 
  nova aggregate-set-metadata  id "key"
  and add metadata by 
  nova aggregate-set-metadata id "key=value"

  
  I am still abel to add but seems like the recent changes have messed up the delete

  this is what is see now:-

  njain@njain3:~/projects/devstack$ nova aggregate-set-metadata 2 "s=9"
  Metadata has been successfully updated for aggregate 2.
  +----+------+-------------------+-------+---------------------+
  | Id | Name | Availability Zone | Hosts | Metadata            |
  +----+------+-------------------+-------+---------------------+
  | 2  | 2    | -                 |       | 'k=9', 's=9', 't=k' |
  +----+------+-------------------+-------+---------------------+
  njain@njain3:~/projects/devstack$ nova aggregate-set-metadata 2 "s"
  ERROR (BadRequest): metadata.value is not a string or unicode (HTTP 400) (Request-ID: req-bf6dca91-d89e-4956-997c-1248c50fda56)
  njain@njain3:~/projects/devstack$ nova aggregate-set-metadata 2 s
  ERROR (BadRequest): metadata.value is not a string or unicode (HTTP 400) (Request-ID: req-14b9a48d-8e96-4a54-861a-fd52ea693abe)

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


Follow ups

References