Description of problem: The promption is too mess after change installtype to rhel without creating credentials for registry. Version-Release number of selected component (if applicable): openshift/ose-cluster-samples-operator:v4.0.0-0.63.0 How reproducible: always Steps to Reproduce: 1.Delete initialed centos imagestreams and templates. Edit the samplesresource to modify `managementState: Removed` 2.Make sure imagestreams and templates have been removed 3.Change installtype to rhel #oc get samplesresource openshift-samples -o yaml spec: architectures: - x86_64 imagePullPolicy: "" imagePullSpec: "" installType: rhel logging: level: 0 vmodule: "" managementState: Managed 4.Describe samplesresource openshift-samples Actual results: See detailed log here, http://pastebin.test.redhat.com/671565 Expected results: Should prompt error explicitly Additional info:
@Xiujuan Wang - the pastebin data looks as what I would expect SamplesExists is false, and the message starts with "Cannot create rhel imagestreams to registry.redhat.io without the credentials being available" I'm not sure what you mean by "should prompt error explicitly" the including of the sampleresource yaml in the error message might be a bit distracting ... i.e. the message should only say "Cannot create rhel imagestreams to registry.redhat.io without the credentials being available" Is that what you are referring to?
(In reply to Gabe Montero from comment #1) > the including of the sampleresource yaml in the error message might be a bit > distracting ... i.e. the message should only say "Cannot create rhel > imagestreams to registry.redhat.io without the credentials being available" > > Is that what you are referring to? Yes, the sampleresource yaml in the error message is totally mess, It's better to include main import error info. Sorry to make you confused :)
PR https://github.com/openshift/cluster-samples-operator/pull/56
Can't reproduce this bug with image ose-cluster-samples-operator:v4.0.0-0.74.0 Only credentials error shown, more clear. Cannot create rhel imagestreams to registry.redhat.io without the credentials being available
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:0758