Commit Graph

48 Commits

Author SHA1 Message Date
OpenDev Sysadmins 2b4854ebf4 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:10 +00:00
Corey Bryant c1746dc543 In test cleanup, only delete DB if it exists
Change-Id: I42b0e03b442e88bea8024adac525c82414ac2723
2017-10-25 16:21:54 -04:00
Zuul cb5b8d3e85 Merge "Fix check in test for exising cirros image" 2017-10-24 18:52:24 +00:00
Corey Bryant 198e96a448 Fix here-document EOF for glance_cleanup.sh
Change-Id: I38dd76da2e628252c5cd8b1b985e31714f8c44f3
2017-10-24 09:03:07 -04:00
Corey Bryant 4699beaf77 Fix check in test for exising cirros image
Change-Id: I9528d9dc6a06606a8fe039dbe6ddcc8aede73310
2017-10-18 17:11:05 +00:00
Pete Vander Giessen ffc6a6c662 Added config files to snapstack_test.
This helps us not break when transitioning to using the new version of
snapstack, with the config files for each snap in the individual
steps, rather than in a config step.

Change-Id: I9b06966dcadffd92d4006c184067f744f57613aa
2017-08-11 20:10:08 +00:00
Pete Vander Giessen 493a7aeb96 Added config files to snap.
Part of a transition to storing the config files in the snap, rather
than in snapstack.

Also updated .gitignore to ignore emacs temp files and snapcraft
cruft.

Change-Id: Ic32b6e6b3665db9a43878b91c9288a408c8a8c0e
2017-08-10 19:27:32 +00:00
Jenkins 308362db4d Merge "Use cirros images." 2017-08-10 17:46:29 +00:00
Corey Bryant 986a47a2a0 Update README snap install command
This snap is now being published to ocata/edge only.

Change-Id: I6758148fcc24a4e45da111f17f0d0bfab61118ae
2017-08-09 17:06:38 -04:00
Pete Vander Giessen 480d749443 Use cirros images.
Switched to using cirros images rather than ubuntu cloud images, as
they are smaller, and thus better for testing. They should also go
through the zuul reverse proxy.

Update env variables to work with the tweaks to snapstack.

Change-Id: I989f1d2eacefebd2a72f75897e09b2c8b9e856ef
2017-08-08 14:13:36 +00:00
Pete Vander Giessen 84668a42dc Added snapstack test.
Tweaked tox.ini to invoke snapstack, and added test_snapstack.py to
tests dir.

Also added glance.sh to glance/tests, as part of the plan to move
those scripts from snap-test to the individual snaps.

Change-Id: Ifbd53392c394ee36cf61d1a07dba825f7b7097b8
2017-07-27 18:57:04 +00:00
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 a4222ce874 Switch from conf.d to <project>.conf.d
This aligns with the extension that oslo.config expects.

Change-Id: I86f590d97a41756258aa3184cf94de827f36c0eb
2017-06-14 15:28:40 +00:00
Corey Bryant 7f0d4d4847 Enable override of config files
Enable the ability for default config files to be overridden.

Also refresh the README while documenting how default config files can
be overridden.

Change-Id: I792475bd20adda2626bbf3775924a21c811df15e
2017-06-05 14:10:50 +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 eb8c4708b1 Use both SNAP and SNAP_COMMON with --config-file
Change-Id: Ife9181a8da53b15b8688666b84d0694255232416
2017-05-05 18:20:15 +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
Jenkins 92d51f2316 Merge "Change nova with glance (cut and paste error)" 2017-04-25 10:28:37 +00:00
Corey Bryant b05ef80bde Go back to installing files to SNAP_COMMON
The symlinks setup key is dropped, and SNAP_COMMON is used as the
root directory where setup dirs, templates, and copyfiles are
installed. This aligns better with how snaps should behave.

Change-Id: Ie9c6ba930798dcb6c0bfd43a6504d3fdb357befa
2017-04-24 13:49:58 +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 5b5584a679 Change nova with glance (cut and paste error)
Change-Id: I8dba06d52164204b51efdec91e8c4b9cf9597846
2017-02-16 17:17:32 +01: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 d4523471a7 Fixup tox configurations to support use of build test in gate 2016-11-23 10:07:48 +00:00
James Page 87f5ec0c55 More README tidy 2016-11-23 09:23:37 +00:00
James Page 28fb19289d Add building section to README 2016-11-23 09:22:50 +00:00
James Page 286b64f4cf Rename conf folder to snap 2016-11-23 09:18:28 +00:00
James Page 79160c58a4 Correct type in README 2016-11-23 09:14:37 +00:00
James Page e7d8fe976e Update README with usage information 2016-11-23 09:13:37 +00:00
James Page 89454f7b16 Add misc bits of baseline scaffolding 2016-11-22 15:49:24 +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 7872975d0e Add basic tox configuration for building the snap 2016-11-21 11:21:27 +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 6623623fc7 Add initial README 2016-11-14 15:38:33 +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 be2567541f Cleanup git ignore for snaps 2016-11-10 12:57:10 +00:00
James Page 9d384f448b Breakout baseline from snap-sandbox 2016-11-10 12:54:17 +00:00