Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(125)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 6404052: Remove LXC restart partial support

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by bcsaller
Modified:
13 years, 5 months ago
Reviewers:
hazmat , mp+115206
Visibility:
Public.
Remove LXC restart partial support This branch includes the bug fix (and a few trivials). The extra checks and features are in the history but not included here. https://code.launchpad.net/~bcsaller/juju/lxc-repairs/+merge/115206 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove LXC restart partial support #

Total comments: 6
Created: 13 years, 5 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -80 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M juju/agents/machine.py View 1 1 chunk +1 line, -1 line 0 comments Download
M juju/control/destroy_environment.py View 1 chunk +1 line, -1 line 0 comments Download
M juju/lib/lxc/__init__.py View 1 1 chunk +1 line, -1 line 0 comments Download
M juju/lib/lxc/data/juju-create View 1 2 chunks +2 lines, -8 lines 0 comments Download
A juju/lib/service.py View 1 1 chunk +143 lines, -0 lines 3 comments Download
A juju/lib/tests/test_service.py View 1 chunk +66 lines, -0 lines 2 comments Download
M juju/lib/upstart.py View 2 chunks +2 lines, -1 line 0 comments Download
M juju/machine/unit.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M juju/providers/local/__init__.py View 1 5 chunks +21 lines, -8 lines 0 comments Download
M juju/providers/local/agent.py View 1 4 chunks +21 lines, -6 lines 1 comment Download
M juju/providers/local/tests/test_agent.py View 1 3 chunks +16 lines, -51 lines 0 comments Download
M juju/providers/local/tests/test_provider.py View 1 2 chunks +18 lines, -1 line 0 comments Download
M setup.py View 1 1 chunk +2 lines, -2 lines 0 comments Download
Total messages: 4
|
bcsaller
Please take a look.
13 years, 6 months ago (2012年07月16日 18:55:51 UTC) #1
Please take a look.
Sign in to reply to this message.
bcsaller
Please take a look.
13 years, 5 months ago (2012年07月20日 19:31:20 UTC) #2
Please take a look.
Sign in to reply to this message.
hazmat
lgtm, with two minors. https://codereview.appspot.com/6404052/diff/1/juju/lib/service.py File juju/lib/service.py (right): https://codereview.appspot.com/6404052/diff/1/juju/lib/service.py#newcode56 juju/lib/service.py:56: return self._output_path feels like this ...
13 years, 5 months ago (2012年07月26日 13:03:13 UTC) #3
lgtm, with two minors.
https://codereview.appspot.com/6404052/diff/1/juju/lib/service.py
File juju/lib/service.py (right):
https://codereview.appspot.com/6404052/diff/1/juju/lib/service.py#newcode56
juju/lib/service.py:56: return self._output_path
feels like this should be required, if pid file is. hardcoded /tmp files are a
red flag.
https://codereview.appspot.com/6404052/diff/1/juju/lib/service.py#newcode72
juju/lib/service.py:72: if "--pidfile" not in command:
class should probably get renamed twisted daemon service, or class string
documentation of this the parameter requirement.
https://codereview.appspot.com/6404052/diff/2001/juju/lib/service.py
File juju/lib/service.py (right):
https://codereview.appspot.com/6404052/diff/2001/juju/lib/service.py#newcode33
juju/lib/service.py:33: class ServiceManager(object):
naming nitpick, service manager is a bit ambiguious, and sounds like its
managing multiple services. Given the description it seems more like an
AgentService.
https://codereview.appspot.com/6404052/diff/2001/juju/lib/service.py#newcode55
juju/lib/service.py:55: return "/tmp/%s.output" % self._name
this should use the data dir for output.
https://codereview.appspot.com/6404052/diff/2001/juju/lib/service.py#newcode139
juju/lib/service.py:139: return False
nice
https://codereview.appspot.com/6404052/diff/2001/juju/lib/tests/test_service.py
File juju/lib/tests/test_service.py (right):
https://codereview.appspot.com/6404052/diff/2001/juju/lib/tests/test_service....
juju/lib/tests/test_service.py:45: 
there should also be a real tests here, twistd has several builtin services.
https://codereview.appspot.com/6404052/diff/2001/juju/providers/local/agent.py
File juju/providers/local/agent.py (right):
https://codereview.appspot.com/6404052/diff/2001/juju/providers/local/agent.p...
juju/providers/local/agent.py:54: pidfile =
get_temp_filename(juju_unit_namespace)
these can go into the data-dir instead of /tmp, and can be named instead of
mkstemp
Sign in to reply to this message.
bcsaller
Changes made, test add, merging. https://codereview.appspot.com/6404052/diff/2001/juju/lib/tests/test_service.py File juju/lib/tests/test_service.py (right): https://codereview.appspot.com/6404052/diff/2001/juju/lib/tests/test_service.py#newcode45 juju/lib/tests/test_service.py:45: On 2012年07月26日 13:03:13, hazmat ...
13 years, 5 months ago (2012年08月03日 12:30:20 UTC) #4
Changes made, test add, merging.
https://codereview.appspot.com/6404052/diff/2001/juju/lib/tests/test_service.py
File juju/lib/tests/test_service.py (right):
https://codereview.appspot.com/6404052/diff/2001/juju/lib/tests/test_service....
juju/lib/tests/test_service.py:45: 
On 2012年07月26日 13:03:13, hazmat wrote:
> there should also be a real tests here, twistd has several builtin services.
Added test using twistd to spawn a webserver, some of the arg handling of twistd
is more specific than the manager expected, this was corrected in the code, the
result is more flexible.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /