Commit Graph

42 Commits

Author SHA1 Message Date
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
Corey Bryant 2647ed4daa In test cleanup, only delete DB if it exists
Change-Id: Ided15b1ba47ee02ce609284f24cdaa730e851d6d
2017-10-25 16:22:15 -04:00
Pete Vander Giessen d3b2962303 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: Ia69fba6d0ed8d1fc47bcabfea817f263dbd4d66d
2017-08-11 20:29:20 +00:00
Pete Vander Giessen 26d6bcb315 Added config files to snap.
This is 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: I2542bf23435d3dbe5e399f1c938f3c9d879ed9ba
2017-08-10 19:55:43 +00:00
Jenkins 8138c04765 Merge "Updated proxy env var passthrough in tox.ini" 2017-08-10 18:47:28 +00:00
Corey Bryant 67b12253f5 Update README snap install command
This snap is now being published to ocata/edge only.

Change-Id: I6c7d5b544df893e1f7a51cd6fd60bd965c2bb1d1
2017-08-09 17:07:21 -04:00
Pete Vander Giessen ea65aeff61 Updated proxy env var passthrough in tox.ini
We made a breaking change to snapstack. SNAP_BUILD_PROXY ->
SNAPSTACK_HTTP/S_PROXY.

Change-Id: Ib2d25a562bed3059f92ee4892780a881e18eb3aa
2017-08-08 13:24:36 +00:00
Pete Vander Giessen 6f54b6ccfb Added snapstack test.
Tweaked tox.ini to invoke snapstack, and added test_snapstack.py to
tests dir.

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

Change-Id: Ie0e7d3211b99ace8f5c19e2781d928f3a589acce
2017-07-27 18:57:28 +00:00
Corey Bryant 3082fc6290 Use auto-alias for neutron-db-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: Iaac052b25bf2509bdb57161086a7be59d58de15f
2017-07-11 20:22:17 +00:00
Saverio Proto 05d2d187c1 s/nova/neutron cut and paste error
Change-Id: Iefdb47a1fff3ce724cd3358b8c164f1c1dd91afc
2017-06-23 11:39:01 +02:00
Corey Bryant 07454aaa2c 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: I2a985ecea36c82f9b08f145015219911e0ec0616
2017-06-22 12:18:33 +00:00
Corey Bryant 7463004662 Patch (_COMMON) dirs into oslo.config defaults
Change-Id: I41be6212cad9df0134986c888c5ed8f9971639ba
2017-06-22 00:44:34 +00:00
Corey Bryant e2229271ea Switch from conf.d to <project>.conf.d
This aligns with the extension that oslo.config expects.

Change-Id: Id8dfc31bf3e96108b14c1364f6bd81794e79f265
2017-06-14 15:29:23 +00:00
Jenkins 36bf64cff8 Merge "Enable override of config files" 2017-06-05 16:34:13 +00:00
Corey Bryant 5de2b83617 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: Icc3747268d0d0c7609681a877f67a7cc8a5d9ba2
2017-06-05 14:10:18 +00:00
Corey Bryant 702c5b9e50 Define neuron-db-manage alias
Change-Id: I14c8d0e425d86727e4e995b944b69e73c915b272
2017-05-22 17:35:34 -04:00
Corey Bryant 65cb68db49 Drop privileges when running commands
Drop privileges to a regular user when running commands defined
by this snap.

Change-Id: I7d1f2b227f77c6a4f3469a11c6a64566d82182ee
2017-05-18 16:13:52 +00:00
Jenkins ffc2de83ce Merge "Use both SNAP and SNAP_COMMON with --config-file" 2017-05-15 14:01:48 +00:00
Corey Bryant b8087312ce Use both SNAP and SNAP_COMMON with --config-file
Change-Id: I8284d4adf638d66be3e1fe27892d8f0e441f1496
2017-05-05 18:20:36 +00:00
Corey Bryant a79ad115dc Base this snap on stable Ocata tar file
Change-Id: Ic788ed43cb855267bd44c598dc9738c3cfca137e
2017-05-03 18:46:25 +00:00
Corey Bryant 302b1c39b0 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: I4f339ae90c08d6f624793020690d067b82af4029
2017-04-24 09:40:09 -04:00
Corey Bryant daad53b3d5 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: Ibe68ab3a252067421169effd99fc5b14d490136b
2017-04-24 13:08:58 +00:00
Corey Bryant 64c93eb1cd 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: Ie4b8898ad79a6958bdd58dccdc668441848bff78
2017-04-24 13:08:15 +00:00
Corey Bryant fd1265eb20 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, neutron configs are installed in $SNAP_COMMON/etc/neutron
which has a symlink at /etc/neutron.

The neutron apps then use the traditional directories when running
commands and services.

Change-Id: I392ba95cfaad1509b58beb2f82ba865b73971d5a
2017-03-21 12:47:52 +00:00
James Page 33e106e3f1 Use snapcraft from packages
snapcraft is not yet pip installable, so install from packages
for the time being.

Change-Id: I569237fbf50f74fa529a523b7f9fe585bd1ac9c4
2017-01-04 09:20:32 +00:00
James Page 6d1a4eb436 Add good defaults for tunnel overlay networks 2016-11-29 15:19:54 +00:00
James Page 54de3c5a4d Add .tox to gitignore£ 2016-11-24 16:58:29 +00:00
James Page 213adb6f46 Only enable router service plugin by default 2016-11-24 16:54:23 +00:00
James Page 235cfccfd0 Update README to be more accurate 2016-11-24 16:46:08 +00:00
James Page db235efffa Hygiene tidy 2016-11-24 16:43:02 +00:00
James Page 4f5c7b1fd1 Add memcached to py packages 2016-11-24 15:07:13 +00:00
James Page e205d63c86 Enable router and qos service plugins by default 2016-11-24 13:03:36 +00:00
James Page 5a15852025 Add ml2 config file to db manage calls 2016-11-24 12:51:32 +00:00
James Page c043f5660e Add default mechnism drivers and extensions 2016-11-24 12:46:41 +00:00
James Page 9d618200bf General tidy
Drop generating target for sample files and drop in some
minimal distribution options for neutron.conf (just ml2 core plugin).

Rename conf -> snap.
2016-11-23 17:52:47 +00:00
Corey Bryant 254974830a Use openstack plugin for handling template and config files 2016-11-17 02:45:44 +00:00
Corey Bryant 5cd987e82d Use snap-openstack and separate stage to pull in upstream configuration files 2016-11-15 17:06:56 +00:00
Corey Bryant 0776ce27b9 Use master branch for now 2016-11-14 21:00:40 +00:00
Corey Bryant f8e6add610 Add initial README 2016-11-14 20:45:45 +00:00
Corey Bryant 8112c2af61 Mark snap version as ocata for now 2016-11-14 20:32:06 +00:00
Corey Bryant 0d098ce8a5 Cleanup git ignore for snaps 2016-11-14 20:31:16 +00:00
Corey Bryant 021aaf0c33 Breakout baseline from snap-sandbox 2016-11-14 20:29:00 +00:00