Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc new-app --search: don't require docker hub access #11436

Merged
merged 1 commit into from
Oct 21, 2016

Conversation

mmilata
Copy link
Contributor

@mmilata mmilata commented Oct 19, 2016

When using oc new-app --search in environment where OpenShift server could not reach Docker Hub, oc new-app --search had failed for any query. This commit changes the behavior to print a warning and continue with what was found in other sources.

Fixes bug 1378647.

@mmilata
Copy link
Contributor Author

mmilata commented Oct 19, 2016

[test]

@mmilata
Copy link
Contributor Author

mmilata commented Oct 19, 2016

flake #11240
[test]

@mmilata
Copy link
Contributor Author

mmilata commented Oct 19, 2016

#11240 and yum failure
pls [test] again?

@mmilata
Copy link
Contributor Author

mmilata commented Oct 19, 2016

@bparees PTAL

@@ -213,6 +213,8 @@ func (s ImageImportSearcher) Search(precise bool, terms ...string) (ComponentMat
if image.Status.Status != unversioned.StatusSuccess {
glog.V(4).Infof("image import failed: %#v", image)
switch image.Status.Reason {
case unversioned.StatusReasonInternalError:
glog.Warningf("Image lookup failed: %s", image.Status.Message)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Image/Docker registry/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@bparees bparees self-assigned this Oct 19, 2016
When using oc new-app --search in environment where OpenShift server
could not reach Docker Hub, oc new-app --search had failed for any
query.  This commit changes the behavior to print a warning and continue
with what was found in other sources.

Fixes bug 1378647.
@mmilata mmilata force-pushed the offline-oc-newapp-search branch from ed2ed70 to 1c53eba Compare October 20, 2016 08:58
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 1c53eba

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10293/) (Base Commit: 7405f17)

@mmilata
Copy link
Contributor Author

mmilata commented Oct 20, 2016

^ yum error

@bparees
Copy link
Contributor

bparees commented Oct 20, 2016

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 1c53eba

@openshift-bot
Copy link
Contributor

openshift-bot commented Oct 21, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10383/) (Base Commit: 87f1f55) (Image: devenv-rhel7_5215)

@openshift-bot openshift-bot merged commit 1b159d7 into openshift:master Oct 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants