Skip to content

[tftpserver] Merge pxe plugin into tftpserver#4060

Merged
arif-ali merged 1 commit into
sosreport:mainfrom
TurboTurtle:merge-pxe
Jun 20, 2025
Merged

[tftpserver] Merge pxe plugin into tftpserver#4060
arif-ali merged 1 commit into
sosreport:mainfrom
TurboTurtle:merge-pxe

Conversation

@TurboTurtle

Copy link
Copy Markdown
Member

The pxe plugin was both antiquated in that no currently supported distribution ships the pxeos command, and also duplicating some behavior best served by the tftpserver plugin.

Move the relevant bits from pxe to tftpserver, then drop the pxe plugin. Add some additional collections to tftpserver such as service status collections.


Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines

  • Is the commit message split over multiple lines and hard-wrapped at 72 characters?
  • Is the subject and message clear and concise?
  • Does the subject start with [plugin_name] if submitting a plugin patch or a [section_name] if part of the core sosreport code?
  • Does the commit contain a Signed-off-by: First Lastname email@example.com?
  • Are any related Issues or existing PRs properly referenced via a Closes (Issue) or Resolved (PR) line?
  • Are all passwords or private data gathered by this PR obfuscated?

@TurboTurtle

Copy link
Copy Markdown
Member Author

Kept it as an IndependentPlugin since the single add_copy_spec() difference didn't seem like enough to warrant splitting it out.

@TurboTurtle TurboTurtle added Kind/Enhancement Status/Needs Review This issue still needs a review from project members labels Jun 19, 2025
@packit-as-a-service

Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/sosreport-sos-4060
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

1 similar comment
@packit-as-a-service

Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/sosreport-sos-4060
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@pmoravec

Copy link
Copy Markdown
Contributor

Leaving on @arif-ali / @TrevorBenson for an ACK from Debian/Ubuntu side.

@arif-ali arif-ali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

some minor changes

Comment thread sos/report/plugins/tftpserver.py Outdated
plugin_name = 'tftpserver'
profiles = ('sysmgmt', 'network')

services = ('tftp', )

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add tftpd-hpa service here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ack

Comment thread sos/report/plugins/tftpserver.py Outdated
def setup(self):
self.add_dir_listing([
'/var/lib/tftpboot',
self.add_copy_spec('/etc/defaultd/tftp-hpa')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

typo, that should be /etc/default/tftp-hpa

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch, thanks.

The `pxe` plugin was both antiquated in that no currently supported
distribution ships the `pxeos` command, and also duplicating some
behavior best served by the `tftpserver` plugin.

Move the relevant bits from `pxe` to `tftpserver`, then drop the `pxe`
plugin. Add some additional collections to `tftpserver` such as service
status collections.

Signed-off-by: Jake Hunsaker <jacob.r.hunsaker@gmail.com>
@arif-ali arif-ali added the Reviewed/Ready for Merge Has been reviewed, ready for merge label Jun 20, 2025
@arif-ali arif-ali merged commit ea57d01 into sosreport:main Jun 20, 2025
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kind/Enhancement Reviewed/Ready for Merge Has been reviewed, ready for merge Status/Needs Review This issue still needs a review from project members

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants