Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,22 @@ tests:
REGION: us-west-2
REPLICAS: "3"
workflow: rosa-e2e-hcp-private
- as: rosa-hcp-e2e-privatelink-connectivity-mc-health-staging
capabilities:
- intranet
cron: 0 2 * * 3
restrict_network_access: false
steps:
allow_best_effort_post_steps: true
cluster_profile: rosa-e2e-01
env:
CHANNEL_GROUP: stable
CLUSTER_SECTOR: rosa-e2e
ENABLE_BILLING_ACCOUNT: "yes"
HOSTED_CP: "true"
OCM_LOGIN_ENV: staging
REGION: us-west-2
workflow: rosa-e2e-hcp-rosa-cli-private
- as: rosa-classic-sts-e2e-privatelink-staging
capabilities:
- intranet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10723,6 +10723,109 @@ periodics:
- name: result-aggregator
secret:
secretName: result-aggregator
- agent: kubernetes
cluster: build10
cron: 0 2 * * 3
decorate: true
decoration_config:
skip_cloning: true
extra_refs:
- base_ref: main
org: openshift-online
repo: rosa-e2e
labels:
capability/intranet: intranet
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: rosa-e2e-01
ci-operator.openshift.io/variant: periodics
ci.openshift.io/generator: prowgen
job-release: "4.22"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: periodic-ci-openshift-online-rosa-e2e-main-periodics-rosa-hcp-e2e-privatelink-connectivity-mc-health-staging
spec:
containers:
- args:
- --enable-secrets-store-csi-driver=true
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --gsm-config=/etc/gsm-config/gsm-config.yaml
- --gsm-credentials-file=/etc/gsm-credentials/key.json
- --gsm-project-config=/etc/gsm-config/gsm-project-config.yaml
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --target=rosa-hcp-e2e-privatelink-connectivity-mc-health-staging
- --variant=periodics
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/gsm-config
name: gsm-config
readOnly: true
- mountPath: /etc/gsm-credentials
name: gsm-sa-key
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: ci-pull-credentials
secret:
secretName: ci-pull-credentials
- configMap:
name: gsm-config
name: gsm-config
- csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: ci-operator-sa-key-spc
name: gsm-sa-key
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
- agent: kubernetes
cluster: build01
cron: 30 4 * * *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,30 @@ fi
$WAS_TRACING && set -x

log "Running ocm-backplane login for ${CLUSTER_ID}"
ocm-backplane login "${CLUSTER_ID}"
# A freshly-ready cluster can reject the first backplane login with 406
# "failed to obtain credentials from target cluster. The cluster could be down
# or under heavy load" while the backplane agent's connection to the hosted
# cluster (and, for private clusters, the private-link endpoint) is still
# converging. Retry with backoff instead of failing the step on the first
# attempt.
bp_login_retries=${BACKPLANE_LOGIN_RETRIES:-10}
bp_login_delay=60
bp_login_ok=false
for ((bp_attempt = 1; bp_attempt <= bp_login_retries; bp_attempt++)); do
if ocm-backplane login "${CLUSTER_ID}"; then
bp_login_ok=true
break
fi
log "ocm-backplane login attempt ${bp_attempt}/${bp_login_retries} failed"
if (( bp_attempt < bp_login_retries )); then
log "retrying in ${bp_login_delay}s"
sleep "${bp_login_delay}"
fi
done
if [[ "${bp_login_ok}" != "true" ]]; then
log "ERROR: ocm-backplane login failed after ${bp_login_retries} attempts"
exit 1
fi
# Verify elevation works before dumping the kubeconfig.
ocm-backplane elevate "${elevate_reason}" -- whoami

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ ref:
- name: BACKPLANE_CLI_VERSION
default: "0.12.0"
documentation: ocm-backplane CLI version to install.
- name: BACKPLANE_LOGIN_RETRIES
default: "10"
documentation: >-
Number of ocm-backplane login attempts (60s apart) before failing the
step. A freshly-ready cluster can reject the first login with 406
"failed to obtain credentials from target cluster" while the backplane
agent's connection to the hosted cluster is still converging.
documentation: |-
Obtains a kubeconfig for a private ROSA cluster whose API server is not
directly reachable from the build farm. It logs into OCM with the cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ FIPS=${FIPS:-false}
POD_CIDR=${POD_CIDR:-""}
PRIVATE=${PRIVATE:-false}
PRIVATE_LINK=${PRIVATE_LINK:-false}
PRIVATE_DEFAULT_INGRESS=${PRIVATE_DEFAULT_INGRESS:-false}
PRIVATE_SUBNET_ONLY="false"
ENABLE_SHARED_VPC=${ENABLE_SHARED_VPC:-"no"}
CLUSTER_SECTOR=${CLUSTER_SECTOR:-}
Expand Down Expand Up @@ -449,7 +450,8 @@ cat > ${cluster_config_file} << EOF
"enable_customer_managed_key": ${STORAGE_ENCRYPTION},
"fips": ${FIPS},
"private": ${PRIVATE},
"private_link": ${PRIVATE_LINK}
"private_link": ${PRIVATE_LINK},
"default_ingress_private": ${PRIVATE_DEFAULT_INGRESS}
}
EOF

Expand Down Expand Up @@ -634,6 +636,9 @@ fi
PRIVATE_LINK_SWITCH=""
if [[ "$PRIVATE_LINK" == "true" ]]; then
if [[ "$HOSTED_CP" == "true" ]]; then
# HCP has no PrivateLink concept (see `rosa create cluster --hosted-cp --help`):
# honor PRIVATE_LINK=true on HCP for backward compatibility by mapping it to
# the HCP ingress-privacy flag. New HCP jobs should use PRIVATE_DEFAULT_INGRESS.
PRIVATE_LINK_SWITCH="--default-ingress-private"
else
PRIVATE_LINK_SWITCH="--private-link"
Expand All @@ -643,6 +648,18 @@ if [[ "$PRIVATE_LINK" == "true" ]]; then
PRIVATE_SUBNET_ONLY="true"
fi

PRIVATE_DEFAULT_INGRESS_SWITCH=""
if [[ "$PRIVATE_DEFAULT_INGRESS" == "true" ]]; then
# HCP-only: make the default apps ingress (router) listen internally
# (--default-ingress-private). Per the rosa CLI this is the HCP equivalent of
# classic PrivateLink ingress privacy: "For Hosted Control Plane clusters, use
# the '--private' and '--default-ingress-private' flags instead."
PRIVATE_DEFAULT_INGRESS_SWITCH="--default-ingress-private"

ENABLE_BYOVPC="true"
PRIVATE_SUBNET_ONLY="true"
fi

PROXY_SWITCH=""
if [[ "$ENABLE_PROXY" == "true" ]]; then
# In step aws-provision-bastionhos, the values for proxy_private_url and proxy_public_url are same
Expand Down Expand Up @@ -844,6 +861,7 @@ ${FIPS_SWITCH} \
${POD_CIDR_SWITCH} \
${PRIVATE_SWITCH} \
${PRIVATE_LINK_SWITCH} \
${PRIVATE_DEFAULT_INGRESS_SWITCH} \
${PROXY_SWITCH} \
${DISABLE_SCP_CHECKS_SWITCH} \
${DEFAULT_MP_LABELS_SWITCH} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,21 @@ ref:
documentation: Restrict master API endpoint and application routes to direct, private connectivity.
- name: PRIVATE_LINK
default: "false"
documentation: Provides private connectivity between VPCs, AWS services, and your on-premises networks, without exposing your traffic to the public internet.
documentation: >-
Provides private connectivity between VPCs, AWS services, and your on-premises
networks, without exposing your traffic to the public internet. Classic clusters
only: per `rosa create cluster --hosted-cp --help`, --private-link is only to be
used with Classic clusters after ROSA CLI v1.2.55. For HCP clusters, set PRIVATE
plus PRIVATE_DEFAULT_INGRESS instead; PRIVATE_LINK=true on HCP is honored for
backward compatibility and maps to --default-ingress-private.
- name: PRIVATE_DEFAULT_INGRESS
default: "false"
documentation: >-
HCP only. Make the default apps ingress (router) listen internally, via
--default-ingress-private. Per the rosa CLI this is the HCP equivalent of classic
PrivateLink ingress privacy: "For Hosted Control Plane clusters, use the '--private'
and '--default-ingress-private' flags instead." Implies ENABLE_BYOVPC and
private-subnets-only. Ignored for Classic clusters.
- name: ENABLE_PROXY
default: "false"
documentation: Use proxy to create HTTP/HTTPs connections outside the cluster.
Expand Down
12 changes: 12 additions & 0 deletions ci-operator/step-registry/rosa/e2e/hcp/rosa-cli/private/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
approvers:
- tiwillia
- dustman9000
- bmeng
- ravitri
- samanthajayasinghe
reviewers:
- tiwillia
- dustman9000
- bmeng
- ravitri
- samanthajayasinghe
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
approvers:
- tiwillia
- dustman9000
- bmeng
- ravitri
- samanthajayasinghe
reviewers:
- tiwillia
- dustman9000
- bmeng
- ravitri
- samanthajayasinghe
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"path": "rosa/e2e/hcp/rosa-cli/private/provision/rosa-e2e-hcp-rosa-cli-private-provision-chain.yaml",
"owners": {
"approvers": [
"tiwillia",
"dustman9000",
"bmeng",
"ravitri",
"samanthajayasinghe"
],
"reviewers": [
"tiwillia",
"dustman9000",
"bmeng",
"ravitri",
"samanthajayasinghe"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
chain:
as: rosa-e2e-hcp-rosa-cli-private-provision
env:
- name: HOSTED_CP
default: "true"
- name: ENABLE_BYOVPC
default: "true"
- name: STS
default: "true"
- name: PRIVATE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the 2 PRIVATE envs here?
If this step is for HCP only, we can keep the PRIVATE only (for both private api and private ingress), as the privatelink concept if for rosa classic only.

@samanthajayasinghe samanthajayasinghe Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bmeng for the review,

I have updated the steps to support HCP-equivalent privateLink link with the following cli param

  --private-link                                           Provides private connectivity between VPCs, AWS services, and your on-premises networks, without exposing your traffic to the public internet.
                                                               --private-link is only to be used with Classic clusters after ROSA CLI v1.2.55. 
                                                               For Hosted Control Plane clusters, use the '--private' and '--default-ingress-private' flags instead.

Pls review and share your thoughts.

default: "true"
documentation: |-
Private API endpoint: rosa-cluster-provision maps this to
`rosa create cluster --private` for HCP clusters.
- name: PRIVATE_DEFAULT_INGRESS
default: "true"
documentation: |-
HCP-only: make the default apps ingress (router) listen internally
(`rosa create cluster --default-ingress-private`). Per the rosa CLI,
PrivateLink is a Classic-only concept: "For Hosted Control Plane clusters,
use the '--private' and '--default-ingress-private' flags instead." Together
PRIVATE and PRIVATE_DEFAULT_INGRESS give a fully private HCP cluster; PRIVATE
alone leaves the default ingress public.
steps:
- ref: aws-provision-vpc-shared
- ref: aws-provision-tags-for-byo-vpc-ocm-pre
- chain: rosa-sts-oidc-config-create
- ref: rosa-cluster-provision
- ref: rosa-cluster-wait-ready-cluster
- ref: rosa-cluster-notify-error
# The cluster API is only reachable via backplane from here on. This step
# writes ${SHARED_DIR}/kubeconfig and ${SHARED_DIR}/proxy-conf.sh, which the
# subsequent oc-based steps consume. It replaces the rosa-conf-idp-htpasswd
# step of the public rosa-e2e-hcp-rosa-cli-provision chain, which cannot
# reach a private API.
- ref: rosa-cluster-credentials-backplane
- ref: rosa-cluster-wait-ready-operators
# Publish the SHARED_DIR contract (cluster-metadata.json); cluster-id and
# kubeconfig were written by the steps above.
- ref: rosa-e2e-rosa-cli-publish-contract
- ref: aws-provision-tags-for-byo-vpc
documentation: >-
PrivateLink variant of the rosa-CLI provisioner head: provisions a private
ROSA HCP cluster (private API, private default ingress, BYO VPC, STS) with
the rosa CLI and publishes the SHARED_DIR provisioner-to-validator contract
(cluster-id, kubeconfig, cluster-metadata.json) defined in ROSAENG-67580.
Sibling of rosa-e2e-hcp-rosa-cli-provision; the validation tail is
provisioner-agnostic. It differs from the public chain in one step: the
cluster API is not reachable from the build farm, so
rosa-cluster-credentials-backplane replaces the rosa-conf-idp-htpasswd login
(it also writes proxy-conf.sh so downstream steps route through the corp
proxy). Consumers must run rosa-backplane-login between this chain and the
validation tail so rosa-e2e-validate-customer can fall back to bp-kubeconfig
and rosa-e2e-validate-platform gets mc-kubeconfig.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"path": "rosa/e2e/hcp/rosa-cli/private/rosa-e2e-hcp-rosa-cli-private-workflow.yaml",
"owners": {
"approvers": [
"tiwillia",
"dustman9000",
"bmeng",
"ravitri",
"samanthajayasinghe"
],
"reviewers": [
"tiwillia",
"dustman9000",
"bmeng",
"ravitri",
"samanthajayasinghe"
]
}
}
Loading