Project

General

Profile

Bug #22518

Entries in downtime setting seems not to work correctly

Added by Marco Mambelli 7 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
05/06/2019
Due date:
% Done:

0%

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

Description

Here an email from Krista, Factory operator at Fermilab

Hi Marco,

I think the downtimes handling here needs to be updated.  You can't use the factory_startup script to handle downtimes anymore:

Setting downtime..../factory_startup: line 533: /var/lib/gwms-factory/factory/manageFactoryDowntimes.py: No such file or directory

The only way I got it to work was using something like this:

/usr/sbin/gwms-factory down -entry CMS_T1_US_FNAL_condce3 -dir /var/lib/gwms-factory/work-dir

Also, why is there a reference to an entry downtimes file in the job.descript file?  The only downtimes file I know of is in the work-dir. 

Thanks,
Krista

History

#1 Updated by Marco Mambelli 7 months ago

  • Target version set to v3_5

Asking for more information: can you tell me which version and on which system you are using?
On SL7 I agree that the script moved to /usr/sbin but the startup script seems updated accordingly on my system.

[root@fermicloud395 ~]# find /var/lib/gwms-factory/ -name manageFactoryDowntimes.py
[root@fermicloud395 ~]# find /usr/lib/python2.7/site-packages/ -name manageFactoryDowntimes.py
/usr/lib/python2.7/site-packages/fromrpm_glideinwms/factory/manageFactoryDowntimes.py
[root@fermicloud395 ~]# find /usr/sbin/ -name manageFactoryDowntimes.py
/usr/sbin/manageFactoryDowntimes.py
[root@fermicloud395 ~]# grep manageFactoryDowntimes /usr/sbin/gwms-factory
    FACTORY_DOWNTIMES="${BIN_DIR}manageFactoryDowntimes.py" 
    FACTORY_DOWNTIMES="${BIN_DIR}manageFactoryDowntimes.py" 
[root@fermicloud395 ~]# grep BIN_DIR /usr/sbin/gwms-factory
    BIN_DIR=/usr/sbin/
    FACTORY_START="${BIN_DIR}glideFactory.py" 
    FACTORY_STOP="${BIN_DIR}stopFactory.py" 
    FACTORY_CHECK="${BIN_DIR}checkFactory.py" 
    FACTORY_DOWNTIMES="${BIN_DIR}manageFactoryDowntimes.py" 
    BIN_DIR="$glideinWMS_dir/factory/" 
    FACTORY_START="${BIN_DIR}glideFactory.py" 
    FACTORY_STOP="${BIN_DIR}stopFactory.py" 
    FACTORY_CHECK="${BIN_DIR}checkFactory.py" 
    FACTORY_DOWNTIMES="${BIN_DIR}manageFactoryDowntimes.py" 
[root@fermicloud395 ~]# which manageFactoryDowntimes.py
/usr/sbin/manageFactoryDowntimes.py

#2 Updated by Marco Mambelli 7 months ago

  • Assignee changed from Marco Mambelli to Marco Mascheroni
  • Status changed from New to Feedback
  • Tracker changed from Support to Bug

The startup script failed to detect that it belongs to the RPM package when it is not in /usr/sbin.
Fixed also a couple of other problems:
- an obsolete version of the startup scripts was in the RPM build dir, changed in a placeholder
- creation/create_rpm_startup had an inconsistency

Changes are in v35/22518

#3 Updated by Marco Mascheroni 7 months ago

Looks good to me Marco. Go ahead and merge. Just one question to be sure: you are commenting out the lines that remove startup file if already exists because the isntall script replace the startup file anyway, right? Why are you just commenting out the lines and you do not remove them?

#4 Updated by Marco Mascheroni 7 months ago

  • Assignee changed from Marco Mascheroni to Marco Mambelli

#5 Updated by Marco Mambelli 6 months ago

  • Status changed from Feedback to Resolved

#6 Updated by Marco Mambelli 6 months ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF