<div dir="ltr"><div dir="ltr"><div>Hey folks,</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 6, 2019 at 4:41 PM Ken Gaillot <<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This topic sounds promising. Maybe we could do a round table where 3 or<br>
4 people give 15-minute presentations about their technique?<br>
</blockquote></div><div class="gmail_quote"><div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Jehan-Guillaume, Damien, Ulrich, would you possibly be interested in<br>
participating? I realize it's early to make any firm commitments, but<br>
we could start considering the possibilities.<br>
<br></blockquote><div><br></div><div>Absolutely, I'd be delighted to discuss how we validate our resource agent</div><div>changes with ra-tester.<br></div><div> I like the 15min approach, good to ignite discussion and not get people bored :)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Wed, 2019-11-06 at 08:22 +0100, Ulrich Windl wrote:<br>
> > > > Valentin Vidic <<a href="mailto:vvidic@valentin-vidic.from.hr" target="_blank">vvidic@valentin-vidic.from.hr</a>> schrieb am<br>
> > > > 05.11.2019 um<br>
> <br>
> 20:35<br>
> in Nachricht <<a href="mailto:20191105193555.GG27497@valentin-vidic.from.hr" target="_blank">20191105193555.GG27497@valentin-vidic.from.hr</a>>:<br>
> > On Mon, Nov 04, 2019 at 08:07:51PM ‑0600, Ken Gaillot wrote:<br>
> > > A reminder: We are still interested in ideas for talks, and rough<br>
> > > estimates of potential attendees. "Maybe" is perfectly fine at<br>
> > > this<br>
> > > stage. It will let us negotiate hotel rates and firm up the<br>
> > > location<br>
> > > details.<br>
> > <br>
> > Not sure if I would be able to attend but I would be interested to<br>
> > know if there is some framework for release testing resource<br>
> > agents?<br>
> > Something along the lines:<br>
> > <br>
> > ‑ bring up 3 VMs<br>
> > ‑ configure a cluster using ansible for service X<br>
> > ‑ destroy node2<br>
> > ‑ wait some time<br>
> > ‑ check if the service is still available<br>
> <br>
> Nothing like that, but I wrote thios wrapper to do some pre-release<br>
> testing<br>
> for my RAs:<br>
> The first parameter is the RA name (required)<br>
> If followed by "debug" the script is run by "bash -x"<br>
> If followed by "manual" the following parameter is the action to test<br>
> If no parameters follow ocf-tester is used<br>
> <br>
> The actual parameters are written to files named "ocf/${BASE}-<br>
> test*.params"<br>
> ($BASE is the RA name, and it's expected that the testing RA (not<br>
> inmstalled<br>
> yet) lives in sub-directory ocf/). The parameter files by themselves<br>
> contain<br>
> lines like "name=value" like this example, and the tests are<br>
> performed in<br>
> "shell order":<br>
> <br>
> dest="www/80"<br>
> source="localhost/0"<br>
> tag="HA"<br>
> mask="I"<br>
> logging="F"<br>
> log_format="TL"<br>
> options="K:120"<br>
> <br>
> And finally the script (local commit 39030162, just for reference.<br>
> You'll have<br>
> to replace "xola" with the proper prefix to use RAs installed<br>
> already):<br>
> > cat tester<br>
> <br>
> #!/bin/sh<br>
> # wrapper script to test OCF RA<br>
> if [ $# -lt 1 ]; then<br>
>     echo "$0: missing base" >&2<br>
>     exit 1<br>
> fi<br>
> BASE="$1"; shift<br>
> for ra in "ocf/$BASE" "/usr/lib/ocf/resource.d/xola/$BASE"<br>
> do<br>
>     if [ -e "$ra" ]; then<br>
>         RA="$ra"<br>
>         break<br>
>     fi<br>
> done<br>
> INSTANCE="$BASE"<br>
> PARAM_FILES="ocf/${BASE}-test*.params"<br>
> if [ X"$RA" = X ]; then<br>
>     echo "$0: RA $BASE not found" >&2<br>
>     exit 1<br>
> fi<br>
> case "$1" in<br>
>     debug)<br>
>         DEBUG="bash -x"<br>
>         MODE=$1<br>
>         shift<br>
>         ;;<br>
>     manual)<br>
>         MODE=$1<br>
>         shift<br>
>         ;;<br>
>     *)<br>
>         MODE=AUTO<br>
> esac<br>
> echo "$0: Using $INSTANCE ($RA) in $MODE mode"<br>
> for PARAM_FILE in $PARAM_FILES<br>
> do<br>
>     echo "$0: Using parameter file $PARAM_FILE"<br>
>     if [ $MODE != AUTO ]; then<br>
>         for action<br>
>         do<br>
>             eval OCF_ROOT=/usr/lib/ocf<br>
> OCF_RESOURCE_INSTANCE="$INSTANCE" \<br>
>                 $(sed -ne 's/^\([^#=]\+=.\+\)$/OCF_RESKEY_\1/p'<br>
> "$PARAM_FILE")<br>
> \<br>
>                 $DEBUG $RA "$action"<br>
>             echo "$0: Exit status of $action is $?"<br>
>         done<br>
>     else<br>
>         if [ $# -eq 0 ]; then<br>
>             eval /usr/sbin/ocf-tester -n "$INSTANCE" \<br>
>                 $(sed -ne 's/^\([^#=]\+=.\+\)$/-o \1/p'<br>
> "$PARAM_FILE") \<br>
>                 $RA<br>
>             echo "$0: Exit status is $?"<br>
>         else<br>
>             echo "$0: Extra parameters: $@" >&2<br>
>         fi<br>
>     fi<br>
>     echo "$0: Parameter file $PARAM_FILE done"<br>
> done<br>
> ###<br>
> <br>
> Regards,<br>
> Ulrich<br>
> <br>
> > <br>
> > ‑‑ <br>
> > Valentin<br>
> > _______________________________________________<br>
> > Manage your subscription:<br>
> > <a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a> <br>
> > <br>
> > ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer" target="_blank">https://www.clusterlabs.org/</a> <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> Manage your subscription:<br>
> <a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
> <br>
> ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
-- <br>
Ken Gaillot <<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>><br>
<br>
_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer" target="_blank">https://www.clusterlabs.org/</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Damien<br></div></div></div></div>