sync-tools uploads 0kB juju tools when relative path is used for "--source"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Ian Booth |
Bug Description
juju-core: 1.16.3-
I have a directory structure below like S3 bucket for juju-tools:
/home/ubuntu/
└── tools
├── juju-1.
├── juju-1.
├── juju-1.
├── <snip>
├── juju-1.
├── releases
│ ├── juju-1.
│ ├── juju-1.
│ ├── juju-1.
│ ├── <snip>
│ └── juju-1.
└── streams
└── v1
├── com.ubuntu.
└── index.json
When I execute sync-tools from local directory and if relative path is specified for "--source", sync-tools uploads 0kB juju tools. This makes bootstrap node not working.
==========
~$ juju sync-tools -v --source juju-tools/
verbose is deprecated with the current meaning, use show-log
2013-11-26 08:46:13 INFO juju.environs.sync sync.go:66 listing available tools
listing available tools
2013-11-26 08:46:13 INFO juju.environs.sync sync.go:90 found 13 tools
found 13 tools
2013-11-26 08:46:13 INFO juju.environs.sync sync.go:94 found 13 recent tools (version 1.16.3)
found 13 recent tools (version 1.16.3)
2013-11-26 08:46:13 INFO juju.environs.sync sync.go:100 listing target bucket
listing target bucket
2013-11-26 08:46:13 INFO juju.environs.sync sync.go:113 found 0 tools in target; 13 tools to be copied
found 0 tools in target; 13 tools to be copied
2013-11-26 08:46:13 INFO juju.environs.sync sync.go:143 copying 1.16.3-
copying 1.16.3-
2013-11-26 08:46:13 INFO juju.environs.sync sync.go:157 copying tools/releases/
copying tools/releases/
2013-11-26 08:46:13 INFO juju.environs.sync sync.go:171 downloaded tools/releases/
downloaded tools/releases/
2013-11-26 08:46:13 INFO juju.environs.sync sync.go:172 download 0kB, uploading
download 0kB, uploading
<snip>
2013-11-26 08:46:14 INFO juju.environs.sync sync.go:118 copied 13 tools
copied 13 tools
2013-11-26 08:46:14 INFO juju.environs.sync sync.go:120 generating tools metadata
generating tools metadata
2013-11-26 08:46:14 INFO juju.environs.tools simplestreams.
2013-11-26 08:46:14 INFO juju.environs.tools simplestreams.
2013-11-26 08:46:14 INFO juju.environs.sync sync.go:128 tools metadata written
tools metadata written
2013-11-26 08:46:14 INFO juju supercommand.go:286 command finished
==========
sync-tools accepts absolute path for "--source" as expected.
So expected result for relative path is behaving the same as absolute path.
Related branches
- Juju Engineering: Pending requested
-
Diff: 70 lines (+36/-2)2 files modifiedenvirons/filestorage/filestorage.go (+5/-2)
environs/filestorage/filestorage_test.go (+31/-0)
description: | updated |
Changed in juju-core: | |
assignee: | nobody → Ian Booth (wallyworld) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
milestone: | 1.17.1 → 1.17.0 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Yes. Thank you for reporting this bug. I discovered this weeks ago and adjusted the juju release scripts instead of asking the developer to make the option work as everyone would expect.