Comment 6 for bug 1459033

Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

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"
}