googledatalab / datalab

Interactive tools and developer experiences for Big Data on Google Cloud Platform.
Apache License 2.0
974 stars 249 forks source link

datalab cli has undocumented naming restrictions #1325

Open brandondutra opened 7 years ago

brandondutra commented 7 years ago

Running 'datalab create instance_name' fails because a regex fails. See below.

$ gcloud components install datalab

Your current Cloud SDK version is: 151.0.0 Installing components from version: 151.0.0

┌────────────────────────────────────────────────────────────────────────────┐ │ These components will be installed. │ ├─────────────────────────────────────────────────────┬────────────┬─────────┤ │ Name │ Version │ Size │ ├─────────────────────────────────────────────────────┼────────────┼─────────┤ │ Cloud Datalab Command Line Tool │ 20170330 │ < 1 MiB │ │ Cloud Datalab Command Line Tool (Platform Specific) │ 20170323 │ < 1 MiB │ │ gcloud Alpha Commands │ 2017.03.24 │ < 1 MiB │ │ gcloud Beta Commands │ 2017.03.24 │ < 1 MiB │ └─────────────────────────────────────────────────────┴────────────┴─────────┘

For the latest full release notes, please visit: https://cloud.google.com/sdk/release_notes

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

╔════════════════════════════════════════════════════════════╗ ╠═ Creating update staging area ═╣ ╠════════════════════════════════════════════════════════════╣ ╠═ Installing: Cloud Datalab Command Line Tool ═╣ ╠════════════════════════════════════════════════════════════╣ ╠═ Installing: Cloud Datalab Command Line Tool (Platform... ═╣ ╠════════════════════════════════════════════════════════════╣ ╠═ Installing: gcloud Alpha Commands ═╣ ╠════════════════════════════════════════════════════════════╣ ╠═ Installing: gcloud Beta Commands ═╣ ╠════════════════════════════════════════════════════════════╣ ╠═ Creating backup and activating new installation ═╣ ╚════════════════════════════════════════════════════════════╝

Performing post processing steps...done.

Update done!

$ datalab create brandon_sample Please specify a zone from one of: [1] asia-east1-b [2] asia-east1-a [3] asia-east1-c [4] asia-northeast1-a [5] asia-northeast1-b [6] asia-northeast1-c [7] asia-southeast1-a [8] asia-southeast1-b [9] europe-west1-d [10] europe-west1-b [11] europe-west1-c [12] us-central1-b [13] us-central1-pikmin [14] us-central1-a [15] us-central1-c [16] us-central1-f [17] us-east1-pikmin [18] us-east1-c [19] us-east1-d [20] us-east1-b [21] us-west1-b [22] us-west1-a Your selected zone: 14

ERROR: (gcloud.compute.disks.create) Could not fetch resource:

A nested call to gcloud failed.

parthea commented 7 years ago

Here is a related, albeit old, StackOverflow question.

brandondutra commented 7 years ago

This bug is not about "I'm stuck". We should do at least one of the following

1) remove this name restriction 2) document it at https://cloud.google.com/datalab/docs/ Also, every page says to run 'datalab create instance_name', which does not work!