Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(275)

Issue 37610043: Make KVM respect constraints.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by thumper
Modified:
10 years, 5 months ago
Reviewers:
wallyworld, mp+197815
Visibility:
Public.

Description

Make KVM respect constraints. The uvtool CLI allows us to specify memory, disk and cores on the command-line. Constraints often ask for a subset (or superset) of these. This branch translates between the juju constraints format to the command line params that the uvt-kvm tool wants. If constraints are supplied that KVM doesn't support, a log entry is written out at INFO level. It isn't really a warning, just an informational that we are ignoring it. Also, the local provider wasn't passing the constraints through as the FinishMachineConfig only set the constraints on the config object if it was a state server node. I am a little unclear on the implications of this for other providers. https://code.launchpad.net/~thumper/juju-core/kvm-constraints/+merge/197815 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Make KVM respect constraints. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -39 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M container/kvm/container.go View 1 2 chunks +12 lines, -15 lines 0 comments Download
M container/kvm/interface.go View 2 chunks +12 lines, -7 lines 0 comments Download
M container/kvm/kvm.go View 1 4 chunks +81 lines, -6 lines 0 comments Download
M container/kvm/kvm_test.go View 3 chunks +132 lines, -1 line 0 comments Download
M container/kvm/libvirt.go View 1 2 chunks +12 lines, -1 line 0 comments Download
M container/kvm/live_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M container/kvm/mock/mock-kvm.go View 2 chunks +1 line, -7 lines 0 comments Download
M provider/local/environ.go View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4
thumper
Please take a look.
10 years, 5 months ago (2013-12-05 04:11:27 UTC) #1
wallyworld
I have an issue with the early conversion of mem, cores etc to strings. Thoughts ...
10 years, 5 months ago (2013-12-05 04:23:31 UTC) #2
thumper
Please take a look. https://codereview.appspot.com/37610043/diff/1/container/kvm/kvm.go File container/kvm/kvm.go (right): https://codereview.appspot.com/37610043/diff/1/container/kvm/kvm.go#newcode30 container/kvm/kvm.go:30: DefaultDisk uint64 = 8 // ...
10 years, 5 months ago (2013-12-05 22:34:33 UTC) #3
wallyworld
10 years, 5 months ago (2013-12-05 23:11:46 UTC) #4
LGTM. Thanks for the changes
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b