Project

General

Profile

Bug #6421

new RPM installation failing

Added by Marco Mambelli over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Parag Mhashilkar
Category:
RPM - Frontend/Factory
Target version:
Start date:
06/06/2014
Due date:
% Done:

0%

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

Description

In 3.2.5 in osg-testing a new installation is failing because upgrade trys to set the factory name but the file /var/lib/gwms-factory/work-dir/glidein.descript is missing and the default name is not valid.

Here is the error:

[root@fermicloud116 ~]# /etc/init.d/gwms-factory upgrade
awk: cmd. line:1: fatal: cannot open file `/var/lib/gwms-factory/work-dir/glidein.descript' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/var/lib/gwms-factory/work-dir/glidein.descript' for reading (No such file or directory)
Using default factory config file: /etc/gwms-factory/glideinWMS.xml
usage: reconfig_glidein { -force_name name -writeback yes|no -update_scripts yes|no -xml xml -update_def_cfg yes|no [-force_delete] [-xslt_plugin_dir xdir] | -help }

This is not a '' config file ('gfactory_instance' found)
Upgrading the factory                                      [FAILED]


Related issues

Related to GlideinWMS - Support #5932: Do Standard 4 tests for v3.2.5 rpm when releasedClosed04/16/2014

Related to GlideinWMS - Support #6545: Test v3.2.5.1 rpms from the osg-development repoClosed06/23/2014

History

#1 Updated by Marco Mambelli over 5 years ago

  • Status changed from New to Feedback
  • Assignee changed from Marco Mambelli to Parag Mhashilkar

Created branch v3/6421

Restored the original differences between the tar ball and RPM invocations of reconfig and upgrade commands:

  • Reconfig ( writeback, force_delete, fix_rrd, update_def_cfg (yes/no), comment are options but the last 2 are ignored for RPMs)
    ):
    tarball:
    reconfig_glidein -update_scripts no -xml "$cfg_loc" -writeback $writeback $fix_rrd $force_delete -force_name $glidein_name -update_def_cfg $update_option -comment $comment

rpm:
reconfig_glidein -update_scripts no -xml "$cfg_loc" -writeback $writeback $fix_rrd $force_delete

  • Upgrade ( writeback, force_delete, fix_rrd are options, but the last 2 are ignored for RPM)
    tarball:
    reconfig_glidein -force_name $glidein_name -writeback yes -update_scripts yes -xml "$cfg_loc" $force_delete $fix_rrd

rpm:
reconfig_glidein -writeback yes -update_scripts yes -xml "$cfg_loc"

$glidein_name above is extracted from ${factory_dir}/glidein.descript if the file exists, otherwise is the word "NEW_INSTALL" and is not used in the option

I don't know if these differences are for historical reasons or functional reasons.
It would be nice to reduce them.
Marco

#2 Updated by John Weigand over 5 years ago

  • Category set to RPM - Frontend/Factory
  • First Occurred set to v3_2_5
Tested these changes by
  • pulling the v3/6421 branch creation/templates/factory_initd_startup_template file down
  • making some changes the rpm spec file or upgrade would do
    diff /tmp/factory_initd_startup_template.6421 gwms-factory.6421 
    20,23c20,23
    < factory_dir=%(factory_dir)s
    < glideinWMS_dir=%(glideinWMS_dir)s
    < def_factory_config=%(default_cfg_fpath)s
    < RPM_INSTALL=%(rpm_install)s
    ---
    > factory_dir=/var/lib/gwms-factory/work-dir
    > glideinWMS_dir=/var/lib/gwms-factory/work-dir
    > def_factory_config=/etc/gwms-factory/glideinWMS.xml
    > RPM_INSTALL=True
    101,102c101,102
    < # Double percent %% needed for template substitution
    < FILE_OWNER=`stat -c%%u "$def_factory_config"`
    ---
    > # Double percent % needed for template substitution
    > FILE_OWNER=`stat -c%u "$def_factory_config"`
    
  • then executing the 'service gwms-factory upgrade'

SUCCESS!!

John Weigand

#3 Updated by Parag Mhashilkar over 5 years ago

  • Target version set to v3_2_5_1

#4 Updated by John Weigand over 5 years ago

This specific issue to have been fixed in
glideinwms-factory-3.2.5.1-1.osg32.el6.noarch

Verified today 6/24/14.

John Weigand

#5 Updated by Parag Mhashilkar over 5 years ago

  • Status changed from Feedback to Closed


Also available in: Atom PDF