Project

General

Profile

Bug #15396

Upgrade not working when frontend/factory are running

Added by Marco Mambelli almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
01/30/2017
Due date:
% Done:

0%

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

Description

upgrade is not working if the service (frontend/factory) is already running

In the following example the working copy of glidein_startup.sh is updated only when upgrade is run with the factory stopped:

[root@fermicloud318 ~]# /bin/systemctl start gwms-factory
[root@fermicloud318 ~]# /usr/sbin/gwms-factory upgrade
[root@fermicloud318 ~]# ls -al /var/lib/gwms-factory/work-dir/glidein_startup.sh
-r-xr-xr-x. 1 gfactory e875 59951 Jan 12 14:22 /var/lib/gwms-factory/work-dir/glidein_startup.sh
[root@fermicloud318 ~]# /bin/systemctl stop gwms-factory
[root@fermicloud318 ~]# /usr/sbin/gwms-factory upgrade
Using default factory config file: /etc/gwms-factory/glideinWMS.xml
...Updated the glidein_startup.sh and local_start.sh scripts
...Updated the glidein_startup.sh file in the staging area
...Updated the factory_startup script
...Reconfigured glidein 'gfactory_instance' is complete
...Active entries are:
     ITB_FC_CE2
...Verifying rrd schema
...Submit files are in /var/lib/gwms-factory/work-dir
Upgrading the factory                                      [  OK  ]
[root@fermicloud318 ~]# ls -al /var/lib/gwms-factory/work-dir/glidein_startup.sh
-r-xr-xr-x. 1 gfactory e875 63302 Jan 25 19:02 /var/lib/gwms-factory/work-dir/glidein_startup.sh
[root@fermicloud318 ~]# /bin/systemctl start gwms-factory

This is a change in behavior from the previous version and should probably be fixed.
Looking at the code it expects to run and change the files but is sending a 'kill -1' like for the reconfig so there will be no upgrade.
If upgrade is not supported there should be at least an error message.
It is affecting only SL7.

History

#1 Updated by Parag Mhashilkar almost 4 years ago

  • Assignee set to HyunWoo Kim

#2 Updated by HyunWoo Kim almost 4 years ago

I have created v3/15396 branch and this branch covers all 3 tickets, 15396, 15395, 15371.

#3 Updated by HyunWoo Kim almost 4 years ago

  • Status changed from New to Feedback
  • Assignee changed from HyunWoo Kim to Marco Mambelli

Assigning to Marco Mambelli for feedback

#4 Updated by Marco Mambelli almost 4 years ago

  • Assignee changed from Marco Mambelli to HyunWoo Kim

#5 Updated by HyunWoo Kim almost 4 years ago

  • Status changed from Feedback to Resolved

Merged into branch_v3_2

#6 Updated by HyunWoo Kim almost 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF