TeamCity DC/OS / Open / Build / tox Build 19006 outcome was FAILURE
Summary: Tests failed: 1 (1 new), passed: 170, ignored: 1 Build time: 00:05:02
Failed tests
release.test_release.test_storage_provider_aws: release/test_release.py:199 (test_storage_provider_aws)
release_config_aws = {'bucket': 'testing.dcos.io', 'download_url': 'https://s3-us-west-2.amazonaws.com/testing.dcos.io/dcos/', 'kind': 'aws_s3', 'object_prefix': 'dcos'}
tmpdir = local('/teamcity/work/f76365414248b6de/.tox/py3-unittests/tmp/test_storage_provider_aws0')
def test_storage_provider_aws(release_config_aws, tmpdir):
s3 = boto3.session.Session().resource('s3')
bucket = release_config_aws['bucket']
s3_bucket = s3.Bucket(bucket)
assert s3_bucket in s3.buckets.all(), (
"Bucket '{}' must exist with full write access to AWS testing account and created objects must be globally "
"downloadable from: {}").format(bucket, release_config_aws['download_url'])
> exercise_storage_provider(tmpdir, 'aws_s3', release_config_aws)
release/test_release.py:208:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
release/test_release.py:172: in exercise_storage_provider
check_file(copy_dest_path, upload_file)
release/test_release.py:127: in check_file
assert curl_fetch(path) == contents
release/test_release.py:113: in curl_fetch
store.url + path])
/usr/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['curl', '--fail', '--location', '--silent', '--show-error', '--verbose', ...],)
kwargs = {'stdout': -1}, process =
stdout = b'', stderr = None, retcode = 77
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['curl', '--fail', '--location', '--silent', '--show-error', '--verbose', 'https://s3-us-west-2.amazonaws.com/testing.dcos.io/dcos/dcos-image-test-tmp/a8740bc419ab44dfa61b84b59cfede3a/new_dir/copy_path.txt']' returned non-zero exit status 77.
/usr/lib/python3.6/subprocess.py:438: CalledProcessError
------- Stderr: -------
[botocore.hooks] Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
[botocore.hooks] Changing event name from before-call.apigateway to before-call.api-gateway
[botocore.hooks] Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
[botocore.hooks] Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
[botocore.hooks] Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
[botocore.hooks] Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
[botocore.hooks] Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
[botocore.hooks] Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
[botocore.hooks] Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
[botocore.hooks] Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
[botocore.hooks] Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
[botocore.loaders] Loading JSON file: /teamcity/work/f76365414248b6de/.tox/py3-unittests/lib/python3.6/site-packages/boto3/data/s3/2006-03-01/resources-1.json
[botocore.utils] IMDS ENDPOINT: http://169.254.169.254/