Skip to content

DLPX-75089 Upgrade verification should not enable nfs services #277

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

Merged
merged 1 commit into from
Apr 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions files/common/lib/systemd/system/nfs-mountd.service.d/override.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
#
# During upgrade verification, the root filesystem will be booted as a
# container using systemd-nspawn. When this service runs in this
# container, it can cause corruption of the NFS volumes on the client
# (due to us allowing all capabilities to the container). Thus, to
# workaround this problem, we explicitly disable this service from
# running when inside of the container.
#
ConditionVirtualization=!container
10 changes: 10 additions & 0 deletions files/common/lib/systemd/system/nfs-server.service.d/override.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
#
# During upgrade verification, the root filesystem will be booted as a
# container using systemd-nspawn. When this service runs in this
# container, it can cause corruption of the NFS volumes on the client
# (due to us allowing all capabilities to the container). Thus, to
# workaround this problem, we explicitly disable this service from
# running when inside of the container.
#
ConditionVirtualization=!container
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
#
# During upgrade verification, the root filesystem will be booted as a
# container using systemd-nspawn. When this service runs in this
# container, it can cause corruption of the NFS volumes on the client
# (due to us allowing all capabilities to the container). Thus, to
# workaround this problem, we explicitly disable this service from
# running when inside of the container.
#
ConditionVirtualization=!container
10 changes: 10 additions & 0 deletions files/common/lib/systemd/system/rpc-statd.service.d/override.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
#
# During upgrade verification, the root filesystem will be booted as a
# container using systemd-nspawn. When this service runs in this
# container, it can cause corruption of the NFS volumes on the client
# (due to us allowing all capabilities to the container). Thus, to
# workaround this problem, we explicitly disable this service from
# running when inside of the container.
#
ConditionVirtualization=!container