[ovirt-devel] custom exit codes from engine-setup/cleanup

Yedidyah Bar David didi at redhat.com
Thu Feb 12 10:29:51 UTC 2015


Hi all,

The patch [1] for [2] is mostly ready.

The patch [3] for otopi was already merged (by Alon) to master.
It includes the following codes:
0 - success
1 - general error - the default if there was an error
2 - initialization error - returned if there was an error while loading
plugins, before actually starting to run them

These apply to all otopi-based tools.

patch [1], not merged yet, currently adds this code, affecting engine-cleanup:
11 - cleanup called without setup.
Returned in addition to the existing message:
Could not detect a completed product setup
Please use the cleanup utility only after a setup or after an upgrade from an older installation.

Comments are welcome:

What other codes do you want to see?
For automated testing or any other use?

Do you think we should group them and allocate somehow?
Just add a code whenever needed?

If last is 'Yes', no need to think very much about the previous ones...

[1] http://gerrit.ovirt.org/35503
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1079726
[3] http://gerrit.ovirt.org/35632

Thanks,
-- 
Didi




More information about the Devel mailing list