Keep user multipath configuration upon upgrade#52
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. |
| 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.
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.
I'd say vendors should deploy such files using a RPM anyway, no?
There was a problem hiding this comment.
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. |
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 Signed-off-by: BenjiReis <benjamin.reis@vates.fr>
Can we make this go forward with this? |
bb6f238 to
6c5cafe
Compare
All files matchin
custom.*\.confwill be kept upon upgrade.See: xapi-project/sm#600