glance_image provider: orchestration issue when running keystone wsgi

Bug #1488277 reported by Emilien Macchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-glance
Fix Released
Undecided
Emilien Macchi

Bug Description

If keystone is deployed by WSGI and not eventlet, second puppet run is not idempotent.

First run:
2015-08-24 23:53:43.229 | Notice: Puppet::Provider::Openstack: image service is unavailable. Will retry for up to 9 seconds.
2015-08-24 23:53:54.455 | Error: Could not prefetch glance_image provider 'openstack': undefined method `collect' for nil:NilClass
2015-08-24 23:53:55.322 | Notice: Puppet::Type::Glance_image::ProviderOpenstack: image service is unavailable. Will retry for up to 9 seconds.
2015-08-24 23:54:06.708 | Notice: /Stage[main]/Main/Glance_image[test_image]/ensure: created
2015-08-24 23:54:07.545 | Notice: Puppet::Type::Glance_image::ProviderOpenstack: image service is unavailable. Will retry for up to 9 seconds

Second run:
2015-08-24 23:55:07.454 | Info: Applying configuration version '1440460497'
2015-08-24 23:55:14.175 | Notice: /Stage[main]/Main/Glance_image[test_image]/ensure: created
2015-08-24 23:55:34.027 | Notice: Finished catalog run in 27.32 seconds

Revision history for this message
Emilien Macchi (emilienm) wrote :
Revision history for this message
Emilien Macchi (emilienm) wrote :

After some testing, I confirm the bug only occurs if keystone is run in WSGI.

See also https://review.openstack.org/#/c/216468 for tests.

Changed in puppet-glance:
assignee: nobody → Emilien Macchi (emilienm)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-glance (master)

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

commit afa0ed8122a95aba44c6d23e3a7307c579f36e98
Author: Emilien Macchi <email address hidden>
Date: Mon Aug 24 21:55:37 2015 -0400

    Make sure Glance_image is executed after Keystone_endpoint

    When running Keystone in WSGI, Glance_image is not run in the right
    moment.
    This patch aims to make sure Glance_image is run after creating Glance
    endpoint Keystone resource by using the Puppet chain arrow.
    Keystone_endpoint is actually the latest resource created by Keystone
    providers to make Glance working.
    If Glance_image resource is in the catalog, it will be executed when
    keystone & glance are actually ready and not before.

    Closes-Bug: #1488277
    Change-Id: I97d1a77c5f4a67914738514d773ecbd4bfb2196c

Changed in puppet-glance:
status: In Progress → Fix Committed
Matt Fischer (mfisch)
Changed in puppet-glance:
status: Fix Committed → Fix Released
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.