juju sync-tools fails with windows streams
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | juju-core |
High
|
Unassigned | ||
Bug Description
Environment:
Ubuntu Server 14.04.2 LTS amd64 as MAAS region/cluster controller, and the host used to deploy OpenStack.
Installed juju 1.22 because I need to support ppc64el agents
ii juju-core 1.22.1-
ii maas 1.5.4+bzr2294-
Old version: agent-version: 1.20.11.1
1.22 is required because it's the first released/stable versio that has this bug fixed:
https:/
The env was created using --upload-tools. I am trying to update the tools using sync-tools.
This works until it hits windows ...
({"Tools"
WORK AROUND:
get a local copy of the streams, delete the *win*tgz agents, regenerate streams, and finally sync the local stream to the env: something like:
juju sync-tools --destination tmpstreams/ --stream <released|proposed>
rm tmpstreams/
juju metadata generate-tools
juju sync-tools --source tmpstreams --stream <released|proposed>
juju upgrade-juju
| Changed in juju-core: | |
| status: | New → Triaged |
| importance: | Undecided → High |
| tags: | added: sync-tools windows |
| Changed in juju-core: | |
| milestone: | none → 1.24-alpha1 |
| Curtis Hovey (sinzui) wrote : | #1 |
| Curtis Hovey (sinzui) wrote : | #2 |
Speculating on IRC We think the we can get a local copy of the streams, delete the *win*tgz agents, regenerate streams, and finaly sync the local stream to the en
juju sync-tools --destination tmpstreams/ --stream <released|proposed>
rm tmpstreams/
juju metadata generate-tools
juju sync-tools --source tmpstreams --stream <released|proposed>
juju upgrade-juju
| Curtis Hovey (sinzui) wrote : | #3 |
This issue only affect 1.20.x upgrades to 1.21 or 1.22.
| Alexander List (alexlist) wrote : | #4 |
Confirming workaround: getting a local copy of the streams, deleting win agents and metadata, regenerating metadata, and uploading tools from local copy worked.
| Changed in juju-core: | |
| milestone: | 1.24-alpha1 → 1.25.0 |
| summary: |
- juju sync-tools fails + juju sync-tools fails with windows streams |
| no longer affects: | juju-core/1.24 |
| Changed in juju-core: | |
| status: | Triaged → Won't Fix |
| milestone: | 1.25.0 → none |
| description: | updated |
| David Ames (thedac) wrote : | #5 |
Curtis,
We are running into this bug on ServerStack.
Unfortunately, the workaround is not working in our case
The following is done:
juju sync-tools --destination tmpstreams/ --stream <released|proposed>
rm tmpstreams/
juju metadata generate-tools
juju sync-tools --source tmpstreams --stream <released|proposed>
But when attempting to upgrade juju cannot find the tools
ubuntu@churel:~$ juju upgrade-juju
ERROR no more recent supported versions available
ubuntu@churel:~$ juju upgrade-juju --version="1.22.8"
ERROR no matching tools available
ubuntu@churel:~$ juju upgrade-juju --version="1.22.6"
ERROR no matching tools available
Any hints welcome.
| Curtis Hovey (sinzui) wrote : | #6 |
Hi David.
You may need to set the tools-metadata-url (1.20-) or agent-metadata-url (1.21+), and you certainly must if --upload-tools was ever used (it disables upgrades)
juju set-env tools-metadata-
Since sync-tools placed the agents in a private container, you need to workout the location of the container. For example, I used swift or the horizon dashboard to find my juju-dist container that I placed testing tools in.
https:/
It might be faster to just copy to local synced tools dirs to a public accessible container, then
juju set-env tools-metadata-


with win* series are hard coded into juju since Ubuntu will never list them in /usr/share/ distro- info/ubuntu. csv. The effect env is
agent-version: 1.20.11.1
which doesn't know about any win versions.
So. we need a way to upgrade the server without using sync-tools, then after the upgrade, run sync-tools