-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
Konflux automatically pushes containers to the staging environment. Each build and stage release is represented by a snapshot. However, the creation of a FBC is a manual step (for now) requiring the Release Candidate to select the latest bundle snapshot to create a release candidate.
This task can be repeated more times, every time we need a newer build.
However, if you plane to create final build, do this steps only AFTER `(Pre ReleaseCandidate) Konflux code-freeze` task is finished.
Tasks: (must be done sequentially) (do these tasks for both, OSSM and Kiali)
- Make sure that all git submodules are up to date via `make validate-git-modules` in the ossm/kiali konflux repository and in the all branches for the release (ossm-3.0, ossm-3.1, ossm-2.6, kiali-2.11 etc.)
- Wait until all `on-push` builds are finished in Konflux console UI (Applications -> OSSM<version>/Kiali<version> -> Activity -> Pipeline runs tab )
- Check there also that the latest enterprise contract pipeline for the latest bundle build passed
- Run a bundle build in the Konflux console UI to be sure that you have a build with the latest code
- Go to Applications -> OSSM<version>/Kiali<version> -> Components -> click on 3 dots in Bundle row and click on Start new build
- Check pipeline after you click on rebuild in konflux UI
- Check that the latest bundle build SHA in the component page is the same as the bundle sha in the latest snapshot release page
- Go to Applications -> OSSM<version>/Kiali<version> -> Components and look at the bundle sha (sha is part of quay url)
- Go to Applications -> OSSM<version>/Kiali<version> -> Snapshots -> open the latest one and look at bundle sha (sha is part of quay url in Container Image column)
- Compare the shas, they must be the same!
- Update the unreleased bundle image digest (SHA) in `catalog/catalog-template.yaml` in kiali-fbc https://gitlab.cee.redhat.com/istio/konflux/kiali-fbc and ossm-fbc https://gitlab.cee.redhat.com/istio/konflux/ossm-fbc konflux repo. If needed, add a new operator entry in the corresponding channel.
- SHA are shown in konflux UI, go to the Application (ossm-3 or kiali-3), then activity tab (and Pipeline runs), find out the latest `..-bundle-on-push..` (the one which you trigger manually in previous step) and open it.
- You will see `IMAGE_DIGEST` sha there.
- Save the snapshot information (name and link to the snapshot page) and `IMAGE_URL` into Service Mesh 3.x Test Tiers & testing Matrix, because, if we want to release this particular bundle, we need to fill the snapshot name to the Release CR before release.
- Validate that the snapshot contains the latest commits from gitmodules, run `make validate-snapshot SNAPSHOT="<snapshot name>"` in the ossm/kiali konflux repository and in the all branches for the release (ossm-3.0, ossm-3.1, ossm-2.6, kiali-2.11 etc.)
- *not done yet for ossm-3.0 and ossm-2.6 branches
- Make sure, you are logged in to the konflux cluster or set `REGISTRY_USER` and `REGISTRY_PASSWORD` envs with credentials to registry.redhat.io
- Run `make generate-fbc-catalog` to update a catalog and create a draft PR for that
- Verify in the PR, that all newer shas in the commit for related images are the same as components shas in that snapshot
- Open the snapshot for that bundle (you saved it in the previous step), you will see there all component images with shas, compare those shas against the PR
- For kiali, you need to verify also previous Kiali images (e.g. 3.0, 2.6, etc.), because in the PR, you will see changes of previous images as well. Go to https://konflux-ui.apps.stone-prod-p02.hjvn.p1.openshiftapps.com/ns/service-mesh-tenant/applications/kiali-<version>/components and check the shas for each previous version
- Also, do not forget to save the information about the snapshot of previous kiali version to the test matrix document (ossm2 or ossm3 test matrix), since that information is needed for release!
- (TODO for OSSM 3.1, will there be component change of 3.0? if yes,we need to include that info here also)
- Open the snapshot for that bundle (you saved it in the previous step), you will see there all component images with shas, compare those shas against the PR
- Verify in the PR, that shas for other related images are the same as we released before (compare with https://catalog.redhat.com/search?searchType=containers )
- Once you verify that, mark PR ready for review, ask for a review and merge it.
- After merge, FBC will be pushed to stage, so for each FBC ( in konflux application )
- Go to Applications -> ...FBC... (open particular FBC) -> Releases Tab
- Find out latest release to stage (the date and time should be the same when the PR was merged)
- In case there isn't stage release with a particular date, check Activity tab whether there is Failed `on-push` pipeline, and if yes, rerun it manually (click on 3 dots and click on Rerun)
- When you open Managed pipeline for that release, you will see IIB (`iibIndexImage`), save it into Service Mesh 3.x Test Tiers & testing Matrix for the particular FBC version
- When you open Snapshot information for that release, you will see `Container Image` , save it into Service Mesh 3.x Test Tiers & testing Matrix for the particular FBC version
- Save the snapshot information (name and link to the snapshot page) and `IIB` into Service Mesh 3.x Test Tiers & testing Matrix, because, if we want to release this particular FBC, we need to fill the snapshot name to the Release CR before release.
- Once all information has been entered into the test matrix document, the table containing all images/snapshot information should be protected from accidental editing (e.g., when users copy an IIB image).
- Select the table.
- Right-click and navigate to "View more cell actions."
- Choose "Protect range."
- Add a description (e.g., the current date).
- Click "Set permissions."
- Select the option "Show a warning when editing this range."
- Click "Done."
- Notify NID team ( in slack #forum-ocp-network-edge ) about the newer build
Make sure that all is in sync every time when a build is changed (snapshot)
Tasks for ISTIOCLI:
- Go to Applications -> istioctl<version>/Kiali<version> -> Components -> click on 3 dots in istioctl row and click on Start new build
- then, go to activity tab (and Pipeline runs), find out the latest `..-on-push..` (the one which you trigger manually in previous step) and open it.
- Save the snapshot information (name and link to the snapshot page) and `IMAGE_URL` into Service Mesh 3.x Test Tiers & testing Matrix,
- clones
-
OSSM-9776 Create build or Release Candidate
-
- Backlog
-