-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Mount resource only updated /etc/fstab, did not mount #509
Comments
As previously mentioned in IRC, here is one fix for the mount portion of that code: It's in git master now. If you can confirm that this did not fix the problem, then that would be helpful. If it does not, then perhaps something is wrong with our systemd mount logic. Can you also confirm:
Lastly, our logic is currently "update fstab, and poke systemd so that it sees the change and mounts it". If that is incorrect on some systems, that something we should know, so that instead of updating fstab we add systemd .mount files instead. @jonathangold any thoughts? |
It's been a while since I worked on this, but IIRC I asked the systemd-developers mailing list, and at the time, "update fstab, and poke systemd so that it sees the change and mounts it" was the officially recommended way to mount disks, both manually and programmatically. I have an Ubuntu VM I can try to reproduce this on when I get a chance (after trying on my arch install).
If the local-fs.target and remote-fs.target units are being reloaded as well as the systemd daemon, I can't imagine why it wouldn't mount, unless perhaps the "wait for the systemd job to complete" is now broken.
|
I had that thought, but I hope it is not the case. My other thought is the "systemd load from fstab mechanism" is not working. |
Yes
Keep in mind that I have mounted them manually in the mean time (at some point this server has to do some work)
I'll try to recreate the issue here later today |
My understanding is that this should be fixed now. If you can reproduce with git master, please let me know here and I can re-open, or you can open a new issue. Thanks! |
The Reload method cannot just be invoked on the administrative DBus object. Make it work by specifying the proper systemd object name, path, and interface. Fixes purpleidea#509
The Reload method cannot just be invoked on the administrative DBus object. Just like the method for reloading specific units, it needs to be invoked on the proper DBus service, addressing the proper object and using the right interface. Added an additional constant for the systemd DBus service. Even though it shares the same value as the interface base name, this is happenstance and it's technically incorrect to open a connection to an interface name. The connection needs a service name. Fixes purpleidea#509
The Reload method cannot just be invoked on the administrative DBus object. Just like the method for reloading specific units, it needs to be invoked on the proper DBus service, addressing the proper object and using the right interface. Added an additional constant for the systemd DBus service. Even though it shares the same value as the interface base name, this is happenstance and it's technically incorrect to open a connection to an interface name. The connection needs a service name. Fixes purpleidea#509
Versions:
mgmt version (eg:
mgmt --version
): 0.0.18operating system/distribution (eg:
uname -a
): Ubuntu 19.04Description:
Trying to mount a few local ext4 filesystems updated /etc/fstab correctly, but did not mount the disks after mgmt had converged.
The mcl files was simple
The log contained statements like this one, which seems to indicate that the mount logic inside of mgmt did get called
The text was updated successfully, but these errors were encountered: