Skip to content

Instantly share code, notes, and snippets.

@i-kumagai
Created September 26, 2017 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i-kumagai/1803a19fab3e4731518dfcdcc497a504 to your computer and use it in GitHub Desktop.
Save i-kumagai/1803a19fab3e4731518dfcdcc497a504 to your computer and use it in GitHub Desktop.
nova-computeのconfig
nova-compute-lxd:
settings:
aa-profile-mode:
default: true
description: |
Experimental enable apparmor profile. Valid settings: 'complain',
'enforce' or 'disable'.
.
AA disabled by default.
type: string
value: disable
action-managed-upgrade:
default: true
description: |
If True enables openstack upgrades for this charm via juju actions.
You will still need to set openstack-origin to the new repository but
instead of an upgrade running automatically across all units, it will
wait for you to execute the openstack-upgrade action for this charm on
each unit. If False it will revert to existing behavior of upgrading
all units on config change.
type: boolean
value: false
authorized-keys-path:
default: true
description: |
Only used when migration-auth-type is set to ssh.
.
Full path to authorized_keys file, can be useful for systems with
non-default AuthorizedKeysFile location. It will be formatted using the
following variables:
.
homedir - user's home directory
username - username
.
type: string
value: '{homedir}/.ssh/authorized_keys'
bridge-interface:
default: true
description: Bridge interface to be configured.
type: string
value: br100
bridge-ip:
default: true
description: IP to be assigned to bridge interface.
type: string
value: 11.0.0.1
bridge-netmask:
default: true
description: Netmask to be assigned to bridge interface.
type: string
value: 255.255.255.0
ceph-osd-replication-count:
default: true
description: |
This value dictates the number of replicas ceph must make of any
object it stores within the nova rbd pool. Of course, this only
applies if using Ceph as a backend store. Note that once the nova
rbd pool has been created, changing this value will not have any
effect (although it can be changed in ceph by manually configuring
your ceph cluster).
type: int
value: 3
ceph-pool-weight:
default: true
description: |
Defines a relative weighting of the pool as a percentage of the total
amount of data in the Ceph cluster. This effectively weights the number
of placement groups for the pool created to be appropriately portioned
to the amount of data expected. For example, if the ephemeral volumes
for the OpenStack compute instances are expected to take up 20% of the
overall configuration then this value would be specified as 20. Note -
it is important to choose an appropriate value for the pool weight as
this directly affects the number of placement groups which will be
created for the pool. The number of placement groups for a pool can
only be increased, never decreased - so it is important to identify the
percent of data that will likely reside in the pool.
type: int
value: 30
config-flags:
default: true
description: |
Comma-separated list of key=value config flags. These values will be
placed in the nova.conf [DEFAULT] section.
type: string
cpu-mode:
default: true
description: |
Set to 'host-model' to clone the host CPU feature flags; to
'host-passthrough' to use the host CPU model exactly; to 'custom' to
use a named CPU model; to 'none' to not set any CPU model. If
virt_type='kvm|qemu', it will default to 'host-model', otherwise it will
default to 'none'. Defaults to 'host-passthrough' for ppc64el, ppc64le
if no value is set.
type: string
cpu-model:
default: true
description: |
Set to a named libvirt CPU model (see names listed in
/usr/share/libvirt/cpu_map.xml). Only has effect if cpu_mode='custom' and
virt_type='kvm|qemu'.
type: string
database:
default: true
description: Nova database name.
type: string
value: nova
database-user:
default: true
description: Username for database access.
type: string
value: nova
debug:
default: true
description: Enable debug logging.
type: boolean
value: false
default-availability-zone:
default: true
description: |
Default compute node availability zone.
.
This option determines the availability zone to be used when it is not
specified in the VM creation request. If this option is not set, the
default availability zone 'nova' is used.
.
NOTE: Availability zones must be created manually using the
'openstack aggregate create' command.
.
type: string
value: nova
disk-cachemodes:
default: true
description: |
Specific cachemodes to use for different disk types e.g:
file=directsync,block=none
type: string
enable-live-migration:
default: true
description: |
Configure libvirt or lxd for live migration.
.
Live migration support for lxd is still considered experimental.
.
NOTE: This also enables passwordless SSH access for user 'root' between
compute hosts.
type: boolean
value: false
enable-resize:
default: true
description: |
Enable instance resizing.
.
NOTE: This also enables passwordless SSH access for user 'nova' between
compute hosts.
type: boolean
value: false
flat-interface:
default: true
description: Network interface on which to build bridge.
type: string
value: eth1
harden:
default: true
description: |
Apply system hardening. Supports a space-delimited list of modules
to run. Supported modules currently include os, ssh, apache and mysql.
type: string
hugepages:
default: true
description: |
The percentage of system memory to use for hugepages eg '10%' or the
total number of 2M hugepages - eg "1024".
For a systemd system (wily and later) the prefered approach is to enable
hugepages via kernel parameters set in MAAS and systemd will mount them
automatically.
.
NOTE: For hugepages to work it must be enabled on the machine deployed
to. This can be accomplished by setting kernel parameters on capable
machines in MAAS, tagging them and using these tags as constraints in the
model.
type: string
instances-path:
default: true
description: |
Path used for storing Nova instances data - empty means default of
/var/lib/nova/instances.
type: string
ksm:
default: true
description: |
Set to 1 to enable KSM, 0 to disable KSM, and AUTO to use default
settings.
.
Please note that the AUTO value works for qemu 2.2+ (> Kilo), older
releases will be set to 1 as default.
type: string
value: AUTO
libvirt-image-backend:
default: true
description: |
Tell Nova which libvirt image backend to use. Supported backends are rbd,
lvm and qcow2. If no backend is specified, the Nova default (qcow2) is
used. Note that rbd imagebackend is only supported with >= Juno.
type: string
migration-auth-type:
default: true
description: |
TCP authentication scheme for libvirt live migration. Available options
include ssh.
type: string
multi-host:
default: true
description: Whether to run nova-api and nova-network on the compute nodes.
type: string
value: "yes"
nagios_context:
default: true
description: |
Used by the nrpe-external-master subordinate charm. A string that will be
prepended to instance name to set the host name in nagios. So for
instance the hostname would be something like:
.
juju-myservice-0
.
If you're running multiple environments with the same services in them
this allows you to differentiate between them.
type: string
value: juju
nagios_servicegroups:
default: true
description: |
A comma-separated list of nagios servicegroups. If left empty, the
nagios_context will be used as the servicegroup.
type: string
nova-config:
default: true
description: Full path to Nova configuration file.
type: string
value: /etc/nova/nova.conf
openstack-origin:
default: true
description: |
Repository from which to install. May be one of the following:
distro (default), ppa:somecustom/ppa, a deb url sources entry or a
supported Ubuntu Cloud Archive (UCA) release pocket.
.
Supported UCA sources include:
.
cloud:<series>-<openstack-release>
cloud:<series>-<openstack-release>/updates
cloud:<series>-<openstack-release>/staging
cloud:<series>-<openstack-release>/proposed
.
For series=Precise we support UCA for openstack-release=
* icehouse
.
For series=Trusty we support UCA for openstack-release=
* juno
* kilo
* ...
.
NOTE: updating this setting to a source that is known to provide
a later version of OpenStack will trigger a software upgrade.
.
type: string
value: distro
openstack-origin-git:
default: true
description: |
Specifies a default OpenStack release name, or a YAML dictionary
listing the git repositories to install from.
.
The default Openstack release name may be one of the following, where
the corresponding OpenStack github branch will be used:
* liberty
* mitaka
* newton
* master
.
The YAML must minimally include requirements, neutron, and nova
repositories, and may also include repositories for other dependencies:
repositories:
- {name: requirements,
repository: 'git://github.com/openstack/requirements',
branch: master}
- {name: neutron,
repository: 'git://github.com/openstack/neutron',
branch: master}
- {name: nova,
repository: 'git://github.com/openstack/nova',
branch: master
release: master
type: string
os-internal-network:
default: true
description: |
The IP address and netmask of the OpenStack Internal network (e.g.
192.168.0.0/24)
.
This network will be used to bind vncproxy client.
type: string
pci-passthrough-whitelist:
default: true
description: |
Sets the pci_passthrough_whitelist option in nova.conf which allows PCI
passthrough of specific devices to VMs.
.
Example applications: GPU processing, SR-IOV networking, etc.
.
NOTE: For PCI passthrough to work IOMMU must be enabled on the machine
deployed to. This can be accomplished by setting kernel parameters on
capable machines in MAAS, tagging them and using these tags as
constraints in the model.
type: string
prefer-ipv6:
default: true
description: |
If True enables IPv6 support. The charm will expect network interfaces
to be configured with an IPv6 address. If set to False (default) IPv4
is expected.
.
NOTE: these charms do not currently support IPv6 privacy extension. In
order for this charm to function correctly, the privacy extension must be
disabled and a non-temporary address must be configured/available on
your network interface.
type: boolean
value: false
rabbit-user:
default: true
description: Username used to access rabbitmq queue.
type: string
value: nova
rabbit-vhost:
default: true
description: Rabbitmq vhost.
type: string
value: openstack
rbd-client-cache:
default: true
description: |
Enable/disable rbd client cache. Leaving this value unset will result in
default Ceph rbd client settings being used (rbd cache is enabled by
default for Ceph >= Giant). Supported values here are "enabled" or
"disabled".
type: string
rbd-pool:
default: true
description: |
RBD pool to use with Nova libvirt RBDImageBackend. Only required when you
have libvirt-image-backend set to 'rbd'.
type: string
value: nova
reserved-host-memory:
default: true
description: |
Amount of memory in MB to reserve for the host. Defaults to 512MB.
type: int
value: 512
restrict-ceph-pools:
default: true
description: |
Optionally restrict Ceph key permissions to access pools as required.
type: boolean
value: false
resume-guests-state-on-host-boot:
default: true
description: |
This option determines whether to start guests that were running
before the host rebooted.
type: boolean
value: false
sysctl:
default: true
description: |
YAML formatted associative array of sysctl values, e.g.:
'{ kernel.pid_max : 4194303 }'
type: string
use-internal-endpoints:
default: true
description: |
Openstack mostly defaults to using public endpoints for
internal communication between services. If set to True this option will
configure services to use internal endpoints where possible.
type: boolean
value: false
use-syslog:
default: true
description: |
Setting this to True will allow supporting services to log to syslog.
type: boolean
value: false
vcpu-pin-set:
default: true
description: |
Sets vcpu_pin_set option in nova.conf which defines which pcpus that
instance vcpus can or cannot use. For example '^0,^2' to reserve two
cpus for the host.
type: string
verbose:
default: true
description: Enable verbose logging.
type: boolean
value: false
virt-type:
default: true
description: |
Virtualization flavor. Supported flavors are: kvm, xen, uml, lxc, qemu,
lxd.
.
NOTE: Changing virtualization flavor after deployment is not supported.
type: string
value: lxd
worker-multiplier:
default: true
description: |
The CPU core multiplier to use when configuring worker processes for
this services e.g. metadata-api. By default, the number of workers for
each daemon is set to twice the number of CPU cores a service unit has.
When deployed in a LXD container, this default value will be capped to 4
workers unless this configuration option is set.
type: float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment