StratusLab / client

Command Line Interface (CLI) for StratusLab cloud services
Apache License 2.0
2 stars 1 forks source link

Ceph backend no longer works in StratusLab v14.03 #125

Closed cgauthey closed 5 years ago

cgauthey commented 10 years ago

The Ceph backend relies on a feature which is no longer available in StratusLab v14.03.

As described in the inline documentation, the backend failure commands should accept the value None as an alternate command :

If the alternate command is None, processing of further actions continues as if there was no entry for the command in the dictionary.

The last rewrite of the backend system uses this value to determine if a failure command should be executed and is not compliant with the documentation.

konstan commented 10 years ago

Where exactly is this in the code? Could you please provide a link.

cgauthey commented 10 years ago

backend documentation

LUN.py CommandRunner.py

Ceph backend uses the failure commands to ignore some commands which only depend on a PDisk type (origin, data, etc.). For example, removing an origin image requires 3x steps (unprotect snapshot, remove snapshot, remove image) instead of one for other types (remove image).

I found a fix by using the failure messages but I would like to set them for a specific LUN action. The error message of Ceph commands is sometime unclear and could hide a real error.