Public bug reported:

- [x] This doc is inaccurate in this way: ______

https://developer.openstack.org/api-ref/image/v2/index.html#create-an-
image

Where it says:

"Additionally, you may include additional properties specified as
key:value pairs, where the value must be a string data type. Keys and
values are limited to 255 chars in length. Available key names may be
limited by the cloud’s property protection configuration."

The 255 char length restriction is only for keys, not values:

https://github.com/openstack/glance/blob/265659e8c34865331568b069fdb27ea272df4eaa/glance/db/sqlalchemy/models.py#L158

-----------------------------------
Release: 16.0.0.0rc2.dev10 on 'Sat Feb 10 21:15:25 2018, commit 262e61a'
SHA: 
Source: 
https://git.openstack.org/cgit/openstack/glance/tree/api-ref/source/v2/index.rst
URL: https://developer.openstack.org/api-ref/image/v2/index.html

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: api documentation

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

Title:
  Image Service API v2 (CURRENT) in Image Service API Reference

Status in Glance:
  New

Bug description:
  - [x] This doc is inaccurate in this way: ______

  https://developer.openstack.org/api-ref/image/v2/index.html#create-an-
  image

  Where it says:

  "Additionally, you may include additional properties specified as
  key:value pairs, where the value must be a string data type. Keys and
  values are limited to 255 chars in length. Available key names may be
  limited by the cloud’s property protection configuration."

  The 255 char length restriction is only for keys, not values:

  
https://github.com/openstack/glance/blob/265659e8c34865331568b069fdb27ea272df4eaa/glance/db/sqlalchemy/models.py#L158

  -----------------------------------
  Release: 16.0.0.0rc2.dev10 on 'Sat Feb 10 21:15:25 2018, commit 262e61a'
  SHA: 
  Source: 
https://git.openstack.org/cgit/openstack/glance/tree/api-ref/source/v2/index.rst
  URL: https://developer.openstack.org/api-ref/image/v2/index.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1748900/+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