Glance Artifacts Repository is a separate service now

Bug #1555697 reported by Alexander Tivelkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Denis Egorenko
puppet-glance
Fix Released
Low
Denis Egorenko

Bug Description

Glance V3 experimental API has been removed in Mitaka in favour of standalone Glance Artifacts Repository (GLARE) API. The latter is implemented as a standalone process with the configuration independent of the main glance-api.

This separation was done according to spec [1] by the patch [2].
DevStack scripts were modified to properly configure and run the newly created service [3]

Current Fuel is not aware about these changes thus Openstack deployed with it won't have the Artifact Repository API available neither as part of the main Glance API (since v3 is removed from there) nor as a standalone service (since Fuel does not deploy or configure it).

Glance Artifact Repository (Glare) API is a critical feature for Murano: without having it present in the environment Murano won't work, since Glare is assumed to be the default storage for Murano.

Thus the following should be done:

1) Fuel should deploy glare service (it should be be part of the same package as the rest of glance)
2) Fuel should modify cluster's HA configuration to address Glare service presence
3) Fuel should register Glare endpoint in the keystone service catalog (name: glare, type: artifact - see [3] for a devstack example)
4) Fuel should modify glare's configuration files to reflect cluster's configuration (including the glance_store section which depends on the storage config: it should contain the same storage configuration as the one being used for image storage in main glance-api configuration)

[1] https://specs.openstack.org/openstack/glance-specs/specs/mitaka/implemented/deprecate-v3-api.html
[2] https://review.openstack.org/#/c/255274/
[3] https://review.openstack.org/#/c/257888/

Changed in fuel:
status: New → Confirmed
assignee: MOS Puppet Team (mos-puppet) → Denis Egorenko (degorenko)
milestone: none → 9.0
Changed in puppet-glance:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Denis Egorenko (degorenko)
Revision history for this message
Emilien Macchi (emilienm) wrote :

The feature is experimental in Glance, it's a low priority.

Changed in puppet-glance:
importance: High → Low
Dina Belova (dbelova)
tags: added: area-glance
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/293524

Changed in puppet-glance:
status: Confirmed → In Progress
Revision history for this message
Bug Checker Bot (esikachev-l) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

version

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Changed in puppet-glance:
assignee: Denis Egorenko (degorenko) → Emilien Macchi (emilienm)
assignee: Emilien Macchi (emilienm) → Denis Egorenko (degorenko)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-glance (master)

Reviewed: https://review.openstack.org/293524
Committed: https://git.openstack.org/cgit/openstack/puppet-glance/commit/?id=da8a3aa022b5f44783589b3b1762dccba2610d87
Submitter: Jenkins
Branch: master

commit da8a3aa022b5f44783589b3b1762dccba2610d87
Author: Denis Egorenko <email address hidden>
Date: Wed Mar 16 18:46:32 2016 +0300

    Add Glance Glare API service

    In Mitaka Glance v3 was moved to stand alone service [1] - now
    it's called Glance Artifacts Repository (Glare).

    This patch adds appropriate service managing, package installation,
    configuration and related spec tests.

    [1] I5b7bd4cdcc5f2a40fc4a5f74bcc422fd700c4fb0

    Change-Id: I3371d1d57486e79ccfae565417f2195d3ae66bc9
    Closes-bug: #1555697

Changed in puppet-glance:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/296640

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/296645

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to puppet-glance (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/296656

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to puppet-glance (master)

Reviewed: https://review.openstack.org/296656
Committed: https://git.openstack.org/cgit/openstack/puppet-glance/commit/?id=e0b34f450d197ea8fc9616ebe9664c3223228bfb
Submitter: Jenkins
Branch: master

commit e0b34f450d197ea8fc9616ebe9664c3223228bfb
Author: Denis Egorenko <email address hidden>
Date: Wed Mar 23 21:14:28 2016 +0300

    Configure endpoint for Glance Glare

    Change I3371d1d57486e79ccfae565417f2195d3ae66bc9 is introduced a new
    glance service - Glare and it has own endpoint. This patch adds it.

    Change-Id: Ibea50c249e6f0f33dbcfae4bf7cf3569f27c21e5
    Related-bug: #1555697

Changed in fuel:
assignee: Denis Egorenko (degorenko) → Alex Schultz (alex-schultz)
Changed in fuel:
assignee: Alex Schultz (alex-schultz) → Denis Egorenko (degorenko)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to puppet-glance (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/297795

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/296645
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=0cbdf699697b93bd798761a30f92999a746223d2
Submitter: Jenkins
Branch: master

commit 0cbdf699697b93bd798761a30f92999a746223d2
Author: Denis Egorenko <email address hidden>
Date: Wed Mar 23 20:59:45 2016 +0300

    Add options for Glance Glare service

    This patch adds a new network role for glance-glare service and
    also generates glance_glare hash with user_password, because
    glare service uses separate endpoint and has his own keystone user.

    Change-Id: Ic026d3ea9583843e8f3f05fbb8c9e74cdafb3e1c
    Related-bug: #1555697

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to puppet-glance (master)

Reviewed: https://review.openstack.org/297795
Committed: https://git.openstack.org/cgit/openstack/puppet-glance/commit/?id=ea0c4d5b515ae0d4810afefd63deb234ed0e762a
Submitter: Jenkins
Branch: master

commit ea0c4d5b515ae0d4810afefd63deb234ed0e762a
Author: Denis Egorenko <email address hidden>
Date: Fri Mar 25 21:03:49 2016 +0300

    Add posibility to configure Glance backend settings for Glare service

    This patch adds posibility to configure backend settings for Glare
    service.

    Since Glare service is experimental feature, it can be usually disabled
    for deployment. Hence was added a optional parameter 'glare_enabled' for
    each backend manifest. So, if Glare is enabled glance glare config
    will (and should) have same backend options as main glance api config.

    Change-Id: I112a332f490d2e57eef5fa7d41d465c0eb89da04
    Related-bug: #1555697

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to puppet-glance (stable/mitaka)

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/298586

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to puppet-glance (stable/mitaka)

Reviewed: https://review.openstack.org/298586
Committed: https://git.openstack.org/cgit/openstack/puppet-glance/commit/?id=71f426fcd8840e4d9cc82f1e62ad8dec72dccf0b
Submitter: Jenkins
Branch: stable/mitaka

commit 71f426fcd8840e4d9cc82f1e62ad8dec72dccf0b
Author: Denis Egorenko <email address hidden>
Date: Fri Mar 25 21:03:49 2016 +0300

    Add posibility to configure Glance backend settings for Glare service

    This patch adds posibility to configure backend settings for Glare
    service.

    Since Glare service is experimental feature, it can be usually disabled
    for deployment. Hence was added a optional parameter 'glare_enabled' for
    each backend manifest. So, if Glare is enabled glance glare config
    will (and should) have same backend options as main glance api config.

    Change-Id: I112a332f490d2e57eef5fa7d41d465c0eb89da04
    Related-bug: #1555697
    (cherry picked from commit ea0c4d5b515ae0d4810afefd63deb234ed0e762a)

tags: added: in-stable-mitaka
Changed in fuel:
assignee: Denis Egorenko (degorenko) → Serg Melikyan (smelikyan)
Changed in fuel:
assignee: Serg Melikyan (smelikyan) → Denis Egorenko (degorenko)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/296640
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=781814fe6d24433184261018d1966de47a2e40a8
Submitter: Jenkins
Branch: master

commit 781814fe6d24433184261018d1966de47a2e40a8
Author: Denis Egorenko <email address hidden>
Date: Wed Mar 23 20:49:30 2016 +0300

    Implement Glance Glare service

    Glance V3 experimental API has been removed in Mitaka in
    favour of standalone Glance Artifacts Repository (GLARE) API.

    This patch adds a new service, haproxy settings and tests.

    Change-Id: I1df8b9aa8698619e726ad583a1a5ad6d5d671e07
    Closes-bug: #1555697

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/303341

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/mitaka)

Reviewed: https://review.openstack.org/303341
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=5b1192ef27ab3110f462b818e6885e9f4543cba2
Submitter: Jenkins
Branch: stable/mitaka

commit 5b1192ef27ab3110f462b818e6885e9f4543cba2
Author: Denis Egorenko <email address hidden>
Date: Wed Mar 23 20:49:30 2016 +0300

    Implement Glance Glare service

    Glance V3 experimental API has been removed in Mitaka in
    favour of standalone Glance Artifacts Repository (GLARE) API.

    This patch adds a new service, haproxy settings and tests.

    Change-Id: I1df8b9aa8698619e726ad583a1a5ad6d5d671e07
    Closes-bug: #1555697
    (cherry picked from commit 781814fe6d24433184261018d1966de47a2e40a8)

Revision history for this message
Alexey Galkin (agalkin) wrote :

Verified as fixed in 9.0-220.
Results:
1) root@node-9:~# service glance-glare status
glance-glare start/running, process 6859
2) root@node-9:~# haproxy-status.sh | grep glare
glance-glare FRONTEND Status: OPEN Sessions: 0 Rate: 0
glance-glare node-12 Status: UP/L7OK Sessions: 0 Rate: 0
glance-glare node-9 Status: UP/L7OK Sessions: 0 Rate: 0
glance-glare BACKEND Status: UP Sessions: 0 Rate: 0
3) root@node-9:~# openstack endpoint list | grep glare
f0024f2ccf7247dfb6a359553193a2a3 RegionOne glare artifact
4) root@node-9:~# file /etc/glance/glance-glare.conf
/etc/glance/glance-glare.conf: ASCII text, with very long lines
and glance_store section has valid configuration for work with swift.
Note: Fuel UI was missing 'glance-glare.log', reported bug: https://bugs.launchpad.net/fuel/+bug/1573162

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/puppet-glance 9.0.0

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

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.