Amulet doesn't find deployed units

Merlijn Sebrechts merlijn.sebrechts at gmail.com
Mon Jan 16 15:15:47 UTC 2017


Hi all


Code:
https://github.com/IBCNServices/bundle-limeds-core/blob/master/tests/20-basic-check.py

I'm basing these tests off of the kubernetes core bundle. I want to rely on
bundletester to deploy the bundle and then use the deployed applications to
run tests.

When I run these tests, Amulet doesn't seem to find the deployed units.

code:

        cls.docker = cls.deployment.sentry['docker']
        cls.limeds = cls.deployment.sentry['limeds']
        print("docker: {}".format(cls.docker))
        for unit in cls.docker:
            print(unit.info['public-address'])
        print("limeds: {}".format(cls.limeds))
        for unit in cls.limeds:
            print(unit.info['public-address'])
output:

docker: []
limeds: []


I expected both docker and limeds to contain one unit, since they are
indeed deployed.

docker/0*             active       idle   1        54.85.195.24
 30001/tcp,30002/tcp  Ready
limeds/0*             active       idle   1        54.85.195.24
            Ready. (ibcndevs/limeds)


What am I doing wrong?



Kind regards
Merlijn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170116/57a486b0/attachment.html>


More information about the Juju mailing list