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

flake in e2e test: Got value for metric problem_counter with label map[reason:Ext4Error]: 3, expect at most 2. #403

Closed
xueweiz opened this issue Dec 12, 2019 · 5 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@xueweiz
Copy link
Contributor

xueweiz commented Dec 12, 2019

See this test result:

• Failure [52.528 seconds]
NPD should export Prometheus metrics.
/home/prow/go/src/k8s.io/node-problem-detector/test/e2e/metriconly/metrics_test.go:36
  When ext4 filesystem error happens
  /home/prow/go/src/k8s.io/node-problem-detector/test/e2e/metriconly/metrics_test.go:104
    NPD should update problem_counter{reason:Ext4Error} and problem_gauge{type:ReadonlyFilesystem} [It]
    /home/prow/go/src/k8s.io/node-problem-detector/test/e2e/metriconly/metrics_test.go:113
    Got value for metric problem_counter with label map[reason:Ext4Error]: 3, expect at most 2.
      
    Expected
        <float64>: 3
    to be <=
        <float64>: 2
    /home/prow/go/src/k8s.io/node-problem-detector/test/e2e/metriconly/metrics_test.go:190

Go to the kernel log test artifact, we see:

Dec 11 23:29:38 npd-metrics-cos-73-11647-348-0-0d055070 kernel: Bridge firewalling registered
Dec 11 23:29:38 npd-metrics-cos-73-11647-348-0-0d055070 kernel: IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
Dec 11 23:30:02 npd-metrics-cos-73-11647-348-0-0d055070 kernel: EXT4-fs (sda1): re-mounted. Opts: commit=30,data=ordered
Dec 11 23:30:03 npd-metrics-cos-73-11647-348-0-0d055070 kernel: EXT4-fs error (device sda1): trigger_test_error:124: comm problem-maker: fake filesystem error from problem-maker
Dec 11 23:30:03 npd-metrics-cos-73-11647-348-0-0d055070 kernel: Aborting journal on device sda1-8.
Dec 11 23:30:03 npd-metrics-cos-73-11647-348-0-0d055070 kernel: EXT4-fs error (device sda1): ext4_journal_check_start:61: Detected aborted journal
Dec 11 23:30:03 npd-metrics-cos-73-11647-348-0-0d055070 kernel: EXT4-fs (sda1): Remounting filesystem read-only
Dec 11 23:30:03 npd-metrics-cos-73-11647-348-0-0d055070 kernel: EXT4-fs error (device sda1) in ext4_init_inode_table:1451: IO failure
Dec 11 23:30:03 npd-metrics-cos-73-11647-348-0-0d055070 kernel: EXT4-fs (sda1): Remounting filesystem read-only

The test is only expecting two filesystem errors from:

EXT4-fs error (device sda1): trigger_test_error:124: comm problem-maker: fake filesystem error from problem-maker
EXT4-fs error (device sda1): ext4_journal_check_start:61: Detected aborted journal

However in this case, filesystem failure also triggered an IO failure, which is not expected:

EXT4-fs error (device sda1) in ext4_init_inode_table:1451: IO failure

We should lift the assertion restriction a little bit, so that this case is properly handled.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 11, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 10, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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.

@stmcginnis
Copy link
Contributor

Looks like this may still occasionally fail:

#529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants