Project

General

Profile

Bug #3865

glidecondor_upgrade and Condor 7.9.X do not play well together

Added by Igor Sfiligoi over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Igor Sfiligoi
Category:
-
Target version:
Start date:
05/13/2013
Due date:
% Done:

0%

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

Description

Looks like glidecondor_upgrade and Condor 7.9.X do no play well together:

root@submit-5 ~/upgrade-condor# /root/glideinWMS/install/glidecondor_upgrade /root/upgrade-condor/condor-7.9.6-x86_64_RedHat6-stripped.tar.gz
/root/glideinWMS/install/../lib/condorExe.py:17: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
import popen2

Will update Condor in /opt/glidecondor

Extracting /root/upgrade-condor/condor-7.9.6-x86_64_RedHat6-stripped.tar.gz
File '/root/upgrade-condor/condor-7.9.6-x86_64_RedHat6-stripped.tar.gz' is not a condor tarball! (found 'condor-7.9.6-x86_64_RedHat6-stripped', expected a subdirectory'
Cleaning up

For whatever reason, this test fails:
if (len(first_entry.split('/'))<2):

History

#1 Updated by Igor Sfiligoi over 6 years ago

Looks like the new tarballs have dropped the trailing slash from the dir name:

>>> import tarfile
>>> fd=tarfile.open("/root/upgrade-condor/condor-7.9.6-x86_64_RedHat6-stripped.tar.gz","r:gz")
>>> first_entry=fd.getnames()[0]
>>> first_entry
'condor-7.9.6-x86_64_RedHat6-stripped'

#2 Updated by Igor Sfiligoi over 6 years ago

  • Status changed from New to Feedback
  • Assignee changed from Igor Sfiligoi to Parag Mhashilkar

Make a few changes in the code to fix the problem.

Committed in branch_v2plus_3865.

Please review and let me know if and when I can merge it into v2plus and master.

#3 Updated by Parag Mhashilkar over 6 years ago

  • Target version changed from v2_7_x to v2_7_1

Looks ok to me. Please merge. I will add it to v2.7.1 as well since the code changes are in an isolated tool.

#4 Updated by Parag Mhashilkar over 6 years ago

  • Assignee changed from Parag Mhashilkar to Igor Sfiligoi

#5 Updated by Igor Sfiligoi over 6 years ago

  • Status changed from Feedback to Resolved

Merged in both v2plus and master.

#6 Updated by Parag Mhashilkar over 6 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF