Exemple #1
0
def rucio_good_ds_download_takes_time():
    responses = {
        "cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795dude":
        {
            'shell_output': [
                '''bash-4.2# cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795    
2019-04-28 00:42:29,370 INFO    Processing 1 item(s) for input
2019-04-28 00:42:29,370 INFO    Getting sources of DIDs
2019-04-28 00:42:30,617 INFO    Using 3 threads to download 5 files
2019-04-28 00:42:30,619 INFO    Thread 1/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000001.pool.root.1
2019-04-28 00:42:30,620 INFO    Thread 1/3: File exists already locally: mc16_13TeV:DAOD_EXOT15.17545497._000001.pool.root.1
2019-04-28 00:42:30,626 INFO    Thread 2/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000002.pool.root.1
2019-04-28 00:42:30,628 INFO    Thread 2/3: File exists already locally: mc16_13TeV:DAOD_EXOT15.17545497._000002.pool.root.1
2019-04-28 00:42:30,628 INFO    Thread 3/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000003.pool.root.1
2019-04-28 00:42:30,629 INFO    Thread 3/3: File exists already locally: mc16_13TeV:DAOD_EXOT15.17545497._000003.pool.root.1
2019-04-28 00:42:31,310 INFO    Thread 1/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000004.pool.root.1
2019-04-28 00:42:31,311 INFO    Thread 1/3: File exists already locally: mc16_13TeV:DAOD_EXOT15.17545497._000004.pool.root.1
2019-04-28 00:42:31,317 INFO    Thread 2/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000005.pool.root.1
2019-04-28 00:42:31,317 INFO    Thread 2/3: File exists already locally: mc16_13TeV:DAOD_EXOT15.17545497._000005.pool.root.1
----------------------------------
Download summary
----------------------------------------
DID mc16_13TeV:mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795
Total files :                                 5
Downloaded files :                            0
Files already found locally :                 5
Files that cannot be downloaded :             0'''
            ],
            'shell_result':
            75,
            'delay':
            0.01
        }
    }
    return run_dummy_multiple(responses)
Exemple #2
0
def rucio_good_file_listing():
    responses = {
        "rucio list-files mc16_13TeV:mc16_13TeV.311313.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS35_lthigh.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10724_r10726_p3795":
        {
            'shell_output': [
                '''bash-4.2# rucio list-files mc16_13TeV:mc16_13TeV.311313.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS35_lthigh.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10724_r10726_p3795
+-----------------------------------------------------+--------------------------------------+-------------+------------+----------+
| SCOPE:NAME                                          | GUID                                 | ADLER32     | FILESIZE   |   EVENTS |
|-----------------------------------------------------+--------------------------------------+-------------+------------+----------|
| mc16_13TeV:DAOD_EXOT15.17545540._000001.pool.root.1 | 46459733-8A1D-EA42-B037-D464BE3809AD | ad:f5da9a8c | 1.981 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000002.pool.root.1 | B60DCC5E-C81E-7144-A9C2-E21DF2EA5B18 | ad:1c2b11cc | 1.995 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000003.pool.root.1 | D5BE7787-5552-1240-8963-CA429722A559 | ad:295a4a5b | 1.982 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000004.pool.root.1 | 7A9152AA-C398-6242-ACC1-5BE0F64E0C4E | ad:63b5a671 | 1.987 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000005.pool.root.1 | 7603A2A9-9A29-2F49-812C-CE3BE602B88F | ad:cea4316c | 1.989 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000006.pool.root.1 | 186270AC-C72B-7D4A-A5AF-8CB6F9AD97FC | ad:24bf1844 | 1.979 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000007.pool.root.1 | A439D4DE-DD57-E140-81C5-3B3C9F20A4FB | ad:16d9688f | 1.988 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000008.pool.root.1 | 7565AC5F-1F15-4A40-9055-B3B6880AA58F | ad:de4d84ba | 1.988 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000009.pool.root.1 | 501DCEC9-A3E0-0E4F-9569-DB7A3A0946F2 | ad:8818f0ef | 1.992 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000010.pool.root.1 | CC389980-14D1-CA4F-B297-AAF079BFD282 | ad:ab32c6ac | 1.973 GB   |    10000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000011.pool.root.1 | 2B34B292-072A-2440-9022-BFD188B914BA | ad:9e2a7cf7 | 7.939 GB   |    40000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000012.pool.root.1 | 1BD26F0D-E8BB-1A4D-886F-1142719B7992 | ad:f76cee29 | 7.927 GB   |    40000 |
| mc16_13TeV:DAOD_EXOT15.17545540._000013.pool.root.1 | 1DCBECFA-EDC0-5840-A25A-8277CA9A31D4 | ad:c14ee390 | 5.956 GB   |    30000 |
+-----------------------------------------------------+--------------------------------------+-------------+------------+----------+
Total files : 13
Total size : 41.677 GB
Total events : 210000
'''
            ],
            'shell_result':
            0
        }
    }
    yield run_dummy_multiple(responses)
Exemple #3
0
def rucio_bad_internet():
    responses = {
        "rucio list-files mc16_13TeV:mc16_13TeV.311313.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS35_lthigh.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10724_r10726_p3795":
        {
            'shell_output': [
                '''bash-4.2# rucio list-files mc16_13TeV:mc16_13TeV.311313.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS35_lthigh.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10724_r10726_p3795
2019-04-24 01:28:24,278 ERROR   Cannot connect to the Rucio server.
'''
            ],
            'shell_result':
            78
        }
    }
    yield run_dummy_multiple(responses)
Exemple #4
0
def rucio_bad_ds_name():
    responses = {
        "rucio list-files mc16_13TeV:mc16_13TeV.311313.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS35_lthigh.deriv.DAOD_EXOT15.bogus":
        {
            'shell_output': [
                '''bash-4.2# rucio list-files mc16_13TeV:mc16_13TeV.311313.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS35_lthigh.deriv.DAOD_EXOT15.bogus
2019-04-24 01:26:37,308 ERROR   Data identifier not found.
Details: Data identifier 'mc16_13TeV:mc16_13TeV.311313.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS35_lthigh.deriv.DAOD_EXOT15.bogus' not found
'''
            ],
            'shell_result':
            12
        }
    }
    yield run_dummy_multiple(responses)
Exemple #5
0
def rucio_no_cert():
    responses = {
        "rucio list-files mc16_13TeV:mc16_13TeV.311313.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS35_lthigh.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10724_r10726_p3795":
        {
            'shell_output': [
                '''bash-4.2# rucio list-files mc16_13TeV:mc16_13TeV.311313.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS35_lthigh.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10724_r10726_p3795
given client cert (/usr/usercertfile) doesn't exist
2019-04-24 00:42:07,065 ERROR   Cannot authenticate.
Details: x509 authentication failed
2019-04-24 00:42:07,065 ERROR   Please verify that your proxy is still valid and renew it if needed.'''
            ],
            'shell_result':
            1
        }
    }
    yield run_dummy_multiple(responses)
Exemple #6
0
def rucio_no_internet_download():
    'No internet at the start of the download command'
    responses = {
        "cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795":
        {
            'shell_output': [
                '''bash-4.2# rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795
2019-05-05 05:56:45,898 INFO    Processing 1 item(s) for input
2019-05-05 05:56:45,899 INFO    Getting sources of DIDs
2019-05-05 05:57:45,972 ERROR   Cannot connect to the Rucio server.'''
            ],
            'shell_result':
            78
        }
    }
    yield run_dummy_multiple(responses)
Exemple #7
0
def rucio_bad_ds_download():
    responses = {
        "cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795dude":
        {
            'shell_output': [
                '''bash-4.2# cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795dude
2019-04-28 00:39:38,134 INFO    Processing 1 item(s) for input
2019-04-28 00:39:38,134 INFO    Getting sources of DIDs
2019-04-28 00:39:43,830 INFO    Using main thread to download 0 file(s)
2019-04-28 00:39:43,831 ERROR   None of the requested files have been downloaded.'''
            ],
            'shell_result':
            75
        }
    }
    yield run_dummy_multiple(responses)
Exemple #8
0
def rucio_no_cert_download():
    responses = {
        "cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795":
        {
            'shell_output': [
                '''bash-4.2# cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795
2019-04-28 00:38:26,690 INFO    Processing 1 item(s) for input
2019-04-28 00:38:26,690 INFO    Getting sources of DIDs
given client cert (/usr/usercertfile) doesn't exist
2019-04-28 00:38:27,699 ERROR   Cannot authenticate.
Details: x509 authentication failed'''
            ],
            'shell_result':
            4
        }
    }
    yield run_dummy_multiple(responses)
Exemple #9
0
def rucio_good_ds_download():
    responses = {
        "cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795":
        {
            'shell_output': [
                '''bash-4.2# cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795
2019-04-27 23:14:27,425 INFO    Processing 1 item(s) for input
2019-04-27 23:14:27,426 INFO    Getting sources of DIDs
2019-04-27 23:14:28,742 INFO    Using 3 threads to download 5 files
2019-04-27 23:14:28,744 INFO    Thread 1/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000001.pool.root.1
2019-04-27 23:14:28,748 INFO    Thread 2/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000002.pool.root.1
2019-04-27 23:14:28,751 INFO    Thread 3/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000003.pool.root.1
2019-04-27 23:14:29,432 INFO    Thread 2/3: Trying to download with root from TAIWAN-LCG2_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000002.pool.root.1 
2019-04-27 23:14:29,482 INFO    Thread 3/3: Trying to download with root from TAIWAN-LCG2_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000003.pool.root.1 
2019-04-27 23:14:29,484 INFO    Thread 1/3: Trying to download with root from TAIWAN-LCG2_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000001.pool.root.1 
2019-04-28 00:02:09,137 INFO    Thread 1/3: File mc16_13TeV:DAOD_EXOT15.17545497._000001.pool.root.1 successfully downloaded. 2.011 GB in 2828.17 seconds = 0.71 MBps
2019-04-28 00:02:09,139 INFO    Thread 1/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000004.pool.root.1
2019-04-28 00:02:09,834 INFO    Thread 1/3: Trying to download with gsiftp from SWT2_CPB_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000004.pool.root.1 
2019-04-28 00:02:11,968 WARNING Thread 1/3: Download attempt failed. Try 1/2
2019-04-28 00:02:13,614 WARNING Thread 1/3: Download attempt failed. Try 2/2
2019-04-28 00:02:14,346 INFO    Thread 1/3: Trying to download with root from TAIWAN-LCG2_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000004.pool.root.1 
2019-04-28 00:02:19,178 INFO    Thread 3/3: File mc16_13TeV:DAOD_EXOT15.17545497._000003.pool.root.1 successfully downloaded. 2.019 GB in 2839.03 seconds = 0.71 MBps
2019-04-28 00:02:19,179 INFO    Thread 3/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000005.pool.root.1
2019-04-28 00:02:19,179 INFO    Thread 3/3: Trying to download with root from TAIWAN-LCG2_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000005.pool.root.1 
2019-04-28 00:03:07,137 INFO    Thread 2/3: File mc16_13TeV:DAOD_EXOT15.17545497._000002.pool.root.1 successfully downloaded. 2.010 GB in 2893.48 seconds = 0.69 MBps
2019-04-28 00:32:19,792 INFO    Thread 1/3: File mc16_13TeV:DAOD_EXOT15.17545497._000004.pool.root.1 successfully downloaded. 2.012 GB in 1793.79 seconds = 1.12 MBps
2019-04-28 00:34:12,348 INFO    Thread 3/3: File mc16_13TeV:DAOD_EXOT15.17545497._000005.pool.root.1 successfully downloaded. 2.018 GB in 1901.95 seconds = 1.06 MBps
----------------------------------
Download summary
----------------------------------------
DID mc16_13TeV:mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795
Total files :                                 5
Downloaded files :                            5
Files already found locally :                 0
Files that cannot be downloaded :             0'''
            ],
            'shell_result':
            0
        }
    }
    return run_dummy_multiple(responses)
Exemple #10
0
def rucio_bad_internet_during_download():
    'Internet goes away during the download'
    responses = {
        "cd /data; rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795":
        {
            'shell_output': [
                '''bash-4.2# rucio download mc16_13TeV.311309.MadGraphPythia8EvtGen_A14NNPDF31LO_HSS_LLP_mH125_mS5_ltlow.deriv.DAOD_EXOT15.e7270_e5984_s3234_r10201_r10210_p3795
2019-05-05 05:46:51,590 INFO    Processing 1 item(s) for input
2019-05-05 05:46:51,590 INFO    Getting sources of DIDs
2019-05-05 05:46:52,432 INFO    Using 3 threads to download 5 files
2019-05-05 05:46:52,433 INFO    Thread 1/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000001.pool.root.1
2019-05-05 05:46:52,437 INFO    Thread 2/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000002.pool.root.1
2019-05-05 05:46:52,438 INFO    Thread 3/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000003.pool.root.1
2019-05-05 05:46:52,906 INFO    Thread 1/3: Trying to download with root from TAIWAN-LCG2_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000001.pool.root.1 
2019-05-05 05:46:52,969 INFO    Thread 3/3: Trying to download with root from TAIWAN-LCG2_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000003.pool.root.1 
2019-05-05 05:46:52,972 INFO    Thread 2/3: Trying to download with root from TAIWAN-LCG2_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000002.pool.root.1 
2019-05-05 05:47:26,925 WARNING Thread 3/3: Download attempt failed. Try 1/2
2019-05-05 05:47:26,926 WARNING Thread 1/3: Download attempt failed. Try 1/2
2019-05-05 05:47:26,926 WARNING Thread 2/3: Download attempt failed. Try 1/2
2019-05-05 05:49:07,068 WARNING Thread 3/3: Download attempt failed. Try 2/2
2019-05-05 05:49:07,068 WARNING Thread 1/3: Download attempt failed. Try 2/2
2019-05-05 05:49:07,078 WARNING Thread 2/3: Download attempt failed. Try 2/2
2019-05-05 05:51:47,290 ERROR   Thread 2/3: Failed to download item
2019-05-05 05:51:47,291 INFO    Thread 2/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000004.pool.root.1
2019-05-05 05:51:47,292 ERROR   Thread 3/3: Failed to download item
2019-05-05 05:51:47,294 ERROR   Thread 1/3: Failed to download item
2019-05-05 05:51:47,295 INFO    Thread 3/3: Preparing download of mc16_13TeV:DAOD_EXOT15.17545497._000005.pool.root.1
2019-05-05 05:51:47,304 INFO    Thread 3/3: Trying to download with root from TAIWAN-LCG2_DATADISK: mc16_13TeV:DAOD_EXOT15.17545497._000005.pool.root.1 
2019-05-05 05:51:47,309 WARNING Thread 3/3: Download attempt failed. Try 1/2
2019-05-05 05:52:47,373 ERROR   Thread 2/3: Failed to download item
2019-05-05 05:53:27,419 WARNING Thread 3/3: Download attempt failed. Try 2/2
2019-05-05 05:56:07,602 ERROR   Thread 3/3: Failed to download item
2019-05-05 05:56:07,602 ERROR   An unknown exception occurred.
Details: 5 items were in the input queue but only 0 are in the output queue'''
            ],
            'shell_result':
            1
        }
    }
    yield run_dummy_multiple(responses)