Title: 'test_new_bucket_w_ubla' flakes w/ 412 PreconditionFailed · Issue #577 · googleapis/python-storage · GitHub
Open Graph Title: 'test_new_bucket_w_ubla' flakes w/ 412 PreconditionFailed · Issue #577 · googleapis/python-storage
X Title: 'test_new_bucket_w_ubla' flakes w/ 412 PreconditionFailed · Issue #577 · googleapis/python-storage
Description: From this failed run: ____________________________ test_new_bucket_w_ubla ____________________________ storage_client =
Open Graph Description: From this failed run: ____________________________ test_new_bucket_w_ubla ____________________________ storage_client =
X Description: From this failed run: ____________________________ test_new_bucket_w_ubla ____________________________ storage_client = <google.cloud.storage.client.Client object at 0x7fea45c62510> buckets_t...
Opengraph URL: https://github.com/googleapis/python-storage/issues/577
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'test_new_bucket_w_ubla' flakes w/ 412 PreconditionFailed","articleBody":"From this [failed run](https://source.cloud.google.com/results/invocations/3347120d-1e14-4169-9b59-49c33ca499ea/targets/cloud-devrel%2Fclient-libraries%2Fpython%2Fgoogleapis%2Fpython-storage%2Fpresubmit%2Fsystem-2.7/log):\r\n\r\n```python\r\n____________________________ test_new_bucket_w_ubla ____________________________\r\n\r\nstorage_client = \u003cgoogle.cloud.storage.client.Client object at 0x7fea45c62510\u003e\r\nbuckets_to_delete = [\u003cBucket: new-w-ubla-1630575370947\u003e], blobs_to_delete = []\r\n\r\n def test_new_bucket_w_ubla(\r\n storage_client, buckets_to_delete, blobs_to_delete,\r\n ):\r\n bucket_name = _helpers.unique_name(\"new-w-ubla\")\r\n bucket = storage_client.bucket(bucket_name)\r\n bucket.iam_configuration.uniform_bucket_level_access_enabled = True\r\n _helpers.retry_429_503(bucket.create)()\r\n buckets_to_delete.append(bucket)\r\n\r\n bucket_acl = bucket.acl\r\n with pytest.raises(exceptions.BadRequest):\r\n bucket_acl.reload()\r\n\r\n bucket_acl.loaded = True # Fake that we somehow loaded the ACL\r\n bucket_acl.all().grant_read()\r\n with pytest.raises(exceptions.BadRequest):\r\n\u003e bucket_acl.save()\r\n\r\ntests/system/test_bucket.py:711:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\ngoogle/cloud/storage/acl.py:546: in save\r\n self._save(acl, None, client, timeout=timeout)\r\ngoogle/cloud/storage/acl.py:510: in _save\r\n retry=None,\r\ngoogle/cloud/storage/client.py:454: in _patch_resource\r\n _target_object=_target_object,\r\ngoogle/cloud/storage/_http.py:78: in api_request\r\n return call()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cgoogle.cloud.storage._http.Connection object at 0x7fea478ae390\u003e\r\nmethod = 'PATCH', path = '/b/new-w-ubla-1630575370947'\r\nquery_params = {'projection': 'full'}\r\ndata = '{\"acl\": [{\"role\": \"READER\", \"entity\": \"allUsers\"}]}'\r\ncontent_type = 'application/json', headers = None, api_base_url = None\r\napi_version = None, expect_json = True, _target_object = None, timeout = 60\r\n\r\n def api_request(\r\n self,\r\n method,\r\n path,\r\n query_params=None,\r\n data=None,\r\n content_type=None,\r\n headers=None,\r\n api_base_url=None,\r\n api_version=None,\r\n expect_json=True,\r\n _target_object=None,\r\n timeout=_DEFAULT_TIMEOUT,\r\n ):\r\n \"\"\"Make a request over the HTTP transport to the API.\r\n ...\r\n \"\"\"\r\n url = self.build_api_url(\r\n path=path,\r\n query_params=query_params,\r\n api_base_url=api_base_url,\r\n api_version=api_version,\r\n )\r\n\r\n # Making the executive decision that any dictionary\r\n # data will be sent properly as JSON.\r\n if data and isinstance(data, dict):\r\n data = json.dumps(data)\r\n content_type = \"application/json\"\r\n\r\n response = self._make_request(\r\n method=method,\r\n url=url,\r\n data=data,\r\n content_type=content_type,\r\n headers=headers,\r\n target_object=_target_object,\r\n timeout=timeout,\r\n )\r\n\r\n if not 200 \u003c= response.status_code \u003c 300:\r\n\u003e raise exceptions.from_http_response(response)\r\nE PreconditionFailed: 412 PATCH https://storage.googleapis.com/storage/v1/b/new-w-ubla-1630575370947?projection=full\u0026prettyPrint=false: One or more users named in the policy do not belong to a permitted customer.\r\n```","author":{"url":"https://github.com/tseaver","@type":"Person","name":"tseaver"},"datePublished":"2021-09-02T14:06:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/577/python-storage/issues/577"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f0697e0e-4a84-be1c-6517-6218c79ce5c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBAC:1013D2:105331A:168B7AA:6A4DDDE2 |
| html-safe-nonce | 9f4a820bc327167946bdb0d6f24c2cad8e65f3210af2022764df7a3d2e534472 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkFDOjEwMTNEMjoxMDUzMzFBOjE2OEI3QUE6NkE0RERERTIiLCJ2aXNpdG9yX2lkIjoiODI4NDIwNjQ1NjQ0MzM2Mjc4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3e1ff25f6bf9b9f84008b79b462822b9ac41394d25bbf3a604c3f54ba71e80af |
| hovercard-subject-tag | issue:986780083 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-storage/577/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33c0dced4d143d6c17eb8a92835e0174b4deb7dfa3f381d4c5fd02e91a8599b9/googleapis/python-storage/issues/577 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33c0dced4d143d6c17eb8a92835e0174b4deb7dfa3f381d4c5fd02e91a8599b9/googleapis/python-storage/issues/577 |
| og:image:alt | From this failed run: ____________________________ test_new_bucket_w_ubla ____________________________ storage_client = |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tseaver |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-storage git https://github.com/googleapis/python-storage.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992639 |
| octolytics-dimension-repository_nwo | googleapis/python-storage |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992639 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-storage |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width