← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1812550] Re: Image creation fails with "u'string' Failed validating u'type' in schema[u'additionalProperties']: {u'type': u'string'} On instance[u'os_hidden']: False"

 

Hi Dilip,

I doubt this issue is in openstack client and not in glance. I am sure
that openstack client is not upto date with the latest features/support
added in glance client.

In Rocky we have added a support to hide the image, at the time of
creation it will be false. Openstack client is not up-to-date with this
support and that's why it is failing.

Using glance image-create command I am able to create this image without
any issue.

** Changed in: glance
       Status: New => Invalid

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

Title:
  Image creation fails with "u'string'  Failed validating u'type' in
  schema[u'additionalProperties']:     {u'type': u'string'}  On
  instance[u'os_hidden']:     False"

Status in Glance:
  Invalid

Bug description:
  Hi all,

  I am running on OpenStack Rocky(17.0.0). Image creation fails with the
  following error

  root@ctrl1:~# openstack image create \
  >                       --disk-format=qcow2 \
  >                       --container-format=bare \
  >                       --file=Fedora-Atomic-27-20180212.2.x86_64.qcow2\
  >                       --property os_distro='fedora-atomic' \
  >                       fedora-atomic-latest
  rating version 2 is not in supported versions: 1
  False is not of type u'string'

  Failed validating u'type' in schema[u'additionalProperties']:
      {u'type': u'string'}

  On instance[u'os_hidden']:
      False

  
  How can we solve this type conversion error ?

  This seems to affect nova also
  https://bugs.launchpad.net/nova/+bug/1806239

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


References