lxd provider doesn't honour memory constraints

Bug #1582105 reported by Menno Finlay-Smits
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Joseph Phillips

Bug Description

When using the lxd provider passing something like "--constraints mem=2G" to add-machine or deploy doesn't have any effect on container created. It is reasonable to expect that this would affect the memory seen by the container.

Revision history for this message
Cheryl Jennings (cherylj) wrote :

Possibly a dup of bug #1397201, but would need to go through the code to confirm.

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0-beta8
tags: added: constraints juju-release-support lxd-provider
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta8 → 2.0-beta9
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta9 → 2.0-beta10
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta10 → 2.0-beta11
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta11 → 2.0-beta12
Changed in juju-core:
milestone: 2.0-beta12 → 2.0-beta13
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta13 → 2.0-beta14
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta14 → 2.0-beta15
Changed in juju-core:
milestone: 2.0-beta15 → 2.0.0
Changed in juju-core:
milestone: 2.0.0 → 2.1.0
affects: juju-core → juju
Changed in juju:
milestone: 2.1.0 → none
milestone: none → 2.1.0
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Removing 2.1 milestone as we will not be addressing this issue in 2.1.

Changed in juju:
milestone: 2.1-rc2 → none
Revision history for this message
Sandor Zeestraten (szeestraten) wrote :

Is anyone picking this up? Being able to set memory limits/constraints for lxd containers is kind of essential when running a lot of lxd containers (such as OpenStack charms) on a single box.

I saw the thread in https://lists.ubuntu.com/archives/juju-dev/2017-January/006269.html, but the guy in charge of implementing is gone it seems.

Revision history for this message
John A Meinel (jameinel) wrote :

Nobody is currently working on this. People objected to it being part of our existing constraints syntax (which generally defines minimums rather than maximums), which meant finding a new syntax, which then stalled and the person who had been working on it is no longer at Canonical.

Right now it is not on our immediate roadmap.

Revision history for this message
Joseph Phillips (manadart) wrote :

Constrains support landed in version 2.4.1

Changed in juju:
assignee: nobody → Joseph Phillips (manadart)
status: Triaged → Fix Released
Revision history for this message
Felipe Reyes (freyes) wrote :
Revision history for this message
Joseph Phillips (manadart) wrote :

Change above was actually for *provider* constraints on the develop branch.

The work for machine containers that underpins it landed in:
https://github.com/juju/juju/pull/8869

There was a later small change under:
https://github.com/juju/juju/pull/8891

For provider constraints in 2.4, see:
https://github.com/juju/juju/pull/8933

Revision history for this message
Felipe Reyes (freyes) wrote : Re: [Bug 1582105] Re: lxd provider doesn't honour memory constraints

Joseph, thanks for the references ;)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.