Comment 2 for bug 1662962

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Mark,

Thank you for the clarification - I was not sure if it was deliberate or not.

I guess having `snap info` is enough as it provides a way to do a debugging query without performing an installation.

I would consider having `snap find` not return snaps from --edge while having an explicit option to include a specific channel which a regular user would not normally use. Having that would simplify searching in case you don't remember where the actual blog post page is or if a blog goes down. It doesn't seem to be a frequent use-case though might raise questions unless documented.

My intention was to check snap availability in any form.

Based on what I see this is a server-side limitation:

snap info ceilometer

sudo strace -s128 -f -p `pgrep -f snapd` |& grep -P 'connect|ceilometer'
[pid 20669] read(3, "GET /v2/find?name=ceilometer HTTP/1.1\r\nHost: localhost\r\nUser-Agent: Go-http-client/1.1\r\nAuthorization: Macaroon root=\"MDAxM2xvY2"..., 4096) = 257
[pid 20669] connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid 20669] connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid 20669] connect(4, {sa_family=AF_INET, sin_port=htons(9), sin_addr=inet_addr("162.213.33.196")}, 16) = 0
[pid 20669] connect(4, {sa_family=AF_INET, sin_port=htons(9), sin_addr=inet_addr("162.213.33.200")}, 16) = 0
[pid 20669] connect(4, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("162.213.33.196")}, 16) = -1 EINPROGRESS (Operation now in progress)
[pid 20669] stat("/snap/ceilometer/2/meta/gui", <unfinished ...>
[pid 20669] write(6, "<15>Feb 10 01:06:22 /usr/lib/snapd/snapd[3010]: daemon.go:176: DEBUG: uid=1000;@ GET /v2/find?name=ceilometer 508.671446ms 200\n", 127) = 127
[pid 20669] <... read resumed> "GET /v2/snaps/ceilometer HTTP/1.1\r\nHost: localhost\r\nUser-Agent: Go-http-client/1.1\r\nAuthorization: Macaroon root=\"MDAxM2xvY2F0aW"..., 4096) = 253
[pid 20669] write(6, "<15>Feb 10 01:06:22 /usr/lib/snapd/snapd[3010]: daemon.go:176: DEBUG: uid=1000;@ GET /v2/snaps/ceilometer 304.053\302\265s 404\n", 121 <unfinished ...>

nslookup 162.213.33.200
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
200.33.213.162.in-addr.arpa name = search.apps.ubuntu.com.