datacentred / puppet-ceph Goto Github PK
View Code? Open in Web Editor NEWCeph cluster deployment for puppet
License: GNU General Public License v3.0
Ceph cluster deployment for puppet
License: GNU General Public License v3.0
I included ceph in my manifest with include ::ceph
and used the same hiera config as listed in the read me and got the error message -
Error: Validation of Exec[ceph-mon --mkfs -i archive --key AQA7yNlUMy3sFhAA62XHf57L0QhSI44qqqOVXA==] failed: 'ceph-mon --mkfs -i archive --key AQA7yNlUMy3sFhAA62XHf57L0QhSI44qqqOVXA==' is not qualified and no path was specified. Please qualify the command or specify a path. at /tmp/vagrant-puppet/modules-6274ef4681525a3adbd04a0344ddcbac/ceph/manifests/mon.pp:14
When I look at the box ceph has not been installed.
If I change the hiera config to ceph::mon: false
then ceph gets installed but then obviously has no monitor.
This is likely a bug in Ceph, but feel it might be helpful to log here in case someone else runs across it.
Ceph Version: 10.2.2 (45107e21c568dd033c2f0a3107dec8f0b0e58374)
When mon_id has a hyphen (such as when using the default of the server hostname and the hostname has a hyphen), the directory /var/lib/ceph/mon/ceph-${ceph::mon_id}/
is created, however the keyring
file is not present. Changing the value of mon_id (or changing the hostname) resolves this issue.
This file not getting created causes all following commands to add keys to fail due to being unable to find this file.
If this is a bug in Ceph, it may be beneficial to either sanitize the input (if underscores work, changing hyphens to underscores, for example) or give an error if the value of mon_id contains known bad characters. It may also be useful to change the creates=> parameter to the keyring file, rather than the directory, to catch when this error occurs, rather than continuing.
Example error:
Notice: /Stage[main]/Ceph::Auth/Ceph::Keyring[/etc/ceph/ceph.client.radosgw.puppet.keyring]/Exec[ceph -n mon. -k /var/lib/ceph/mon/ceph-hyp7-8/keyring auth import -i /etc/ceph/ceph.client.radosgw.puppet.keyring]/returns: Error connecting to cluster: ObjectNotFound
Error: ceph -n mon. -k /var/lib/ceph/mon/ceph-hyp7-8/keyring auth import -i /etc/ceph/ceph.client.radosgw.puppet.keyring returned 1 instead of one of [0]
Error: /Stage[main]/Ceph::Auth/Ceph::Keyring[/etc/ceph/ceph.client.radosgw.puppet.keyring]/Exec[ceph -n mon. -k /var/lib/ceph/mon/ceph-hyp7-8/keyring auth import -i /etc/ceph/ceph.client.radosgw.puppet.keyring]/returns: change from notrun to 0 failed: ceph -n mon. -k /var/lib/ceph/mon/ceph-hyp7-8/keyring auth import -i /etc/ceph/ceph.client.radosgw.puppet.keyring returned 1 instead of one of [0]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.