Comment 21 for bug 1817665

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

trusty verification

I have these packages from trusty-proposed: libsodium18 python3-libnacl python3-pymacaroons
root@trusty-sru-1822780:~# apt-cache policy libsodium18 python3-libnacl python3-pymacaroons
libsodium18:
  Installed: 1.0.8-5~ubuntu14.04.1
  Candidate: 1.0.8-5~ubuntu14.04.1
  Version table:
 *** 1.0.8-5~ubuntu14.04.1 0
        500 http://br.archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
python3-libnacl:
  Installed: 1.4.5-0ubuntu1~ubuntu14.04.1
  Candidate: 1.4.5-0ubuntu1~ubuntu14.04.1
  Version table:
 *** 1.4.5-0ubuntu1~ubuntu14.04.1 0
        500 http://br.archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
python3-pymacaroons:
  Installed: 0.9.2-0ubuntu1~ubuntu14.04.2
  Candidate: 0.9.2-0ubuntu1~ubuntu14.04.2
  Version table:
 *** 0.9.2-0ubuntu1~ubuntu14.04.2 0
        500 http://br.archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
        100 /var/lib/dpkg/status

I then installed a devel version of ubuntu-advantage, and was able to successfully attach to a subscription:
root@trusty-sru-1822780:~# ua attach
Email: <email address hidden>
Password:
Second-factor auth: xxxxxx
This machine is now attached to '<email address hidden>'.

Account: <email address hidden>
Subscription: <email address hidden>
Valid until: 0001-01-01
Technical support level: not included

cc entitled n/a
cis-audit none inactive
esm entitled inactive
fips entitled n/a
fips-updates none n/a
livepatch entitled n/a

Enable entitlements with `ua enable <service>`

# l /var/lib/ubuntu-advantage/private/root-macaroon.json
-rw------- 1 root root 959 Apr 16 21:18 /var/lib/ubuntu-advantage/private/root-macaroon.json

This used macaroons, and wouldn't have worked without that package.

Finally, test scripts from the quickstart (https://github.com/ecordell/pymacaroons#quickstart) mentioned in the sru template:

root@trusty-sru-1822780:~# python3 ./macaroon-quickstart.py
location cool-picture-service.example.com
identifier key-for-bob
cid picture_id = bobs_cool_cat.jpg
signature 83d8fa280b09938d3cffe045634f544ffaf712ff2c51ac34828ae8a42b277f8f
MDAyZWxvY2F0aW9uIGNvb2wtcGljdHVyZS1zZXJ2aWNlLmV4YW1wbGUuY29tCjAwMWJpZGVudGlmaWVyIGtleS1mb3ItYm9iCjAwMjdjaWQgcGljdHVyZV9pZCA9IGJvYnNfY29vbF9jYXQuanBnCjAwMmZzaWduYXR1cmUgg9j6KAsJk408_-BFY09UT_r3Ev8sUaw0goropCsnf48K

Trusty verification succeeded