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

[nfs] merge nfsserver plugin into nfs one #2073

Closed

Conversation

pmoravec
Copy link
Contributor

nfsserver plugin enabledness relies on legacy init scripts. A more
appropriate way to idenfity a NFS server is via nfs-utils package
(though it could be present also on a NFS client).

As that package enables nfs plugin, it is reasonable to merge the
plugins into one.

Resolves: #2061

Signed-off-by: Pavel Moravec pmoravec@redhat.com


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?
  • If this commit closes an existing issue, is the line Closes: #ISSUENUMBER included in an independent line?
  • If this commit resolves an existing pull request, is the line Resolves: #PRNUMBER included in an independent line?

@pmoravec
Copy link
Contributor Author

Cc @pierg75 for review and @BryanQuigley for Nfs plugin extension on Ubuntu/Debian - wont these extra files/dirs and commands harm?

@pierg75
Copy link
Contributor

pierg75 commented May 18, 2020

Looks good to me. Thanks!

Copy link
Member

@TurboTurtle TurboTurtle left a comment

Choose a reason for hiding this comment

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

Ack, pending tuple correction.

@@ -14,7 +14,7 @@ class Nfs(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
short_desc = 'Network file system information'
plugin_name = 'nfs'
profiles = ('storage', 'network', 'nfs')
packages = ['nfs-utils']
packages = ('nfs-utils')
Copy link
Member

Choose a reason for hiding this comment

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

Needs to be a tuple

nfsserver plugin enabledness relies on legacy init scripts. A more
appropriate way to idenfity a NFS server is via nfs-utils package
(though it could be present also on a NFS client).

As that package enables nfs plugin, it is reasonable to merge the
plugins into one.

Resolves: sosreport#2061

Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
@pmoravec pmoravec force-pushed the sos-pmoravec-nfsserver-enable branch from d2785b9 to 96695d8 Compare May 18, 2020 19:45
@pmoravec
Copy link
Contributor Author

Ah, I see, fixed.

jjansky1 added a commit to jjansky1/sos that referenced this pull request May 19, 2020
nfsserver plugin enabledness relies on legacy init scripts. A more
appropriate way to idenfity a NFS server is via nfs-utils package
(though it could be present also on a NFS client).

As that package enables nfs plugin, it is reasonable to merge the
plugins into one.

Related: sosreport#2073
Resolves: sosreport#2076
Closes: sosreport#2061

Signed-off-by: Jan Jansky <jjansky@redhat.com>
TurboTurtle pushed a commit that referenced this pull request May 20, 2020
nfsserver plugin enabledness relies on legacy init scripts. A more
appropriate way to idenfity a NFS server is via nfs-utils package
(though it could be present also on a NFS client).

As that package enables nfs plugin, it is reasonable to merge the
plugins into one.

Related: #2073
Resolves: #2076
Closes: #2061

Signed-off-by: Jan Jansky <jjansky@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
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.

[nfsserver] improve check_enabled method relying on runlevels
3 participants