-
Notifications
You must be signed in to change notification settings - Fork 19
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
Keep user multipath configuration upon upgrade #52
base: master
Are you sure you want to change the base?
Conversation
Would be better with a word of context: since PR xapi-project/sm#600, there is text in the
And it was agreed upon that we would make it become true in the installer. The current PR does this. |
upgrade.py
Outdated
@@ -448,6 +448,9 @@ def buildRestoreList(self): | |||
# NRPE service config | |||
self.restore_list += ['etc/nagios/nrpe.cfg', {'dir': 'etc/nrpe.d'}] | |||
|
|||
# Keep user multipath configuration | |||
self.restore_list += [{'dir': 'etc/multipath/conf.d'}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we need to choose between either saving the whole directory, or just custom.conf
. Saving the whole directory may be a perk when/if vendors start taking the habit of dropping a file of theirs into this directory when needed.
On the other hand, if we want to keep the liberty of packaging configuration files in /etc/multipath/conf.d
, then it may be safer to just add etc/multipath/conf.d/custom.conf
to the list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say vendors should deploy such files using a RPM anyway, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about saving custom*.conf
to give users more flexibility and still avoid issues with proper RPMs?
cb14751
to
08059cf
Compare
Hi, we reduced to a specific regex to only save custom config files to avoid conflic with RPM installed files. What do you guys think? :) |
From the sm PR, it seems we state in multipath.conf:
However, this change only preserves files that match As such it seems to me the text in multipath.conf should either say e.g. |
@alexbrett the question would be, would it be valid for eg. an OEM to install files there though a RPM? That's a typical use for the "conf.d" idiom, besides letting user modifications not interfere with system updates. |
All files matchin `custom.*\.conf` will be kept upon upgrade. See: xapi-project/sm#600 Signed-off-by: BenjiReis <[email protected]>
f5530b5
to
bb6f238
Compare
What do you decide? Would you rather simply keep |
All files matchin
custom.*\.conf
will be kept upon upgrade.See: xapi-project/sm#600