Project

General

Profile

Actions

action #64433

closed

[SLE][Migration][SLE15SP2] Can't use vncviewer to debug openQA job on s390x

Added by leli about 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Enhancement to existing tests
Target version:
-
Start date:
2020-03-12
Due date:
% Done:

0%

Estimated time:
12.00 h
Difficulty:

Description

The ticket comes from bsc#1154156, we can try developer's suggestion firstly.

###################################################################################

First of all, SuSEfirewall2 is only a legacy component any more in SLE-15. So
manual user interaction is actually necessary to adjust to the new firewalld
situation after upgrading.

The error you pasted here has to do with
/etc/sysconfig/SuSEfirewall2.d/services/vnc-httpd not being available. This
file is not shipped by SuSEfirewall2 but by tigervnc. The tigervnc package no
longer installs this service file when being built for firewalld. So if you
want this upgrade scenario to work you will need to get the tigervnc package
adjusted.

Change would be easy. Just no longer make use of use_%firewalld macro in spec file...
##############################################################

Actions #1

Updated by coolgw about 4 years ago

try to debug show firewall status
linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/debug-vnc http://openqa.suse.de/tests/3999663

Created job #4001027: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4001027

Actions #2

Updated by coolgw about 4 years ago

another try
linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/debug-vnc http://openqa.suse.de/tests/3999663
Created job #4003291: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4003291
linux-4360:~/openqa-distr #

Actions #3

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/debug-vnc http://openqa.suse.de/tests/3999663
Created job #4004129: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4004129

Actions #4

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/debug-vnc http://openqa.suse.de/tests/3999663
Created job #4004130: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4004130

Actions #5

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/debug-vnc http://openqa.suse.de/tests/3999663
Created job #4004136: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4004136
linux-4360:~/openqa-distr #

Actions #6

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/debug-vnc http://openqa.suse.de/tests/3999663
Created job #4004146: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4004146

Actions #7

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/debug-vnc http://openqa.suse.de/tests/3999663
Created job #4004191: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4004191
not firewalld, but susefirewall2

Actions #8

Updated by coolgw about 4 years ago

stop susefirewall2
linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/debug-vnc http://openqa.suse.de/tests/3999663
Created job #4004336: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4004336

Actions #9

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/390vnc http://openqa.suse.de/tests/3999663
Created job #4009321: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4009321
linux-4360:~/openqa-distr #

Actions #10

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/390vnc http://openqa.suse.de/tests/3999663
Created job #4011270: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4011270
linux-4360:~/openqa-distr #

Actions #11

Updated by coolgw about 4 years ago

base Oliver's suggestion, try to open susefire wall port on sle15
linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/aa http://openqa.suse.de/tests/3999663
Created job #4017261: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4017261
linux-4360:~/openqa-distr #

Actions #12

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/aa http://openqa.suse.de/tests/3999663
Created job #4017786: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4017786
linux-4360:~/openqa-distr #

Actions #13

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/390vnc http://openqa.suse.de/tests/3999663
Created job #4018095: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-s390x-Build160.1-offline_sles12sp5_pscc_asmm-lgm_all_full@s390x-kvm-sle15 -> http://openqa.suse.de/t4018095
linux-4360:~/openqa-distr #

Actions #14

Updated by coolgw about 4 years ago

  • Status changed from New to Resolved
Actions #15

Updated by leli about 4 years ago

  • Status changed from Resolved to Workable
Actions #16

Updated by coolgw about 4 years ago

This is 15 to 15sp2 test case failed, another issue, need reopen another ticket for fix this.

Actions #17

Updated by coolgw about 4 years ago

first try to confirm whether related with firewall
linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec-debug https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4065618
Cloning dependencies of sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build168.1-offline_sles15_media_basesys-srv_all_full_zVM@s390x-zVM-Upgrade-sp2
Created job #4072248: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build168.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4072248
Created job #4072249: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build168.1-offline_sles15_media_basesys-srv_all_full_zVM@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4072249

Actions #18

Updated by coolgw about 4 years ago

if you look on following error info, this already not related with firewall anymore, since firewall already stop. I suspect vnc not start yet.
https://openqa.suse.de/tests/4072249#step/reconnect_mgmt_console/22

Actions #19

Updated by leli about 4 years ago

  • Priority changed from Normal to Urgent
Actions #20

Updated by leli about 4 years ago

  • Priority changed from Urgent to High
Actions #21

Updated by coolgw about 4 years ago

add more debug info:
linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec-debug https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4112314
Cloning dependencies of sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM@s390x-zVM-Upgrade-sp2
Created job #4115011: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4115011
Created job #4115012: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4115012

Actions #22

Updated by coolgw about 4 years ago

/usr/local/bin/openqa-clone-custom-git-refspec-debug https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4112314
Cloning dependencies of sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM@s390x-zVM-Upgrade-sp2
Created job #4116223: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4116223
Created job #4116224: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4116224

Actions #23

Updated by coolgw about 4 years ago

check the prepare case i found strange logic in system_role.pm
set_var('DESKTOP', 'textmode') unless is_opensuse; +55
that means from preparation phase we start with textmode? That's also the reason no any failed in preparation phase.

Actions #24

Updated by coolgw about 4 years ago

start to check after force set desktop=gnome
linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4116223
Created job #4116816: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4116816

Actions #25

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4116223
Created job #4116842: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4116842

Actions #26

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4116223
Created job #4119389: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4119389

Actions #27

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4116223
Created job #4122621: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4122621

Actions #28

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4116223
Created job #4122650: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4122650
show access control failed, not root?

Actions #29

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4116223

Created job #4122656: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4122656

Actions #30

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/s390-firewall http://openqa.suse.de/tests/4116223
Created job #4128559: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-s390x-Build176.1-offline_sles15_media_basesys-srv_all_full_zVM_preparation@s390x-zVM-Upgrade-sp2 -> http://openqa.suse.de/t4128559

Actions #31

Updated by coolgw about 4 years ago

After check the base system(which installed by prepare job), no yast commad, no vnc installed, so this is not proper base system for migration(espeically check vnc etc..)
s390vsl153:~ # yast
bash: yast: command not found
s390vsl153:~ # yast2
bash: yast2: command not found
s390vsl153:~ # zyppper se vnc
bash: zyppper: command not found
s390vsl153:~ # zypper se vnc
Loading repository data...
Reading installed packages...
No matching items found.

Note: For an extended search including not yet activated remote resources please use 'zypper
search-packages'.
s390vsl153:~ # zypper lr -u
Repository priorities are without effect. All enabled repositories share the same priority.

| Alias | Name | Enabled | GPG Check | Refresh | URI

--+-------------+-------------+---------+-----------+---------+------------------------------------------------
1 | SLES15-15-0 | SLES15-15-0 | Yes | (r ) Yes | Yes | ftp://openqa/SLE-15-Installer-DVD-s390x-GM-DVD1
s390vsl153:~ # cat /etc/os-release
NAME="SLES"
VERSION="15"
VERSION_ID="15"
PRETTY_NAME="SUSE Linux Enterprise Server 15"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15"

Actions #32

Updated by coolgw about 4 years ago

  • Status changed from Workable to Resolved

The prepare job need redo, i suggest using scc register and do patch sle operation.
So we need create anothe ticket to finish this.

Actions #33

Updated by hjluo about 4 years ago

  • Status changed from Resolved to Workable

Hit this agin on 179.1
https://openqa.nue.suse.com/tests/4136660

Test died: Error connecting to VNC server s390vsl153.suse.de:5901: IO::Socket::INET: connect: No route to host at /usr/lib/os-autoinst/testapi.pm line 1622.

Actions #34

Updated by coolgw about 4 years ago

  • Status changed from Workable to Resolved
Actions #35

Updated by maritawerner over 3 years ago

WEi Gao and Oli, I have a question here. Why did you add a soft fail to the testcase? According to the last comments of the developer the testcase is wrong and the bug is invalid, so I think we should fix the testcase and make it "green" and not add a soft fail? What do you think?

Actions #36

Updated by okurz over 3 years ago

maritawerner wrote:

WEi Gao and Oli, I have a question here. Why did you add a soft fail to the testcase? According to the last comments of the developer the testcase is wrong and the bug is invalid, so I think we should fix the testcase and make it "green" and not add a soft fail? What do you think?

In short: Yes of course the test case should be fixed. This is planned in #68564

I think what happened is that alynx.zhou@suse.com , the reporter of https://bugzilla.suse.com/show_bug.cgi?id=1154156 thought this issue to be a bug. And I am sure we can find a couple of bugs which all point to the same problem: SUSEfirewall2 was deprecated and said to be replaced by firewalld but no proper migration was put in place (compared to what one can expect in other cases, e.g. Debian or Ubuntu). There are release note entries, updated documentation and even helper scripts but as long as none are automatically triggered users will run into problems like the one reported in the bug. So I do not even consider the bug invalid. And probably whoever put in the softfail did that referencing a bug that is still open. In my eyes everything happened correctly up to that point. The plan to update the openQA migration scenarios accordingly is planned in #68564 and until that is done I think the softfail is a good reminder that the issue persists despite what is suggested as solution.

Actions

Also available in: Atom PDF