Bug #15943
Overwriting of /etc/gwms-factory/glideinWMS.xml
0%
Description
When a RPM update is performed the /etc/gwms-factory/glideinWMS.xml package is rewritten with its own content.
This happens even if the file is marked as no-rewrite in the spec file
If the file is a symbolic link, it becomes an actual file with the content of the linked file.
Steve T reported the owner becoming root but in my tests the owner is the owner of the link.
This is not happening for the frontend (I verified also with a link)
The tests I did are with the 3.3.2 RCs RPM but I'm expecting the same for 3.2.x
History
#1 Updated by Marco Mambelli almost 4 years ago
- Target version changed from v3_2_19 to v3_2_20
#2 Updated by Marco Mambelli almost 4 years ago
I think this is due to postinstall commands like:
sed -i "s/FRONTEND_NAME_CHANGEME/$frontend_name/g" %{_sysconfdir}/gwms-frontend/frontend.xml
sed -i "s/FRONTEND_HOSTNAME/$fqdn_hostname/g" %{_sysconfdir}/gwms-frontend/frontend.xml
and
sed -i "s/FACTORY_HOSTNAME/$fqdn_hostname/g" %{_sysconfdir}/gwms-factory/glideinWMS.xml
These should run only on the stock file, that in upgrades s the .rpmnew
Add a comment line identifying the stock file, check for it and remove the line in the sed commands
And/of check for the rpmnew file
Or find a new mechanism (send email to OSG-int)
#3 Updated by Marco Mambelli over 3 years ago
- Target version changed from v3_2_20 to v3_2_21
#4 Updated by Marco Mambelli over 3 years ago
- Target version changed from v3_2_21 to v3_2_22
#5 Updated by Marco Mambelli about 3 years ago
- Target version changed from v3_2_22 to v3_2_23
#6 Updated by Marco Mambelli almost 3 years ago
- Target version changed from v3_2_23 to v3_4_0
#7 Updated by Marco Mambelli almost 3 years ago
- Target version changed from v3_4_0 to v3_4_1
#8 Updated by Marco Mambelli almost 3 years ago
- Target version changed from v3_4_1 to v3_5
#9 Updated by Marco Mambelli over 2 years ago
- Target version changed from v3_5 to v3_5_1
#10 Updated by Marco Mambelli over 1 year ago
- Target version changed from v3_5_1 to v3_6_1
#11 Updated by Marco Mambelli over 1 year ago
- Target version changed from v3_6_1 to v3_6_2
#12 Updated by Marco Mambelli over 1 year ago
- Target version changed from v3_6_2 to v3_6_3
#13 Updated by Marco Mambelli 11 months ago
- Target version changed from v3_6_3 to v3_6_4
#14 Updated by Marco Mambelli 7 months ago
- Target version changed from v3_6_4 to v3_6_5
#15 Updated by Marco Mambelli 6 months ago
- Target version changed from v3_6_5 to v3_6_6
#16 Updated by Marco Mambelli 6 months ago
- Target version changed from v3_6_6 to v3_6_7
#17 Updated by Marco Mambelli about 2 months ago
- Target version changed from v3_6_7 to v3_7_4