Add lftools command to remove specific server 25/8725/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 7 Feb 2018 16:09:57 +0000 (11:09 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 7 Feb 2018 16:30:58 +0000 (11:30 -0500)
commit8be6ebc299b9fcb86853356e0c1e2ea47b4b0ae7
treeed0d5371753cd6ef5e9af2fd9ea040468ca05194
parentc6c4e4017ff0f3a0dfd47865da1fde413b86eb13
Add lftools command to remove specific server

This command also supports an optional minutes parameter which
can be used to ignore the server if it is not older than a certain
number of minutes.

This is useful for cases like Jenkins orphan server cleanup scripts
so that they do not try to remove servers that have just been
spawned and have not yet connected to Jenkins causing the server to
be mistakenly marked as orphaned.

Issue: RELENG-780
Change-Id: I7f12218e0ac730ff43def4ec9b6133b4cc8ee0c8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
lftools/openstack/cmd.py
lftools/openstack/server.py