openstack nfs #11

Supports: bionic focal groovy

Description

This charm provides a simple NFS backend for Nova and Glance.


Overview

This charm provides a simple NFS backend for ephemeral storage in Nova and image storage in Glance.

It will create an entry in /etc/fstab, mount the filesystem and then configure nova-compute and/or glance to use the mounted filesystem.

Usage

To deploy the charm:

  juju deploy openstack-nfs \
    --config filesystem="10.10.64.10:/mnt/rpool/nova"
    --config mountpoint="/srv/nova"
    --config type=nfs4
    --config options="rsize=131072,wsize=131072"

  juju add-relation nova-compute openstack-nfs
  juju add-relation glance openstack-nfs

Known Limitations and Issues

This is an alpha quality charm. It does not yet gracefully handle reconfiguring any parameters, and will require manual intervention on removal to restore the original instances_path in /etc/nova/nova.conf.


Configuration

extra_packages
(string) Space separated list of extra deb packages to install.
glance-filesystem
(string) The filesystem to mount when connected to glance.
glance-fsoptions
(string) Mount options.
glance-fstype
(string) The filesystem type to be mounted. (ex: nfs4)
nfs4
glance-mountpoint
(string) The path to mount the filesystem at for glance relations. If the path does not exist, it will be created.
/srv/glance
install_keys
(string) List of signing keys for install_sources package sources, per charmhelpers standard format (a yaml list of strings encoded as a string). The keys should be the full ASCII armoured GPG public keys. While GPG key ids are also supported and looked up on a keyserver, operators should be aware that this mechanism is insecure. null can be used if a standard package signing key is used that will already be installed on the machine, and for PPA sources where the package signing key is securely retrieved from Launchpad.
install_sources
(string) List of extra apt sources, per charm-helpers standard format (a yaml list of strings encoded as a string). Each source may be either a line that can be added directly to sources.list(5), or in the form ppa:<user>/<ppa-name> for adding Personal Package Archives, or a distribution component to enable.
nova-compute-filesystem
(string) The filesystem to mount when connected to nova-compute.
nova-compute-fsoptions
(string) Mount options.
nova-compute-fstype
(string) The filesystem type to be mounted. (ex: nfs4)
nfs4
nova-compute-mountpoint
(string) The path to mount the filesystem at for nova-compute relations. If the path does not exist, it will be created.
/srv/nova
package_status
(string) The status of service-affecting packages will be set to this value in the dpkg database. Valid values are "install" and "hold".
install