Comment 4 for bug 2019086

Revision history for this message
Andre Ruiz (andre-ruiz) wrote (last edit ):

This is weird because the license file appears to be correct, contents do not seem to be corrupted.

Also, it was given to the charm in base64 format, and they ended up correctly in plain text inside the units at /etc/landscape/license.txt. The contents there match exactly the contents of original file before passed to charm option in encoded form.

Also, the part "gpg: WARNING: no command supplied. Trying to guess what you mean ..." seem unexpected.

If I manually run that gpg command, the result is the same:

root@landscape-2:/etc/landscape# gpg --skip-verify --output - /etc/landscape/license.txt
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: invalid armor header: iQEzBAEBCgAdFiEENTODksx68VxYHaPbcqZmZcXIjuYFAmTlPXQACgkQcqZmZcXI\n

This is the (obscured) content of the license file as it is inside the unit, just for reference:

============================8<-----------------------------
root@landscape-2:/etc/landscape# cat license.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

{
  "licensee":"xxxxxxxxxxxxxxxx",
  "licenses":[
    {
      "role":"BasicFeatures",
      "seats":yyy,
      "license_key":"1INxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxGTzv",
      "expires":"202x-xx-xx"
    }
  ]
}
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEENTODksx68VxYHaPbcqZmZcXIjuYFAmTlPXQACgkQcqZmZcXI
(deleted lines...)
uhnsOoORDPDQ27zANORG4C/rrFFGoQHk+Q3c4ynnF96qeKLVa1mL/WdxLahP+xA4
ETKttDoP45r0uXhpzmvuvETsyUrWgg==
=71TG
-----END PGP SIGNATURE-----
============================8<-----------------------------