Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage: 'test_bucket_w_retention_period' systest flakes with 503. #9247

Closed
tseaver opened this issue Sep 18, 2019 · 1 comment · Fixed by #9248
Closed

Storage: 'test_bucket_w_retention_period' systest flakes with 503. #9247

tseaver opened this issue Sep 18, 2019 · 1 comment · Fixed by #9248
Assignees
Labels
api: storage Issues related to the Cloud Storage API. flaky testing type: process A process-related concern. May include testing, release, or the like.

Comments

@tseaver
Copy link
Contributor

tseaver commented Sep 18, 2019

From this Kokoro failure:

______________ TestRetentionPolicy.test_bucket_w_retention_period ______________
self = <tests.system.TestRetentionPolicy testMethod=test_bucket_w_retention_period>
    def test_bucket_w_retention_period(self):
        import datetime
        from google.api_core import exceptions
        period_secs = 10
        new_bucket_name = "w-retention-period" + unique_resource_id("-")
>       bucket = retry_429(Config.CLIENT.create_bucket)(new_bucket_name)
tests/system.py:1534:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../test_utils/test_utils/retry.py:95: in wrapped_function
    return to_wrap(*args, **kwargs)
google/cloud/storage/client.py:379: in create_bucket
    bucket.create(client=self, project=project)
google/cloud/storage/bucket.py:649: in create
    _target_object=self,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <google.cloud.storage._http.Connection object at 0x7fbd6ea43690>
method = 'POST', path = '/b', query_params = {'project': 'precise-truck-742'}
data = '{"name": "w-retention-period-1568826493867"}'
content_type = 'application/json', headers = None, api_base_url = None
api_version = None, expect_json = True
_target_object = <Bucket: w-retention-period-1568826493867>
    def api_request(
        self,
        method,
        path,
        query_params=None,
        data=None,
        content_type=None,
        headers=None,
        api_base_url=None,
        api_version=None,
        expect_json=True,
        _target_object=None,
    ):
        """Make a request over the HTTP transport to the API.
        ...
        """
        url = self.build_api_url(
            path=path,
            query_params=query_params,
            api_base_url=api_base_url,
            api_version=api_version,
        )
        # Making the executive decision that any dictionary
        # data will be sent properly as JSON.
        if data and isinstance(data, dict):
            data = json.dumps(data)
            content_type = "application/json"
        response = self._make_request(
            method=method,
            url=url,
            data=data,
            content_type=content_type,
            headers=headers,
            target_object=_target_object,
        )
        if not 200 <= response.status_code < 300:
>           raise exceptions.from_http_response(response)
E           ServiceUnavailable: 503 POST https://www.googleapis.com/storage/v1/b?project=precise-truck-742: Backend Error
../core/google/cloud/_http.py:393: ServiceUnavailable
@tseaver tseaver added api: storage Issues related to the Cloud Storage API. testing type: process A process-related concern. May include testing, release, or the like. flaky labels Sep 18, 2019
@tseaver tseaver self-assigned this Sep 18, 2019
@tseaver
Copy link
Contributor Author

tseaver commented Sep 18, 2019

Similar to #6244, but with a new response code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. flaky testing type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant