{"action":"created","issue":{"url":"https://api.github.com/repos/googleapis/google-cloud-python/issues/5928","repository_url":"https://api.github.com/repos/googleapis/google-cloud-python","labels_url":"https://api.github.com/repos/googleapis/google-cloud-python/issues/5928/labels{/name}","comments_url":"https://api.github.com/repos/googleapis/google-cloud-python/issues/5928/comments","events_url":"https://api.github.com/repos/googleapis/google-cloud-python/issues/5928/events","html_url":"https://github.com/googleapis/google-cloud-python/issues/5928","id":359177622,"node_id":"MDU6SXNzdWUzNTkxNzc2MjI=","number":5928,"title":"Bigtable: 'test_create_instance_w_two_clusters' flakes with '504 Deadline Exceeded'","user":{"login":"tseaver","id":242750,"node_id":"MDQ6VXNlcjI0Mjc1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/242750?v=4","gravatar_id":"","url":"https://api.github.com/users/tseaver","html_url":"https://github.com/tseaver","followers_url":"https://api.github.com/users/tseaver/followers","following_url":"https://api.github.com/users/tseaver/following{/other_user}","gists_url":"https://api.github.com/users/tseaver/gists{/gist_id}","starred_url":"https://api.github.com/users/tseaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tseaver/subscriptions","organizations_url":"https://api.github.com/users/tseaver/orgs","repos_url":"https://api.github.com/users/tseaver/repos","events_url":"https://api.github.com/users/tseaver/events{/privacy}","received_events_url":"https://api.github.com/users/tseaver/received_events","type":"User","site_admin":false},"labels":[{"id":210703442,"node_id":"MDU6TGFiZWwyMTA3MDM0NDI=","url":"https://api.github.com/repos/googleapis/google-cloud-python/labels/api:%20bigtable","name":"api: bigtable","color":"f8f8f8","default":false},{"id":751601169,"node_id":"MDU6TGFiZWw3NTE2MDExNjk=","url":"https://api.github.com/repos/googleapis/google-cloud-python/labels/flaky","name":"flaky","color":"ea806e","default":false},{"id":80646138,"node_id":"MDU6TGFiZWw4MDY0NjEzOA==","url":"https://api.github.com/repos/googleapis/google-cloud-python/labels/testing","name":"testing","color":"bfdadc","default":false},{"id":744431537,"node_id":"MDU6TGFiZWw3NDQ0MzE1Mzc=","url":"https://api.github.com/repos/googleapis/google-cloud-python/labels/type:%20process","name":"type: process","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-09-11T18:57:42Z","updated_at":"2018-10-17T19:15:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"/cc @sduskis, @vikas-jamdar \r\n\r\nFrom:\r\n\r\n- https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/7977\r\n- https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/7978\r\n\r\n```python\r\n___________ TestInstanceAdminAPI.test_create_instance_w_two_clusters ___________\r\n\r\nself = <tests.system.TestInstanceAdminAPI testMethod=test_create_instance_w_two_clusters>\r\n\r\n    def test_create_instance_w_two_clusters(self):\r\n        from google.cloud.bigtable import enums\r\n        from google.cloud.bigtable.table import ClusterState\r\n        _PRODUCTION = enums.Instance.Type.PRODUCTION\r\n        ALT_INSTANCE_ID = 'dif' + unique_resource_id('-')\r\n        instance = Config.CLIENT.instance(ALT_INSTANCE_ID,\r\n                                          instance_type=_PRODUCTION,\r\n                                          labels=LABELS)\r\n    \r\n        ALT_CLUSTER_ID_1 = ALT_INSTANCE_ID + '-c1'\r\n        ALT_CLUSTER_ID_2 = ALT_INSTANCE_ID + '-c2'\r\n        LOCATION_ID_2 = 'us-central1-f'\r\n        STORAGE_TYPE = enums.StorageType.HDD\r\n        cluster_1 = instance.cluster(\r\n            ALT_CLUSTER_ID_1, location_id=LOCATION_ID, serve_nodes=SERVE_NODES,\r\n            default_storage_type=STORAGE_TYPE)\r\n        cluster_2 = instance.cluster(\r\n            ALT_CLUSTER_ID_2, location_id=LOCATION_ID_2,\r\n            serve_nodes=SERVE_NODES, default_storage_type=STORAGE_TYPE)\r\n        operation = instance.create(clusters=[cluster_1, cluster_2])\r\n        # We want to make sure the operation completes.\r\n        operation.result(timeout=10)\r\n    \r\n        # Make sure this instance gets deleted after the test case.\r\n        self.instances_to_delete.append(instance)\r\n    \r\n        # Create a new instance instance and make sure it is the same.\r\n        instance_alt = Config.CLIENT.instance(ALT_INSTANCE_ID)\r\n        instance_alt.reload()\r\n    \r\n        self.assertEqual(instance, instance_alt)\r\n        self.assertEqual(instance.display_name, instance_alt.display_name)\r\n        self.assertEqual(instance.type_, instance_alt.type_)\r\n    \r\n        clusters, failed_locations = instance_alt.list_clusters()\r\n        self.assertEqual(failed_locations, [])\r\n    \r\n        clusters.sort(key=lambda x: x.name)\r\n        alt_cluster_1, alt_cluster_2 = clusters\r\n    \r\n        self.assertEqual(cluster_1.location_id, alt_cluster_1.location_id)\r\n        self.assertEqual(alt_cluster_1.state, enums.Cluster.State.READY)\r\n        self.assertEqual(cluster_1.serve_nodes, alt_cluster_1.serve_nodes)\r\n        self.assertEqual(cluster_1.default_storage_type,\r\n                         alt_cluster_1.default_storage_type)\r\n        self.assertEqual(cluster_2.location_id, alt_cluster_2.location_id)\r\n        self.assertEqual(alt_cluster_2.state, enums.Cluster.State.READY)\r\n        self.assertEqual(cluster_2.serve_nodes, alt_cluster_2.serve_nodes)\r\n        self.assertEqual(cluster_2.default_storage_type,\r\n                         alt_cluster_2.default_storage_type)\r\n    \r\n        # Test list clusters in project via 'client.list_clusters'\r\n        clusters, failed_locations = Config.CLIENT.list_clusters()\r\n        self.assertFalse(failed_locations)\r\n        found = set([cluster.name for cluster in clusters])\r\n        self.assertTrue({alt_cluster_1.name,\r\n                         alt_cluster_2.name,\r\n                         Config.CLUSTER.name}.issubset(found))\r\n    \r\n        temp_table_id = 'test-get-cluster-states'\r\n        temp_table = instance.table(temp_table_id)\r\n>       temp_table.create()\r\n\r\ntests/system.py:280: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\ngoogle/cloud/bigtable/table.py:218: in create\r\n    table=table, initial_splits=splits)\r\ngoogle/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client.py:327: in create_table\r\n    request, retry=retry, timeout=timeout, metadata=metadata)\r\n../api_core/google/api_core/gapic_v1/method.py:139: in __call__\r\n    return wrapped_func(*args, **kwargs)\r\n../api_core/google/api_core/retry.py:260: in retry_wrapped_func\r\n    on_error=on_error,\r\n../api_core/google/api_core/retry.py:177: in retry_target\r\n    return target()\r\n../api_core/google/api_core/timeout.py:206: in func_with_timeout\r\n    return func(*args, **kwargs)\r\n../api_core/google/api_core/grpc_helpers.py:61: in error_remapped_callable\r\n    six.raise_from(exceptions.from_grpc_error(exc), exc)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\nvalue = DeadlineExceeded('Deadline Exceeded',)\r\nfrom_value = <_Rendezvous of RPC that terminated with:\r\n\tstatus = StatusCode.DEADLINE_EXCEED...all.cc\",\"file_line\":1099,\"grpc_message\":\"Deadline Exceeded\",\"grpc_status\":4}\"\r\n>\r\n\r\n    def raise_from(value, from_value):\r\n>       raise value\r\nE       DeadlineExceeded: 504 Deadline Exceeded\r\n\r\n../.nox/sys-2-7/lib/python2.7/site-packages/six.py:737: DeadlineExceeded\r\n```"},"comment":{"url":"https://api.github.com/repos/googleapis/google-cloud-python/issues/comments/430753986","html_url":"https://github.com/googleapis/google-cloud-python/issues/5928#issuecomment-430753986","issue_url":"https://api.github.com/repos/googleapis/google-cloud-python/issues/5928","id":430753986,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDc1Mzk4Ng==","user":{"login":"tseaver","id":242750,"node_id":"MDQ6VXNlcjI0Mjc1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/242750?v=4","gravatar_id":"","url":"https://api.github.com/users/tseaver","html_url":"https://github.com/tseaver","followers_url":"https://api.github.com/users/tseaver/followers","following_url":"https://api.github.com/users/tseaver/following{/other_user}","gists_url":"https://api.github.com/users/tseaver/gists{/gist_id}","starred_url":"https://api.github.com/users/tseaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tseaver/subscriptions","organizations_url":"https://api.github.com/users/tseaver/orgs","repos_url":"https://api.github.com/users/tseaver/repos","events_url":"https://api.github.com/users/tseaver/events{/privacy}","received_events_url":"https://api.github.com/users/tseaver/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T19:15:23Z","updated_at":"2018-10-17T19:15:23Z","author_association":"CONTRIBUTOR","body":"Another failure [today](https://source.cloud.google.com/results/invocations/4bd4d22d-4d25-4ea3-963d-2f97dc170566/targets/cloud-devrel%2Fclient-libraries%2Fgoogle-cloud-python%2Fpresubmit%2Fbigtable/log)."}}
{"actor":{"display_login":"tseaver"}}