Tests fail against a real cloud because haproxy is not exposed

Bug #1474399 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Charm
Triaged
High
Unassigned

Bug Description

Because of Amulet bug #1473580, the "expose" configuration from our bundle is not honoured. The end result is that Landscape is deployed but haproxy is firewalled, making all tests that require a connection to the service fail.

Until that bug is fixed and we require the newer amulet, this workaround can be used:

=== modified file 'tests/helpers.py'
--- tests/helpers.py 2015-07-10 07:54:47 +0000
+++ tests/helpers.py 2015-07-10 22:45:14 +0000
@@ -79,6 +79,8 @@
         super(EnvironmentFixture, self).setUp()
         if not self._deployment.deployed:
             self._deployment.load(self._get_bundle())
+ # XXX - amulet bug #1473580, doesn't respect expose from the bundle
+ self._deployment.expose("haproxy")
             repo_dir = self._build_repo_dir()
             try:
                 self._deployment.setup(timeout=self._timeout)

It wouldn't be the first one for amulet in this code:
./tests/helpers.py: # XXX - amulet bug #1473580, doesn't respect expose from the bundle
./tests/helpers.py: XXX Apparently there's no way in Amulet to easily deploy uncommitted
./tests/helpers.py: # XXX: Amulet doesn't support getting binary files, so we

tags: added: kanban
tags: removed: kanban
Benji York (benji)
Changed in landscape-charm:
status: New → Triaged
importance: Undecided → High
tags: added: low-hanging-fruit
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.