Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 1899552 [details] Configure cluster UI Description of the problem: An error occurred while configuring cluster via web console Release version: Operator snapshot version: ACM 2.6.0-DOWNSTREAM-2022-07-26-04-01-36 OCP version: 4.10.22 Browser Info: Steps to reproduce: 1. Provisioning a bare metal cluster via assisted service 2. Error occurred at cluster details page Actual results: Expected results: Additional info: ``` # oc get agentclusterinstall -n slot-00 slot-00 -oyaml apiVersion: extensions.hive.openshift.io/v1beta1 kind: AgentClusterInstall metadata: creationTimestamp: "2022-07-26T22:31:53Z" finalizers: - agentclusterinstall.agent-install.openshift.io/ai-deprovision generation: 2 name: slot-00 namespace: slot-00 ownerReferences: - apiVersion: hive.openshift.io/v1 kind: ClusterDeployment name: slot-00 uid: ce6da32f-7fc1-4c0f-9876-f8f004dd247a resourceVersion: "30272899" uid: 764ab546-61e7-429c-9bc1-c58b17297dc8 spec: clusterDeploymentRef: name: slot-00 holdInstallation: true imageSetRef: name: img4.10.24-x86-64-appsub networking: clusterNetwork: - cidr: 10.128.0.0/14 hostPrefix: 23 serviceNetwork: - 172.30.0.0/16 userManagedNetworking: false provisionRequirements: controlPlaneAgents: 3 status: conditions: - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: 'The Spec could not be synced due to backend error: failed to add release image ''quay.io/openshift-release-dev/ocp-release:4.10.24-x86_64''. Please ensure the releaseImage field in ClusterImageSet ''img4.10.24-x86-64-appsub'' is valid (contact your admin with this info).' reason: BackendError status: "False" type: SpecSynced - lastProbeTime: "2022-07-26T22:31:53Z" lastTransitionTime: "2022-07-26T22:31:53Z" message: Information not available reason: NotAvailable status: Unknown type: Validated - lastProbeTime: "2022-07-26T22:31:53Z" lastTransitionTime: "2022-07-26T22:31:53Z" message: Information not available reason: NotAvailable status: Unknown type: RequirementsMet - lastProbeTime: "2022-07-26T22:31:53Z" lastTransitionTime: "2022-07-26T22:31:53Z" message: Information not available reason: NotAvailable status: Unknown type: Completed - lastProbeTime: "2022-07-26T22:31:53Z" lastTransitionTime: "2022-07-26T22:31:53Z" message: Information not available reason: NotAvailable status: Unknown type: Failed - lastProbeTime: "2022-07-26T22:31:53Z" lastTransitionTime: "2022-07-26T22:31:53Z" message: Information not available reason: NotAvailable status: Unknown type: Stopped debugInfo: eventsURL: "" logsURL: "" progress: totalPercentage: 0 # oc get cd -n slot-00 NAME INFRAID PLATFORM REGION VERSION CLUSTERTYPE PROVISIONSTATUS POWERSTATE AGE slot-00 agent-baremetal ProvisionStopped 3m47s [root@ibm-p8-kvm-03-guest-02 ai]# oc get cd -n slot-00 slot-00 -oyaml apiVersion: hive.openshift.io/v1 kind: ClusterDeployment metadata: annotations: agentBareMetal-agentSelector/autoSelect: "true" open-cluster-management.io/user-group: c3lzdGVtOmNsdXN0ZXItYWRtaW5zLHN5c3RlbTphdXRoZW50aWNhdGVk open-cluster-management.io/user-identity: a3ViZTphZG1pbg== creationTimestamp: "2022-07-26T22:31:54Z" finalizers: - clusterdeployments.agent-install.openshift.io/ai-deprovision - hive.openshift.io/deprovision generation: 2 labels: cluster.open-cluster-management.io/clusterset: default hive.openshift.io/cluster-platform: agent-baremetal name: slot-00 namespace: slot-00 resourceVersion: "30273661" uid: ce6da32f-7fc1-4c0f-9876-f8f004dd247a spec: baseDomain: dev09.red-chesterfield.com clusterInstallRef: group: extensions.hive.openshift.io kind: AgentClusterInstall name: slot-00 version: v1beta1 clusterName: slot-00 controlPlaneConfig: servingCertificates: {} installed: false platform: agentBareMetal: agentSelector: {} pullSecretRef: name: pullsecret-cluster-slot-00 status: cliImage: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:6119a71fbf48dc417da82b53e2f7fcc39b72689b0cd79377433239ba6d755f79 conditions: - lastProbeTime: "2022-07-26T22:32:08Z" lastTransitionTime: "2022-07-26T22:32:08Z" message: Provisioning failed terminally (see the ProvisionStopped condition for details) reason: ProvisionStopped status: "False" type: Provisioned - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Platform credentials passed authentication check reason: PlatformAuthSuccess status: "False" type: AuthenticationFailure - lastProbeTime: "2022-07-26T22:32:08Z" lastTransitionTime: "2022-07-26T22:32:08Z" message: Images required for cluster deployment installations are resolved reason: ImagesResolved status: "False" type: InstallImagesNotResolved - lastProbeTime: "2022-07-26T22:32:06Z" lastTransitionTime: "2022-07-26T22:32:06Z" message: InstallerImage is resolved. reason: InstallerImageResolved status: "False" type: InstallerImageResolutionFailed - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: no ClusterRelocates match reason: NoMatchingRelocates status: "False" type: RelocationFailed - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: AWSPrivateLinkFailed - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: AWSPrivateLinkReady - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: ActiveAPIURLOverride - lastProbeTime: "2022-07-26T22:32:08Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Information not available reason: NotAvailable status: Unknown type: ClusterInstallCompleted - lastProbeTime: "2022-07-26T22:32:08Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Information not available reason: NotAvailable status: Unknown type: ClusterInstallFailed - lastProbeTime: "2022-07-26T22:32:08Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Information not available reason: NotAvailable status: Unknown type: ClusterInstallRequirementsMet - lastProbeTime: "2022-07-26T22:32:08Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Information not available reason: NotAvailable status: Unknown type: ClusterInstallStopped - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: ControlPlaneCertificateNotFound - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: DNSNotReady - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: DeprovisionLaunchError - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: Hibernating - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: IngressCertificateNotFound - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: InstallLaunchError - lastProbeTime: "2022-07-26T22:32:08Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Information not available reason: NotAvailable status: Unknown type: ProvisionFailed - lastProbeTime: "2022-07-26T22:32:08Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Information not available reason: NotAvailable status: Unknown type: ProvisionStopped - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: Ready - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: RequirementsMet - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: SyncSetFailed - lastProbeTime: "2022-07-26T22:31:54Z" lastTransitionTime: "2022-07-26T22:31:54Z" message: Condition Initialized reason: Initialized status: Unknown type: Unreachable installVersion: 4.10.24 installerImage: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:7a0ad0b0acbcdef440367c985a2e095a10de23e2f22b0527c5b6b78022755f40 ```
from the error i can see that there is something wrong with cluster image set. ``` message: 'The Spec could not be synced due to backend error: failed to add release image ''quay.io/openshift-release-dev/ocp-release:4.10.24-x86_64''. Please ensure the releaseImage field in ClusterImageSet ''img4.10.24-x86-64-appsub'' is valid (contact your admin with this info).' ``` is that a connected or disconnected env? Does the image exist in the registry?
The image set is selected from the UI, so yes, the image set exists in the backend. The env is connected. This issue is observed with 4.11 imageset only.
As in https://bugzilla.redhat.com/show_bug.cgi?id=2111272#c2, the 4.11.0 is the latest imageset. The error is not observed if other image set is selected.
I didn't find this image in https://quay.io/repository/openshift-release-dev/ocp-release?tab=tags&tag=4.10.24-x86_64
I've attached assisted-service log for your investigation. As you can see in the log, the 4.10.24 is now working but not 4.11.0
Assigning back to Infrastructure Operator, as they implement the UI for assisted installation, and I do not believe this applies for Hive-based installation.
@derez lets try to improve the error message around it i think that having `No OS images are available for version` is a good start to see in the conditions.
(In reply to Michael Filanov from comment #12) > @derez lets try to improve the error message around it > i think that having `No OS images are available for version` is a good start > to see in the conditions. Sure, handled in https://github.com/openshift/assisted-service/pull/4332
*** Bug 2122967 has been marked as a duplicate of this bug. ***
Created attachment 1919223 [details] error message updated Error message mentions that no OS images are available for the selected version: The Spec could not be synced due to backend error: failed to add release image 'registry.ci.openshift.org/ocp/release:4.10.38'. Please ensure the releaseImage field in ClusterImageSet '4.10' is valid (error: No OS images are available for version: 4.10.38). Verified with MCE 2.1.2-DOWNANDBACK-2022-10-14-18-22-00
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Multicluster Engine for Kubernetes 2.1.2 container updates and bug fixes), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:7277