Beispiel #1
0
def install():
    add_source(config('source'), config('key'))
    apt_update(fatal=True)
    apt_install(packages=ceph.determine_packages(), fatal=True)
    if config('autotune'):
        tune_network_adapters()
    install_udev_rules()
Beispiel #2
0
def upgrade_charm():
    emit_cephconf()
    apt_install(packages=filter_installed_packages(ceph.determine_packages()),
                fatal=True)
    try:
        # we defer and explicitly run `ceph-create-keys` from
        # add_keyring_to_ceph() as part of bootstrap process
        # LP: #1719436.
        service_pause('ceph-create-keys')
    except ValueError:
        pass
    ceph.update_monfs()
    mon_relation_joined()
    if is_relation_made("nrpe-external-master"):
        update_nrpe_config()
    if not ceph.monitor_key_exists('admin', 'autotune'):
        autotune = config('pg-autotune')
        if (cmp_pkgrevno('ceph', '14.2.0') >= 0
                and (autotune == 'true' or autotune == 'auto')):
            ceph.monitor_key_set('admin', 'autotune', 'true')
        else:
            ceph.monitor_key_set('admin', 'autotune', 'false')

    # NOTE(jamespage):
    # Reprocess broker requests to ensure that any cephx
    # key permission changes are applied
    notify_client()
    notify_radosgws()
    notify_rbd_mirrors()
    notify_prometheus()
Beispiel #3
0
def upgrade_charm():
    apt_install(packages=filter_installed_packages(ceph.determine_packages()),
                fatal=True)
    if get_fsid() and get_auth():
        emit_cephconf()
    install_udev_rules()
    remap_resolved_targets()
    maybe_refresh_nrpe_files()
def upgrade_charm():
    apt_install(packages=filter_installed_packages(ceph.determine_packages()),
                fatal=True)
    if get_fsid() and get_auth():
        emit_cephconf()
    install_udev_rules()
    remap_resolved_targets()
    maybe_refresh_nrpe_files()
    # NOTE(jamespage): https://pad.lv/1861996
    # ensure number of bootstrapped OSD's is presented to ceph-mon
    prepare_disks_and_activate()
def install():
    add_source(config('source'), config('key'))
    apt_update(fatal=True)
    apt_install(packages=ceph.determine_packages(), fatal=True)
    if config('autotune'):
        log(
            'The autotune config is deprecated and planned '
            'for removal in the next release.',
            level=WARNING)
        tune_network_adapters()
    install_udev_rules()
def install():
    execd_preinstall()
    add_source(config('source'), config('key'))
    apt_update(fatal=True)
    apt_install(packages=ceph.determine_packages(), fatal=True)
    try:
        # we defer and explicitly run `ceph-create-keys` from
        # add_keyring_to_ceph() as part of bootstrap process
        # LP: #1719436.
        service_pause('ceph-create-keys')
    except ValueError:
        pass