Magnum Docker Stack error with new Fedora-Atomic version

Bug #1720757 reported by David Girón
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
New
Undecided
Unassigned

Bug Description

Using Magnum 4.1.3, when I create a new cluster template for Docker, with the latest version of Fedora-Atomic (currently 26), etcd service gives an error:

Oct 02 09:34:38 do-swarm-master.novalocal etcd[2009]: open /etc/docker/server.key: permission denied

The file is generated and exists, but has chmod 600.

When using fedora-atomic-ocata image, this problem does not appear.

The problem is that OpenSSL v1.0.2 uses chmod 644 in server.key, but v1.1.0 uses chmod 600.

David Girón (duhow)
tags: added: magnum
tags: added: etcd fedora-atomic openssl permission
tags: added: docker
Revision history for this message
yatin (yatinkarel) wrote :
Revision history for this message
David Girón (duhow) wrote :

Fixed by editing fragments/make-cert.py , function write_server_key() , adding the next line:

os.chmod(SERVER_KEY_PATH, 0644) # patch for OpenSSL v1.1

Revision history for this message
ByungYeol Woo (wby1089) wrote :

I was facing same issue in Magnum 5.0.1 with Fedora-Atomic 26 1030.

After changing make-cert.py according to David's advice, etcd works well.

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.