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

snapshot: initial support to collect data pertaining to network interfaces #227

Merged
merged 2 commits into from
Feb 23, 2021

Conversation

ffromani
Copy link
Collaborator

This is more prep work for collecting SRIOV-related data (#92). We want to make sure that:

  1. we don't confuse users with informations gathered by tools when reading back from snapshots, allowing them to opt-out from ethtool and other tools
  2. we want to make sure to collect data related to network interfaces.

When reading network interface information from a snapshot,
invoking ethtool is useless at best, misleading at worst.

We start allowing the users which want to consume
a snapshot to disable the ethtool invocation.
The default is to keep the existing behaviour and call
ethtool if available.

Signed-off-by: Francesco Romani <[email protected]>
We split the discovery of the list of the files we want to collect
for snapshotting purposes because the list depends on the host specific
details; we want to filter out the virtual devices - they are not about
hardware after all.
hence, we need to do some runtime discovery.

Signed-off-by: Francesco Romani <[email protected]>
Copy link
Owner

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

@fromanirh awesome work on this! :)

I left some spelling/grammar nits inline but feel free to address those in a followup PR.

pkg/snapshot/clonetree_net.go Show resolved Hide resolved
pkg/snapshot/clonetree_net.go Show resolved Hide resolved
pkg/snapshot/clonetree_net.go Show resolved Hide resolved
The most common use case is when we want to consume a snapshot from ghw. In these cases the information
provided by tools will be most likely inconsistent with the data from the snapshot - they will run on
a different host!
To make ghw not calling external tools, set the environs variable `GHW_DISABLE_TOOLS` to any value,
Copy link
Owner

Choose a reason for hiding this comment

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

s/To make ghw not calling external tools/To prevent ghw from calling external tools/

@jaypipes jaypipes merged commit 43f5e63 into jaypipes:master Feb 23, 2021
ffromani added a commit to ffromani/ghw that referenced this pull request Feb 23, 2021
Some spelling error sneaked in alongside jaypipes#227
Let's fix them.

Signed-off-by: Francesco Romani <[email protected]>
@ffromani
Copy link
Collaborator Author

@fromanirh awesome work on this! :)

I left some spelling/grammar nits inline but feel free to address those in a followup PR.

Sure thing! #228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants