Comments (5)
Fixing this should be as simple as finding instances of the string "constraints" in model.py, and replacing where appropriate with parse_constraints(constraints).
from python-libjuju.
Working on this now. It looks like it's not as simple as naively adding parse_constraints -- I get errors on the core side, and may have to make the logic in parse_constraints more sophisticated. :-/
from python-libjuju.
This bug has unveiled a whole tangle of fun issues:
- We needed to parse_constraints in more places -- I've done that locally.
- We need to convert CamelCase in the AddMachines params to snake_case -- I've done that locally, though the code needs some neatening up.
- If a .yaml specifies an lxd container or a machine, we need to parse that into two Placement objects -- I've done that locally.
- If a .yaml specifies lxc containers, it looks like we need to setup lxd containers instead. I'm working on that, though my first pass at a fix isn't working :-/
from python-libjuju.
Update: I've addressed point 4, from the previous comment, in a branch, but I'm now getting a failure getting haproxy up. Either there's a bug in 3 (Placement objects aren't making lxd containers correctly), or we're missing something that haproxy needs (it looks like it's complaining about missing a config value).
Will continue to work on this ...
from python-libjuju.
A lot of this issue was fixed in #37
The remaining issue is open in launchpad here: https://bugs.launchpad.net/juju-core/+bug/1651260
Will open a new issue here if we need to do more work after addressing the launchpad bug.
from python-libjuju.
Related Issues (20)
- Unable to upload .tar file as local resource to deployed charmed application HOT 1
- SSL cert failure in connection after password change HOT 2
- Remove upper-bound on paramiko
- Can't run python-libjuju async loop on background thread in py3.8, py3.9 and py3.10? due to "set_wakeup_fd() only works in main thread"
- Failed to add machine from MAAS using machine's FQDN (known in MAAS) HOT 4
- Wrong juju_topology in alert rule provided via `LogProxyConsumer` HOT 1
- Libjuju 3.3.1.0 is unusable HOT 9
- AttributeError: 'NoneType' object has no attribute 'exception' HOT 2
- [Feature] Support `scp_from` and `scp_to` for k8s charm HOT 1
- Model.consume() from a different controller doesn't work HOT 1
- Model.deploy() failing while specifying a k8s charm bundle HOT 5
- python-libjuju should use manifest.yaml to determine series/base for local charms in `get_charm_series` HOT 2
- Connector.connect require controllers.yaml on 3.2 release HOT 2
- [Bug] Cannot create more than one offer HOT 1
- Pinned revision in bundle not taken into account when deploying with model.deploy()
- python-libjuju attempts to deploy charms (from bundles) incorrectly HOT 3
- Receiving a KeyError while trying to access an model attribute with getattr is unexpected HOT 2
- Incorrect parsing of zones constraint
- Incorrect parsing of storage constraints
- Keyerror "controller" when connecting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-libjuju.