quay / quayctl

quayctl is a command-line client for Quay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

--squashed returns 406

robszumski opened this issue · comments

$ ./quayctl torrent pull quay.io/aptible/ubuntu --squashed
2016/03/31 20:19:31 Starting download of squashed image
quay.io/aptible/ubu[------------------------------------]   0.00 %  Initializing
2016/03/31 20:19:31 Unable to start torrent: got 406 for .torrent file

I assume this a bug?

@robszumski still reproducing?

The squashed flag is no longer available, I'm not sure if thats a bug or not. But pulling without it works:

$ ./quayctl version
Build c340ab75c14b7dc644ed5cfef022adb914f8c47f (2016-04-13_05:42:40PM)
$ ./quayctl rkt torrent pull quay.io/aptible/ubuntu
2016/04/20 20:47:16 Discovering image quay.io/aptible/ubuntu
2016/04/20 20:47:16 Downloading torrent for image quay.io/aptible/ubuntu
quay.io/aptible/ubu Completed
2016/04/20 20:47:39 Downloading signature for image quay.io/aptible/ubuntu
2016/04/20 20:47:39 Loading image quay.io/aptible/ubuntu
image: using image from file /tmp/quayctl/torrents/ea659c9ea8dcf42a6839f609ac864ea7714e71cca53064c3f4f5c32507bcaa5a
image: If you expected the signing key to change, try running:
image:     rkt trust --prefix <image>
fetch: openpgp: signature made by unknown entity
2016/04/20 20:47:40 Could not load image quay.io/aptible/ubuntu into rkt: exit status 1
$ rkt trust --prefix quay.io
pubkey: prefix: "quay.io"
key: "https://quay.io/aci-signing-key"
gpg key fingerprint is: BFF3 13CD AA56 0B16 A898  7B8F 72AB F5F6 799D 33BC
    Quay.io ACI Converter (ACI conversion signing key) <support@quay.io>
Are you sure you want to trust this key (yes/no)?
yes
Trusting "https://quay.io/aci-signing-key" for prefix "quay.io" after fingerprint review.
trust: error adding keys: open /etc/rkt/trustedkeys/prefix.d/quay.io/bff313cdaa560b16a8987b8f72abf5f6799d33bc: permission denied
$ sudo !!
sudo rkt trust --prefix quay.io
pubkey: prefix: "quay.io"
key: "https://quay.io/aci-signing-key"
gpg key fingerprint is: BFF3 13CD AA56 0B16 A898  7B8F 72AB F5F6 799D 33BC
    Quay.io ACI Converter (ACI conversion signing key) <support@quay.io>
Are you sure you want to trust this key (yes/no)?
yes
Trusting "https://quay.io/aci-signing-key" for prefix "quay.io" after fingerprint review.
Added key for prefix "quay.io" at "/etc/rkt/trustedkeys/prefix.d/quay.io/bff313cdaa560b16a8987b8f72abf5f6799d33bc"
$ ./quayctl rkt torrent pull quay.io/aptible/ubuntu
2016/04/20 20:49:00 Discovering image quay.io/aptible/ubuntu
2016/04/20 20:49:01 Downloading torrent for image quay.io/aptible/ubuntu
quay.io/aptible/ubu Completed
2016/04/20 20:49:09 Downloading signature for image quay.io/aptible/ubuntu
2016/04/20 20:49:09 Loading image quay.io/aptible/ubuntu
image: using image from file /tmp/quayctl/torrents/ea659c9ea8dcf42a6839f609ac864ea7714e71cca53064c3f4f5c32507bcaa5a
image: signature verified:
  Quay.io ACI Converter (ACI conversion signing key) <support@quay.io>
2016/04/20 20:49:21 Successfully pulled image quay.io/aptible/ubuntu

--squashed flag only applies to Docker, and the 406 response will still be an issue for both squashed images and rkt images when not first generated by a normal curl call. I plan to have quayctl make this call in the next change.