https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842016-03-09T16:13:17ZopenSUSE Project Management ToolopenQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=224222016-03-09T16:13:17Zdmaiocchi
<ul></ul><a name="riddle-me-this"></a>
<h3 >riddle me this<a href="#riddle-me-this" class="wiki-anchor">¶</a></h3>
<a name="usrshareopenqascriptclient-params-riddlejson-jobs-post"></a>
<h2 >/usr/share/openqa/script/client --params riddle.json jobs post<a href="#usrshareopenqascriptclient-params-riddlejson-jobs-post" class="wiki-anchor">¶</a></h2>
<p>{<br>
"ARCH" : "ppc64le",<br>
"TEST" : "gnome-ppc",<br>
"PRODUCTDIR" : "/var/lib/openqa/share/tests/sle",<br>
"HDDVERSION" : "SLES-12",<br>
"HDDSIZEGB" : "40",<br>
"ISO_MAXSIZE" : "4700372992",<br>
"DISTRI" : "sle",<br>
"BETA" : "1",<br>
"BETA_SDK" : "1",<br>
"BUILD" : "1225",<br>
"DESKTOP" : "gnome",<br>
"ISO_MAXSIZE" : "4700372992",<br>
"MACHINE" : "64bit",<br>
"VERSION" : "12-SP2",<br>
"FLAVOR" : "Server-DVD",<br>
"GNOME" : 1,<br>
"NUMDISKS" : 1,<br>
"HASLICENSE" : 1,<br>
"BOOT_HDD_IMAGE" : "1",<br>
"HDD_1" : "SLE-12-Server-ppc64le-GM-gnome.qcow2",<br>
"NOAUTOLOGIN" : 1,<br>
"NAME" : "ppctesting",<br>
"NOIMAGES" : 1,<br>
"OFW" : "1",<br>
"NUMDISKS" : 1,<br>
"PACKAGETOINSTALL" : "x3270",<br>
"SHUTDOWN_NEEDS_AUTH" : "1",<br>
"HASLICENSE" : 1,<br>
"VERSION" : "12-SP2",<br>
"QEMU_NO_KVM" : 1,<br>
"QEMU" : "ppc64",<br>
"WALLPAPER" : "/usr/share/wallpapers/SLEdefault/contents/images/1280x1024.jpg",<br>
"QEMUPORT" : "20142",<br>
"QEMUVGA" : "cirrus",<br>
"VNC" : "104"<br>
}</p>
<p>/usr/share/openqa/script/client jobs ... post :</p>
<p>error => "org.freedesktop.DBus.Error.Failed: Can't locate object method \"to_hash\" via package \"0\" (perhaps you forgot to load \"0\"?) at /usr/share/openqa/script/../lib/OpenQA/Scheduler.pm line 119.\n",</p>
openQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=224242016-03-09T16:15:48Zdmaiocchi
<ul></ul><p>if you don't find the error, maybe we should improve the catching "debugging" message api, for post jobs to api.</p>
<p>Since , clonejob for ppc doesn't clone the write values for intel that want to reproduce the ppc64</p>
<p>p.s : i have the solution of the riddle ... it costed me time but.</p>
<p>p.s 2: the solution isn't use isotovideo</p>
openQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=224262016-03-09T16:27:51ZRBrownSUSErbrown@suse.com
<ul></ul><p>"ARCH" : "ppc44" should be "ppc64le"</p>
<p>"QEMU" : "ppc64" should be "QEMUCPU" : "POWER8"</p>
openQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=224282016-03-09T16:43:32Zoholecekoholecek@suse.com
<ul></ul><p>The problem with this is that you can't check all variables during scheduling. This one is exception when the scheduler couldn't generate any jobs - we're obviously not handling this situation well - but if the problem is somewhere deeper it manifests itself only when job is actually executed and that's already in different universe.</p>
openQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=224302016-03-09T16:57:44Zdmaiocchi
<ul></ul><p>@richard : even if you could be right, for the webui isn't correct. the solution is "NAME", that is causing the exception to post the job to webui.</p>
<p>@oholecheck, can we not print the variable that is causing the exception, for posting in the web-ui? </p>
<p>I don't want to check all the variable that might stop the job, but at least that the job to be posted should pass somes check, or at LEAST the variable wrong (for posting the job to webui) should be printed</p>
openQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=363782017-01-17T15:06:42Zokurzokurz@suse.com
<ul><li><strong>Category</strong> set to <i>Feature requests</i></li></ul> openQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=363802017-01-17T15:12:37Zmichalnowakmnowak@suse.com
<ul></ul><blockquote>
<p>okurz> mnowak: that is the ticket for your yesterday experience: <a href="https://progress.opensuse.org/issues/11160">https://progress.opensuse.org/issues/11160</a></p>
</blockquote>
<p>I got this yesterday:</p>
<pre><code>assam:~ # /usr/share/openqa/script/clone_job.pl --verbose --from https://openqa.opensuse.org --host openqa.opensuse.org 334737
{
"parents" : {
"Chained" : [],
"Parallel" : []
},
"id" : 334737,
"name" : "opensuse-Tumbleweed-NET-x86_64-Build20170115-minimalx-image@64bit",
"result" : "passed",
"settings" : {
"MACHINE" : "64bit",
"ISO" : "openSUSE-Tumbleweed-NET-x86_64-Snapshot20170115-Media.iso",
"VERSION" : "Tumbleweed",
"WORKER_CLASS" : "qemu_x86_64",
"NETBOOT" : "1",
"ARCH" : "x86_64",
"TEST" : "minimalx-image",
"NAME" : "00334737-opensuse-Tumbleweed-NET-x86_64-Build20170115-minimalx-image@64bit",
"DESKTOP" : "minimalx",
"INSTALLONLY" : "1",
"BUILD" : "20170115",
"QEMUCPU" : "qemu64",
"SUSEMIRROR" : "http://openqa.opensuse.org/assets/repo/openSUSE-Tumbleweed-oss-i586-x86_64-Snapshot20170115",
"FLAVOR" : "NET",
"MIRROR_HTTP" : "http://openqa.opensuse.org/assets/repo/openSUSE-Tumbleweed-oss-i586-x86_64-Snapshot20170115",
"HDDSIZEGB" : "40",
"DISTRI" : "opensuse",
"PUBLISH_HDD_1" : "opensuse-Tumbleweed-x86_64-20170115-minimalx@64bit.qcow2",
"REPO_0" : "openSUSE-Tumbleweed-oss-i586-x86_64-Snapshot20170115",
"BACKEND" : "qemu",
"VIRTIO_CONSOLE" : "1",
"QEMU_COMPRESS_QCOW2" : "1",
"FULLURL" : "1",
"ISO_MAXSIZE" : "737280000"
},
"priority" : 50,
"group_id" : 1,
"test" : "minimalx-image",
"retry_avbl" : 3,
"group" : "openSUSE Tumbleweed",
"t_started" : "2017-01-16T04:17:54",
"children" : {
"Chained" : [
334740,
334741,
334742,
334743
],
"Parallel" : []
},
"state" : "done",
"assets" : {
"repo" : [
"openSUSE-Tumbleweed-oss-i586-x86_64-Snapshot20170115"
],
"iso" : [
"openSUSE-Tumbleweed-NET-x86_64-Snapshot20170115-Media.iso"
],
"hdd" : [
"opensuse-Tumbleweed-x86_64-20170115-minimalx@64bit.qcow2"
]
},
"clone_id" : null,
"t_finished" : "2017-01-16T04:42:57"
}
downloading
https://openqa.opensuse.org/tests/334737/asset/iso/openSUSE-Tumbleweed-NET-x86_64-Snapshot20170115-Media.iso
to
/var/lib/openqa/factory/iso/openSUSE-Tumbleweed-NET-x86_64-Snapshot20170115-Media.iso
{
"VIRTIO_CONSOLE" : "1",
"QEMU_COMPRESS_QCOW2" : "1",
"ISO_MAXSIZE" : "737280000",
"FULLURL" : "1",
"SUSEMIRROR" : "http://openqa.opensuse.org/assets/repo/openSUSE-Tumbleweed-oss-i586-x86_64-Snapshot20170115",
"QEMUCPU" : "qemu64",
"BUILD" : "20170115",
"DISTRI" : "opensuse",
"BACKEND" : "qemu",
"PUBLISH_HDD_1" : "opensuse-Tumbleweed-x86_64-20170115-minimalx@64bit.qcow2",
"REPO_0" : "openSUSE-Tumbleweed-oss-i586-x86_64-Snapshot20170115",
"MIRROR_HTTP" : "http://openqa.opensuse.org/assets/repo/openSUSE-Tumbleweed-oss-i586-x86_64-Snapshot20170115",
"FLAVOR" : "NET",
"HDDSIZEGB" : "40",
"ARCH" : "x86_64",
"_GROUP" : "openSUSE Tumbleweed",
"INSTALLONLY" : "1",
"TEST" : "minimalx-image",
"DESKTOP" : "minimalx",
"MACHINE" : "64bit",
"VERSION" : "Tumbleweed",
"ISO" : "openSUSE-Tumbleweed-NET-x86_64-Snapshot20170115-Media.iso",
"NETBOOT" : "1",
"WORKER_CLASS" : "qemu_x86_64"
}
Can't use an undefined value as a HASH reference at /usr/share/openqa/script/clone_job.pl line 287.
</code></pre> openQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=455182017-03-29T16:44:30Zokurzokurz@suse.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Low</i></li><li><strong>Target version</strong> set to <i>future</i></li></ul> openQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=1299282018-06-15T19:08:47Zokurzokurz@suse.com
<ul><li><strong>Target version</strong> changed from <i>future</i> to <i>future</i></li></ul> openQA Project - action #11160: improve debugging/ log-errror if variable posted to api aren't right. https://progress.opensuse.org/issues/11160?journal_id=2369332019-08-20T21:23:45Zokurzokurz@suse.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>okurz</i></li></ul><p>since then we have much better error handling and output</p>