Cinder deploy from source: Could not load template cinder.conf

Bug #1562931 reported by Ryan Beisner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cinder (Juju Charms Collection)
Fix Released
Medium
Unassigned

Bug Description

Cinder deploy from source: Could not load template cinder.conf

With the following commit, the templates/cinder.conf no longer exists.

Rollup templates to drop unsupported releases
https://github.com/openstack/charm-cinder/commit/a9a5e1660091506f5c206acec5a5d3cb48c4bdbe

The deploy from source (git_post_install) will need to be updated to render the template which corresponds to the OpenStack release being deployed.
ie. It is currently hard-coded @ https://github.com/openstack/charm-cinder/blob/master/hooks/cinder_utils.py#L749

2016-03-28 01:14:46 ERROR juju-log Could not load template cinder.conf from /var/lib/juju/agents/unit-cinder-0/charm/templates.
2016-03-28 01:14:46 INFO install Traceback (most recent call last):
2016-03-28 01:14:46 INFO install File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/install.real", line 557, in <module>
2016-03-28 01:14:46 INFO install hooks.execute(sys.argv)
2016-03-28 01:14:46 INFO install File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/charmhelpers/core/hookenv.py", line 717, in execute
2016-03-28 01:14:46 INFO install self._hooks[hook_name]()
2016-03-28 01:14:46 INFO install File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/install.real", line 122, in install
2016-03-28 01:14:46 INFO install git_install(config('openstack-origin-git'))
2016-03-28 01:14:46 INFO install File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/cinder_utils.py", line 654, in git_install
2016-03-28 01:14:46 INFO install git_post_install(projects_yaml)
2016-03-28 01:14:46 INFO install File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/cinder_utils.py", line 750, in git_post_install
2016-03-28 01:14:46 INFO install group='cinder', perms=0o644)
2016-03-28 01:14:46 INFO install File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/charmhelpers/core/templating.py", line 72, in render
2016-03-28 01:14:46 INFO install raise e
2016-03-28 01:14:46 INFO install jinja2.exceptions.TemplateNotFound: cinder.conf
2016-03-28 01:14:46 INFO juju.worker.uniter.context context.go:579 handling reboot
2016-03-28 01:14:46 ERROR juju.worker.uniter.operation runhook.go:107 hook "install" failed: exit status 1

Tags: uosci
Revision history for this message
Ryan Beisner (1chb1n) wrote :

FYI, this is blocking deploy-from-source testing for all release combo targets.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder (master)

Reviewed: https://review.openstack.org/320485
Committed: https://git.openstack.org/cgit/openstack/charm-cinder/commit/?id=f767065041f96b1fb56924b747a90d986b813c18
Submitter: Jenkins
Branch: master

commit f767065041f96b1fb56924b747a90d986b813c18
Author: Corey Bryant <email address hidden>
Date: Tue May 24 10:25:18 2016 -0400

    Drop rendering of cinder.conf for deploy from source

    The templates/cinder.conf file was removed recently causing this
    code to fail. Additionally I'm not sure why this code was
    necessary in the first place since cinder.conf renders correctly
    without it.

    Closes-Bug: 1562931

    Change-Id: I5c2dd88ba7b9a4fb22173ba43dc89775a2f6bb14

Changed in cinder (Juju Charms Collection):
status: New → Fix Committed
Liam Young (gnuoy)
Changed in cinder (Juju Charms Collection):
importance: Undecided → Medium
milestone: none → 16.07
James Page (james-page)
Changed in cinder (Juju Charms Collection):
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.