cinderlib.nos_brick module

Helper code to attach/detach out of OpenStack

OS-Brick is meant to be used within OpenStack, which means that there are some issues when using it on non OpenStack systems.

Here we take care of:

  • Making sure we can work without privsep and using sudo directly

  • Replacing an unlink privsep method that would run python code privileged

  • Local attachment of RBD volumes using librados

Some of these changes may be later moved to OS-Brick. For now we just copied it from the nos-brick repository.

init(root_helper='sudo')[source]