Error creating GCloud DNS Managed Zone

473 views
Skip to first unread message

Andrew Francis

unread,
Jun 22, 2014, 8:17:54 PM6/22/14
to google-c...@googlegroups.com
When I login into GCloud and try to create a managed-dns zone - I get an error that the parameter.project  for the project I am logged into does not exist. 
Any suggestions on what I can check ?

-------------Here is what I am doing -------------

[ajf@host1 ~]$ gcloud auth login


You are now logged in as [andre...@xxxxx.com].

Your current project is [rugged-pilot-354]. 


 You can change this setting by running:  $ gcloud config set project <project>


----So I try to create a dns zone ----


[ajf@host1 ~]$ gcloud dns managed-zone create --dns_name="host1.com." --description=" zone for host1.com" "host1.com"

Creating {'dnsName': 'host1.com.', 'name': 'host1.com',

'description': ' zone for host1.com'} in

rugged-pilot-354

Do you want to continue (Y/n)? y


-------then I get this error------


ERROR: (gcloud.dns.managed-zone.create) ResponseError: status=404, code=Not Found, reason(s)=notFound

message=The 'parameters.project' resource named 'rugged-pilot-354' does not exist


------when i run  gcloud config list  - It seems I have the right project------ 


[ajf@host1 ~]$ gcloud config list

[core]

account = andr...@xxxx.com

disable_usage_reporting = False

project = rugged-pilot-354

user_output_enabled = True 


[ajf@host1~]$ 


--- Any Suggestions ?------


Thanks, 


Andy Francis 



John Asmuth

unread,
Jun 23, 2014, 9:10:21 AM6/23/14
to Andrew Francis, google-c...@googlegroups.com
The project printed by 'gcloud config list' is not validated - it's whatever you told it. Currently the only way to verify that you've got the right project is to go onto the cloud console and double-check the spelling.

google-cloud-sdk

unread,
Jun 23, 2014, 10:52:24 AM6/23/14
to google-c...@googlegroups.com
Also, please ensure you have enabled the DNS API for your project in the Cloud Console: https://console.developers.google.com/project
Reply all
Reply to author
Forward
0 new messages