{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/666","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/666/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/666/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/666/events","html_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/666","id":118505596,"number":666,"title":"gce_virtual_machine: Add support for image_project","user":{"login":"wonderfly","id":6642209,"avatar_url":"https://avatars.githubusercontent.com/u/6642209?v=3","gravatar_id":"","url":"https://api.github.com/users/wonderfly","html_url":"https://github.com/wonderfly","followers_url":"https://api.github.com/users/wonderfly/followers","following_url":"https://api.github.com/users/wonderfly/following{/other_user}","gists_url":"https://api.github.com/users/wonderfly/gists{/gist_id}","starred_url":"https://api.github.com/users/wonderfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wonderfly/subscriptions","organizations_url":"https://api.github.com/users/wonderfly/orgs","repos_url":"https://api.github.com/users/wonderfly/repos","events_url":"https://api.github.com/users/wonderfly/events{/privacy}","received_events_url":"https://api.github.com/users/wonderfly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/labels/cla:%20yes","name":"cla: yes","color":"009800"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/labels/P0","name":"P0","color":"5319e7"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/labels/ready%20for%20review","name":"ready for review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-24T00:30:17Z","updated_at":"2015-11-24T05:34:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/666","html_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/666","diff_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/666.diff","patch_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/666.patch"},"body":"Although ```providers/gcp/flags.py``` claims it supports the flag ```image_project```,\r\nwhen creating an instance, it is never used in ```gce_virtual_machine.py```, or passed\r\nto the underlining ```gcloud``` cli.\r\n\r\nA sample failure trying to creating an instance with an image in another\r\nproject:\r\n\r\n```\r\n$ ./pkb.py --project=wonderfly-playground --machine_type=f1-micro\r\n--image=test-image --image_project=test-image-project --os_type=ubuntu_container\r\n--benchmarks=cluster_boot\r\n```\r\nA subset of the error message I got:\r\n>\r\n2015-11-23 15:58:27,143 3fa6ceaf Thread-6 cluster_boot(1/1) INFO     Ran gcloud\r\ncompute instances create pkb-3fa6ceaf-0 --format json --quiet --project\r\nwonderfly-playground --zone us-central1-a --network pkb-network-3fa6ceaf --image\r\ntest-image --boot-disk-size 10 --boot-disk-type pd-standard --machine-type\r\nf1-micro --tags perfkitbenchmarker --no-restart-on-failure --metadata-from-file\r\nsshKeys=/tmp/perfkitbenchmarker/run_3fa6ceaf/key-metadatanXAmr1 --metadata\r\nowner=wonderfly --maintenance-policy TERMINATE.\r\nGot return code (1).\r\nSTDOUT:\r\nSTDERR: WARNING: You have selected a disk size of under [200GB]. This may result\r\nin poor I/O performance. For more information, see:\r\nhttps://developers.google.com/compute/docs/disks/persistent-disks#pdperformance.\r\nERROR: (gcloud.compute.instances.create) Some requests did not succeed:\r\n - Invalid value for field 'resource.disk.initializeParams.sourceImage':\r\n   'https://www.googleapis.com/compute/v1/projects/wonderfly-playground/global/images/test-image'.\r\n   Referenced resource was not found.\r\n\r\nThis change actually enables the ```image_project``` flag, and adds a unit test to\r\nverify it.\r\n\r\nTested with ```python test/gce_virtual_machine_test.py``` and the same command line as\r\nshown above.\r\n\r\n@voellm @cmccoy "},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/comments/159154053","html_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/666#issuecomment-159154053","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/666","id":159154053,"user":{"login":"voellm","id":5758832,"avatar_url":"https://avatars.githubusercontent.com/u/5758832?v=3","gravatar_id":"","url":"https://api.github.com/users/voellm","html_url":"https://github.com/voellm","followers_url":"https://api.github.com/users/voellm/followers","following_url":"https://api.github.com/users/voellm/following{/other_user}","gists_url":"https://api.github.com/users/voellm/gists{/gist_id}","starred_url":"https://api.github.com/users/voellm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voellm/subscriptions","organizations_url":"https://api.github.com/users/voellm/orgs","repos_url":"https://api.github.com/users/voellm/repos","events_url":"https://api.github.com/users/voellm/events{/privacy}","received_events_url":"https://api.github.com/users/voellm/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T05:34:25Z","updated_at":"2015-11-24T05:34:25Z","body":"LGTM.\r\n\r\n@skschneider  Please review also."}}