Bug 1775333

Summary: make sure x86_64 samples are not installed on s390x clusters (initial 4.2.x targeted GA)
Product: OpenShift Container Platform Reporter: Gabe Montero <gmontero>
Component: SamplesAssignee: Gabe Montero <gmontero>
Status: CLOSED ERRATA QA Contact: XiuJuan Wang <xiuwang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.zCC: bparees
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1776043 (view as bug list) Environment:
Last Closed: 2019-12-11 22:36:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1776043    
Bug Blocks:    

Description Gabe Montero 2019-11-21 18:39:42 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Gabe Montero 2019-11-21 18:53:36 UTC
This change was verified in 4.3 via the QE testing for https://jira.coreos.com/browse/DEVEXP-418

Comment 4 XiuJuan Wang 2019-11-29 08:46:22 UTC
Install a 4.2.0-0.nightly-2019-11-28-230858 cluster with x86_84 arch payload.
Steps:
1.
Set samples operator to Removed , then configure architectures to s390x and managementState to Managed
oc patch config.samples/cluster -p '{"spec":{"managementState":"Removed"}}' --type=merge
oc patch config.samples/cluster -p '{"spec":{"architectures":["s390x"],"managementState":"Managed"}}' --type=merge
2.
Check co openshift-samples. Should prompt "NonX86Platform" message.

$ oc  describe co  openshift-samples 
Name:         openshift-samples
Namespace:    
Labels:       <none>
Annotations:  <none>
API Version:  config.openshift.io/v1
Kind:         ClusterOperator
Metadata:
  Creation Timestamp:  2019-11-29T08:08:57Z
  Generation:          1
  Resource Version:    20248
  Self Link:           /apis/config.openshift.io/v1/clusteroperators/openshift-samples
  UID:                 7e2d51bf-127f-11ea-a664-02d5cfbb615e
Spec:
Status:
  Conditions:
    Last Transition Time:  2019-11-29T08:33:48Z
    Reason:                NonX86Platform
    Status:                True
    Type:                  Available
    Last Transition Time:  2019-11-29T08:33:48Z
    Reason:                NonX86Platform
    Status:                False
    Type:                  Progressing
    Last Transition Time:  2019-11-29T08:33:48Z
    Reason:                NonX86Platform
    Status:                False
    Type:                  Degraded
  Extension:               <nil>
  Related Objects:
    Group:     samples.operator.openshift.io
    Name:      cluster
    Resource:  configs
    Group:     
    Name:      openshift-cluster-samples-operator
    Resource:  namespaces
    Group:     
    Name:      openshift
    Resource:  namespaces
  Versions:
    Name:     operator
    Version:  4.2.0-0.nightly-2019-11-28-230858

3. Check imagestreams under openshift project. No x86_64 images import.
oc get is  -n openshift 
NAME                  IMAGE REPOSITORY                                                                 TAGS     UPDATED
cli                   image-registry.openshift-image-registry.svc:5000/openshift/cli                   latest   
cli-artifacts         image-registry.openshift-image-registry.svc:5000/openshift/cli-artifacts         latest   
installer             image-registry.openshift-image-registry.svc:5000/openshift/installer             latest   
installer-artifacts   image-registry.openshift-image-registry.svc:5000/openshift/installer-artifacts   latest   
must-gather           image-registry.openshift-image-registry.svc:5000/openshift/must-gather           latest   
tests                 image-registry.openshift-image-registry.svc:5000/openshift/tests                 latest

Comment 6 errata-xmlrpc 2019-12-11 22:36:10 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, 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-2019:4093