Project

General

Profile

Bug #3900

Starting a factory with all Entries set to enable=False should print out helpful message

Added by Parag Mhashilkar over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Parag Mhashilkar
Category:
-
Target version:
Start date:
05/16/2013
Due date:
% Done:

0%

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

Description

This mostly affects the RPM distribution of glideinwms. Factory start up should print useful message on the screen and exit rather than throwing a stacktrace which is redirected to /dev/null

When all entry elements are False,
... a reconfig works successfully
... however, it fails on start up with this (only if you remove the /dev/null
of stdout/err)

Starting glideinWMS factory: Traceback (most recent call last):
  File "/usr/sbin/glideFactory.py", line 539, in ?
    main(sys.argv[1])
  File "/usr/sbin/glideFactory.py", line 431, in main
    write_descript(glideinDescript,frontendDescript,os.path.join(startup_dir, 'monitor/'))
  File "/usr/sbin/glideFactory.py", line 77, in write_descript
    entryDescript = glideFactoryConfig.JobDescript(entry)
  File "/usr/lib/python2.4/site-packages/glideinwms/factory/glideFactoryConfig.py", line 250, in __init__
    repr) # convert everything in strings
  File "/usr/lib/python2.4/site-packages/glideinwms/factory/glideFactoryConfig.py", line 79, in __init__
    ConfigFile.__init__(self,os.path.join("entry_"+entry_name,config_file),convert_function)
  File "/usr/lib/python2.4/site-packages/glideinwms/factory/glideFactoryConfig.py", line 54, in __init__
    self.load(config_file,convert_function)
  File "/usr/lib/python2.4/site-packages/glideinwms/factory/glideFactoryConfig.py", line 58, in load
    fd=open(fname,"r")
IOError: [Errno 2] No such file or directory: 'entry_/job.descript'

See # 3841 for details.


Related issues

Related to GlideinWMS - Bug #3841: V2.7.1 RPM testingClosed05/09/2013

History

#1 Updated by Parag Mhashilkar over 7 years ago

  • Status changed from New to Feedback
  • Assignee changed from Parag Mhashilkar to Burt Holzman
  • Target version changed from v2_7_x to v2_7_2

Committed to branch_v2plus_3900: commit:547f99b

#2 Updated by Burt Holzman over 7 years ago

Looks ok to me. Needs a version for master.

#3 Updated by Parag Mhashilkar over 7 years ago

  • Assignee changed from Burt Holzman to Parag Mhashilkar

#4 Updated by Burt Holzman over 7 years ago

Added master_3900. Parag, does that look OK to merge too?

#5 Updated by Parag Mhashilkar over 7 years ago

  • Status changed from Feedback to Closed

merged branch_v2plus_3900 -> branch_v2plus and master_3900 -> master

Also available in: Atom PDF