harmonize apt sources and keys configuration

Bug #1813447 reported by Dmitrii Shcherbakov
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Landscape Charm
Fix Released
Medium
Adam Collard
landscape-client-charm
Fix Committed
Medium
Adam Collard

Bug Description

Currently landscape charms provide different mechanisms to configure apt keys and options which is confusing for deployers and operators.

It would be good to standardize on something common such as install_sources and install_keys options implemented in many reactive charms (which depend on layer-apt).

Tags: cpe-onsite

Related branches

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

install_sources and install_keys have been implemented for landscape (server) charm and are available as of revision 30 in the charm store.

Changed in landscape-charm:
status: New → Fix Released
Changed in landscape-charm:
assignee: nobody → Adam Collard (adam-collard)
importance: Undecided → Medium
Changed in landscape-client-charm:
status: New → In Progress
assignee: nobody → Adam Collard (adam-collard)
importance: Undecided → Medium
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Seems like the install_sources code path does not execute apt update somehow:

unit-landscape-xenial-full-keyid-0: 01:07:52 DEBUG unit.landscape-xenial-full-keyid/0.install subprocess.CalledProcessError: Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'landscape-server', 'landscape-hashids', 'python-minimal', 'python-psutil']' returned non-zero exit status 100
unit-landscape-xenial-full-keyid-0: 01:07:52 ERROR juju.worker.uniter.operation hook "install" failed: exit status 1

https://paste.ubuntu.com/p/kGy9FspD8G/

  install_sources: |
    - 'deb http://ppa.launchpad.net/landscape/19.01/ubuntu xenial main'
  install_keys: |
    - 35F77D63B5CEC106C577ED856E85A86E4652B4E6

Changed in landscape-charm:
status: Fix Released → New
Changed in landscape-client-charm:
status: In Progress → Fix Committed
Revision history for this message
Jason Hobbs (jason-hobbs) wrote :

It looks like install_keys is being handled after install_sources:

http://paste.ubuntu.com/p/pD57DDvWCM/

Changed in landscape-charm:
status: New → In Progress
Changed in landscape-charm:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.