Closed aliouba closed 5 years ago
This should be addressed by #274 (originally reported in #272). Can you confirm that you are using the latest version of the library (0.11.2) and what Juju controller version?
Comment on #272 issue indicates this can be closed. Glad it is resolved.
Thanks @johnsca.
But It is important to understand why It was not working anymore. Can you explain why?
Was there a bug? Normally we have the ability to use 0.10.2 than the new version 0.11.2.
There was a change to the Juju API which was not backwards compatible. Normally, this is handled by the versioning of the API calls (facade versions), but in this case, changes from the unfinalized Juju 2.5 got pulled 0.10.2 due to needing a change from a previous API update (the API hadn't been synced in a while before that). It just so happened that the facade version was updated prior to the change that caused this issue, and libjuju updated in the middle.
We have started integrating the Juju CI with libjuju CI to prevent this from happening, and we also need to make a process change to ensure that a non-stable version of the Juju APIs don't get released as a stable version of libjuju.
I am still investigating but the same code works on one environment but not another one, which is very weird.
My code
And I got this error