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

Feat: Add teamdctl_state_dump spec to insights_archive #3455

Merged
merged 8 commits into from
Jul 14, 2022
Merged

Feat: Add teamdctl_state_dump spec to insights_archive #3455

merged 8 commits into from
Jul 14, 2022

Conversation

TZ3070
Copy link
Contributor

@TZ3070 TZ3070 commented Jun 30, 2022

Signed-off-by: Xinting Li [email protected]

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

teamdctl_state_dump spec only exists in sos-archive.py currently, but some insights-plugin rules also use the related parser.

Add teamdctl_state_dump spec to default.py.

insights/specs/default.py Outdated Show resolved Hide resolved
Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

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

@TZ3070 - please check the comments to the Spec change and update this PR accordingly. Thanks.

@psachin psachin self-requested a review July 7, 2022 06:00
@TZ3070 TZ3070 requested a review from xiangce July 11, 2022 01:51
insights/parsers/nmcli.py Outdated Show resolved Hide resolved
@TZ3070
Copy link
Contributor Author

TZ3070 commented Jul 12, 2022

When using the NmcliConnShow parser in datasource 'team', I found the parser cannot handle the NAME containing space in the output.

Issue: #3461
Enhance PR: #3465

@TZ3070 TZ3070 requested a review from xiangce July 12, 2022 02:45
Xinting Li added 6 commits July 12, 2022 10:58
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
if content:
team_device_list = []
for x in content:
if 'team' in x['TYPE']:
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you please double confirm if the disconnected team interfaces good candidates to this parser?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

list: List of the team device.

Raises:
SkipComponent: When there is not any content.
Copy link
Contributor

Choose a reason for hiding this comment

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

This would be When there is not any team interfaces.



@datasource(NmcliConnShow, HostContext)
def team_device(broker):
Copy link
Contributor

Choose a reason for hiding this comment

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

Better rename it as team_interfaces?

Xinting Li added 2 commits July 13, 2022 11:12
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

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

good to me.

@xiangce xiangce merged commit dea3e1f into RedHatInsights:master Jul 14, 2022
xiangce pushed a commit that referenced this pull request Jul 14, 2022
* Feat: Add teamdctl_state_dump spec to insights_archive

Signed-off-by: Xinting Li <[email protected]>

* fix:erroneously modify ethtool_k

Signed-off-by: Xinting Li <[email protected]>

* Modify path

Signed-off-by: Xinting Li <[email protected]>

* Add team test

Signed-off-by: Xinting Li <[email protected]>

* move team_device to ethernet

Signed-off-by: Xinting Li <[email protected]>

* Update test for team_device

Signed-off-by: Xinting Li <[email protected]>

* Filtered discounted teams

Signed-off-by: Xinting Li <[email protected]>

* correct abbreviation

Signed-off-by: Xinting Li <[email protected]>

Co-authored-by: Xinting Li <[email protected]>
(cherry picked from commit dea3e1f)
xiangce pushed a commit that referenced this pull request Sep 6, 2024
* Feat: Add teamdctl_state_dump spec to insights_archive

Signed-off-by: Xinting Li <[email protected]>

* fix:erroneously modify ethtool_k

Signed-off-by: Xinting Li <[email protected]>

* Modify path

Signed-off-by: Xinting Li <[email protected]>

* Add team test

Signed-off-by: Xinting Li <[email protected]>

* move team_device to ethernet

Signed-off-by: Xinting Li <[email protected]>

* Update test for team_device

Signed-off-by: Xinting Li <[email protected]>

* Filtered discounted teams

Signed-off-by: Xinting Li <[email protected]>

* correct abbreviation

Signed-off-by: Xinting Li <[email protected]>

Co-authored-by: Xinting Li <[email protected]>
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.

3 participants