Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Feature/jaas support v2 #127

Merged
merged 9 commits into from Apr 27, 2017
Merged

Feature/jaas support v2 #127

merged 9 commits into from Apr 27, 2017

Conversation

pengale
Copy link
Contributor

@pengale pengale commented Apr 26, 2017

Added a -C/--cloud flag so that people can specify a cloud when running against JaaS.

Timeout exceptions now bubble up in a more visible way.

Updated README with notes on JaaS.

@johnsca No longer WIP as we have updated python-libjuju. We still get occasional timeouts connecting to JaaS, but I'm going to split that into a separate ticket.

This adds support for JaaS, where the cloud that you might be deploying
to does not necessarily match the controller.
Looser timeouts, and better logging and cleanup when things do go wrong.
"could be ambiguous, as in the case of our JaaS "
"product, which is a shared controllers that can "
"connect to multiple clouds, "
"JaaS.")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to automagic this param, but I don't think that there's a great way of doing so.

With JaaS, you have to manually specify a cloud. If you don't, and you have creds for multiple clouds, we simply don't have a way of knowing what cloud you meant.

A Timeout Error has no text, so we lose it. Logging exception will give
us better output for debugging.
JaaS can take a little while to respond, but the models do get added.
Timeout in add_model probably isn't a timeout, so giving up after a
minute makes a lot of sense.
They weren't working well as diagnostic tools, and we already have other
wrappers around matrix to convince it to timeout.

I think that bare awaits are better -- they surface Exceptions more
easily, and again, we have other layers of code that time things out.
@pengale pengale changed the title [WIP] Feature/jaas support v2 Feature/jaas support v2 Apr 27, 2017
@johnsca johnsca merged commit 1e9a74f into master Apr 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants