OK running the following command:
$ juju --debug -v sync-tools --version=1.23
Triggers this issue again:
copying 1.23.3-trusty-amd64 from https://streams.canonical.com/juju/tools/releases/juju-1.23.3-trusty-amd64.tgz 2015-05-27 20:41:40 INFO juju.environs.sync sync.go:175 copying 1.23.3-trusty-amd64 from https://streams.canonical.com/juju/tools/releases/juju-1.23.3-trusty-amd64.tgz 2015-05-27 20:41:40 INFO juju.environs.sync sync.go:186 downloading "testing" tools/releases/juju-1.23.3-trusty-amd64.tgz (https://streams.canonical.com/juju/tools/releases/juju-1.23.3-trusty-amd64.tgz) downloading "testing" tools/releases/juju-1.23.3-trusty-amd64.tgz (https://streams.canonical.com/juju/tools/releases/juju-1.23.3-trusty-amd64.tgz) 2015-05-27 20:42:47 INFO juju.environs.sync sync.go:204 uploading tools/releases/juju-1.23.3-trusty-amd64.tgz (11295kB) to environment uploading tools/releases/juju-1.23.3-trusty-amd64.tgz (11295kB) to environment UPLOAD TOOLS %s https://10.1.1.3:17070/tools?binaryVersion=1.23.3-trusty-amd64&series= 2015-05-27 20:42:54 ERROR juju.cmd supercommand.go:430 tools upload failed: 400 ({"Tools":null,"DisableSSLHostnameVerification":false,"Error":{"Message":"cannot store tools metadata: invalid binary version \"1.23.3--amd64\"","Code":""}})
And the database got this broken entry again:
{ "_id": "1.23.3-trusty-amd64", "path": "tools/1.23.3-trusty-amd64-007c62a742c974c3f082964f37b04c28d46345e4816a926c31f8bdef53000552", "sha256": "007c62a742c974c3f082964f37b04c28d46345e4816a926c31f8bdef53000552", "size": NumberLong(11566458), "txn-queue": [ "55662c53560277053e092f77_f9c4df44" ], "txn-revno": NumberLong(2), "version": "1.23.3-trusty-amd64" }{ "_id": "1.23.3--amd64", "path": "tools/1.23.3--amd64-ca9452252708abc4538c09741ba00e7eaece36cf90d0afb53933a535fe2e3ef0", "sha256": "ca9452252708abc4538c09741ba00e7eaece36cf90d0afb53933a535fe2e3ef0", "size": NumberLong(11566328), "txn-queue": [
], "txn-revno": NumberLong(2), "version": "1.23.3--amd64" }
OK running the following command:
$ juju --debug -v sync-tools --version=1.23
Triggers this issue again:
copying 1.23.3-trusty-amd64 from https:/ /streams. canonical. com/juju/ tools/releases/ juju-1. 23.3-trusty- amd64.tgz /streams. canonical. com/juju/ tools/releases/ juju-1. 23.3-trusty- amd64.tgz juju-1. 23.3-trusty- amd64.tgz (https:/ /streams. canonical. com/juju/ tools/releases/ juju-1. 23.3-trusty- amd64.tgz) juju-1. 23.3-trusty- amd64.tgz (https:/ /streams. canonical. com/juju/ tools/releases/ juju-1. 23.3-trusty- amd64.tgz) juju-1. 23.3-trusty- amd64.tgz (11295kB) to environment juju-1. 23.3-trusty- amd64.tgz (11295kB) to environment /10.1.1. 3:17070/ tools?binaryVer sion=1. 23.3-trusty- amd64&series= :null," DisableSSLHostn ameVerification ":false, "Error" :{"Message" :"cannot store tools metadata: invalid binary version \"1.23. 3--amd64\ "","Code" :""}})
2015-05-27 20:41:40 INFO juju.environs.sync sync.go:175 copying 1.23.3-trusty-amd64 from https:/
2015-05-27 20:41:40 INFO juju.environs.sync sync.go:186 downloading "testing" tools/releases/
downloading "testing" tools/releases/
2015-05-27 20:42:47 INFO juju.environs.sync sync.go:204 uploading tools/releases/
uploading tools/releases/
UPLOAD TOOLS %s https:/
2015-05-27 20:42:54 ERROR juju.cmd supercommand.go:430 tools upload failed: 400 ({"Tools"
And the database got this broken entry again:
{ trusty- amd64", 1.23.3- trusty- amd64-007c62a74 2c974c3f082964f 37b04c28d46345e 4816a926c31f8bd ef53000552" , c3f082964f37b04 c28d46345e4816a 926c31f8bdef530 00552", 11566458) ,
"55662c5356027 7053e092f77_ f9c4df44" trusty- amd64" 1.23.3- -amd64- ca9452252708abc 4538c09741ba00e 7eaece36cf90d0a fb53933a535fe2e 3ef0", c4538c09741ba00 e7eaece36cf90d0 afb53933a535fe2 e3ef0", 11566328) ,
"_id": "1.23.3-
"path": "tools/
"sha256": "007c62a742c974
"size": NumberLong(
"txn-queue": [
],
"txn-revno": NumberLong(2),
"version": "1.23.3-
}{
"_id": "1.23.3--amd64",
"path": "tools/
"sha256": "ca9452252708ab
"size": NumberLong(
"txn-queue": [
],
"txn-revno": NumberLong(2),
"version": "1.23.3--amd64"
}