Merge lp:~thumper/juju-core/fix-windows-build into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1829 |
Proposed branch: | lp:~thumper/juju-core/fix-windows-build |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
129 lines (+19/-10) 5 files modified
environs/cloudinit.go (+1/-0) environs/cloudinit/cloudinit.go (+5/-5) scripts/win-installer/setup.iss (+1/-1) upstart/service.go (+4/-4) utils/file.go (+8/-0) |
To merge this branch: | bzr merge lp:~thumper/juju-core/fix-windows-build |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+186225@code.launchpad.net |
Commit message
Make bootstrap work from a windows client.
This change uses path rather than filepath for the Join
methods for the cloudinit and upstart job creation.
This is because the client OS may be windows, but the
code is running on linux server-side.
A util function has been added that should be used in
the agent and worker code to ease the transition to
supporting windows as a server OS.
The generated cloudinit content for new machines is
logged out at TRACE level to provide debugging info.
This is already on the lp:juju-core/1.14 branch.
Description of the change
Make bootstrap work from a windows client.
This change uses path rather than filepath for the Join
methods for the cloudinit and upstart job creation.
This is because the client OS may be windows, but the
code is running on linux server-side.
A util function has been added that should be used in
the agent and worker code to ease the transition to
supporting windows as a server OS.
The generated cloudinit content for new machines is
logged out at TRACE level to provide debugging info.
This is already on the lp:juju-core/1.14 branch.
Reviewers: mp+186225_ code.launchpad. net,
Message:
Please take a look.
Description:
Make bootstrap work from a windows client.
This change uses path rather than filepath for the Join
methods for the cloudinit and upstart job creation.
This is because the client OS may be windows, but the
code is running on linux server-side.
A util function has been added that should be used in
the agent and worker code to ease the transition to
supporting windows as a server OS.
The generated cloudinit content for new machines is
logged out at TRACE level to provide debugging info.
This is already on the lp:juju-core/1.14 branch.
https:/ /code.launchpad .net/~thumper/ juju-core/ fix-windows- build/+ merge/186225
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/13241053/
Affected files (+21, -10 lines): cloudinit. go cloudinit/ cloudinit. go win-installer/ setup.iss
A [revision details]
M environs/
M environs/
M scripts/
M upstart/service.go
M utils/file.go
Index: [revision details] 20130917082542- j1hu82fubd89omb o
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: environs/ cloudinit. go cloudinit. go' cloudinit. go 2013-09-16 22:02:24 +0000 cloudinit. go 2013-09-18 01:25:45 +0000 Tracef( "Generated cloud init:\n%s", string(data))
=== modified file 'environs/
--- environs/
+++ environs/
@@ -126,6 +126,7 @@
return nil, err
}
data, err := cloudcfg.Render()
+ logger.
if err != nil {
return nil, err
}
Index: upstart/service.go service. go'
=== modified file 'upstart/
--- upstart/service.go 2013-09-16 22:02:24 +0000
+++ upstart/service.go 2013-09-18 01:25:45 +0000
@@ -5,7 +5,7 @@
import (
"fmt"
- "path/filepath"
+ "path"
"launchpad. net/juju- core/utils"
)
@@ -17,7 +17,7 @@
// MongoUpstartService returns the upstart config for the mongo state vice(name, dataDir, dbDir string, port int) *Conf { Join(dataDir, "server.pem") tartService( name, toolsDir, dataDir, logDir, tag, Join(logDir, tag+".log") Join(toolsDir, "jujud") + dataDir) +
service.
func MongoUpstartSer
- keyFile := filepath.
+ keyFile := path.Join(dataDir, "server.pem")
svc := NewService(name)
return &Conf{
Service: *svc,
@@ -44,7 +44,7 @@
// based on the tag and machineId passed in.
func MachineAgentUps
machineId string, env map[string]string) *Conf {
svc := NewService(name)
- logFile := filepath.
+ logFile := path.Join(logDir, tag+".log")
// The machine agent always starts with debug turned on. The logger
worker
// will update this to the system logging environment as soon as it
starts.
return &Conf{
@@ -53,7 +53,7 @@
Limit: map[string]string{
"nofile": fmt.Sprintf("%d %d", maxAgentFiles, maxAgentFiles),
},
- Cmd: filepath.
+ Cmd: path.Join(toolsDir, "jujud") +
" machine" +
" --data-dir " + utils.ShQuote(
" --machine-id " + machineId +
Index: utils/file.go
=== modified file 'utils/file.go'
--- utils/file.go 2013-08-28 20:37:53 +0000
+++ utils/file.go 201...