Code Monkey home page Code Monkey logo

sesceph's People

Contributors

avengermojo avatar lenzgr avatar oms4suse avatar tbazant avatar theanalyst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sesceph's Issues

salt remote operation time out is too short

On slower clusters the timeout value of 5 is too low.

/usr/bin/ceph --connect-timeout 50 --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring --name client.bootstrap-osd -f json-pretty status
works,
while
/usr/bin/ceph --connect-timeout 5 --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring --name client.bootstrap-osd -f json-pretty status

doesn't due to timeouts.

debug output of execute_local_command

For debugging issues with sesceph it would be nice to have more debugging output of what it does when calling salt with a higher debug level.

When f.e. calling

salt-call -l all  sesceph.keyring_admin_create 

no debugging output of the called
execute_local_command
can be found in the debug output of salt.

execute_local_command at https://github.com/oms4suse/sesceph/blob/master/_modules/sesceph/utils.py#L22
calls
salt['cmd.run_all']... with a loglevel
and therefore some output of salt['cmd.run_all'] should be found in debugging output of salt with a loglevel equal or higher than trace.

Even changing the loglevel in
https://github.com/oms4suse/sesceph/blob/master/_modules/sesceph/utils.py#L25
doesn't help.

Compared to the lvm module when calling

salt-call -l debug lvm.lvcreate salttest vgceph size=1G

some lines of salt['cmd.run'] ... can be found in debugging output

[DEBUG   ] LazyLoaded cmd.run
[INFO    ] Executing command ['/usr/sbin/lvcreate', '-n', 'salttest', 'vgceph', '-L', '1G'] in directory '/root'
[ERROR   ] Command ['/usr/sbin/lvcreate', '-n', 'salttest', 'vgceph', '-L', '1G'] failed with return code: 5
[ERROR   ] output:   Logical volume "salttest" already exists in volume group "vgceph"
[INFO    ] Executing command ['lvdisplay', '-c', '/dev/vgceph/salttest'] in directory '/root'
[DEBUG   ] stdout:   /dev/vgceph/salttest:vgceph:3:1:-1:0:2097152:256:-1:0:-1:251:6

(see also https://github.com/saltstack/salt/blob/develop/salt/modules/linux_lvm.py#L341)

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.