Deployment of ceph-mon failing due to incorrectly specified file modes
See original GitHub issueChecked out ceph-ansible yesterday (08/02/2016) and am hitting the following error when deploying my MONs:
00:29:45 TASK: [ceph-mon | set initial monitor key permissions] ************************
00:29:45 failed: [jrpcaioiad-8_ceph_mon_container-67e07109] => {"details": "bad symbolic permission for mode: 384", "failed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/var/lib/ceph/tmp/keyring.mon.jrpcaioiad-8_ceph_mon_container-67e07109", "size": 77, "state": "file", "uid": 0}
00:29:45 msg: mode must be in octal or symbolic form
00:29:45 failed: [jrpcaioiad-8_ceph_mon_container-48ff43a8] => {"details": "bad symbolic permission for mode: 384", "failed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/var/lib/ceph/tmp/keyring.mon.jrpcaioiad-8_ceph_mon_container-48ff43a8", "size": 77, "state": "file", "uid": 0}
00:29:45 msg: mode must be in octal or symbolic form
00:29:45 failed: [jrpcaioiad-8_ceph_mon_container-1f848f0c] => {"details": "bad symbolic permission for mode: 384", "failed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/var/lib/ceph/tmp/keyring.mon.jrpcaioiad-8_ceph_mon_container-1f848f0c", "size": 77, "state": "file", "uid": 0}
00:29:45 msg: mode must be in octal or symbolic form
00:29:45
00:29:45 FATAL: all hosts have already failed -- aborting
It looks like this is a result of https://github.com/ceph/ceph-ansible/commit/dcec63adc865df4eb1ad17553a5443a9050d4585 and we will need to change the integer modes to strings.
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Chapter 4. Troubleshooting Ceph Monitors Red Hat Ceph ...
If the ceph-mon daemon is running but the Ceph Monitor is out of quorum and marked as down ... This problem can be...
Read more >ceph-deploy mon create-initial failed - Stack Overflow
This is a very common error and it happens when some parameters are missing or wrong in the /etc/ceph/ceph.conf file.
Read more >Ceph Common Issues - Rook.io
Cluster failing to service requests Create a rook-ceph-tools pod to investigate the current state of Ceph. Here is an example of what one...
Read more >How to Deploy a Ceph Storage to Bare Virtual Machines
The command ceph-deploy new creates the necessary files for the deployment. Pass it the hostnames of the monitor nodes, and it will create...
Read more >Troubleshooting Monitors - Ceph Documentation
When a cluster encounters monitor-related troubles there's a tendency ... to interact with a given daemon directly using a Unix socket file.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just wanted to leave a comment and mention I hit this same bug in 2.0.1 (maybe other versions too), but only if I defined an octal in a variable set that was passed into a task using
with_items
. If I set the octal as a string or raw for themode
parameter, everything worked fine.Using @cobyrne09’s suggestion (quoting the octal) worked for me.
@poppyschmo not that I’m aware of.