Project

General

Profile

Actions

action #98123

closed

[BCI] BCI-tests on FIPS enabled system

Added by jlausuch almost 3 years ago. Updated 8 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2021-09-05
Due date:
% Done:

0%

Estimated time:

Description

BCI repo should be also be tested on FIPS enabled system.
https://gitlab.suse.de/dancermak/bci-tests#testing-on-fips-enabled-systems

To do this, we should enable a single host version with fips enabled.
To enable fips on a VM, we need to change the kernel settings and reboot.
This is an example how it is done in JeOS
https://openqa.opensuse.org/tests/2419721#step/fips_setup/1

So, basically using this test: https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/fips/fips_setup.pm

Acceptance criteria

  • Create a new HDD (qcow2) based on 15-SP3 host with fips already enabled after boot.
  • Add a new test suite in all BCI tests using this new Host and name it bci_on_fips or similar.

Related issues 3 (0 open3 closed)

Related to Containers - action #94003: Test BCI repository on SLE Base container image. Resolvedjlausuch2021-06-15

Actions
Related to Containers - action #138665: [BCI] Enable BCI FIPS test runsResolvedpherranz2023-10-27

Actions
Blocks Containers - action #136022: [BCI] test 15-SP3 FIPS base containerResolvedmgrossu2023-09-19

Actions
Actions #1

Updated by jlausuch almost 3 years ago

  • Related to action #94003: Test BCI repository on SLE Base container image. added
Actions #2

Updated by jlausuch over 2 years ago

  • Status changed from New to Workable
Actions #3

Updated by pdostal over 2 years ago

Do we already have FIPS qcow2 images in OSD?

Actions #4

Updated by jlausuch over 2 years ago

  • Status changed from Workable to New

We still need to figure that out.
My bad, it should have been kept in "new".

Actions #5

Updated by jlausuch over 2 years ago

  • Parent task set to #103323
Actions #6

Updated by jlausuch over 2 years ago

  • Priority changed from Normal to Low
Actions #7

Updated by jlausuch over 2 years ago

  • Status changed from New to Workable
Actions #8

Updated by jlausuch about 2 years ago

  • Description updated (diff)
  • Priority changed from Low to High
Actions #9

Updated by livdywan almost 2 years ago

This ticket was set to High priority but was not updated within the SLO period. Please consider picking up this ticket or just set the ticket to the next lower priority.

Actions #10

Updated by jlausuch almost 2 years ago

  • Priority changed from High to Normal
Actions #11

Updated by ph03nix over 1 year ago

This ticket is still open.

Actions #12

Updated by jlausuch over 1 year ago

  • Priority changed from Normal to High
Actions #13

Updated by jlausuch over 1 year ago

Still relevant with higher prio compared to other tickets.

Actions #15

Updated by jlausuch over 1 year ago

  • Parent task deleted (#103323)
Actions #16

Updated by jlausuch about 1 year ago

  • Status changed from Workable to In Progress
  • Assignee set to jlausuch
Actions #17

Updated by jlausuch about 1 year ago

First attempt:
https://openqa.suse.de/tests/10869874#step/_root_BCI-tests_fips_podman/1

AssertionError: Unexpected exit code 125 for CommandResult(command=b'buildah bud --layers --force-rm /tmp/pytest-of-root/pytest-1/popen-gw0/test_openssl_binary_local_bci_3', exit_status=125, stdout=b'[1/2] STEP 1/5: FROM registry.suse.de/suse/sle-15-sp5/update/cr/totest/images/bci/bci-base:15.5 AS builder\n[1/2] STEP 2/5: WORKDIR /src/\n--> Using cache 4d1a55040e91a4030acdcba6217ba7a5f8c23e58669a2aaead12f3f42ca614c0\n--> 4d1a55040e9\n[1/2] STEP 3/5: COPY fips-test.c /src/\n--> Using cache c6b3a21981cb78b0a233d73bcfe8f0ef05feb080d2cd6ca7b0e1cddd7edebf8e\n--> c6b3a21981c\n[1/2] STEP 4/5: RUN zypper -n ref && zypper -n in gcc libopenssl-devel && zypper -n clean\n--> Using cache c453acb645c591f2441ffb38b7aaf3355ad4cc3fcc2286af5eac86b6058ca848\n--> c453acb645c\n[1/2] STEP 5/5: RUN gcc -Og -g3 fips-test.c -Wall -Wextra -Wpedantic -lcrypto -lssl -o fips-test\n--> Using cache 9aea217a564c6e6e2f3c7df2202b3790e1aa820e27779fa97a88da946e33080d\n--> 9aea217a564\n[2/2] STEP 1/9: FROM registry.suse.de/suse/sle-15-sp5/update/cr/totest/images/bci/bci-busybox:15.5\n[2/2] STEP 2/9: COPY --from=builder /src/fips-test /bin/fips-test\n--> Using cache 28ea1a89f37da0ad41371fce9524a9f35abcd23666393688bed428c9a78222c7\n--> 28ea1a89f37\n[2/2] STEP 3/9: COPY --from=builder /usr/lib64/libcrypto.so.1.1 /usr/lib64/\n--> Using cache b1b70c806d5b4299578b5a347515f1df17236bab44470810ff86b153d95b8a87\n--> b1b70c806d5\n[2/2] STEP 4/9: COPY --from=builder /usr/lib64/libssl.so.1.1 /usr/lib64/\n--> Using cache d1b3cfa77c4d97d3f853cc27c0a5d28c4823fa96e826f0ec2a002de15598ea90\n--> d1b3cfa77c4\n[2/2] STEP 5/9: COPY --from=builder /lib64/libz.so.1 /usr/lib64/\n', stderr=b'Error: building at STEP "COPY --from=builder /lib64/libz.so.1 /usr/lib64/": checking on sources under "/var/lib/containers/storage/btrfs/subvolumes/338e68dcf130d70f4b6138ee5ce412c4e6015cb4980edaee18b4ea4f902c1ce8": copier: stat: "/lib64/libz.so.1": no such file or directory\n')
Actions #18

Updated by jlausuch 11 months ago

  • Status changed from In Progress to Workable
  • Assignee deleted (jlausuch)
  • Priority changed from High to Normal
Actions #19

Updated by jlausuch 10 months ago

  • Related to action #136022: [BCI] test 15-SP3 FIPS base container added
Actions #20

Updated by ph03nix 9 months ago

  • Subject changed from BCI-tests on FIPS enabled system to [BCI] BCI-tests on FIPS enabled system
  • Priority changed from Normal to High
Actions #21

Updated by ph03nix 9 months ago

  • Related to deleted (action #136022: [BCI] test 15-SP3 FIPS base container)
Actions #22

Updated by ph03nix 9 months ago

Actions #23

Updated by pdostal 9 months ago

  • Assignee set to pdostal

I'll start with this next Monday.

Actions #25

Updated by ph03nix 8 months ago

  • Status changed from Workable to In Progress
Actions #26

Updated by pdostal 8 months ago

Actions #27

Updated by pdostal 8 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF