Skip to content

Commit

Permalink
cephadm-clients: add a newline in ceph.conf
Browse files Browse the repository at this point in the history
The generated minimal ceph.conf file is missing a newline.
This causes the following error:

```
>>>[cephuser@ceph-sunil-5-1-5ca9dc-node1-installer ~]$ ssh ceph-sunil-5-1-5ca9dc-node4 "sudo ceph -s -c  /etc/ceph/ceph.conf"
>>>Error initializing cluster client: InvalidArgumentError('RADOS invalid argument (error calling conf_read_file)',)
```

Fixes: https://tracker.ceph.com/issues/53851

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
  • Loading branch information
guits committed Jan 12, 2022
1 parent 01a456c commit 9e6fb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cephadm-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
dest: '/etc/ceph/ceph.keyring',
copy_file: True }
- { content: "{{ hostvars[groups['admin'][0]] \
['minimal_ceph_config']['stdout'] | default('') }}",
['minimal_ceph_config']['stdout'] | default('') }}{{ '\n' }}",
dest: '/etc/ceph/ceph.conf',
copy_file: "{{ conf is undefined }}" }
- { content: "{{ hostvars[groups['admin'][0]] \
Expand Down

0 comments on commit 9e6fb65

Please sign in to comment.