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

Bug 1775454: virtwhat multiple platform #42

Conversation

pgier
Copy link

@pgier pgier commented Nov 22, 2019

Fix cases where virtwhat returns multiple detected platforms.
Also provide a default path to TMPDIR in case the environment var isn't set.

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 22, 2019
@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 22, 2019
@pgier pgier changed the title Bug1775454: virtwhat multiple platform Bug 1775454: virtwhat multiple platform Nov 22, 2019
@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Nov 22, 2019
@openshift-ci-robot
Copy link

@pgier: This pull request references Bugzilla bug 1775454, which is invalid:

  • expected the bug to target the "4.4.0" release, but it targets "4.3.0" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1775454: virtwhat multiple platform

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.

@pgier
Copy link
Author

pgier commented Nov 22, 2019

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Nov 22, 2019
@openshift-ci-robot
Copy link

@pgier: This pull request references Bugzilla bug 1775454, 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.

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-robot openshift-ci-robot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Nov 22, 2019
@s-urbaniak
Copy link

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 23, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pgier, s-urbaniak

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-merge-robot openshift-merge-robot merged commit a16223f into openshift:master Nov 23, 2019
@openshift-ci-robot
Copy link

@pgier: All pull requests linked via external trackers have merged. Bugzilla bug 1775454 has been moved to the MODIFIED state.

In response to this:

Bug 1775454: virtwhat multiple platform

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.

@@ -18,10 +18,10 @@ rm -f "${v}" || true
touch "${v}"
if [ -x /usr/sbin/virt-what ]
then
platforms="$( virt-what )"
platforms=$(echo $( virt-what ) | tr '\n' ' ')

Choose a reason for hiding this comment

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

Why is this necessary? Testing locally, only removing the quotes around the ${platforms} is necessary.

Choose a reason for hiding this comment

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

Also, how was this manifesting? I wasn't seeing this in the metrics -

count by (type) (max_over_time(cluster:virt_platform_nodes:sum[7d]))

was not showing an imbalance between xen and xen-hvm as I would expect if one of the tags was missing?

Copy link
Author

@pgier pgier Nov 25, 2019

Choose a reason for hiding this comment

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

You're right, this part is probably not necessary, I wasn't sure if the bash for loop would correctly handle newlines.

In the related bug, the textfile collector is failing because of the invalid format of the generated file. So it wasn't collecting the virt_platform metric at all for those nodes.

@pgier
Copy link
Author

pgier commented Dec 2, 2019

/cherry-pick release-4.3

@openshift-cherrypick-robot

@pgier: new pull request created: #45

In response to this:

/cherry-pick release-4.3

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/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. 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.

None yet

6 participants