<p dir="ltr">What would you expect to happen if a system test fail which can be from any project build in the past day? </p>
<div class="gmail_quote">On Jun 28, 2016 8:03 PM, "Nir Soffer" <<a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is not a place for sending automated error message.<br>
<br>
On Tue, Jun 28, 2016 at 7:58 PM, Eyal Edri <<a href="mailto:eedri@redhat.com">eedri@redhat.com</a>> wrote:<br>
> Why not?<br>
> If this is a real regression?<br>
><br>
> On Jun 28, 2016 7:54 PM, "Nir Soffer" <<a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a>> wrote:<br>
>><br>
>> I think this was sent by mistake to <a href="mailto:devel@ovirt.org">devel@ovirt.org</a>, please do not<br>
>> send such message to this list.<br>
>><br>
>> On Tue, Jun 28, 2016 at 7:49 PM, <<a href="mailto:jenkins@jenkins.phx.ovirt.org">jenkins@jenkins.phx.ovirt.org</a>> wrote:<br>
>> > See <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/168/changes" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/168/changes</a>><br>
>> ><br>
>> > Changes:<br>
>> ><br>
>> > [Ondra Machacek] Deploy FreeIPA to storage machine<br>
>> ><br>
>> > ------------------------------------------<br>
>> > [...truncated 554 lines...]<br>
>> > ## took 2194 seconds<br>
>> > ## rc = 1<br>
>> > ##########################################################<br>
>> > ##! ERROR vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv<br>
>> > ##! Last 20 log enties:<br>
>> > logs/<a href="http://mocker-fedora-23-x86_64.fc23.basic_suite_3.6.sh/basic_suite_3.6.sh.log" rel="noreferrer" target="_blank">mocker-fedora-23-x86_64.fc23.basic_suite_3.6.sh/basic_suite_3.6.sh.log</a><br>
>> > ##!<br>
>> > @ Collect artifacts:<br>
>> > # ovirt-role metadata entry will be soon deprecated, instead you<br>
>> > should use the vm-provider entry in the domain definiton and set it no one<br>
>> > of: ovirt-node, ovirt-engine, ovirt-host<br>
>> > # [Thread-1] lago_basic_suite_3_6_engine:<br>
>> > # [Thread-2] lago_basic_suite_3_6_host1:<br>
>> > # [Thread-3] lago_basic_suite_3_6_host0:<br>
>> > # [Thread-4] lago_basic_suite_3_6_storage:<br>
>> > # [Thread-3] lago_basic_suite_3_6_host0: Success (in 0:00:16)<br>
>> > # [Thread-2] lago_basic_suite_3_6_host1: Success (in 0:00:16)<br>
>> > # [Thread-1] lago_basic_suite_3_6_engine: Success (in 0:00:16)<br>
>> > # [Thread-4] lago_basic_suite_3_6_storage: Success (in 0:00:16)<br>
>> > @ Collect artifacts: Success (in 0:00:16)<br>
>> ><br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests</a>><br>
>> > @@@@ ERROR: Failed running<br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/basic_suite_3.6/test-scenarios/002_bootstrap.py" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/basic_suite_3.6/test-scenarios/002_bootstrap.py</a>><br>
>> > #########################<br>
>> > ======== Cleaning up<br>
>> > ----------- Cleaning with lago<br>
>> > ----------- Cleaning with lago done<br>
>> > ======== Cleanup done<br>
>> > Took 2033 seconds<br>
>> > ===================================<br>
>> > ##!<br>
>> > ##! ERROR ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
>> > ##!########################################################<br>
>> > ##########################################################<br>
>> > Build step 'Execute shell' marked build as failure<br>
>> > Performing Post build task...<br>
>> > Match found for :.* : True<br>
>> > Logical operation result is TRUE<br>
>> > Running script : #!/bin/bash -xe<br>
>> > echo 'shell_scripts/<a href="http://system_tests.collect_logs.sh" rel="noreferrer" target="_blank">system_tests.collect_logs.sh</a>'<br>
>> ><br>
>> > #<br>
>> > # Required jjb vars:<br>
>> > # version<br>
>> > #<br>
>> > VERSION=3.6<br>
>> > SUITE_TYPE=<br>
>> ><br>
>> > WORKSPACE="$PWD"<br>
>> > OVIRT_SUITE="$SUITE_TYPE_suite_$VERSION"<br>
>> > TESTS_LOGS="$WORKSPACE/ovirt-system-tests/exported-artifacts"<br>
>> ><br>
>> > rm -rf "$WORKSPACE/exported-artifacts"<br>
>> > mkdir -p "$WORKSPACE/exported-artifacts"<br>
>> ><br>
>> > if [[ -d "$TESTS_LOGS" ]]; then<br>
>> > mv "$TESTS_LOGS/"* "$WORKSPACE/exported-artifacts/"<br>
>> > fi<br>
>> ><br>
>> > [ovirt_3.6_system-tests] $ /bin/bash -xe<br>
>> > /tmp/hudson3155110657872379488.sh<br>
>> > + echo shell_scripts/<a href="http://system_tests.collect_logs.sh" rel="noreferrer" target="_blank">system_tests.collect_logs.sh</a><br>
>> > shell_scripts/<a href="http://system_tests.collect_logs.sh" rel="noreferrer" target="_blank">system_tests.collect_logs.sh</a><br>
>> > + VERSION=3.6<br>
>> > + SUITE_TYPE=<br>
>> > + WORKSPACE=<<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/</a>><br>
>> > + OVIRT_SUITE=3.6<br>
>> > +<br>
>> > TESTS_LOGS=<<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts</a>><br>
>> > + rm -rf<br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/168/artifact/exported-artifacts" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/168/artifact/exported-artifacts</a>><br>
>> > + mkdir -p<br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/168/artifact/exported-artifacts" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/168/artifact/exported-artifacts</a>><br>
>> > + [[ -d<br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts</a>><br>
>> > ]]<br>
>> > + mv<br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts/lago_logs" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts/lago_logs</a>><br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts/nosetests-001_initialize_engine.py.xml" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts/nosetests-001_initialize_engine.py.xml</a>><br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts/nosetests-002_bootstrap.py.xml" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts/nosetests-002_bootstrap.py.xml</a>><br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts/test_logs" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/exported-artifacts/test_logs</a>><br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/168/artifact/exported-artifacts/" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/168/artifact/exported-artifacts/</a>><br>
>> > POST BUILD TASK : SUCCESS<br>
>> > END OF POST BUILD TASK : 0<br>
>> > Match found for :.* : True<br>
>> > Logical operation result is TRUE<br>
>> > Running script : #!/bin/bash -xe<br>
>> > echo "shell-scripts/mock_cleanup.sh"<br>
>> ><br>
>> > shopt -s nullglob<br>
>> ><br>
>> ><br>
>> > WORKSPACE="$PWD"<br>
>> ><br>
>> > # Make clear this is the cleanup, helps reading the jenkins logs<br>
>> > cat <<EOC<br>
>> > _______________________________________________________________________<br>
>> > #######################################################################<br>
>> > # #<br>
>> > # CLEANUP #<br>
>> > # #<br>
>> > #######################################################################<br>
>> > EOC<br>
>> ><br>
>> ><br>
>> > # Archive the logs, we want them anyway<br>
>> > logs=(<br>
>> > ./*log<br>
>> > ./*/logs<br>
>> > )<br>
>> > if [[ "$logs" ]]; then<br>
>> > tar cvzf exported-artifacts/logs.tgz "${logs[@]}"<br>
>> > rm -rf "${logs[@]}"<br>
>> > fi<br>
>> ><br>
>> > # stop any processes running inside the chroot<br>
>> > failed=false<br>
>> > mock_confs=("$WORKSPACE"/*/mocker*)<br>
>> > # Clean current jobs mockroot if any<br>
>> > for mock_conf_file in "${mock_confs[@]}"; do<br>
>> > [[ "$mock_conf_file" ]] || continue<br>
>> > echo "Cleaning up mock $mock_conf"<br>
>> > mock_root="${mock_conf_file##*/}"<br>
>> > mock_root="${mock_root%.*}"<br>
>> > my_mock="/usr/bin/mock"<br>
>> > my_mock+=" --configdir=${mock_conf_file%/*}"<br>
>> > my_mock+=" --root=${mock_root}"<br>
>> > my_mock+=" --resultdir=$WORKSPACE"<br>
>> ><br>
>> > #TODO: investigate why mock --clean fails to umount certain dirs<br>
>> > sometimes,<br>
>> > #so we can use it instead of manually doing all this.<br>
>> > echo "Killing all mock orphan processes, if any."<br>
>> > $my_mock \<br>
>> > --orphanskill \<br>
>> > || {<br>
>> > echo "ERROR: Failed to kill orphans on $chroot."<br>
>> > failed=true<br>
>> > }<br>
>> ><br>
>> > mock_root="$(\<br>
>> > grep \<br>
>> > -Po "(?<=config_opts\['root'\] = ')[^']*" \<br>
>> > "$mock_conf_file" \<br>
>> > )" || :<br>
>> > [[ "$mock_root" ]] || continue<br>
>> > mounts=($(mount | awk '{print $3}' | grep "$mock_root")) || :<br>
>> > if [[ "$mounts" ]]; then<br>
>> > echo "Found mounted dirs inside the chroot $chroot. Trying to<br>
>> > umount."<br>
>> > fi<br>
>> > for mount in "${mounts[@]}"; do<br>
>> > sudo umount --lazy "$mount" \<br>
>> > || {<br>
>> > echo "ERROR: Failed to umount $mount."<br>
>> > failed=true<br>
>> > }<br>
>> > done<br>
>> > done<br>
>> ><br>
>> > # Clean any leftover chroot from other jobs<br>
>> > for mock_root in /var/lib/mock/*; do<br>
>> > this_chroot_failed=false<br>
>> > mounts=($(mount | awk '{print $3}' | grep "$mock_root")) || :<br>
>> > if [[ "$mounts" ]]; then<br>
>> > echo "Found mounted dirs inside the chroot $mock_root." \<br>
>> > "Trying to umount."<br>
>> > fi<br>
>> > for mount in "${mounts[@]}"; do<br>
>> > sudo umount --lazy "$mount" \<br>
>> > || {<br>
>> > echo "ERROR: Failed to umount $mount."<br>
>> > failed=true<br>
>> > this_chroot_failed=true<br>
>> > }<br>
>> > done<br>
>> > if ! $this_chroot_failed; then<br>
>> > sudo rm -rf "$mock_root"<br>
>> > fi<br>
>> > done<br>
>> ><br>
>> > if $failed; then<br>
>> > echo "Aborting."<br>
>> > exit 1<br>
>> > fi<br>
>> ><br>
>> > # remove mock system cache, we will setup proxies to do the caching and<br>
>> > this<br>
>> > # takes lots of space between runs<br>
>> > shopt -u nullglob<br>
>> > sudo rm -Rf /var/cache/mock/*<br>
>> ><br>
>> > # restore the permissions in the working dir, as sometimes it leaves<br>
>> > files<br>
>> > # owned by root and then the 'cleanup workspace' from jenkins job fails<br>
>> > to<br>
>> > # clean and breaks the jobs<br>
>> > sudo chown -R "$USER" "$WORKSPACE"<br>
>> ><br>
>> > [ovirt_3.6_system-tests] $ /bin/bash -xe<br>
>> > /tmp/hudson1974597178250713835.sh<br>
>> > + echo shell-scripts/mock_cleanup.sh<br>
>> > shell-scripts/mock_cleanup.sh<br>
>> > + shopt -s nullglob<br>
>> > + WORKSPACE=<<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/</a>><br>
>> > + cat<br>
>> > _______________________________________________________________________<br>
>> > #######################################################################<br>
>> > # #<br>
>> > # CLEANUP #<br>
>> > # #<br>
>> > #######################################################################<br>
>> > + logs=(./*log ./*/logs)<br>
>> > + [[ -n ./ovirt-system-tests/logs ]]<br>
>> > + tar cvzf exported-artifacts/logs.tgz ./ovirt-system-tests/logs<br>
>> > ./ovirt-system-tests/logs/<br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.install_packages/<br>
>> ><br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.install_packages/state.log<br>
>> ><br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.install_packages/build.log<br>
>> ><br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.install_packages/stdout_stderr.log<br>
>> ><br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.install_packages/root.log<br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.init/<br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.init/state.log<br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.init/build.log<br>
>> ><br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.init/stdout_stderr.log<br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.init/root.log<br>
>> ><br>
>> > ./ovirt-system-tests/logs/<a href="http://mocker-fedora-23-x86_64.fc23.basic_suite_3.6.sh/" rel="noreferrer" target="_blank">mocker-fedora-23-x86_64.fc23.basic_suite_3.6.sh/</a><br>
>> ><br>
>> > ./ovirt-system-tests/logs/<a href="http://mocker-fedora-23-x86_64.fc23.basic_suite_3.6.sh/basic_suite_3.6.sh.log" rel="noreferrer" target="_blank">mocker-fedora-23-x86_64.fc23.basic_suite_3.6.sh/basic_suite_3.6.sh.log</a><br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.clean_rpmdb/<br>
>> ><br>
>> > ./ovirt-system-tests/logs/mocker-fedora-23-x86_64.fc23.clean_rpmdb/stdout_stderr.log<br>
>> > + rm -rf ./ovirt-system-tests/logs<br>
>> > + failed=false<br>
>> > + mock_confs=("$WORKSPACE"/*/mocker*)<br>
>> > + for mock_conf_file in '"${mock_confs[@]}"'<br>
>> > + [[ -n<br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/mocker-fedora-23-x86_64.fc23.cfg" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/mocker-fedora-23-x86_64.fc23.cfg</a>><br>
>> > ]]<br>
>> > + echo 'Cleaning up mock '<br>
>> > Cleaning up mock<br>
>> > + mock_root=mocker-fedora-23-x86_64.fc23.cfg<br>
>> > + mock_root=mocker-fedora-23-x86_64.fc23<br>
>> > + my_mock=/usr/bin/mock<br>
>> > + my_mock+='<br>
>> > --configdir=<<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests</a>'><br>
>> > + my_mock+=' --root=mocker-fedora-23-x86_64.fc23'<br>
>> > + my_mock+='<br>
>> > --resultdir=<<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/</a>'><br>
>> > + echo 'Killing all mock orphan processes, if any.'<br>
>> > Killing all mock orphan processes, if any.<br>
>> > + /usr/bin/mock<br>
>> > --configdir=<<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests</a>><br>
>> > --root=mocker-fedora-23-x86_64.fc23<br>
>> > --resultdir=<<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/</a>><br>
>> > --orphanskill<br>
>> > WARNING: Could not find required logging config file:<br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/logging.ini" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/logging.ini</a>.><br>
>> > Using default...<br>
>> > INFO: mock.py version 1.2.17 starting (python version = 3.4.3)...<br>
>> > Start: init plugins<br>
>> > INFO: selinux enabled<br>
>> > Finish: init plugins<br>
>> > Start: run<br>
>> > Finish: run<br>
>> > ++ grep -Po '(?<=config_opts\['\''root'\''\] = '\'')[^'\'']*'<br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/mocker-fedora-23-x86_64.fc23.cfg" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/ovirt-system-tests/mocker-fedora-23-x86_64.fc23.cfg</a>><br>
>> > + mock_root=fedora-23-x86_64-ecdfd9c866cbf1a2d41342199fdb011f<br>
>> > + [[ -n fedora-23-x86_64-ecdfd9c866cbf1a2d41342199fdb011f ]]<br>
>> > + mounts=($(mount | awk '{print $3}' | grep "$mock_root"))<br>
>> > ++ mount<br>
>> > ++ grep fedora-23-x86_64-ecdfd9c866cbf1a2d41342199fdb011f<br>
>> > ++ awk '{print $3}'<br>
>> > + :<br>
>> > + [[ -n '' ]]<br>
>> > + false<br>
>> > + shopt -u nullglob<br>
>> > + sudo rm -Rf<br>
>> > /var/cache/mock/fedora-23-x86_64-ecdfd9c866cbf1a2d41342199fdb011f<br>
>> > + sudo chown -R jenkins<br>
>> > <<a href="http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/" rel="noreferrer" target="_blank">http://jenkins.ovirt.org/job/ovirt_3.6_system-tests/ws/</a>><br>
>> > POST BUILD TASK : SUCCESS<br>
>> > END OF POST BUILD TASK : 1<br>
>> > Recording test results<br>
>> > Archiving artifacts<br>
>> > _______________________________________________<br>
>> > Infra mailing list<br>
>> > <a href="mailto:Infra@ovirt.org">Infra@ovirt.org</a><br>
>> > <a href="http://lists.ovirt.org/mailman/listinfo/infra" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/infra</a><br>
>> _______________________________________________<br>
>> Infra mailing list<br>
>> <a href="mailto:Infra@ovirt.org">Infra@ovirt.org</a><br>
>> <a href="http://lists.ovirt.org/mailman/listinfo/infra" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/infra</a><br>
>><br>
>><br>
><br>
</blockquote></div>