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

[release-4.7] Bug 1967106: can't open terminal for pods that have more than one co… #9117

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #8853

/assign spadgett

…an one container running

This fix uses a valid range for the refresh function of xterm, starting with row 0 and ending at rows-1.

Invalid start and end parameters were being passed to the refresh function of xterm during the switching of container terminals.  This caused an exception when attempting to switch container terminals.

Per the xterm code:

    /**
     * Tells the renderer to refresh terminal content between two rows
     * (inclusive) at the next opportunity.
     * @param start The row to start from (between 0 and this.rows - 1).
     * @param end The row to end at (between start and this.rows - 1).
     */
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 2, 2021

@openshift-cherrypick-robot: Bugzilla bug 1956920 has been cloned as Bugzilla bug 1967106. Retitling PR to link against new bug.
/retitle [release-4.7] Bug 1967106: can't open terminal for pods that have more than one co…

In response to this:

[release-4.7] Bug 1956920: can't open terminal for pods that have more than one co…

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 openshift-ci bot changed the title [release-4.7] Bug 1956920: can't open terminal for pods that have more than one co… [release-4.7] Bug 1967106: can't open terminal for pods that have more than one co… Jun 2, 2021
Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 2, 2021
@openshift-ci openshift-ci bot requested review from jhadvig and rhamilto June 2, 2021 12:54
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 2, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, spadgett

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

The pull request process is described here

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 2, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 2, 2021

@openshift-cherrypick-robot: An error was encountered querying GitHub for users with public email (yapei@redhat.com) for bug 1967106 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details.

Full error message. non-200 OK status code: 403 Forbidden body: "{\n \"documentation_url\": \"https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#abuse-rate-limits\",\n \"message\": \"You have triggered an abuse detection mechanism. Please wait a few minutes before you try again.\"\n}\n"

Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

In response to this:

[release-4.7] Bug 1967106: can't open terminal for pods that have more than one co…

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-bot
Copy link
Contributor

/retest

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

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

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

@spadgett
Copy link
Member

spadgett commented Jun 9, 2021

/bugzilla refresh

@openshift-ci openshift-ci bot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium 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. labels Jun 9, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 9, 2021

@spadgett: This pull request references Bugzilla bug 1967106, which is valid.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.z) matches configured target release for branch (4.7.z)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 1956920 is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE))
  • dependent Bugzilla bug 1956920 targets the "4.8.0" release, which is one of the valid target releases: 4.8.0
  • bug has dependents

Requesting review from QA contact:
/cc @yapei

In response to this:

/bugzilla refresh

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 openshift-ci bot requested a review from yapei June 9, 2021 20:58
@yanpzhan
Copy link
Contributor

yanpzhan commented Jun 10, 2021

Tested against the pr, when switch from default terminal to the second terminal, the second container terminal could show up correctly, but when switch back to the first container terminal, the error shows up.
Screenshot from 2021-06-10 14-14-47

This issue happens when my browser language is Chinese, but it's not always reproduced.
@spadgett could someone check if it's an issue related to the pr?

@ecordell ecordell added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jun 11, 2021
@openshift-merge-robot openshift-merge-robot merged commit 3e3a770 into openshift:release-4.7 Jun 11, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 11, 2021

@openshift-cherrypick-robot: All pull requests linked via external trackers have merged:

Bugzilla bug 1967106 has been moved to the MODIFIED state.

In response to this:

[release-4.7] Bug 1967106: can't open terminal for pods that have more than one co…

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.

@spadgett
Copy link
Member

Tested against the pr, when switch from default terminal to the second terminal, the second container terminal could show up correctly, but when switch back to the first container terminal, the error shows up.
Screenshot from 2021-06-10 14-14-47

This issue happens when my browser language is Chinese, but it's not always reproduced.
@spadgett could someone check if it's an issue related to the pr?

Hi, @yanpzhan. I believe that's unrelated to the PR... Do you mind opening a separate Bugzilla?

@spadgett spadgett added this to the v4.7.z milestone Jun 14, 2021
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-medium Referenced Bugzilla bug's severity is medium 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. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. 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.

None yet

7 participants