Project

General

Profile

Actions

Bug #58046

open

qa/workunits/rados/test_librados_build.sh: specify redirect in curl command

Added by Laura Flores over 1 year ago. Updated over 1 year ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The workunit currently grabs files with:

curl --progress-bar --output hello_world_c.c 'http://git.ceph.com/?p=ceph.git;a=blob_plain;hb=main;f=examples/librados/hello_world_c.c'

Which results in:

2022-11-18T00:18:51.811 INFO:tasks.workunit.client.0.smithi159.stderr:+ check_sources
2022-11-18T00:18:51.811 INFO:tasks.workunit.client.0.smithi159.stderr:+ for s in $SOURCES
2022-11-18T00:18:51.811 INFO:tasks.workunit.client.0.smithi159.stderr:+ test -f hello_radosstriper.cc
2022-11-18T00:18:51.812 INFO:tasks.workunit.client.0.smithi159.stderr:+ for s in $SOURCES
2022-11-18T00:18:51.812 INFO:tasks.workunit.client.0.smithi159.stderr:+ test -f hello_world_c.c
2022-11-18T00:18:51.812 INFO:tasks.workunit.client.0.smithi159.stderr:+ for s in $SOURCES
2022-11-18T00:18:51.812 INFO:tasks.workunit.client.0.smithi159.stderr:+ test -f hello_world.cc
2022-11-18T00:18:51.812 INFO:tasks.workunit.client.0.smithi159.stderr:+ for s in $SOURCES
2022-11-18T00:18:51.812 INFO:tasks.workunit.client.0.smithi159.stderr:+ test -f Makefile
2022-11-18T00:18:51.812 INFO:tasks.workunit.client.0.smithi159.stderr:+ make all-system
2022-11-18T00:18:51.813 INFO:tasks.workunit.client.0.smithi159.stderr:Makefile:1: *** missing separator.  Stop.
2022-11-18T00:18:51.813 INFO:tasks.workunit.client.0.smithi159.stderr:+ cleanup
2022-11-18T00:18:51.814 INFO:tasks.workunit.client.0.smithi159.stderr:+ for f in $BINARIES$SOURCES
2022-11-18T00:18:51.814 INFO:tasks.workunit.client.0.smithi159.stderr:+ rm -f /home/ubuntu/cephtest/mnt.0/client.0/tmp/hello_world_c
2022-11-18T00:18:51.815 INFO:tasks.workunit.client.0.smithi159.stderr:+ for f in $BINARIES$SOURCES
2022-11-18T00:18:51.815 INFO:tasks.workunit.client.0.smithi159.stderr:+ rm -f /home/ubuntu/cephtest/mnt.0/client.0/tmp/hello_world_cpp
2022-11-18T00:18:51.816 INFO:tasks.workunit.client.0.smithi159.stderr:+ for f in $BINARIES$SOURCES
2022-11-18T00:18:51.816 INFO:tasks.workunit.client.0.smithi159.stderr:+ rm -f /home/ubuntu/cephtest/mnt.0/client.0/tmp/hello_radosstriper_cpp
2022-11-18T00:18:51.817 INFO:tasks.workunit.client.0.smithi159.stderr:+ for f in $BINARIES$SOURCES
2022-11-18T00:18:51.817 INFO:tasks.workunit.client.0.smithi159.stderr:+ rm -f /home/ubuntu/cephtest/mnt.0/client.0/tmp/hello_radosstriper.cc
2022-11-18T00:18:51.818 INFO:tasks.workunit.client.0.smithi159.stderr:+ for f in $BINARIES$SOURCES
2022-11-18T00:18:51.818 INFO:tasks.workunit.client.0.smithi159.stderr:+ rm -f /home/ubuntu/cephtest/mnt.0/client.0/tmp/hello_world_c.c
2022-11-18T00:18:51.819 INFO:tasks.workunit.client.0.smithi159.stderr:+ for f in $BINARIES$SOURCES
2022-11-18T00:18:51.819 INFO:tasks.workunit.client.0.smithi159.stderr:+ rm -f /home/ubuntu/cephtest/mnt.0/client.0/tmp/hello_world.cc
2022-11-18T00:18:51.821 INFO:tasks.workunit.client.0.smithi159.stderr:+ for f in $BINARIES$SOURCES
2022-11-18T00:18:51.821 INFO:tasks.workunit.client.0.smithi159.stderr:+ rm -f /home/ubuntu/cephtest/mnt.0/client.0/tmp/Makefile
2022-11-18T00:18:51.822 DEBUG:teuthology.orchestra.run:got remote process result: 2
2022-11-18T00:18:51.823 INFO:tasks.workunit:Stopping ['rados/test_librados_build.sh'] on client.0...
2022-11-18T00:18:51.823 DEBUG:teuthology.orchestra.run.smithi159:> sudo rm -rf -- /home/ubuntu/cephtest/workunits.list.client.0 /home/ubuntu/cephtest/clone.client.0

If we use the `-L` parameter when curling, it allows us to follow redirects:

- curl --progress-bar --output hello_world_c.c 'http://git.ceph.com/?p=ceph.git;a=blob_plain;hb=main;f=examples/librados/hello_world_c.c'
+ curl --progress-bar --output hello_world_c.c -L 'http://git.ceph.com/?p=ceph.git;a=blob_plain;hb=main;f=examples/librados/hello_world_c.c'

Sample failure: http://pulpito.front.sepia.ceph.com/lflores-2022-11-17_23:48:32-rados:singleton-nomsgr-main-distro-default-smithi/7084983/


Related issues 2 (1 open1 closed)

Copied to RADOS - Backport #58116: pacific: qa/workunits/rados/test_librados_build.sh: specify redirect in curl commandResolvedLaura FloresActions
Copied to RADOS - Backport #58117: quincy: qa/workunits/rados/test_librados_build.sh: specify redirect in curl commandIn ProgressLaura FloresActions
Actions

Also available in: Atom PDF