google-compute-engine

Google Cloud Storage - insufficient permission

折月煮酒 提交于 2021-01-23 06:58:05
问题 The issue seems similar to another post, but It's different for me. Because I check the testIamPermission , and the returns showed that I got all permission I needed and still receive insufficient permission . This is what I received: {'storage.buckets.get' : true} {'storage.buckets.getIamPolicy' : true} {'storage.objects.create' : true} {'storage.objects.delete' : true} {'storage.objects.get' : true} {'storage.objects.getIamPolicy' : true} {'storage.objects.list' : true} {'storage.objects

GCE Windows startup script

ⅰ亾dé卋堺 提交于 2021-01-20 12:28:33
问题 I am facing a strange problem where my windows-startup-script-ps1 is not running at startup as per official link. This corresponds to a PowerShell script as the name indicates. Having looked further into Serial Port logs I found that the error is: The term 'gs://mybucket/metadata.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. I tried giving it

GCE Windows startup script

旧城冷巷雨未停 提交于 2021-01-20 12:26:35
问题 I am facing a strange problem where my windows-startup-script-ps1 is not running at startup as per official link. This corresponds to a PowerShell script as the name indicates. Having looked further into Serial Port logs I found that the error is: The term 'gs://mybucket/metadata.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. I tried giving it

Understanding instance/cpu/utilization of Google Compute Engine

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-05 11:01:58
问题 I'm new with Google Compute Engine and I don't understand the metric instance/cpu/utilization on axis=0 or y. The scale as I see it goes up to 0,15. That means the CPU usage is only 15%? My instance has 24 CPUs because I'm trying to run a really big pandas groupby().mean() and it's taking forever. It's a Jupyter notebook. Should I run extra code to make the whole instance to work? Maybe I'm paying too much for the instance if it wont run fully. I was expecting to run full load 回答1: By

Understanding instance/cpu/utilization of Google Compute Engine

人走茶凉 提交于 2021-01-05 11:01:55
问题 I'm new with Google Compute Engine and I don't understand the metric instance/cpu/utilization on axis=0 or y. The scale as I see it goes up to 0,15. That means the CPU usage is only 15%? My instance has 24 CPUs because I'm trying to run a really big pandas groupby().mean() and it's taking forever. It's a Jupyter notebook. Should I run extra code to make the whole instance to work? Maybe I'm paying too much for the instance if it wont run fully. I was expecting to run full load 回答1: By

Is it normal to have a lot of Compute Engine API requests?

余生长醉 提交于 2021-01-02 22:12:38
问题 I was looking at my API & Services dashboard and I see a lot of requests to the Compute Engine API. I created a VM a few days ago but have stopped it. However I am still seeing ~50 requests in the last hour. and overall from creating the instance and adding stuff there has been ~18,000 requests in total. Is this normal behavior? Can I be billed for this amount of requests? Is there a limit? 回答1: There are two types of API requests. Those that your code (Cloud SDK) create or service to service

Is there a way to tell who started an instance in Google Cloud Platform?

ⅰ亾dé卋堺 提交于 2020-12-15 07:14:39
问题 We run only a small handful of instances on Google Cloud Platform and we don't run them all the time. Generally we just fire one up, do what we need to do then shut it down... which is great, except when "we" forget to shut them down. I've been able to track down the relevant REST APIs and the gcloud sdk but I don't see anything that says who started the instance. Actually it also doesn't have a timestamp on when it was started. I did find this python app engine script that I might be able to

I am not able to access compute engine API with gcloud?

倾然丶 夕夏残阳落幕 提交于 2020-12-15 05:24:07
问题 I have an instance running with access scope 'Set Access for each API', and explicitly allowing Compute Engine API with Read-Write access as showing in this below image. API access list So I logged inside the instance via SSH, and I tried to run this command:- gcloud compute instances list and I got an error: - Required 'compute.zones.list' permission for 'projects/dotted-hxxl-xxx' My user is having explicitly allowing access to compute Engine API but still I am getting the error. I shouldn't

How to run jupyter lab in a conda environment on a google compute engine (Deep Learning VM)?

烂漫一生 提交于 2020-12-01 11:01:04
问题 I made a conda environment in my Deep Learning VM. When I ssh to it (clicking SSH button of my instance in the VM instances page) and type source activate <environment_name> it gets activated correctly in the shell. I successfully connect to jupyter lab from my local machine as explained from the docs How can I use jupyter in a specific conda environment on this VM ? The accepted way to run jupyter in a specific conda environment seems to be Activate a conda environment in your terminal using