~hopem/charms/trusty/cinder/lp1499643

« back to all changes in this revision

Viewing changes to hooks/cinder_hooks.py

  • Committer: billy.olsen at canonical
  • Date: 2015-08-31 20:26:18 UTC
  • mfrom: (109.1.4 next)
  • Revision ID: billy.olsen@canonical.com-20150831202618-fat3jvgssr4w587y
[xtrusia,r=billy-olsen] Restart cinder services if overwrite config
value changed to ensure that the change is properly reflected within the
service.

Closes-Bug: 1383801

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
                relation_set(relation_id=rid,
150
150
                             upgrade_nonce=uuid.uuid4())
151
151
 
 
152
    # overwrite config is not in conf file. so We can't use restart_on_change
 
153
    if config_value_changed('overwrite'):
 
154
        service_restart('cinder-volume')
 
155
 
152
156
    CONFIGS.write_all()
153
157
    configure_https()
154
158
    update_nrpe_config()