The current snaps now have well-known aliases defined at install time
for commands [1]. This means we can drop the manual alias definition
from snapcraft.yaml and the instructions for setting it up.
When building/installing locally users can still create the alias
with 'snap alias'.
[1] https://forum.snapcraft.io/t/auto-aliases-for-openstack-base-snaps/1146/6
Change-Id: Ib34183ded789775fa76d701bd78a168bccb5fa08
The following are included in the switch to strict confinement:
* Set snapcraft.yaml confinement to strict and restore/update plugs
* Drop building of python as it's not required for strict snaps
* Switch back to running apps under root
Change-Id: I4704cac75230df5514ce42cdd6cde2b7ad9ed9b3
Classic python snaps require python to be compiled from source.
Additionaly, move away from using the environment dictionary
until it is fully supported by snapd. Finally, use a fixed python
path in order to get the correct site-specific config.
These changes were recommended in the following bug:
https://bugs.launchpad.net/snapcraft/+bug/1675479
Change-Id: I134a9b7dc2366eeb7d07d3ae07deecdd173cb4a6
This is a work-around for https://bugs.launchpad.net/bugs/1675479,
where namespace packages aren't installed correctly.
Change-Id: Ib078b974b56418c907a6150175cc083f94f0c711
Classic confinement allows the snap to behave like a traditionally
packaged application with full access to the system, and enables the
use of traditional directories such as /etc and /var/log.
We will continue to store all of the snap's files in $SNAP* directories.
This enables the snap to cleanup after itself if it is removed. However,
traditional directory locations are symlinked to their corresponding
$SNAP* directories.
For example, glance configs are installed in $SNAP_COMMON/etc/glance
which has a symlink at /etc/glance.
The glance apps then use the traditional directories when running
commands and services.
Change-Id: Ic763f9c8f34ab3096e8592520db00cdf81b0d9ef
Add aliases for glance-manage -> glance.manage.
Update requirements and bindep to use snapcraft from packages until
installation from git is functional.
Change-Id: Idc7032404a46e2a6877aceb02632e7305dbc281d