https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842019-04-08T09:24:55ZopenSUSE Project Management Toolqe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2047852019-04-08T09:24:55Zriafarov
<ul><li><strong>Copied from</strong> <i><a class="issue tracker-6 status-3 priority-4 priority-default closed parent" href="/issues/49889">coordination #49889</a>: [functional][epic][y] Switch between installation/install shell in specific scenarios (hyperv, ssh,vnc)</i> added</li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2047912019-04-08T09:25:17Zriafarov
<ul><li><strong>Copied from</strong> deleted (<i><a class="issue tracker-6 status-3 priority-4 priority-default closed parent" href="/issues/49889">coordination #49889</a>: [functional][epic][y] Switch between installation/install shell in specific scenarios (hyperv, ssh,vnc)</i>)</li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2047972019-04-08T09:25:22Zriafarov
<ul><li><strong>Parent task</strong> set to <i>#49889</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2077522019-04-24T06:16:36Zriafarov
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/207752/diff?detail_id=204992">diff</a>)</li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2078452019-04-24T08:52:18Zriafarov
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/207845/diff?detail_id=205085">diff</a>)</li><li><strong>Estimated time</strong> set to <i>8.00 h</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2078482019-04-24T08:54:58Zriafarov
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Workable</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2078812019-04-24T09:26:59Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-05-07</i> to <i>2019-05-21</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2088892019-04-29T15:04:19Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-05-21</i> to <i>2019-06-04</i></li><li><strong>Target version</strong> changed from <i>Milestone 24</i> to <i>Milestone 25</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2148682019-05-23T09:57:02Zriafarov
<ul><li><strong>Blocks</strong> <i><a class="issue tracker-4 status-3 priority-4 priority-default closed behind-schedule" href="/issues/49622">action #49622</a>: [functional][y] Verify the wrong desktop will show up</i> added</li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2148832019-05-23T10:19:11Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Status</strong> changed from <i>Workable</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>ybonatakis</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2178232019-06-04T08:52:54Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-06-04</i> to <i>2019-06-18</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2180182019-06-04T14:26:16Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Due date</strong> changed from <i>2019-06-18</i> to <i>2019-06-04</i></li></ul><p>Most of the approaches and tests didnt work. What is promising is a solution i found on stackoverflow. in a nutshell, you go to the qemu console and make use of sendkey or maybe even chvt. </p>
<p>The test this in a local qemu image and seemed to work.</p>
<p>When i tried the same in the test connected from VNC i could switch to the qemu console but not send any command. the problem could be in the parameters where the qemu takes. those were for the test that i was using:</p>
<pre><code>/usr/bin/qemu-system-x86_64 -vga cirrus -only-migratable -chardev ringbuf,id=serial0,logfile=serial0,logappend=on -serial chardev:serial0 -soundhw ac97 -global isa-fdc.driveA= -m 1024 -cpu qemu64 -netdev tap,id=qanet0,ifname=tap1,script=no,downscript=no -device virtio-net,netdev=qanet0,mac=52:54:00:12:00:17 -boot order=c,menu=on,splash-time=5000 -device usb-ehci -device usb-tablet -smp 1 -enable-kvm -no-shutdown -vnc :92,share=force-shared -device virtio-serial -chardev socket,path=virtio_console,server,nowait,id=virtio_console,logfile=virtio_console.log,logappend=on -device virtconsole,chardev=virtio_console,name=org.openqa.console.virtio_console -chardev socket,path=qmp_socket,server,nowait,id=qmp_socket,logfile=qmp_socket.log,logappend=on -qmp chardev:qmp_socket -S -device virtio-scsi-pci,id=scsi0 -blockdev driver=file,node-name=hd0-overlay0-file,filename=/var/lib/openqa/pool/2/raid/hd0-overlay0,cache.no-flush=on -blockdev driver=qcow2,node-name=hd0-overlay0,file=hd0-overlay0-file,cache.no-flush=on -device virtio-blk,id=hd0-device,drive=hd0-overlay0,bootindex=0,serial=hd0 -blockdev driver=file,node-name=cd0-overlay0-file,filename=/var/lib/openqa/pool/2/raid/cd0-overlay0,cache.no-flush=on -blockdev driver=qcow2,node-name=cd0-overlay0,file=cd0-overlay0-file,cache.no-flush=on -device scsi-cd,id=cd0-device,drive=cd0-overlay0,serial=cd0
</code></pre> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2181352019-06-05T05:25:46Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-06-04</i> to <i>2019-06-18</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2194852019-06-11T14:41:35Zybonatakisioannis.bonatakis@suse.com
<ul></ul><p>the solution so far involves the opening of xterm and collecting the logs from the target (where the installation is taking place). the problem with this is that the assert_script_run redirects to the serial device that the command is executed. this causes the assert_script_run failing with timeout. One solution is to use script_run or as it is suggested to use type_string in those occasions.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2208412019-06-17T07:48:15Zybonatakisioannis.bonatakis@suse.com
<ul></ul><p><a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/7695" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/7695</a></p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2211412019-06-18T08:34:43Zybonatakisioannis.bonatakis@suse.com
<ul></ul><p>the approach is not unified for both VNC and ssh cases. <br>
As it was suggested, i tried to use the root-ssh. the problem i encountered with this is shown in the logs as following</p>
<pre><code>[2019-06-17T15:21:04.785 CEST] [debug] <<< testapi::select_console(testapi_console='root-ssh')
console root-ssh does not exist at /usr/lib/os-autoinst/backend/driver.pm line 95.
[2019-06-17T15:21:04.785 CEST] [debug] Backend process died, backend errors are reported below in the following lines:
Can't call method "select" on an undefined value at /usr/lib/os-autoinst/backend/baseclass.pm line 556.
</code></pre>
<p>Taking a deeper look, i discovered that the root-ssh is not used on qemu backend.<br>
lib/susedistribution.pm</p>
<pre><code>if (get_var('BACKEND', '') =~ /ikvm|ipmi|spvm/)
</code></pre>
<p>Then i tried to test adding qemu to the list of patterns. the following restriction appears</p>
<pre><code>Could not retrieve required variable SUT_IP at /var/lib/openqa/share/tests/sle/lib/susedistribution.pm line 435.
</code></pre>
<p>i tried, then, to set_var the variable in different location in the test without success and having the same error.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2211532019-06-18T08:48:49Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-06-18</i> to <i>2019-07-02</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2212492019-06-18T10:34:18Zriafarov
<ul><li><strong>Target version</strong> changed from <i>Milestone 25</i> to <i>Milestone 26</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2229682019-06-21T15:00:39Zybonatakisioannis.bonatakis@suse.com
<ul></ul><p>for future reference, it is also possible to collect logs from the system using the start_shell in the boot option. this is will give a console which can be used even when openqa crushes</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2233582019-07-01T07:05:45Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Feedback</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2237752019-07-02T08:52:51Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-07-02</i> to <i>2019-07-16</i></li></ul><p>PR is still open.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2274352019-07-16T08:38:18Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-07-16</i> to <i>2019-07-30</i></li><li><strong>Estimated time</strong> deleted (<del><i>8.00 h</i></del>)</li></ul><p>VR is missing to verify changes in the code.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2309902019-07-30T08:54:36Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-07-30</i> to <i>2019-08-13</i></li><li><strong>Target version</strong> changed from <i>Milestone 26</i> to <i>Milestone 27</i></li></ul><p>Needs another round of review.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2335402019-08-08T13:54:36Zybonatakisioannis.bonatakis@suse.com
<ul></ul><p>waiting for some VR on the production to close it</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2341252019-08-12T08:22:42Zybonatakisioannis.bonatakis@suse.com
<ul></ul><p>The pull request has been merged but it does not work [0]. At least not for ssh. i have triggered the vnc job [1] to get a full picture.</p>
<p>[0] <a href="https://openqa.suse.de/tests/3237658#step/wel" class="external">https://openqa.suse.de/tests/3237658#step/wel</a> come/18<br>
[1] <a href="https://openqa.suse.de/tests/3238021#" class="external">https://openqa.suse.de/tests/3238021#</a></p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2341282019-08-12T08:23:45Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Assignee</strong> deleted (<del><i>ybonatakis</i></del>)</li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2341702019-08-12T08:47:51Zybonatakisioannis.bonatakis@suse.com
<ul></ul><p>vnc is also failing to upload the logs <a href="https://openqa.suse.de/tests/3238021#" class="external">https://openqa.suse.de/tests/3238021#</a></p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2345362019-08-13T08:36:14Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-08-13</i> to <i>2019-09-10</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Workable</i></li><li><strong>Target version</strong> changed from <i>Milestone 27</i> to <i>Milestone 30+</i></li></ul><p>We basically need to start over here and this time I would suggest to fix that in the console handling instead of hacking single scenario.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2370412019-08-21T08:38:01Zriafarov
<ul><li><strong>Estimated time</strong> set to <i>8.00 h</i></li></ul><p><a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/susedistribution.pm#L651" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/susedistribution.pm#L651</a> here is piece of logic, where we need to redirect <code>root-console</code> to use ssh connection instead for vnc remote installations.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2414782019-09-05T08:40:47Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Status</strong> changed from <i>Workable</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>ybonatakis</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2420602019-09-09T08:36:00Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Workable</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2423032019-09-10T05:33:23Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Status</strong> changed from <i>Workable</i> to <i>In Progress</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2423572019-09-10T08:36:26Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-09-10</i> to <i>2019-09-24</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2430922019-09-12T08:12:52Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Workable</i></li><li><strong>Assignee</strong> deleted (<del><i>ybonatakis</i></del>)</li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2455012019-09-24T06:40:42Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Status</strong> changed from <i>Workable</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>ybonatakis</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2456332019-09-24T09:28:00ZJERiveraMoyajeriveramoya@suse.com
<ul><li><strong>Due date</strong> changed from <i>2019-09-24</i> to <i>2019-10-08</i></li></ul><p>We failed to look a this ticket. Moving to next sprint.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2480242019-10-07T18:08:21Zybonatakisioannis.bonatakis@suse.com
<ul></ul><p>as i havent found a solution yet based on the requirement i submitted a PR which at least should solve the latest fail to upload the logs when a module fails <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8610" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8610</a></p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2481382019-10-08T08:59:12Zriafarov
<ul><li><strong>Due date</strong> changed from <i>2019-10-08</i> to <i>2019-10-22</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2482312019-10-08T13:20:25Zybonatakisioannis.bonatakis@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Workable</i></li><li><strong>Assignee</strong> deleted (<del><i>ybonatakis</i></del>)</li></ul><p>VR in OSD doesnt work. the reason seems to be that the VM cant communicate with the server set by autoinst_url("/uploadlog/$upname"). i dont know why this work locally. i will close the PR.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2491132019-10-11T08:35:58ZJERiveraMoyajeriveramoya@suse.com
<ul><li><strong>File</strong> <a href="/attachments/8879">Screenshot from 2019-10-11 10-29-29.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/8879/Screenshot%20from%202019-10-11%2010-29-29.png">Screenshot from 2019-10-11 10-29-29.png</a> added</li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2491642019-10-11T12:56:19ZJERiveraMoyajeriveramoya@suse.com
<ul><li><strong>Status</strong> changed from <i>Workable</i> to <i>In Progress</i></li></ul><p>We cannot reuse solution for ipmi due to in ipmi there is two machines and one worker and this worker has access to a physical serial device named SOL, but in Multi-Machine setup we have two machines and one worker for each machine, where the worker in one them (controller) cannot have exclusive access to serial (which virtual provide by qemu) in the other machine (target), meaning that even if we could try to connect both would be a mess for other jobs running, as we would be hacking the serial for the target machine. Discarded the possibility to reuse ipmi approach I'm taking a look for running commands pre-pending ssh, which in some way is used also in <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8422/files" class="external">this PR</a> but we might need more simple approach for our scenario.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2492062019-10-11T16:50:31Zokurzokurz@suse.com
<ul></ul><p>JERiveraMoya wrote:</p>
<blockquote>
<p>We cannot reuse solution for ipmi due to in ipmi there is two machines and one worker and this worker has access to a physical serial device named SOL, but in Multi-Machine setup we have two machines and one worker for each machine</p>
</blockquote>
<p>There is no direct necessity to handle any IPMI machines different to qemu machines. In principle the idea is that every SUT has both at least a graphical-capable console as well as a serial console.</p>
<blockquote>
<p>I'm taking a look for running commands pre-pending ssh, which in some way is used also in <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8422/files" class="external">this PR</a></p>
</blockquote>
<p>That should only be necessary if you have remote SUTs that are not directly available, e.g. cloud VMs or in case of <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8099" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8099</a> it was a SUT within a separated IBM network that could only be reached over VPN and a two-jump ssh tunnel.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2492872019-10-12T09:39:08Zybonatakisioannis.bonatakis@suse.com
<ul></ul><p>from my investigation i didnt see any solution on impi or other system. When they fail the log gathering is not working</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2494282019-10-14T09:15:37ZJERiveraMoyajeriveramoya@suse.com
<ul><li><strong>Assignee</strong> set to <i>JERiveraMoya</i></li></ul> qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2502442019-10-15T12:42:08ZJERiveraMoyajeriveramoya@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Feedback</i></li></ul><p>PR: <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8671" class="external">Wait for children to run post_fail_hook on target in MM</a> -> Merged</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2514202019-10-21T05:17:28ZJERiveraMoyajeriveramoya@suse.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>VR: for instance, recent failure in controller <a href="https://openqa.suse.de/tests/3497074" class="external">failing in beta warning needle</a> and still we get logs in <a href="https://openqa.suse.de/tests/3497079#downloads" class="external">target</a>.</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=2515342019-10-21T11:39:12Zriafarov
<ul></ul><p><a href="https://openqa.suse.de/tests/3501119#" class="external">https://openqa.suse.de/tests/3501119#</a> Works like a charm. Good job here!</p>
qe-yam - action #50111: [functional][y] Switch between installation/install shell in vnc installationhttps://progress.opensuse.org/issues/50111?journal_id=3443862020-10-28T14:06:07Zriafarov
<ul><li><strong>Due date</strong> deleted (<del><i>2019-10-22</i></del>)</li></ul>