swift-drive-audit: additional exit codes

Bug #1359664 reported by Filippo Giunchedi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
New
Undecided
Unassigned

Bug Description

Hi,
we found it useful to have more detailed exit statues from swift-drive-audit on the actions it performed, I'm attaching a patch to explain the general idea. Let me know if you find it useful!

thanks,
filippo

Revision history for this message
Filippo Giunchedi (filippo) wrote :
Revision history for this message
clayg (clay-gerrard) wrote :

I like the idea of more information encoded in the exit status - we could probably adopt the idea in other places. Do you wanna get it up in gerrit?!

I didn't know about the os.EX_* attributes; and EX_OK (0), EX_CONFIG (78), EX_USAGE (64), EX_OSFILE (72) all seem to be defined on my Mac and Ubuntu dev machines; but I worry they may not be on every system that's currently running the drive audit script? [1]

1. http://bugs.python.org/issue9933

Revision history for this message
Filippo Giunchedi (filippo) wrote :

thanks for the quick reply!

re: gerrit I'm a bit snowed under at the moment so that might happen in the next two/three weeks but wanted to send this out and get the ball rolling

good point about the platform, I checked google and github and they seem to be defined back to minix too https://github.com/minix3/minix/blob/master/include/sysexits.h and didn't check directly but if osx/mach defines them chances are that also other BSDs do. I'm assuming windows is not a target platform is it? :)

Revision history for this message
Filippo Giunchedi (filippo) wrote :

okay I've signed the ICLA and the wikimedia foundation has signed the CCLA, we should be set!

review at https://review.openstack.org/#/c/124398/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on swift (master)

Change abandoned by John Dickinson (<email address hidden>) on branch: master
Review: https://review.openstack.org/124398
Reason: Abandoning due to lack of activity since the last negative review. You can restore the change if you want to keep working on it.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by John Dickinson (<email address hidden>) on branch: master
Review: https://review.openstack.org/124398
Reason: Abanoning based on the lack of activity since the last negative review. If you want to continue working on this, please reopen this patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.