Skip to content

WIP: DO NOT MERGE - #285

Closed
ingvagabund wants to merge 1 commit into
openshift:masterfrom
ingvagabund:debug
Closed

ingvagabund wants to merge 1 commit into
openshift:masterfrom
ingvagabund:debug

Conversation

@ingvagabund

Copy link
Copy Markdown
Member

/hold

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 15, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: ingvagabund

If they are not already assigned, you can assign the PR to them by writing /assign @ingvagabund in a comment when ready.

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

Copy link
Copy Markdown
Contributor

@ingvagabund: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/actuator-pkg-staleness b14950d link /test actuator-pkg-staleness
ci/prow/e2e-aws-operator b14950d link /test e2e-aws-operator

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@ingvagabund

Copy link
Copy Markdown
Member Author

From HC-contrller logs:

I0415 11:27:17.137909       1 machinehealthcheck_controller.go:216] machine ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb has been unhealthy for too long, deleting
I0415 11:27:17.161145       1 machinehealthcheck_controller.go:89] Reconciling MachineHealthCheck triggered by /ip-10-0-133-87.ec2.internal
I0415 11:27:17.161332       1 machinehealthcheck_controller.go:112] Node ip-10-0-133-87.ec2.internal is annotated with machine openshift-machine-api/ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb
I0415 11:27:17.161494       1 machinehealthcheck_controller.go:169] Initialising remediation logic for machine ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb
I0415 11:27:17.161869       1 machinehealthcheck_controller.go:269] ConfigMap node-unhealthy-conditions not found under the namespace openshift-machine-api, fallback to default values: items:
- name: Ready
  status: Unknown
  timeout: 300s
- name: Ready
  status: "False"
  timeout: 300s
I0415 11:27:17.162072       1 machinehealthcheck_controller.go:216] machine ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb has been unhealthy for too long, deleting

From machine-controller logs:

I0415 11:27:17.213464       1 controller.go:292] drain successful for machine "ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb"
I0415 11:27:17.213495       1 actuator.go:237] deleting machine
I0415 11:27:17.405741       1 utils.go:137] Cleaning up extraneous instance for machine: i-0581b85001301e731, state: running, launchTime: 2019-04-15 11:15:41 +0000 UTC
I0415 11:27:17.405778       1 utils.go:141] Terminating i-0581b85001301e731 instance
I0415 11:27:17.508264       1 controller.go:209] Deleting node "ip-10-0-133-87.ec2.internal" for machine "ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb"
I0415 11:27:17.532205       1 controller.go:223] Machine "ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb" deletion successful

Notice the timestamps:

  • I0415 11:27:17.162072 1 machinehealthcheck_controller.go:216] machine ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb has been unhealthy for too long, deleting
  • I0415 11:27:17.532205 1 controller.go:223] Machine "ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb" deletion successful

ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb machine got deleted successfully. Yet, the HC test are waiting the for machine to be deleted and timeouts:

I0415 11:19:20.458849    4964 machinehealthcheck.go:150] Node ip-10-0-133-87.ec2.internal has 'Ready' condition with the status Unknown
STEP: Validating that machine ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb is deleted
I0415 11:25:20.460632    4964 framework.go:461] Checking if deployment "machineapi-kubemark-controllers" exists

The timeout is set to 6 minutes starting from 11:19:20.458849. Assuming the clock is running the same all over the place ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb machine got deleted at
11:27:17.532205. Which is almost 8 minutes (without 3 seconds). So the machine gets deleted eventually, it just takes more than 6 minutes.

@cynepco3hahue

Copy link
Copy Markdown

@ingvagabund Please also check this comment openshift/cluster-api-actuator-pkg#62 (comment)

@ingvagabund

Copy link
Copy Markdown
Member Author
W0415 11:19:25.905044       1 machinehealthcheck_controller.go:226] Machine ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb has unhealthy node ip-10-0-133-87.ec2.internal with the condition Ready and the timeout 300s for 5.905035276s. Requeuing...
I0415 11:22:17.099032       1 machinehealthcheck_controller.go:112] Node ip-10-0-133-87.ec2.internal is annotated with machine openshift-machine-api/ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb
I0415 11:22:17.099148       1 machinehealthcheck_controller.go:169] Initialising remediation logic for machine ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb
W0415 11:22:17.099490       1 machinehealthcheck_controller.go:226] Machine ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb has unhealthy node ip-10-0-133-87.ec2.internal with the condition Ready and the timeout 300s for 2m57.099482011s. Requeuing...
I0415 11:27:17.100341       1 machinehealthcheck_controller.go:216] machine ci-op-q918js07-c6aca-qqmql-worker-us-east-1a-slrxb has been unhealthy for too long, deleting

At 11:19:25.905044 the HC controller notices the node is unhealthy for 5s (which corresponds with e2e logs saying the node got NotReady at 11:19:20.458849:

I0415 11:19:20.458849    4964 machinehealthcheck.go:150] Node ip-10-0-133-87.ec2.internal has 'Ready' condition with the status Unknown

Though, the machine is deleted at 11:27:17.100341 which is after almost 8 minutes (minus 3 seconds). So this is definitely a bug in the HC controller.

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

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants