certificates problem causes snappy to traceback when accessing store
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Snappy |
Undecided
|
Unassigned | ||
Bug Description
Not sure where to put these right now, so putting them here. The following things were discovered while doing the Using Snappy walkthrough found here: https:/
1: snappy list -v
this doesn't work, it results in an error:
ubuntu@localhost:~$ snappy list -v
Usage:snappy [-h] [-v]
...
snappy: error: invalid choice: 'list' (choose from 'info', 'versions', 'search', 'update-versions', 'update', 'rollback', 'install', 'uninstall', 'tags', 'config', 'build', 'booted', 'chroot', 'framework', 'fake-version', 'nap')
2: snappy versions (tried this because list didn't work and I wanted to see what it did) Right out of the box, I get a traceback.
ubuntu@localhost:~$ snappy versions
Traceback (most recent call last):
File "/usr/bin/snappy", line 25, in <module>
status = Main().__main__()
File "/usr/lib/
return callback(args)
File "/usr/lib/
click_versions = ClickDataSource
File "/usr/lib/
all_
File "/usr/lib/
headers=
File "/usr/lib/
curl.perform()
pycurl.error: (60, 'server certificate verification failed. CAfile: /etc/ssl/
| Jeff Lane (bladernr) wrote : | #1 |
| Jeff Lane (bladernr) wrote : | #2 |
The certificate thing seems to break anything that wants to visit the store:
ubuntu@localhost:~$ snappy search docker
Traceback (most recent call last):
File "/usr/bin/snappy", line 25, in <module>
status = Main().__main__()
File "/usr/lib/
return callback(args)
File "/usr/lib/
results = ClickDataSource
File "/usr/lib/
results = repo.search(
File "/usr/lib/
resp, raw_content = http_request(url, headers=
File "/usr/lib/
curl.perform()
pycurl.error: (60, 'server certificate verification failed. CAfile: /etc/ssl/
ubuntu@localhost:~$ snappy install docker
Traceback (most recent call last):
File "/usr/bin/snappy", line 25, in <module>
status = Main().__main__()
File "/usr/lib/
return callback(args)
File "/usr/lib/
manifest = ClickDataSource
File "/usr/lib/
manifest = repo.details(part)
File "/usr/lib/
self.
File "/usr/lib/
return http_request(uri, *args, **kwargs)
File "/usr/lib/
curl.perform()
pycurl.error: (60, 'server certificate verification failed. CAfile: /etc/ssl/
| summary: |
- issues using different parts of the snappy command + certificates problem causes snappy to traceback when accessing store |
| Jeff Lane (bladernr) wrote : | #3 |
summary modified, the certificates thing is more important than the missing list command.
| Michael Vogt (mvo) wrote : | #4 |
Thanks for your bugreport.
This looks like you are using a older image. Could you please ensure that you use one of the 15.04.1 image based on the instruction from https:/
| Changed in snappy: | |
| status: | New → Incomplete |
| Jeff Lane (bladernr) wrote : | #5 |
Yep, Ogra provided me with a better image than the one the Pi shipped with and the certificates issue has been resolved.
| Changed in snappy: | |
| status: | Incomplete → Invalid |


I also noted that if there is no DNS server listed in named.conf (I've modified mine to use a static address rather than DHCP, and forgot initially to define nameservers) 'snappy versions" returns another ugly traceback about not being able to resolve names... both of those tracebacks should be handled better.
ubuntu@localhost:~$ snappy versions python3/ dist-packages/ snappy/ main.py" , line 195, in __main__ python3/ dist-packages/ snappy/ main.py" , line 334, in _do_versions ().versions( all) python3/ dist-packages/ snappy/ click.py" , line 189, in versions updates_ list = repo.get_ upgradable( ) python3/ dist-packages/ click/repositor y.py", line 183, in get_upgradable {"content- type": "application/ json"}) python3/ dist-packages/ click/network. py", line 70, in http_request developer. ubuntu. com')
Traceback (most recent call last):
File "/usr/bin/snappy", line 25, in <module>
status = Main().__main__()
File "/usr/lib/
return callback(args)
File "/usr/lib/
click_versions = ClickDataSource
File "/usr/lib/
all_
File "/usr/lib/
headers=
File "/usr/lib/
curl.perform()
pycurl.error: (6, 'Could not resolve host: myapps.