On Thu, Aug 8, 2019 at 11:01 AM Fernando Lozano <[email protected]> wrote:
> Hi Ben, > > I'm sorry but it makes no sense to me. Isn't > redhat-openjdk18-openshift:1.3 a standard image stream from the openshift > project, like the other S2I builders for PHP, Python, etc? It should use > the secret from the openshift project, not secret from the application > project. > sorry, I misread the original message as being a new-app invocation that was referencing the image directly. You're correct that since the invocation is referencing an imagestream that exists in the openshift namespace, it should just work and i've confirmed that to be the case on my OCP4 cluster. It sounds like Mohan's cluster does not have registry.redhat.io pull-creds in the openshift namespace. > > []s, Fernando Lozano > > > On Thu, Aug 8, 2019 at 11:59 AM Ben Parees <[email protected]> wrote: > >> >> >> On Thu, Aug 8, 2019 at 10:54 AM Fernando Lozano <[email protected]> >> wrote: >> >>> Hi Ben, >>> >>> If he was using Red Hat OpenShift Container Platform instead of OKD he >>> would have that secret aready baked in the openshift project, but becase >>> he's using OKD he needs to create the secret himself? Would't minishift, >>> when registering using Red Hat Developer credentials, create the secret? >>> >> >> the creds are in the project named "openshift", but they wouldn't be in >> his own project, where new-app is creating the imagestream (unless he was >> running new-app against the actual project named "openshift"). So creds >> would still need to be created there. >> >> >> >>> >>> []s, Fernando Lozano >>> >>> >>> On Thu, Aug 8, 2019 at 11:40 AM Ben Parees <[email protected]> wrote: >>> >>>> >>>> >>>> >>>> On Thu, Aug 8, 2019 at 10:11 AM Mohan Radhakrishnan < >>>> [email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> I use OKD and when I build an image from source like this it fails. >>>>> oc new-app redhat-openjdk18-openshift:1.3~ >>>>> https://github.com/user/spring-cloud-gateway.git --name=service1 >>>>> --context-dir=first-service >>>>> >>>>> So I looked into it and found this in the web console. >>>>> >>>>> Internal error occurred: Get >>>>> https://registry.redhat.io/v2/redhat-openjdk-18/openjdk18-openshift/manifests/1.0: >>>>> unauthorized: Please login to the Red Hat Registry using your Customer >>>>> Portal credentials. Further instructions can be found here: >>>>> https://access.redhat.com/articles/3399531. Timestamp: >>>>> 2019-08-08T05:48:25Z Error count: 2 >>>>> >>>>> >>>> oc new-app is attempting to import that image as an imagestream, into >>>> your project, so you need valid docker credentials that can pull that >>>> image, in your openshift project. >>>> >>>> See: >>>> https://docs.okd.io/latest/dev_guide/managing_images.html#private-registries >>>> >>>> (you don't need to do the import, but you need to setup the secret) >>>> >>>> >>>>> Even after creating a secret like this it is still not solved. >>>>> >>>>> C:\Users\spatial\.minishift\cache\oc\v3.11.0\windows\oc create secret >>>>> docker-registry minishift ^ >>>>> --docker-server=https://registry.redhat.io ^ >>>>> --docker-username=user ^ >>>>> --docker-password=password ^ >>>>> [email protected] >>>>> >>>>> oc secrets link default minishift --for=pull >>>>> >>>>> Is something missing here ? >>>>> >>>>> Thanks, >>>>> Mohan >>>>> _______________________________________________ >>>>> users mailing list >>>>> [email protected] >>>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >>>>> >>>> >>>> >>>> -- >>>> Ben Parees | OpenShift >>>> >>>> _______________________________________________ >>>> users mailing list >>>> [email protected] >>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >>>> >>> >> >> -- >> Ben Parees | OpenShift >> >> -- Ben Parees | OpenShift
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
