Project

General

Profile

Actions

action #175938

closed

[BCI] Skip LTSS tests on non-LTSS hosts

Added by ph03nix about 2 months ago. Updated 20 days ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2025-01-22
Due date:
% Done:

100%

Estimated time:
Tags:

Description

e.g. sle-15-SP4-BCI-Updates-x86_64-bci-base-fips_15.4_on_ubuntu_docker@64bit fails due to no credentials available on this host.

As discussed in https://confluence.suse.com/display/ENGCTNRSTORY/2025-01-28+-+BCI+Sync we should for now limit the LTSS testing to the LTSS hosts. This means:

  • SLES12 LTSS containers should only be tested on a SLES 12 host with LTSS enabled subscription
  • SLES15 LTSS containers should only be tested on a SLES 15 host with LTSS enabled subscription

Implementation

Acceptance criteria

  • AC1 : SLES12-LTSS containers are only being tested on a SLES 12 host with LTSS enabled subscription
  • AC2 : SLES15-LTSS containers are only being tested on a SLES 15 host with LTSS enabled subscription

More Information

Actions #1

Updated by mdati about 2 months ago

  • Status changed from Workable to In Progress
  • Assignee set to mdati
Actions #2

Updated by mdati about 2 months ago · Edited

I noted that the only FIPS containers seem affected by this credentials missing for non-sle hosts issue, in SLE-15 containers tests.

Moreover, the only 15-SP4/SP3 containers versions show this issue, running on non-sle host, while the upper versions don't.

Tests ongoing, in a dedicated branch, to collect credentials as explained in docs. Initial VR pass; PR coming soon.

Actions #3

Updated by mdati about 1 month ago · Edited

PR created https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21055
Here, as explained into the above bci-guides, for bci tests on non-suse hosts cases, we run a routine performing:
Retrieve SCC credentials from a sle-container and store those on the host in a local file;
perform some validation of the file content;
put that file into the expected SUSE folder.
Then this host is ready to run bci container test.

Actions #4

Updated by ph03nix about 1 month ago

LTSS testing on non-SLES hosts is not supported and likely will also not work, see https://suse.slack.com/archives/C02AF8LALDA/p1737974239183359.

We discuss this topic tomorrow in the BCI meeting, consider it blocked until then. I'll update you after the meeting.

Actions #5

Updated by ph03nix about 1 month ago

  • Project changed from openQA Tests (public) to Containers and images
  • Category deleted (Bugs in existing tests)
Actions #6

Updated by ph03nix about 1 month ago

  • Subject changed from [BCI] Include SCC credentials on non-SLES hosts to [BCI] Skip LTSS tests on non-LTSS hosts
  • Description updated (diff)

I updated the ticket with the new situation. As discussed in todays BCI meeting we need to limit LTSS testing to LTSS hosts and not activate the LTSS subscription.

Actions #7

Updated by mdati about 1 month ago

Considering the update about the LTSS scope of this ticket, I close the PR#21055.

Actions #8

Updated by mdati about 1 month ago · Edited

Prepared 2 merge requests:

MR 2048 https://gitlab.suse.de/qac/qac-openqa-yaml/-/merge_requests/2048 to remove test scenarios of LTSS containers running on hosts either non-sle or without LTSS subscription;

PR 21099 https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21099 to stop BCI tests of LTSS containers on hosts either non-sle or without LTSS subscription.

Actions #9

Updated by mdati about 1 month ago · Edited

  • Status changed from In Progress to Feedback

MR 2048 and PR 21099 merged today.

Now SLE LTSS containers are only tested on SLE hosts with LTSS enabled subscription.

Actions #10

Updated by mdati about 1 month ago

  • Status changed from Feedback to Resolved

PR #21125, to also display registration status for debug improvement, in BCI_prepare.

The last BCI test results (E.g. in this group) confirm that the introduced LTSS validation works.

Actions #11

Updated by ph03nix about 1 month ago

  • Status changed from Resolved to In Progress

Reopening, as AC1 is not yet resolved.

Actions #12

Updated by mdati 29 days ago

PR https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21160
to update data/containers/autoyast_containers.xml.ep with SLE 12 LTSS. MERGED.

Actions #13

Updated by mdati 29 days ago · Edited

Despite the last update of autoyast to support LTSS registration of 12 SP5 images (see i.e. 16724544), still ltss missing, like https://openqa.suse.de/tests/16725557#step/bci_prepare/45.

The SCC_REGCODE_LTSS codes stored in 12-SP5.*Container-Host product/medium settings are not valid, causing error like: Error: Registration server returned 'the subscription ... does not include product SLE 12 SP5 ...'

New ltss codes needed to create 12-SP5 Container-Host images in t.group 377.

Actions #14

Updated by mdati 23 days ago · Edited

Consider we the note https://progress.opensuse.org/issues/176700#note-5 and related https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21190, because it is needed to use SUSEConnect -l to read extensions and modules available, in place of opt. -s.
Fixed.

Actions #15

Updated by mdati 21 days ago

  • Status changed from In Progress to Feedback

The BCI base images LTSS have no more issue present. AC1,2 ok.

Actions #16

Updated by ph03nix 20 days ago

  • Status changed from Feedback to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF