{"action":"created","issue":{"url":"https://api.github.com/repos/putty182/gcloudrig/issues/14","repository_url":"https://api.github.com/repos/putty182/gcloudrig","labels_url":"https://api.github.com/repos/putty182/gcloudrig/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/putty182/gcloudrig/issues/14/comments","events_url":"https://api.github.com/repos/putty182/gcloudrig/issues/14/events","html_url":"https://github.com/putty182/gcloudrig/pull/14","id":382068737,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxODYyMjI5","number":14,"title":"add check for GPUS_ALL_REGIONS quota","user":{"login":"deekue","id":3662687,"node_id":"MDQ6VXNlcjM2NjI2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/3662687?v=4","gravatar_id":"","url":"https://api.github.com/users/deekue","html_url":"https://github.com/deekue","followers_url":"https://api.github.com/users/deekue/followers","following_url":"https://api.github.com/users/deekue/following{/other_user}","gists_url":"https://api.github.com/users/deekue/gists{/gist_id}","starred_url":"https://api.github.com/users/deekue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deekue/subscriptions","organizations_url":"https://api.github.com/users/deekue/orgs","repos_url":"https://api.github.com/users/deekue/repos","events_url":"https://api.github.com/users/deekue/events{/privacy}","received_events_url":"https://api.github.com/users/deekue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-19T06:02:06Z","updated_at":"2018-11-22T11:46:06Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/putty182/gcloudrig/pulls/14","html_url":"https://github.com/putty182/gcloudrig/pull/14","diff_url":"https://github.com/putty182/gcloudrig/pull/14.diff","patch_url":"https://github.com/putty182/gcloudrig/pull/14.patch"},"body":"added a check to setup.sh for GPUS_ALL_REGIONS quota and provide info/links if not found.\r\n\r\nthe check is a bit of a hack. a better way to do it would be to use --format=\"json\" and then parse that with something like jq (which would add a dependency). or even better gcloud could add the --filter option to this command."},"comment":{"url":"https://api.github.com/repos/putty182/gcloudrig/issues/comments/441005396","html_url":"https://github.com/putty182/gcloudrig/pull/14#issuecomment-441005396","issue_url":"https://api.github.com/repos/putty182/gcloudrig/issues/14","id":441005396,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTAwNTM5Ng==","user":{"login":"putty182","id":24873663,"node_id":"MDQ6VXNlcjI0ODczNjYz","avatar_url":"https://avatars0.githubusercontent.com/u/24873663?v=4","gravatar_id":"","url":"https://api.github.com/users/putty182","html_url":"https://github.com/putty182","followers_url":"https://api.github.com/users/putty182/followers","following_url":"https://api.github.com/users/putty182/following{/other_user}","gists_url":"https://api.github.com/users/putty182/gists{/gist_id}","starred_url":"https://api.github.com/users/putty182/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/putty182/subscriptions","organizations_url":"https://api.github.com/users/putty182/orgs","repos_url":"https://api.github.com/users/putty182/repos","events_url":"https://api.github.com/users/putty182/events{/privacy}","received_events_url":"https://api.github.com/users/putty182/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T11:46:06Z","updated_at":"2018-11-22T11:46:06Z","author_association":"OWNER","body":"I think there might be more to this;  for example, I don't have the GPUS_ALL_REGIONS quota appearing at all, not even on brand new projects.\r\n\r\nPerhaps this check should only kick in if GPUS_ALL_REGIONS exists AND has a number other than 0.0?\r\n\r\n```\r\nputty182@cloudshell:~/gcloudrig (gcloudrig-test)$ gcloud compute project-info describe --project gcloudrig-test --format \"value(quotas[].metric)\"\r\nSNAPSHOTS;NETWORKS;FIREWALLS;IMAGES;STATIC_ADDRESSES;ROUTES;FORWARDING_RULES;TARGET_POOLS;HEALTH_CHECKS;IN_USE_ADDRESSES;TARGET_INSTANCES;TARGET_HTTP_PROXIES;URL_MAPS;BACKEND_SERVICES;INSTANCE_TEMPLATES;TARGET_VPN_GATEWAYS;VPN_TUNNELS;BACKEND_BUCKETS;ROUTERS;TARGET_SSL_PROXIES;TARGET_HTTPS_PROXIES;SSL_CERTIFICATES;SUBNETWORKS;TARGET_TCP_PROXIES;SECURITY_POLICIES;SECURITY_POLICY_RULES;INTERCONNECTS;GLOBAL_INTERNAL_ADDRESSES;VPN_GATEWAYS\r\n```"}}
{"actor":{"display_login":"putty182"}}