Closed mikhail-khodorovskiy closed 3 years ago
I believe the resource creation is successful, right ?. Please try using any of the images from here - https://cloud.google.com/ai-platform/notebooks/docs/images which suits your need.
We actually want to use a custom image we build but we get the same error that's why we tried to use one of the existing images first to see if that would work. We want to use
container_image {
repository = "gcr.io/<ourproject>/<our-image>"
tag = "latest"
}
is that possible that when container_image is used the startup script fails to format the disk?
Possible, were you able to get the instance w/ startup script working fine when you tried with console/gcloud ?. If you see same behavior then the issue needs to raised against the API team.
You are right, the gcloud call creating the VM produces the same error:
gcloud beta notebooks instances create custom-instance-gcp-owned --container-repository=gcr.io/deeplearning-platform-release/r-cpu --container-tag=latest --machine-type=n1-standard-16 --location=us-west1-b --boot-disk-size=300 --boot-disk-type=PD_SSD --project=hsq-dev-analytics-f8a4 --no-public-ip --subnet=analytics-subnet --subnet-region=us-west1 --network=hsq-dev-analytics-network --service-account=hsq-dev-datalab@hsq-dev-analytics-f8a4.iam.gserviceaccount.com
produces
mount: /home/jupyter: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error.
We filed a support ticket with GCP.
I'm going to lock this issue because it has been closed for 30 days ā³. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error š¤ š , please reach out to my human friends š hashibot-feedback@hashicorp.com. Thanks!
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v0.13.5
Affected Resource(s)
Terraform v0.13.5 Google beta provider 3.52.0
Terraform Configuration Files
Debug Output
On the VM for the ai notebook VM, it looks like the startup script is missing formatting of the mount
Feb 8 21:12:33 hsq-dev-thomas-notebook-2 systemd[1]: Started containerd container runtime. Feb 8 21:12:33 hsq-dev-thomas-notebook-2 c2d-startup[369]: Add jupyter user: jupyter to docker Feb 8 21:12:33 hsq-dev-thomas-notebook-2 containerd[442]: time="2021-02-08T21:12:33.767995517Z" level=info msg=serving... address=/run/containerd/containerd.sock Feb 8 21:12:33 hsq-dev-thomas-notebook-2 containerd[442]: time="2021-02-08T21:12:33.779269570Z" level=info msg="containerd successfully booted in 0.222144s" Feb 8 21:12:33 hsq-dev-thomas-notebook-2 systemd[1]: Starting Docker Application Container Engine... Feb 8 21:12:33 hsq-dev-thomas-notebook-2 c2d-startup[369]: Run: usermod -aG docker jupyter Feb 8 21:12:33 hsq-dev-thomas-notebook-2 c2d-startup[369]: Docker group docker:x:998:jupyter Feb 8 21:12:33 hsq-dev-thomas-notebook-2 c2d-startup[369]: Jupyter user home directory: /home/jupyter Feb 8 21:12:33 hsq-dev-thomas-notebook-2 c2d-startup[369]: mount: /home/jupyter: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error. Feb 8 21:12:33 hsq-dev-thomas-notebook-2 GCEGuestAgent[420]: 2021-02-08T21:12:33.8505Z GCEGuestAgent Info: Instance ID changed, running first-boot actions
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
0000