Bug 2111272 - UI - Create cluster from inventory - Openshift version list should be filtered against agentserviceconfig spec.osimages
Summary: UI - Create cluster from inventory - Openshift version list should be filtere...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: multicluster engine for Kubernetes
Classification: Red Hat
Component: Infrastructure Operator
Version: 2.1.z
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
: mce-2.1.2
Assignee: Michael Filanov
QA Contact: Chad Crum
Derek
URL:
Whiteboard:
: 2122967 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-26 22:45 UTC by Thuy Nguyen
Modified: 2022-11-01 16:03 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-01 16:03:49 UTC
Target Upstream Version:
Embargoed:
cbynum: multicluster-engine-2.1+
cbynum: multicluster-engine-2.1.z+


Attachments (Terms of Use)
Configure cluster UI (302.93 KB, image/png)
2022-07-26 22:45 UTC, Thuy Nguyen
no flags Details
error message updated (18.17 KB, image/png)
2022-10-20 10:38 UTC, epassaro
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github stolostron backlog issues 24558 0 None None None 2022-07-27 01:07:35 UTC
Red Hat Product Errata RHBA-2022:7277 0 None None None 2022-11-01 16:03:57 UTC

Description Thuy Nguyen 2022-07-26 22:45:00 UTC
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
```

Comment 1 Michael Filanov 2022-08-08 06:06:18 UTC
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?

Comment 2 Thuy Nguyen 2022-08-12 19:50:05 UTC
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.

Comment 3 Thuy Nguyen 2022-08-12 19:54:50 UTC
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.

Comment 4 Michael Filanov 2022-08-16 06:36:29 UTC
I didn't find this image in https://quay.io/repository/openshift-release-dev/ocp-release?tab=tags&tag=4.10.24-x86_64

Comment 5 Thuy Nguyen 2022-08-16 14:04:56 UTC
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

Comment 11 Kevin Cormier 2022-08-22 13:51:01 UTC
Assigning back to Infrastructure Operator, as they implement the UI for assisted installation, and I do not believe this applies for Hive-based installation.

Comment 12 Michael Filanov 2022-08-24 07:37:07 UTC
@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.

Comment 13 Daniel Erez 2022-08-30 13:59:13 UTC
(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

Comment 14 Daniel Erez 2022-09-13 07:41:06 UTC
*** Bug 2122967 has been marked as a duplicate of this bug. ***

Comment 21 epassaro 2022-10-20 10:38:35 UTC
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

Comment 26 errata-xmlrpc 2022-11-01 16:03:49 UTC
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


Note You need to log in before you can comment on or make changes to this bug.