OpenStack os_image is_public flag does not make image public in Glance V1 API

Bug #1632482 reported by Frank Kloeker
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-shade (Ubuntu)
Triaged
High
Unassigned

Bug Description

Ubuntu 16.04 (Xenial)
python-shade 1.5.1-0ubuntu1
ansible 2.1.2.0-1ppa~xenia

I tried to upload an image to Glance in OpenStack Icehouse with Ansible:

...
  - name: Upload image to Glance
    os_image:
      name: "{{ distro }}-server-amd64-{{ date }}"
      state: present
      is_public: True
      container_format: bare
      disk_format: qcow2
      filename: "{{ distro }}-server-cloudimg-amd64-disk1.img"

The image is there but property 'is_public' is false. Looking after https://anonscm.debian.org/cgit/python-modules/packages/python-shade.git/tree/shade/openstackcloud.py?h=upstream#n1964
the parameter get lost. Something like this would work:

                if 'is_public' in kwargs:
                    image_kwargs['is_public'] = kwargs.pop('is_public')

Tags: patch
Revision history for this message
Frank Kloeker (f-kloeker) wrote :

attached a patch

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "api_v1.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in python-shade (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Thanks Frank. I'm a shade developer. I'll get this fixed upstream and a new release should be out within a few weeks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.