Need to be able to define image_member_quota on glance-api.conf

Bug #1724879 reported by David Manchado
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Carlos Camacho

Bug Description

Description
===========
There is no way to change the value for image_member_quota on /etc/glance/glance-api.conf as long as it is not defined in THT or puppet-modules

Steps to reproduce
==================
None

Expected result
===============
Be able to define a value on custom templates file to modify the value for the image_member_quota.
We need to be able to share an image to a large amount of projects and we are hitting the 128 default value.

Actual result
=============
There is no way to define a value for overriding the default value

Environment
===========
Openstack Newton
rdo-trunk-newton-tested (https://trunk.rdoproject.org/centos7-newton/current-passed-ci/ )

Tripleo & glance related RPMs:
python-glance-store-0.18.1-0.20170213192917.de0b61b.el7.centos.noarch
python2-glanceclient-2.5.0-1.el7.noarch
openstack-glance-13.0.1-0.20170217022742.6d2a086.el7.centos.noarch
puppet-tripleo-5.6.3-0.20170907004555.72fb76c.el7.centos.noarch
python-glance-13.0.1-0.20170217022742.6d2a086.el7.centos.noarch
puppet-glance-9.6.0-1.el7.noarch

Logs & Configs
===========

CLI command
$ openstack image add project $imageID $project
413 Request Entity Too Large
Image member limit exceeded for image $imageID: The limit has been exceeded on the number of allowed image members for this image. Attempted: 129, Maximum: 128:
    (HTTP 413)

LOG entry
/var/log/glance/api.log:2017-10-19 15:24:51.525 326084 WARNING glance.api.v2.image_members [req-afbf9058-2109-4d78-aa7e-ed20831687a2 1ded2d1b92794bf5b362d76fa2fcee69 8dbc460fe5fd4fcab0096c2c0aad3ece - default default] Image member limit exceeded for image 2cbc31f8-0d5d-4e67-819f-1c870804b667: The limit has been exceeded on the number of allowed image members for this image. Attempted: 129, Maximum: 128:

Revision history for this message
Carlos Camacho (ccamacho) wrote :

I'm testing these 2 patches.

Ill add the release notes and unit tests.

https://review.openstack.org/#/c/513405/
https://review.openstack.org/#/c/513403/

tags: added: newton-backport-potential ocata-backport-potential pike-backport-potential
Changed in tripleo:
status: New → Triaged
Revision history for this message
Carlos Camacho (ccamacho) wrote :

@David Manchado can you give us an example about the current use case failing with this bug?

Revision history for this message
David Manchado (dmanchad) wrote :

Due to internal policy we need to share a private image to a large amount of projects so we cannot make it public.
Not being able to raise that value means that in our particular cases roughly half of the developers cannot consume the images they should use for their daily job.

Changed in tripleo:
importance: Undecided → High
milestone: none → queens-2
Changed in tripleo:
assignee: nobody → Carlos Camacho (ccamacho)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Carlos Camacho (ccamacho) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/513405
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=b9500bcb331ced7e90ee50dede74c85ecf9c71b8
Submitter: Zuul
Branch: master

commit b9500bcb331ced7e90ee50dede74c85ecf9c71b8
Author: Carlos Camacho <email address hidden>
Date: Thu Oct 19 16:38:47 2017 +0200

    Allow the configuration of image_member_quota from THT

    Allow the configuration of image_member_quota
    in Glance API. This error blocks the ability
    of sharing images if the default value (128)
    is reached.

    Closes-bug: 1724879
    Depends-on: Idc72c85943baf3d720500d2c30a813663f2927da
    Change-Id: I6a3d4d9666378bbc5610d96bcedc81cf4c5d7de7

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/519309

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-glance 12.1.0

This issue was fixed in the openstack/puppet-glance 12.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/519309
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=e59070beb0bc32ae8105bbe25733071a80203b82
Submitter: Zuul
Branch: stable/pike

commit e59070beb0bc32ae8105bbe25733071a80203b82
Author: Carlos Camacho <email address hidden>
Date: Thu Oct 19 16:38:47 2017 +0200

    Allow the configuration of image_member_quota from THT

    Allow the configuration of image_member_quota
    in Glance API. This error blocks the ability
    of sharing images if the default value (128)
    is reached.

    Closes-bug: 1724879
    Depends-on: Idc72c85943baf3d720500d2c30a813663f2927da
    Change-Id: I6a3d4d9666378bbc5610d96bcedc81cf4c5d7de7
    (cherry picked from commit b9500bcb331ced7e90ee50dede74c85ecf9c71b8)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.5

This issue was fixed in the openstack/tripleo-heat-templates 7.0.5 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-glance 11.4.0

This issue was fixed in the openstack/puppet-glance 11.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0b2 development milestone.

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.