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

Add missing zfs-import.target to list of systemd services #6955

Merged

Conversation

Lalufu
Copy link
Contributor

@Lalufu Lalufu commented Dec 13, 2017

0.7.4 added the zfs-import.target to systemd. This target was missing in the spec file, leading to unwanted unit ordering.

Description

Add missing zfs-import.target to systemd_svcs list.

Motivation and Context

Without this change zfs-import.target is installed but not activated, leading to incorrect unit ordering on startup, and missing mounted file systems.

#6953

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

  • My code follows the ZFS on Linux code style requirements.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commit messages are properly formatted and contain Signed-off-by.
  • Change has been approved by a ZFS on Linux member.

@behlendorf behlendorf merged commit 9920950 into openzfs:master Dec 14, 2017
@codecov
Copy link

codecov bot commented Dec 14, 2017

Codecov Report

Merging #6955 into master will decrease coverage by 0.21%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6955      +/-   ##
==========================================
- Coverage   75.43%   75.22%   -0.22%     
==========================================
  Files         296      296              
  Lines       95453    95453              
==========================================
- Hits        72007    71800     -207     
- Misses      23446    23653     +207
Flag Coverage Δ
#kernel 74.51% <ø> (+0.07%) ⬆️
#user 67.51% <ø> (-0.38%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e9b156...168439d. Read the comment docs.

@behlendorf
Copy link
Contributor

@aerusso I wanted to give you a heads up on this issue for the Debian packaging. You'll want to make sure to enable the new systemd zfs-import.target in your 0.7.4 packages. See #6953 for full details.

@Lalufu
Copy link
Contributor Author

Lalufu commented Dec 14, 2017 via email

@tonyhutter
Copy link
Contributor

@Lalufu we're going to spin a 0.7.5 release to get the fix out there (along with a handful of some other patches). I'd expect it sometime early next week. Thanks again for reporting the bug and providing a fix!

@aerusso
Copy link
Contributor

aerusso commented Dec 14, 2017

@behlendorf It turns out that deb-systemd-helper automatically enables installed systemd units. I incorrectly assumed this was somehow "normal" behavior for systemd units, and that's how it slipped by my testing (i.e., "worked for me"). Sorry.

80b4852, which added zfs-import.target to etc/systemd/system/50-zfs.preset.in did not get included on the stable branch. That particular line might be a good candidate to be cherry-picked into stable. I've also opened #6964, but I think that should be low-priority.

@behlendorf
Copy link
Contributor

@aerusso yes, good point. We do need that preset and will pull it in to 0.7.5. We'll also take a look at #6964.

@behlendorf
Copy link
Contributor

An 0.7.4-2 package has been added to the Fedora and EPEL repositories which enables the zfs-import-target on install. It includes this fix as well as the one line addition to the etc/systemd/system/50-zfs.preset.in. In addition, the relevant wiki has been updated with a recommendation to reset the default presets after upgrading to 0.7.4 .

tonyhutter pushed a commit that referenced this pull request Dec 18, 2017
Add missing zfs-import.target to list of systemd services in zfs
RPM spec file.

Reviewed-by: Niklas Wagner <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ralf Ertzinger <[email protected]>
Issue #6953
Closes #6955
Nasf-Fan pushed a commit to Nasf-Fan/zfs that referenced this pull request Jan 29, 2018
Add missing zfs-import.target to list of systemd services in zfs
RPM spec file.

Reviewed-by: Niklas Wagner <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ralf Ertzinger <[email protected]>
Issue openzfs#6953
Closes openzfs#6955
Nasf-Fan pushed a commit to Nasf-Fan/zfs that referenced this pull request Feb 13, 2018
Add missing zfs-import.target to list of systemd services in zfs
RPM spec file.

Reviewed-by: Niklas Wagner <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ralf Ertzinger <[email protected]>
Issue openzfs#6953
Closes openzfs#6955
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.

6 participants