Skip to content

Bug 1766287: - "hello-openshift" template application wrong binary format#7186

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
cajieh:template-app-wrong-binary-format
Nov 25, 2020
Merged

Bug 1766287: - "hello-openshift" template application wrong binary format#7186
openshift-merge-robot merged 1 commit into
openshift:masterfrom
cajieh:template-app-wrong-binary-format

Conversation

@cajieh

@cajieh cajieh commented Nov 11, 2020

Copy link
Copy Markdown
Contributor

/assign @spadgett

Changed the image to registry.redhat.io/openshift4/ose-hello-openshift-rhel8 but I'm getting ImagePullBackOff error for pods

Screen Shot 2020-11-11 at 11 56 21 AM

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 11, 2020
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@cyril-ui-developer: This pull request references Bugzilla bug 1766287, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
Details

In response to this:

[WIP] Bug 1766287: - "hello-openshift" template application wrong binary format

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/core Related to console core functionality labels Nov 11, 2020
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@cyril-ui-developer: This pull request references Bugzilla bug 1766287, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
Details

In response to this:

[WIP] Bug 1766287: - "hello-openshift" template application wrong binary format

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@cajieh cajieh force-pushed the template-app-wrong-binary-format branch from 831b09d to 1d87f84 Compare November 11, 2020 17:13

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we're using image.openshift.io/triggers, we should refer to the image stream. This should look like

Suggested change
image.openshift.io/triggers: ${sampleContainerImage}
image.openshift.io/triggers: |-
[
{
"from": {
"kind": "ImageStreamTag",
"name": "openshift/hello-openshift:latest"
},
"fieldPath": "spec.template.spec.containers[0].image"
}
]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@spadgett Updated, thanks.

@cajieh cajieh force-pushed the template-app-wrong-binary-format branch from 1d87f84 to 44750c0 Compare November 11, 2020 21:05

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this will work for an individual pod since image is immutable after the pod is created.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

DeploymentConfigs have first class API support for triggers and don't need to use the annotation.

$ oc explain deploymentconfig.spec.triggers
KIND:     DeploymentConfig
VERSION:  apps.openshift.io/v1

RESOURCE: triggers <[]Object>

DESCRIPTION:
     Triggers determine how updates to a DeploymentConfig result in new
     deployments. If no triggers are defined, a new deployment can only occur as
     a result of an explicit client update to the DeploymentConfig with a new
     LatestVersion. If null, defaults to having a config change trigger.

     DeploymentTriggerPolicy describes a policy for a single trigger that
     results in a new deployment.

FIELDS:
   imageChangeParams    <Object>
     ImageChangeParams represents the parameters for the ImageChange trigger.

   type <string>
     Type of the trigger

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@spadgett Removed the trigger for Pod and DeploymentConfigs.
Do we need to revert the image to openshift/hello-openshift for Pod and DeploymentConfigs?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@cyril-ui-developer You shouldn't remove the trigger for DeploymentConfigs. Instead update it to use the spec.triggers instead of the annotation.

I'd just use registry.redhat.io/openshift4/ose-hello-openshift-rhel8 directly for pods.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@spadgett Updated, thanks! However the status is still ImagePullBackOff instead of Running.

Screen Shot 2020-11-16 at 2 14 34 PM
Screen Shot 2020-11-16 at 2 14 52 PM

@cajieh cajieh force-pushed the template-app-wrong-binary-format branch 2 times, most recently from c30f13b to c7ab555 Compare November 16, 2020 19:15
@cajieh cajieh force-pushed the template-app-wrong-binary-format branch from c7ab555 to eee9a0c Compare November 24, 2020 18:29
@cajieh cajieh changed the title [WIP] Bug 1766287: - "hello-openshift" template application wrong binary format Bug 1766287: - "hello-openshift" template application wrong binary format Nov 24, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 24, 2020

@spadgett spadgett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 24, 2020
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cyril-ui-developer, spadgett

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 24, 2020
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

4 similar comments
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

@cyril-ui-developer: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-gcp-console eee9a0c link /test e2e-gcp-console

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 14c6751 into openshift:master Nov 25, 2020
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@cyril-ui-developer: All pull requests linked via external trackers have merged:

Bugzilla bug 1766287 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1766287: - "hello-openshift" template application wrong binary format

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/core Related to console core functionality lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants