Project

General

Profile

Bug #15943

Overwriting of /etc/gwms-factory/glideinWMS.xml

Added by Marco Mambelli over 2 years ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
Start date:
03/22/2017
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

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 over 2 years ago

  • Target version changed from v3_2_19 to v3_2_20

#2 Updated by Marco Mambelli over 2 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 about 2 years ago

  • Target version changed from v3_2_20 to v3_2_21

#4 Updated by Marco Mambelli almost 2 years ago

  • Target version changed from v3_2_21 to v3_2_22

#5 Updated by Marco Mambelli over 1 year ago

  • Target version changed from v3_2_22 to v3_2_23

#6 Updated by Marco Mambelli over 1 year ago

  • Target version changed from v3_2_23 to v3_4_0

#7 Updated by Marco Mambelli over 1 year ago

  • Target version changed from v3_4_0 to v3_4_1

#8 Updated by Marco Mambelli over 1 year ago

  • Target version changed from v3_4_1 to v3_5

#9 Updated by Marco Mambelli 11 months ago

  • Target version changed from v3_5 to v3_5_1

#10 Updated by Marco Mambelli 2 months ago

  • Target version changed from v3_5_1 to v3_6_1

#11 Updated by Marco Mambelli about 1 month ago

  • Target version changed from v3_6_1 to v3_6_2


Also available in: Atom PDF