[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 4/4] mg-repro-setup: New mode --autoalloc
This just involves turning autoalloc on and statictask off. It is most useful with mg-transient-task, as documented. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- mg-repro-setup | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mg-repro-setup b/mg-repro-setup index b60389d8..e6265b32 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -28,7 +28,7 @@ usage () { cat <<END HOSTSPEC is [<ident>=][reuse:]<hostname> host must be allocated, skip host-install [<ident>=]wipe:<hostname> host must be allocated, wipe it - [<ident>=]alloc:<resource-spec> \`mg-allocate <resource-spec>', and wipe + [<ident>=]alloc:<resource-spec> \`mg-allocate <resource-spec>', and wipe[*] none: no hosts (should be only HOSTPSEC) (default <ident> is \`host') @@ -42,6 +42,13 @@ usage () { cat <<END -E... -f... -P as for mg-execute-flight --autoalloc-nofree allocate hosts as for production, but keep them (specify no HOSTSPECS; remember to deallocate later) + --autoalloc use hosts as for production (specify no HOSTSPECS) + and free them afterwards[*] + + [*] If \$OSSTEST_TASK is set on entry, it will be used for these + allocations. So, in particular, + ./mg-transient-task ./mg-repro-setup .... alloc:... + will allocate as specified, but discard the hosts when done. REBUILD is --rebuild [-B<blessing>] [-r...] @@ -105,6 +112,8 @@ skipcapture=true autoalloc=false statictask=true +if [ "x$OSSTEST_TASK" != x ]; then statictask=false; fi + while true; do case "$1" in -*) ;; @@ -118,6 +127,7 @@ while true; do -t?*) duration=${arg#-t} ;; --rogue) duration='' ;; --capture) skipcapture=false ;; + --autoalloc) autoalloc=true; statictask=false ;; --autoalloc-nofree) autoalloc=true; statictask=true ;; -l*) logfile=${arg#-l} ;; -r^*|-r!*) adjustsets+=("${arg#-r}") ;; @@ -298,7 +308,7 @@ if [ "${alloc_idents[*]}" ]; then progressf "\n" if $autoalloc; then echo >&2 \ - 'warning: --autoalloc-nofree and HOSTSPECs are do not work well together' + 'warning: --autoalloc[-nofree] and HOSTSPECs are do not work well together' fi fi -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |