← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1640442] Re: glance image-tag-update, not updating a tag whose length is more than 255

 

** Changed in: glance
       Status: Opinion => Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1640442

Title:
  glance image-tag-update, not updating a tag whose length is more than
  255

Status in Glance:
  Confirmed

Bug description:
  The command "glance image-tag-update <IMAGE_ID> <TAG_VALUE>" will
  update the tag to the give <IMAGE_ID>. If the length of the
  <TAG_VALUE> is more than 255 , it won't update the tag and throws the
  below error:

  "400 Bad Request: Provided object does not match schema 'image':
  u'123niteshgjkdhgjfdghfdjghfdjkghjfdghsdjfghjsdfghfdjghfdjghfdjghsdfgjkshdkjsfhdgljksfdghfsdkjghfdsjkdkghdsfjghdfjkhgjkdfghjkdfghjsdfkghfdjkghdfjkghsdfkjghsdfgkljsfhdgsjkdfghfsdjkghsddjskfndjighfnidughndfjgkhfndjkbhfdnbujfhdnbuidfsdsafsfsdfsdfdsfsdfdsdfdfffsdfsdfdsfsdf'
  is too long: Failed validating 'maxLength' in
  schema['properties']['tags']['items']:: {'maxLength': 255, 'type':
  'string'}: On instance['tags'][0]::
  u'123niteshgjkdhgjfdghfdjghfdjkghjfdghsdjfghjsdfghfdjghfdjghfdjghsdfgjkshdkjsfhdgljksfdghfsdkjghfdsjkdkghdsfjghdfjkhgjkdfghjkdfghjsdfkghfdjkghdfjkghsdfkjghsdfgkljsfhdgsjkdfghfsdjkghsddjskfndjighfnidughndfjgkhfndjkbhfdnbujfhdnbuidfsdsafsfsdfsdfdsfsdfdsdfdfffsdfsdfdsfsdf'
  (HTTP 400)"

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


References