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

Issue 7221070: Fix RunServerOpts Userdata (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by wallyworld
Modified:
11 years, 3 months ago
Reviewers:
dimitern, jameinel, mp+145539
Visibility:
Public.

Description

Fix RunServerOpts Userdata The UserData attribute of RunServerOpts was []byte, but it needs to be string to make juju bootstrap work. All the current nova tests simply ignore this attribute - they pass in nil. I tried writing a test to set up a cloud init config with a simple script command and introduced a deliberate error but the nova create server operation succeeded nonetheless. Yet the huge cloud init script used by juju bootstrap fails. So I'm not sure how to set up a small, self contained test in goose for the userData attribute. The code in this merge proposal makes juju happy though, apart from that fact that Canonistack sometimes gives a "Resource limit exeeded" error when bootstrapping a juju instance. https://code.launchpad.net/~wallyworld/goose/RunServer-userData-fix/+merge/145539 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M nova/live_test.go View 1 chunk +1 line, -2 lines 0 comments Download
M nova/nova.go View 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 5
wallyworld
Please take a look.
11 years, 3 months ago (2013-01-30 04:50:43 UTC) #1
jameinel
I think this is the right fix. ISTR that if you use []byte in a ...
11 years, 3 months ago (2013-01-30 06:49:23 UTC) #2
dimitern
On 2013/01/30 04:50:43, wallyworld wrote: > Please take a look. LGTM, but why did you ...
11 years, 3 months ago (2013-01-30 06:57:14 UTC) #3
jameinel
On 2013/01/30 06:57:14, dimitern wrote: > On 2013/01/30 04:50:43, wallyworld wrote: > > Please take ...
11 years, 3 months ago (2013-01-30 07:12:45 UTC) #4
dimitern
11 years, 3 months ago (2013-01-30 14:44:22 UTC) #5
On 2013/01/30 04:50:43, wallyworld wrote:
> Please take a look.

NOT LGTM - as discussed, this change is not needed, because the problem is we
shouldn't encode userData in base64, as being []byte this is done automatically
by go (see the docs). I have a CL which just removes the encoding and will
propose it shortly.
Sign in to reply to this message.

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