https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842017-05-05T19:36:15ZopenSUSE Project Management ToolopenQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=492702017-05-05T19:36:15Zosukup
<ul></ul><p>systemd on SLE12SP2+ automatically starts only first found special serial device. On SLE12SP1 and SLE12GA systemd dont start any special serial dev ( and looks more and more like bug in our systemd presets bsc#1037910)</p>
<p>more info <a href="http://0pointer.de/blog/projects/serial-console.html" class="external">http://0pointer.de/blog/projects/serial-console.html</a></p>
<p>and from look to systemd-getty-generator .. console is started by generator only on:</p>
<pre><code> "hvc0"
"xvc0"
"hvsi0"
"sclp_line0"
"ttysclp0"
"3270!tty1";
</code></pre>
<p>so for correct work on ppc64le we need modify SUT image with:<br>
<code>echo "hvc1\n" >> /etc/securetty<br>
systemctl enable /dev/hvc1<br>
systemctl start /dev/hvc1</code></p>
openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=514562017-05-26T20:21:05Zokurzokurz@suse.com
<ul><li><strong>Category</strong> set to <i>Feature requests</i></li></ul> openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=562982017-07-12T11:07:11Zrpalethorperichard.palethorpe@suse.com
<ul><li><strong>Assignee</strong> deleted (<del><i>rpalethorpe</i></del>)</li></ul> openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=578602017-07-24T18:37:25Zpevikpetr.vorel@gmail.com
<ul><li><strong>Assignee</strong> set to <i>pevik</i></li></ul> openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=585622017-07-28T13:00:40Zpevikpetr.vorel@gmail.com
<ul></ul><p>Do I understand it correctly, that the problem is that serial_terminal.txt is not saved in assets?</p>
<p>Isn't the whole problem caused just by the fact that tests on ppc64le don't use virtio-console by qemu setup?</p>
<p>Because 64bit and aarch64-virtio use it (both <a href="https://openqa.suse.de/tests/1058414#settings" class="external">https://openqa.suse.de/tests/1058414#settings</a>, <a href="https://openqa.suse.de/tests/1059313#settings" class="external">https://openqa.suse.de/tests/1059313#settings</a> have VIRTIO_CONSOLE=1, buthttps://openqa.suse.de/tests/1058099#settings doesn't) and they save the serial_terminal.log.</p>
<p>I tested it on ppc64le machine in orthos, with QEMU 2.9, which has virtio-console support.<br>
If I try to clone job VIRTIO_CONSOLE=1 it fails early during logging (no login prompt, fails on timeout):<br>
<a href="http://pinotage-4.arch.suse.de/tests/64#step/boot_ltp/4" class="external">http://pinotage-4.arch.suse.de/tests/64#step/boot_ltp/4</a></p>
<p>while login without virtio-console works well:<br>
<a href="http://pinotage-4.arch.suse.de/tests/65#step/boot_ltp/3" class="external">http://pinotage-4.arch.suse.de/tests/65#step/boot_ltp/3</a> (NOTE: curl failure - script_output call is caused by something else, see: #20590)</p>
<p>Could be the reason that enabling virtio-console on ppc6le requires changes in the test code that set a tty device?<br>
If so the pull request implementing osukup's idea is useless:<br>
<a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/3350" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/3350</a></p>
openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=599522017-08-14T13:49:27Zpevikpetr.vorel@gmail.com
<ul></ul><p>osukup wrote:</p>
<pre><code>systemctl enable /dev/hvc1
systemctl start /dev/hvc1
</code></pre>
<p>Correct commands are (see <a href="http://0pointer.de/blog/projects/serial-console.html):" class="external">http://0pointer.de/blog/projects/serial-console.html):</a></p>
<pre><code>systemctl enable serial-getty@hvc1
systemctl start serial-getty@hvc1
</code></pre> openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=599602017-08-14T14:29:15Zrpalethorperichard.palethorpe@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>Milestone 9</i></li></ul><p>Solved for LTP test runner at least.</p>
openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=601242017-08-16T08:55:45Zpevikpetr.vorel@gmail.com
<ul><li><strong>Subject</strong> changed from <i>It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)</i> to <i>[ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)</i></li></ul> openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=601262017-08-16T08:56:36Zpevikpetr.vorel@gmail.com
<ul></ul><p>Fixed in <br>
<a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/commit/3412a7f270c526a4f3b8f998f96a96868252d99f" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/commit/3412a7f270c526a4f3b8f998f96a96868252d99f</a><br>
<a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/commit/eaad2c5f73c10086966021916f806b68b2518c3c" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/commit/eaad2c5f73c10086966021916f806b68b2518c3c</a></p>
openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=1708942018-12-04T09:55:38Zpvorelpetr.vorel@suse.com
<ul></ul><p>After enabling virtio console by default (<a href="https://github.com/os-autoinst/os-autoinst/commit/7226ced3391f2fa8276f098ee3b9e6ce50243dc4" class="external">https://github.com/os-autoinst/os-autoinst/commit/7226ced3391f2fa8276f098ee3b9e6ce50243dc4</a>)</p>
<p><code>add_serial_console('hvc1');</code> from tests/kernel/install_ltp.pm should be moved to some common place and called automatically (to be only on single place and don't expect tests add this manually).</p>
openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=1709302018-12-04T10:26:31Zpvorelpetr.vorel@suse.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-4 status-3 priority-4 priority-default closed" href="/issues/18860">action #18860</a>: [qam] SLE12 GA and SLE12SP1 doesnt start virtio_console correctly</i> added</li></ul> openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=1710622018-12-04T11:53:03Zosukup
<ul></ul><p>util-linux on sle12/sle12sp1 rejects root login on any console which isnt listed in /etc/securetty , from SP2 is this file ignored</p>
<p>must be this file updated before using nonstandard consoles (hvc*)</p>
openQA Project - action #18980: [ltp][openqa][virtio][ppc64le] It appears agetty is not started on the virtio serial console on ppc64le (it can't log into the virtio_console)https://progress.opensuse.org/issues/18980?journal_id=2633362019-12-10T08:56:11Zpvorelpetr.vorel@suse.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/263336/diff?detail_id=259499">diff</a>)</li></ul>