Project

General

Profile

Actions

action #72208

closed

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 3 years ago. Updated over 3 years 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
Actions #1

Updated by SLindoMansilla over 3 years ago

  • Tags set to functional
Actions #2

Updated by SLindoMansilla over 3 years ago

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

Updated by zluo over 3 years ago

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

take over.

Actions #4

Updated by zluo over 3 years ago

first try, failed for zypper in

found connection error:

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

Actions #5

Updated by SLindoMansilla over 3 years 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.

Actions #6

Updated by zluo over 3 years ago

okay, will check this for transactional_server.

Actions #8

Updated by szarate over 3 years ago

  • Status changed from In Progress to Workable
Actions #10

Updated by tjyrinki_suse over 3 years 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
Actions #11

Updated by tjyrinki_suse over 3 years 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
Actions #12

Updated by zluo over 3 years 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.

Actions #13

Updated by zluo over 3 years ago

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

Updated by zluo over 3 years 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

Actions #15

Updated by SLindoMansilla over 3 years ago

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

Actions #16

Updated by zluo over 3 years ago

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

Actions #17

Updated by SLindoMansilla over 3 years 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.

Actions #18

Updated by zluo over 3 years 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 :))

Actions #20

Updated by zluo over 3 years ago

Actions #21

Updated by zluo over 3 years ago

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

Actions #22

Updated by zluo over 3 years 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

Actions #23

Updated by zluo over 3 years ago

  • Status changed from In Progress to Feedback

PR updated now, waiting for review and merge.

Actions #24

Updated by dzedro over 3 years ago

Actions #25

Updated by zluo over 3 years ago

dzedro wrote:

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

let me check.

Actions #28

Updated by zluo over 3 years ago

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

Updated by zluo over 3 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF