Commit Graph

22 Commits

Author SHA1 Message Date
Corey Bryant 9954765a70 Use auto-alias for glance-manage
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
2017-07-11 20:22:14 +00:00
Corey Bryant 05001ec249 Switch back to strict confinement
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
2017-06-22 12:16:08 +00:00
Corey Bryant 6ff4a7c6b4 Patch (_COMMON) dirs into oslo.config defaults
Change-Id: I184640b1a6e3120895de7eb966ebc5d0f481f26d
2017-06-22 00:46:24 +00:00
Corey Bryant 7470cb25fd Drop privileges when running commands
Drop privileges to a regular user when running commands defined
by this snap.

Change-Id: I8ada8f30506756a48a70063ac6444ee9167bfbc7
2017-05-18 16:14:29 +00:00
Corey Bryant 48853560d8 Base this snap on stable Ocata tar file
Change-Id: Id9ebaf19a75d88f329917813b5302e41f7f04dde
2017-05-03 18:40:51 +00:00
Corey Bryant fc6fdf0525 Add libxml2-dev and libxslt1-dev to build-packages
Change-Id: I93c2ac657b071ae880bc1b6a32e2be3d0b59a4f2
2017-05-03 18:08:57 +00:00
Corey Bryant e4ebedbd86 Compile python and drop environment dictionary
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
2017-04-24 13:48:58 +00:00
Corey Bryant 6a67622d0c Touch namespace package __init__.py files
This is a work-around for https://bugs.launchpad.net/bugs/1675479,
where namespace packages aren't installed correctly.

Change-Id: Ib078b974b56418c907a6150175cc083f94f0c711
2017-04-24 13:47:52 +00:00
Corey Bryant cd9990d665 Switch to classic confinement
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
2017-03-21 12:32:02 +00:00
Saverio Proto 23b8f67dd3 Fix URL for snap.openstack repository
Change-Id: Id1b1d19021e4cfdf82f8908522948f4b121dbc56
2017-02-07 18:18:37 +01:00
James Page a270b48ea0 Misc updates
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
2017-01-04 09:18:36 +00:00
James Page 286b64f4cf Rename conf folder to snap 2016-11-23 09:18:28 +00:00
James Page 062d667332 Add memcached to python-packages for token caching 2016-11-22 15:18:32 +00:00
James Page aacf30d8ec Add optional dependencies for glance.store backends 2016-11-21 13:02:30 +00:00
James Page 66b7bbad7b Update description of snap 2016-11-21 11:14:05 +00:00
James Page 02aea41b67 Tidy whitespace mess 2016-11-16 14:14:44 +00:00
James Page 84964d1d38 Updates for non-x86 archicture builds 2016-11-16 13:58:07 +00:00
James Page 7253f056cd Add XML related build-packages 2016-11-16 13:51:08 +00:00
James Page 474fe2507c Add comment about removing final dump once scriptlets exists 2016-11-14 15:39:49 +00:00
James Page 0078008b92 Use separate stage to pull in upstream configuration files 2016-11-14 15:23:09 +00:00
James Page baa878200c Mark snap version as ocata for now 2016-11-10 13:01:29 +00:00
James Page 9d384f448b Breakout baseline from snap-sandbox 2016-11-10 12:54:17 +00:00