Giter VIP home page Giter VIP logo

puppet-ceph's People

Contributors

nrdmn avatar spjmurray avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

puppet-ceph's Issues

Ceph-Mon runs before ceph has installed

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.

/var/lib/ceph/mon/ceph-${ceph::mon_id}/keyring not created when mon_id contains hyphen

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]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.