Skip to content

Bug1281928 - fix image stream tagging for DockerImage type images. - #5932

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
soltysh:bug1281928
Dec 4, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
soltysh:bug1281928

Conversation

@soltysh

@soltysh soltysh commented Nov 17, 2015

Copy link
Copy Markdown
Contributor

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1281928.

This reverts certain changes from #4853, epecially regarding image stream mapping for DockerImage types. This still needs more work, because with current changes I'm getting double tags created which may result in double builds. The idea is to import tags from external registry (since we provide that functionality right now) for images tagged with oc tag command. This way we wouldn't have to revert the aforementioned changes and still have reasonable output. Still investigating...

@soltysh

soltysh commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

Forgot to add, I'm building this on top of #5931 since it touches the same code base.

@smarterclayton

Copy link
Copy Markdown
Contributor

As an end user, I shouldn't have to implement client code to tag a docker image repository. So the API needs to handle that for me.

@soltysh

soltysh commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

@smarterclayton I agree we should move all the actions to our API, but for now I'm fixing our behavior. I'll create a separate card to move all image related actions to be part of our existing API.

@soltysh

soltysh commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

@smarterclayton

Copy link
Copy Markdown
Contributor

Hold on - this is a released API. Why are you not just correctly fixing
the problem? We need to have a good reason to withdraw it, which I haven't
seen summarized yet.

On Nov 17, 2015, at 2:54 PM, Maciej Szulik [email protected] wrote:

@smarterclayton https://github.com/smarterclayton I agree we should move
all the actions to our API, but for now I'm fixing our behavior. I'll
create a separate card to move all image related actions to be part of our
existing API.

—
Reply to this email directly or view it on GitHub
#5932 (comment).

@soltysh

soltysh commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

This PR is fixing the current problem with tagging DockerImage-s without any changes in the API. The API change is a RFE.

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 23, 2015
@soltysh

soltysh commented Nov 24, 2015

Copy link
Copy Markdown
Contributor Author

After more testing I've decided to clear the import annotation for externally tagged docker images. This will re-import the IS along with the new tag. This should solve the problem from the aforementioned bug.
@miminar ptal
@ncdc fyi

@soltysh soltysh changed the title [WIP] Bug1281928 - fix image stream tagging for DockerImage type images. Bug1281928 - fix image stream tagging for DockerImage type images. Nov 24, 2015
@soltysh

soltysh commented Nov 24, 2015

Copy link
Copy Markdown
Contributor Author

[test]

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 24, 2015
@miminar

miminar commented Nov 26, 2015

Copy link
Copy Markdown

@soltysh LGTM

@soltysh

soltysh commented Nov 26, 2015

Copy link
Copy Markdown
Contributor Author

@smarterclayton since you've chimed in awaiting your sing-off.

@liggitt

liggitt commented Nov 26, 2015

Copy link
Copy Markdown
Contributor

I, too, am waiting for @smarterclayton's sing-off :)

Comment thread pkg/cmd/cli/cmd/tag.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Delete on a nil map is a no op - you don't need the if check.

@soltysh

soltysh commented Nov 26, 2015

Copy link
Copy Markdown
Contributor Author

@smarterclayton fixed.

@soltysh

soltysh commented Nov 27, 2015

Copy link
Copy Markdown
Contributor Author

Of course now it failed, with some flake whose name is:

ERROR: gave up waiting for https://127.0.0.1:28443/healthz

re-[test] and be green or otherwise I won't pass @smarterclayton rigorous review ;)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to fb730e4

@openshift-bot

Copy link
Copy Markdown
Contributor

@smarterclayton

Copy link
Copy Markdown
Contributor

Hrm - this should be a todo: hack: prefix. We need to move to a model where each tag has an individual annotation or formal field about whether it is up to date. We need to have a clear design for how:

  1. User indicates they desire polling
  2. Poller is level driven (off status.tag probably)
  3. User can disable polling / import consistently per tag
  4. Errors are properly reported (in status?) for terminal state errors
  5. The import controller is just a single iteration of poll.
  6. The user can continue to have a "poll once" which is distinct from "poll forever".

@soltysh

soltysh commented Dec 3, 2015

Copy link
Copy Markdown
Contributor Author

@smarterclayton are you ok with merging this as is and I'll work on a proposed changes in a separate issue?

@smarterclayton

Copy link
Copy Markdown
Contributor

Yes this is fine.

@soltysh

soltysh commented Dec 4, 2015

Copy link
Copy Markdown
Contributor Author

Got green light.
[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4248/) (Image: devenv-rhel7_2879)

@soltysh

soltysh commented Dec 4, 2015

Copy link
Copy Markdown
Contributor Author

Test flake mentioned in #6031: ERROR: gave up waiting for https://127.0.0.1:28443/healthz

re-[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to fb730e4

openshift-bot pushed a commit that referenced this pull request Dec 4, 2015
@openshift-bot
openshift-bot merged commit 3cdc1ae into openshift:master Dec 4, 2015
@soltysh soltysh mentioned this pull request Dec 4, 2015
@soltysh
soltysh deleted the bug1281928 branch December 7, 2015 09:26
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.

5 participants