Git Product home page Git Product logo

Comments (5)

pengale avatar pengale commented on July 17, 2024

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.

pengale avatar pengale commented on July 17, 2024

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.

pengale avatar pengale commented on July 17, 2024

This bug has unveiled a whole tangle of fun issues:

  1. We needed to parse_constraints in more places -- I've done that locally.
  2. We need to convert CamelCase in the AddMachines params to snake_case -- I've done that locally, though the code needs some neatening up.
  3. If a .yaml specifies an lxd container or a machine, we need to parse that into two Placement objects -- I've done that locally.
  4. 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.

pengale avatar pengale commented on July 17, 2024

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.

pengale avatar pengale commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.