Snap package for Neutron
Go to file
OpenDev Sysadmins 37f807b4dc 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:50:47 +00:00
patches Patch (_COMMON) dirs into oslo.config defaults 2017-06-22 00:44:34 +00:00
snap Switch back to strict confinement 2017-06-22 12:18:33 +00:00
tests In test cleanup, only delete DB if it exists 2017-10-25 16:22:15 -04:00
.gitignore Added config files to snap. 2017-08-10 19:55:43 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:50:47 +00:00
bindep.txt Switch to classic confinement 2017-03-21 12:47:52 +00:00
CONTRIBUTING.rst s/nova/neutron cut and paste error 2017-06-23 11:39:01 +02:00
LICENSE Hygiene tidy 2016-11-24 16:43:02 +00:00
README.md Update README snap install command 2017-08-09 17:07:21 -04:00
requirements.txt Use snapcraft from packages 2017-01-04 09:20:32 +00:00
snapcraft.yaml Use auto-alias for neutron-db-manage 2017-07-11 20:22:17 +00:00
tox.ini Updated proxy env var passthrough in tox.ini 2017-08-08 13:24:36 +00:00

Neutron Snap

This repository contains the source code of the snap for the OpenStack Network service, Neutron.

This snap specifically provides the 'neutron-server' process as part of a snap based OpenStack deployment.

Installing this snap

The neutron snap can be installed directly from the snap store:

sudo snap install --channel=ocata/edge neutron

The neutron 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 neutron
sudo snap install --channel=pike/edge neutron

Configuring neutron

The neutron snap gets its default configuration from the following $SNAP and $SNAP_COMMON locations:

/snap/neutron/current/etc/
└── neutron
    ├── neutron.conf
    └── plugins
        └── ml2
            └── ml2_conf.ini

/var/snap/neutron/common/etc/
└── neutron
    └── neutron.conf.d
        └── neutron-snap.conf

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

/var/snap/neutron/common/etc/
└── neutron
    ├── neutron.conf.d
    │   ├── neutron-snap.conf
    │   ├── database.conf
    │   ├── keystone.conf
    │   └── nova.conf
    ├── neutron.conf
    └── plugins
        └── ml2
            └── ml2_conf.ini

The neutron configuration can be overridden or augmented by writing configuration snippets to files in the neutron.conf.d directory.

Alternatively, neutron configuration can be overridden by adding a neutron/neutron.conf file or a neutron/plugins/ml2/ml2_conf.ini file. 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 neutron

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

Restarting neutron services

To restart all neutron services:

sudo systemctl restart snap.neutron.*

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

Building the neutron snap

Simply clone this repository and then install and run snapcraft:

git clone https://github.com/openstack/snap-neutron
sudo apt install snapcraft
cd snap-neutron
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.