microstack:stein

Last commit made on 2019-11-27
Get this branch:
git clone -b stein https://git.launchpad.net/microstack

Branch merges

Branch information

Name:
stein
Repository:
lp:microstack

Recent commits

1a25e50... by Pen Gale

Made horizon, rabbit and mysql ports configurable

Addresses requests to make it easier to avoid conflicts between the
Horizon dashboard and http services that might already be running on
the machine.

Configurable via snap config. Exposing via arguments to .init and
testing post init configuration is left for a separate PR.

Eventually, these may move to non standard ports by default. This PR
sets the stage for that, but further discussion is needed before we
decide whether to implement.

(This commit also contains a sneaky fix for the username display at the
end of the launch script.)

Closes-Bug: 1814829
Change-Id: If728d6ec8024bca4d3e809637fbdcc03ed4e6934

d34a98a... by Pen Gale

Remove iptables part

This change prevents builds in the gate from timing out while pulling
the iptables part, which was happening with increasing frequency.

The part was originally added in an attempt to isolate ourselves
better from the host system, despite being classically confined. This
approach was unreliable -- it doesn't work particularly well for
commands requiring sudo. We can back off this change (especially since
we've removed the special pathing that pointed us at the snapcraft
built iptables anyway -- I think that the part is superfluous).

In addition to the automated tests, I have verified that the following
work:

1. xenial and eoan installs
2. clustering
3. refresh from beta and edge

Change-Id: I7d314eccc0433e54a800ed47add684c2e0fa6565
Closes-bug: 1854081

2915caf... by Pen Gale

Fixed dashboard_allowed_hosts config setting.

Now happens in a template, just like all the other values, which fixes
an issue where it doesn't get overridden during an upgrade.

Change-Id: Ied84ddc0282c77de6797f90efc8923ae66a9d59e

590a7bc... by Pen Gale

Refresh now sets missing config values

Broke default config settings into a separate script, which the
install hook always called, and post-refresh calls if it can't find
the new config hierarchy.

This fixes issues w/ upgrading from beta to edge.

Change-Id: I6b11109c2a2f6aca142a18c9fa274b332891d5c8

f7d2064... by Pen Gale

set-br-ex now idempotent

When refreshing a snap, set-br-ex could fail because the iptables
rules that it sets were already setup. We now exit zero if this is
true, which prevents us from breaking on upgrades.

Change-Id: Ibfee98cabfa3e35bf53dbd191de2cf46f3709a51

e58aedd... by Zuul <email address hidden>

Merge "Added refresh tests"

960685b... by Pen Gale

Added refresh tests

Refactored test framework so that we have more flexibility in terms of
installing various versions of microstack before and after running
some tests. Moved in class "globals" into per instance variables,
to avoid broken cases with incomplete cleanup.

Added test_refresh.py, plus matching env in tox.

Refresh tests will fail currently, because we have some pending issues
that break refreshes. Fixing those is a subject for a different
commit.

Refactored cluster_test.py and control_test.py to use new framework.
Should (and do) pass.

Framework now cleans up multipass hosts regardless of whether or not
the tests passed. Leaning on the .tar.gz for local troubleshooting
helps us make it better for in gate troubleshooting.

Change-Id: I6a45b39132f5959c2944fe1ebbe10f71408ee777

5d1095d... by Zuul <email address hidden>

Merge "Updated "Building MicroStack" section of CONTRIBUTING.md"

e0fd42e... by Pen Gale

Updated "Building MicroStack" section of CONTRIBUTING.md

Now reflects current build process, and has correct url to source code.

Also changed references to "microstack" and "Microstack" to
"MicroStack".

Change-Id: I60f6a28c3e47ed785692e59c0de79e298e437900
Closes-Bug: 1846979

c3ba4ee... by Pen Gale

Delay creating external bridge until we are initializing

Previously, the snap set up a bridge using the default 10.20.20.0/24
network upon install. If there was a good reason not to use this
network (e.g., it already exists and is being used for another
purpose), MicroStack, and the host machine, could wind up in a broken
state.

This PR delays setting up the bridge until after we have given an
operator a chance to override the default settings.

This has been manually tested. To test, do the following:

1) Checkout the code, and run tox -e build
2) Run tools/make-a-microstack.sh
3) snapctl set config.network.ext-cidr and config.network.ext-gateway
4) Run microstack_init
5) Exit the snap shell and run microstack.launch

Change-Id: I9e268495f313b29d9781d80a2468fc0a1a450aa0
Closes-Bug: https://bugs.launchpad.net/microstack/+bug/1851521