puppet-glance: No such file or directory - /etc/glance/glance-api.conf

Bug #1493442 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-glance
Fix Released
High
Yanis Guenane
tripleo
Fix Released
Critical
Unassigned

Bug Description

Seeing the following provisioning errors with the latest puppet-glance on Centos:

Notice: Compiled catalog for instack in environment production in 1.26 seconds
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
   (at /usr/share/ruby/vendor_ruby/puppet/type.rb:816:in `set_default')
Error: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
Error: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
Wrapped exception:
No such file or directory - /etc/glance/glance-api.conf
Error: /Stage[main]/Glance::Backend::File/Glance_api_config[glance_store/default_store]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
Error: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
Error: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
Wrapped exception:
No such file or directory - /etc/glance/glance-api.conf
Error: /Stage[main]/Glance::Backend::File/Glance_api_config[glance_store/filesystem_store_datadir]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp

----

Here is a simple manifest that will cause this to happen:

# TODO: notifications, scrubber, etc.
class { '::glance::api':
  debug => hiera('debug'),
}
class { '::glance::registry':
  debug => hiera('debug'),
}
include ::glance::backend::file

Revision history for this message
Dan Prince (dan-prince) wrote :

Possibly related to this commit (quite old though):

commit d769137e386052d801046e81e1e40a0744352213
Author: Yanis Guenane <email address hidden>
Date: Wed Aug 12 11:48:20 2015 +0200

    Rely on autorequire for config resource ordering

    Currently we specify the ordering of config resources wherever it is
    necessary based on the presence of the file it will write to, or the
    presence of the package in charge of providing the file it will write
    to.

    Those kind of ordering can be specified directly at the resource level
    using the autorequire mechanism. With this patch, any config resource
    will make sure the package in charge of providing the file will be
    installed first.

Changed in tripleo:
importance: Undecided → Critical
Revision history for this message
Derek Higgins (derekh) wrote :

Seeing this also in centos on tripleo-ci

http://logs.openstack.org/99/221199/2/check-tripleo/gate-tripleo-ironic-overcloud-f21-nonha/485c12a/console.html#_2015-09-08_11_53_28_256

2015-09-08 11:53:28.256 | Error: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
2015-09-08 11:53:28.256 | Error: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
2015-09-08 11:53:28.256 | Wrapped exception:
2015-09-08 11:53:28.256 | No such file or directory - /etc/glance/glance-api.conf
2015-09-08 11:53:28.256 | Error: /Stage[main]/Glance::Backend::File/Glance_api_config[glance_store/default_store]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
2015-09-08 11:53:28.256 | Error: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
2015-09-08 11:53:28.257 | Error: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
2015-09-08 11:53:28.257 | Wrapped exception:
2015-09-08 11:53:28.257 | No such file or directory - /etc/glance/glance-api.conf
2015-09-08 11:53:28.257 | Error: /Stage[main]/Glance::Backend::File/Glance_api_config[glance_store/filesystem_store_datadir]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/glance/glance-api.conf at 19:/etc/puppet/modules/glance/manifests/backend/file.pp
2015-09-08 11:53:38.714 | Notice: /Stage[main]/Nova/Package[python-nova]/ensure: created

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/221411

Changed in puppet-glance:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
Changed in puppet-glance:
importance: Undecided → High
Revision history for this message
Dan Prince (dan-prince) wrote :

Okay, the failures here have Heat Debug logs enabled:

https://review.openstack.org/#/c/220671/

Look at the gate-tripleo-ironic-overcloud-f21puppet-nonha and then you'll have to download the seed_logs tarball and extract it to see the massive heat-engine.log

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in puppet-glance:
assignee: Dan Prince (dan-prince) → Yanis Guenane (yanis-guenane)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-glance (master)

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

commit bce0eac01c193f565e1b915c9002725800b9a069
Author: Dan Prince <email address hidden>
Date: Tue Sep 8 13:00:53 2015 -0400

    Autorequire correct package based on the distro

    Some distros (RHEL based) have a single glance package. On those
    distros the ensure_package/autorequire stuff doesn't quite work
    correctly as per the type code it is assumed two packages 'glance-api'
    and 'glance-registry'

    This commit makes sure that on RHEL based distros type only autorequire
    'openstack-glance' while on other distros it correctly autorequire
    'glance-api' and 'glance-registry'

    Change-Id: I17c84b2282beadaec80f4db42fa5696b7967159f
    Closes-bug: #1493442
    Co-Authored-By: Yanis Guenane <email address hidden>

Changed in puppet-glance:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-glance (master)

Change abandoned by Dan Prince (<email address hidden>) on branch: master
Review: https://review.openstack.org/221411

Revision history for this message
Derek Higgins (derekh) wrote :

Fixed in puppet-glance

Changed in tripleo:
status: New → Fix Released
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.