Skip to content

Conversation

@gthvn1
Copy link
Contributor

@gthvn1 gthvn1 commented Feb 26, 2024

👋
To give a little bit of context, I had a strange issue after building new RPMs (it was a new version of ZFS) and installing it. It appeared that systemd reported XAPI has failed. I looked more closely and the reason is because /var/lock/subsys directory is not present anymore (and the touch /var/lock/subsys/xapi command failed). I didn't know exactly why this directory is not there but after discussing with several people it appears that it should be created by systemd-tmpfiles-setup.service. And in my case this service didn't start. To fix the issue one suggestion was to add systemd-tmpfiles-setup.service to be Requires+After in xapi.service. I think it makes sense and that is is the right way for fixing the issue but I was surprised that it wasn't already the case, so maybe there is another way to fix this?
Regards,

@edwintorok
Copy link
Contributor

That directory is indeed created by /usr/lib/tmpfiles.d/legacy.conf. We probably don't need the subsystem locking anymore with systemd (and those scripts that need it could mkdir -p it themselves).
Until all the scripts are updated this seems like the correct change.

Copy link
Collaborator

@bernhardkaindl bernhardkaindl left a comment

Choose a reason for hiding this comment

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

  • Sometimes, Codecov sometimes gets confused when the PR is not rebased to the latest target branch

If you rebase to today's latest master branch with the Codecov config updates, it should pass in case (also makes Codecov more tolerant for test coverage)

Signed-off-by: Guillaume <guillaume.thouvenin@vates.tech>
@gthvn1 gthvn1 force-pushed the gtn-fix-tmpfiles-setup branch from fa2f14c to 7e05103 Compare February 26, 2024 10:14
@lindig
Copy link
Contributor

lindig commented Feb 26, 2024

Any reason not to merge this?

@psafont
Copy link
Member

psafont commented Feb 26, 2024

We want to cut a new release with the vtpm changes ASAP, with as little risk as possible. We can merge this after we've cut a new release, along with other held-off PRs, like #5451

gthvn1 added a commit to xcp-ng-rpms/xapi that referenced this pull request Feb 26, 2024
See xapi-project/xen-api#5471

Signed-off-by: Guillaume <guillaume.thouvenin@vates.tech>
@psafont psafont merged commit aa01f2c into xapi-project:master Mar 4, 2024
@psafont psafont deleted the gtn-fix-tmpfiles-setup branch March 4, 2024 10:58
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.

5 participants