Project

General

Profile

action #72208

coordination #70390: [qe-core][epic] post-installation tests for transactional role

[qe-core] Schedule java test module to test alternatives on extra_tests_transactional_server

Added by SLindoMansilla over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
New test
Target version:
SUSE QA - Milestone 30
Start date:
2020-10-02
Due date:
% Done:

0%

Estimated time:
42.00 h
Difficulty:
medium

Description

Motivation

https://jira.suse.com/browse/SLE-9101

Acceptance criteria

  • AC: Test module java is scheduled in extra_tests_transactional_server

Tasks

  1. Schedule test module java in extra_tests_transactional_server
  2. Verify on Tumbleweed, Tumbleweed/JeOS, SLE15-SP3, SLE15-SP2 (https://confluence.suse.com/display/SUSELinuxEnterpriseServer15SP3/%5BSLE+15+SP3%5D+PRD+all-in-one#id-[SLE15SP3]PRDall-in-one-TransactionalUpdates)
  3. Adapt java to use transactional-update on transactional server and zypper otherwise

History

#1 Updated by SLindoMansilla over 1 year ago

  • Tags set to functional

#2 Updated by SLindoMansilla over 1 year ago

  • Status changed from New to Workable
  • Target version set to Milestone 30
  • Estimated time set to 42.00 h

#3 Updated by zluo over 1 year ago

  • Status changed from Workable to In Progress
  • Assignee set to zluo

take over.

#4 Updated by zluo over 1 year ago

first try, failed for zypper in

found connection error:

http://10.162.23.47/tests/8251#step/java

#5 Updated by SLindoMansilla over 1 year ago

  • Description updated (diff)

zluo wrote:

first try, failed for zypper in

found connection error:

http://10.162.23.47/tests/8251#step/java

Actually, this is EC=5 ZYPPER_EXIT_ERR_PRIVILEGES User invoking zypper has insufficient privileges for specified operation

I just realized that zypper is not allowed on read-only FS, command transactional-update need to be used.
New task added.

#6 Updated by zluo over 1 year ago

okay, will check this for transactional_server.

#8 Updated by szarate over 1 year ago

  • Status changed from In Progress to Workable

#10 Updated by tjyrinki_suse about 1 year ago

  • Subject changed from [u] Schedule java test module to test alternatives on extra_tests_transactional_server to [qe-core][functional] Schedule java test module to test alternatives on extra_tests_transactional_server

#11 Updated by tjyrinki_suse about 1 year ago

  • Subject changed from [qe-core][functional] Schedule java test module to test alternatives on extra_tests_transactional_server to [qe-core] Schedule java test module to test alternatives on extra_tests_transactional_server

#12 Updated by zluo about 1 year ago

  • Difficulty changed from easy to medium

The problem on transactional server: install java and this update works only after a reboot:

http://10.162.23.47/tests/8469#step/java/44
java compiler alternative not found for java-11-openjdk, it looks like a product issue. It requires further investigation.
tested now with current build and it lokks really better:
http://10.162.23.47/tests/8471#step/java/41

still failed because of Read-only file system on transactional server.

#13 Updated by zluo about 1 year ago

  • Blocked by action #77716: [qe-core][opensuse] test fails in java because read-only file system on transactional server added

#14 Updated by zluo about 1 year ago

  • Status changed from Workable to In Progress

WIP PR at least for now:
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/11388

need to think about how to handle the issue of test_java.sh

#15 Updated by SLindoMansilla about 1 year ago

Why do you need to create another ticket? I consider adapting the test for transactional updates part of this ticket.

#16 Updated by zluo about 1 year ago

@SLindoMansilla well, I think this is a different issue, atm the script to run java test can not work on transactional server.

#17 Updated by SLindoMansilla about 1 year ago

zluo wrote:

@SLindoMansilla well, I think this is a different issue, atm the script to run java test can not work on transactional server.

That was expected, since that test was never run against transactional-server, more specifically, it was never run against a Read-Only BTRFS root filesystem.

#18 Updated by zluo about 1 year ago

That was expected, since that test was never run against transactional-server, more specifically, it was never run against a Read-Only BTRFS root filesystem. ?

that was not clear at least to me in grooming session. And it looks "easy" to everyone: just schedule java for transactional server

But we see now that this is not simple as we thought: zpper install doesn't work and reboot is required as well, so now script of test java is not working (which is the last step :))

#21 Updated by zluo about 1 year ago

http://10.162.23.47/tests/8525#step/java/35
PR updated for test java on transactional server.

#22 Updated by zluo about 1 year ago

due to feedback from fvoigt, I will expanse the code further for java test itself. skip some java tests on transactional server, no tests which required write permission, skip java/javac/plugin update alternative

so test results should be like:
http://10.162.23.47/tests/8559#step/java/35

#23 Updated by zluo about 1 year ago

  • Status changed from In Progress to Feedback

PR updated now, waiting for review and merge.

#24 Updated by dzedro about 1 year ago

#25 Updated by zluo about 1 year ago

dzedro wrote:

Breaking Maintenance tests https://openqa.suse.de/tests/5174235#step/java/20

let me check.

#28 Updated by zluo about 1 year ago

  • Blocked by deleted (action #77716: [qe-core][opensuse] test fails in java because read-only file system on transactional server)

#29 Updated by zluo about 1 year ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF