registry-credentials config handler obliterates existing docker config.json

Bug #1813341 reported by Tim Van Steenburgh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tigera Secure EE Charm
Fix Released
Undecided
George Kraft

Bug Description

Opened by Cynerva on 2019-01-14 23:24:58+00:00 at https://github.com/juju-solutions/layer-tigera-secure-ee/issues/3

------------------------------------------------------------

layer-tigera-secure-ee/reactive/calico.py

        Lines 334 to 338
      in
      e2b3435

           config_dir = '/root/.docker'

           config_path = config_dir + '/config.json'

           os.makedirs(config_dir, exist_ok=True)

           with open(config_path, 'w') as f:

               f.write(creds)

The kubernetes-worker charm also writes to /root/.docker/config.json, and this conflicts with that.

George Kraft (cynerva)
Changed in charm-tigera-secure-ee:
assignee: nobody → George Kraft (cynerva)
status: New → In Progress
Revision history for this message
George Kraft (cynerva) wrote :
George Kraft (cynerva)
Changed in charm-tigera-secure-ee:
status: In Progress → Fix Committed
Changed in charm-tigera-secure-ee:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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