Skip to content

Commit 185ed4d

Browse files
committed
Add support for enp1s0 style network interfaces, update arch parsing to split arch with '.'
1 parent b7ad0d4 commit 185ed4d

File tree

9 files changed

+23
-14
lines changed

9 files changed

+23
-14
lines changed

bin/analyze_job_output.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ def re_extract(regexp, data, flags=0, default=None, group=None):
4646
def extract_inet_address(run_job_log):
4747
eth0_block = re_extract(r'^\d:\s*eth0:(.*?)(?:^\d)', run_job_log, re.MULTILINE | re.DOTALL, group=1)
4848
ens3_block = re_extract(r'^\d:\s*ens3:(.*?)(?:^\d)', run_job_log, re.MULTILINE | re.DOTALL, group=1)
49+
enp1s0_block = re_extract(r'^\d:\s*enp1s0:(.*?)(?:^\d)', run_job_log, re.MULTILINE | re.DOTALL, group=1)
4950
if eth0_block:
5051
return re_extract(r'^\s+inet\s+(.*?)\/', eth0_block, re.MULTILINE, group=1)
5152
elif ens3_block:
5253
return re_extract(r'^\s+inet\s+(.*?)\/', ens3_block, re.MULTILINE, group=1)
54+
elif enp1s0_block:
55+
return re_extract(r'^\s+inet\s+(.*?)\/', enp1s0_block, re.MULTILINE, group=1)
5356
else:
5457
return None
5558

bin/run-job

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ if [[ -n `ip addr | grep eth0` ]]; then
8888
ip_address=`ip addr show eth0 | awk 'match($0, /inet ([0-9.]+)/, a) { print a[1] }'`
8989
elif [[ -n `ip addr | grep ens3` ]]; then
9090
ip_address=`ip addr show ens3 | awk 'match($0, /inet ([0-9.]+)/, a) { print a[1] }'`
91+
elif [[ -n `ip addr | grep enp1s0` ]]; then
92+
ip_address=`ip addr show enp1s0 | awk 'match($0, /inet ([0-9.]+)/, a) { print a[1] }'`
9193
else
9294
echo 'Could not find IP address'
9395
exit 1

bin/vmu-reporter

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ def generate_cell(run):
221221

222222
def sort_platforms_by_dver(platform_list):
223223
'''Sorts the OS's by dver so that we know which column to put each run
224-
Assumes the OS's have the format: <flavor>_<dver>_<arch>'''
224+
Assumes the OS's have the format: <flavor>_<dver>.<arch>'''
225225
dvers = {}
226226
for platform in platform_list:
227227
translated_platform = vmu.canonical_os_string(platform)
228-
dver = translated_platform[-1]
228+
dver = translated_platform.split(' ')[-2]
229229
try:
230230
dvers[dver].add(translated_platform)
231231
except KeyError:

bin/vmu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def canonical_os_string(os_release):
9090
result = result.replace('centos', 'CentOS')
9191
result = result.replace('rocky', 'Rocky')
9292
result = result.replace('alma', 'Alma')
93-
result = re.sub(r'_(\d)_.*', r' \1', result)
93+
result = re.sub(r'_(\d)\.(.*)', r' \1 (\2)', result)
9494
return result
9595

9696
def canonical_src_string(sources):

jobs/single-test-run.sub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ request_disk = 16GB
4848
txie-dsigpu4000.chtc.wisc.edu,\
4949
voyles2000.chtc.wisc.edu,\
5050
"
51-
requirements = (TARGET.HasVirshDefaultNetwork == True) && (TARGET.HasCHTCStaging == True) && !StringListMember(TARGET.Machine, MY.BadMachineList)
51+
requirements = (TARGET.Arch == split("$(platform)",".")[1]) && (TARGET.HasVirshDefaultNetwork == True) && (TARGET.HasCHTCStaging == True) && !StringListMember(TARGET.Machine, MY.BadMachineList)
52+
5253

5354
log = osg-test.log
5455

parameters.d/osg23-el8.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
###################
66

77
platforms:
8-
- rocky_8_x86_64
9-
- alma_8_x86_64
8+
- rocky_8.x86_64
9+
- alma_8.x86_64
1010

1111
sources:
1212
###################

parameters.d/osg23-el9.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
###################
66

77
platforms:
8-
- centos_stream_9_x86_64
9-
- rocky_9_x86_64
10-
- alma_9_x86_64
8+
- centos_stream_9.x86_64
9+
- rocky_9.x86_64
10+
- alma_9.x86_64
1111

1212
sources:
1313
###################

parameters.d/osg24-el8.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
###################
66

77
platforms:
8-
- rocky_8_x86_64
9-
- alma_8_x86_64
8+
- rocky_8.x86_64
9+
- alma_8.x86_64
1010

1111
sources:
1212
###################

parameters.d/osg24-el9.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
###################
66

77
platforms:
8-
- centos_stream_9_x86_64
9-
- rocky_9_x86_64
10-
- alma_9_x86_64
8+
- centos_stream_9.x86_64
9+
- rocky_9.x86_64
10+
- alma_9.x86_64
11+
- centos_stream_9.aarch64
12+
- rocky_9.aarch64
13+
- alma_9.aarch64
1114

1215
sources:
1316
###################

0 commit comments

Comments
 (0)