Snap package for Nova (Hypervisor)
Go to file
OpenDev Sysadmins 9456572241 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:41 +00:00
patches Add patches to drop use of setuid and fchownat 2017-06-30 18:45:04 +00:00
snap Switch back to strict confinement 2017-06-22 12:12:15 +00:00
tests Fix up commit 27013fa2bb 2017-10-26 10:56:42 -04:00
.gitignore Added config files to snap. 2017-08-10 19:55:18 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:51:41 +00:00
bindep.txt Switch to classic confinement 2017-04-24 14:30:37 +00:00
CONTRIBUTING.rst Basic hygene tidy 2016-11-30 10:39:13 +00:00
LICENSE Basic hygene tidy 2016-11-30 10:39:13 +00:00
README.md Update README snap install command 2017-08-09 17:08:51 -04:00
requirements.txt Enable use of openvswitch interface now its landed in snapd 2016-12-15 15:07:08 +00:00
snapcraft.yaml Use auto-alias for neutron-*-cleanup 2017-07-11 20:22:41 +00:00
tox.ini Updated proxy env var passthrough in tox.ini 2017-08-08 14:03:10 +00:00

Nova Hypervisor Snap

This repository contains the source code of the snap for the OpenStack Compute service, Nova.

This snap specifically provides the compute and networking hypervisor daemons as part of a snap based OpenStack deployment:

  • nova-compute
  • nova-api-metadata (provided for local metadata service use)
  • neutron-openvswitch-agent
  • neutron-dhcp-agent
  • neutron-l3-agent
  • neutron-metadata-agent

This snap supports use of Libvirt/KVM Nova compute driver + Open vSwitch ML2 Neutron plugin.

Installing this snap

The nova-hypervisor snap can be installed directly from the snap store:

sudo snap install --channel=ocata/edge nova-hypervisor

The nova-hypervisor snap is working towards publication across tracks for OpenStack releases. The edge channel for each track will contain the tip of the OpenStack project's master or stable branch, with the beta, candidate, and stable channels being reserved for released versions. The same version will be published progressively to beta, then candidate, and then stable once CI validation completes for the channel. This should result in an experience such as:

sudo snap install --channel=ocata/stable nova-hypervisor
sudo snap install --channel=pike/edge nova-hypervisor

This snap makes use of libvirt and openvswitch daemons running on the host operating system, so these packages must be installed for a functional hypervisor:

sudo apt install libvirt-bin qemu-kvm openvswitch-switch

In addition, the libvirt apparmor helper must be placed into complain mode until bug 1644507 is resolved:

sudo aa-complain /usr/lib/libvirt/virt-aa-helper

Configuring Nova and Neutron

The nova-hypervisor snap gets its default configuration from the following $SNAP and $SNAP_COMMON locations:

/snap/nova-hypervisor/current/etc/
├── nova
│   └── nova.conf
└── neutron
    ├── neutron.conf
    ├── dhcp_agent.ini
    ├── l3_agent.ini
    ├── metadata_agent.ini
    └── plugins
        └── ml2
            └── openvswitch_agent.ini

/var/snap/nova-hypervisor/common/etc/
├── nova
│   └── nova.conf.d
│       └── nova-snap.conf
└── neutron
    └── neutron.conf.d
        └── neutron-snap.conf

The nova-hypervisor snap supports configuration updates via its $SNAP_COMMON writable area. The default nova-hypervisor configuration can be overridden as follows:

/var/snap/nova-hypervisor/common/etc/
├── nova
│   ├── nova.conf.d
│   │   ├── nova-snap.conf
│   │   ├── glance.conf
│   │   ├── keystone.conf
│   │   └── neutron.conf
│   └── nova.conf
└── neutron
    ├── neutron.conf.d
    │   ├── neutron-snap.conf
    │   └── ...
    ├── neutron.conf
    ├── dhcp_agent.ini
    ├── l3_agent.ini
    ├── metadata_agent.ini
    └── plugins
        └── ml2
            └── openvswitch_agent.ini

The nova and neutron configuration can be overridden or augmented by writing configuration snippets to files in their conf.d directories.

Alternatively, configuration can be overridden by adding full config files to the nova/, neutron/, neutron/plugins/ml2/ directories. If overriding in this way, you may need to update your config to point at additional config files located in $SNAP, or add those to $SNAP_COMMON as well.

Logging nova-hypervisor

The services for the nova-hypervisor snap will log to its $SNAP_COMMON writable area: /var/snap/nova-hypervisor/common/log.

Restarting services

To restart all nova-hypervisor services:

sudo systemctl restart snap.nova-hypervisor.*

or an individual service can be restarted by dropping the wildcard and specifying the full service name.

Building the nova-hypervisor snap

Simply clone this repository and then install and run snapcraft:

git clone https://github.com/openstack/snap-nova-hypervisor
sudo apt install snapcraft
cd snap-nova-hypervisor
snapcraft

Support

Please report any bugs related to this snap at: Launchpad.

Alternatively you can find the OpenStack Snap team in #openstack-snaps on Freenode IRC.