~openstack-charmers-archive/charms/trusty/keystone/next

« back to all changes in this revision

Viewing changes to hooks/keystone_utils.py

  • Committer: Liam Young
  • Date: 2015-10-20 15:15:56 UTC
  • mfrom: (188.1.4 keystone)
  • Revision ID: liam.young@canonical.com-20151020151556-f2pyzvpv1v3vwdcp
[gnuoy, r=james-page] Rexec config-changed hook after upgrade to avoid issues with packages changing under the feet of the running hook

Show diffs side-by-side

added added

removed removed

Lines of Context:
370
370
    _save_script_rc(**env_vars)
371
371
 
372
372
 
 
373
def do_openstack_upgrade_reexec(configs):
 
374
    do_openstack_upgrade(configs)
 
375
    log("Re-execing hook to pickup upgraded packages",  level=INFO)
 
376
    os.execl('./hooks/config-changed-postupgrade', '')
 
377
 
 
378
 
373
379
def do_openstack_upgrade(configs):
374
380
    new_src = config('openstack-origin')
375
381
    new_os_rel = get_os_codename_install_source(new_src)
395
401
        else:
396
402
            log("Database not ready - deferring to shared-db relation",
397
403
                level=INFO)
398
 
            return
399
404
 
400
405
 
401
406
def is_db_initialised():