Closed pengale closed 7 years ago
We need this for conjure-up as well, would having it in libjuju work? We're migrating our code over to that as well
@battlemidget libjuju is the right place to put the fix (libjuju might already have support, in which case we just need to call .connect with all the right args.)
It looks like the problem here is that matrix never bothers to specify a cloud. Everything else Just Works in python-libjuju.
Working on a patch right now ...
JaaS support mainly automatically works. I have a branch (https://github.com/juju-solutions/matrix/tree/feature/jaas-support) that adds the ability to specific a cloud in matrix, which we need, as the cloud that you're deploying to is ambiguous in JaaS.
Unfortunately, since JaaS is still on Juju 2.0.3 and python-libjuju only supports the latest stable juju 2.1, we are blocked by https://github.com/juju/python-libjuju/issues/49. Without the ability to pick an appropriate facade, we fail with many errors when attempting to connect to the JaaS controller.
Here's a sketch of a proposed fix for python-libjuju: http://paste.ubuntu.com/24320954/
Please leave comments on https://github.com/juju/python-libjuju/issues/49
I unblocked us in python-libjuju. Now I'm working on the next step, which is to add support for selecting a cloud (and preferably auto-selecting a cloud).
This is done!
I just started up matrix while juju was pointed at the Jaas controller. It failed pretty spectacularly.
We need to handle the situation where an operator is using Jaas. The best way might be to pass in some Jaas arguments as command line arguments to matrix.