Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disk create: Enable multi-writer option #6953

Comments

@ccancellieri
Copy link

ccancellieri commented Aug 6, 2020

Hi,
I'm trying to enable beta (or alpha) --multi-writer flag in my gcloud project doing:

$ gcloud beta compute disks create XXXXXXXXXX-disk --project=XXXXXXXX --type=pd-ssd --size=30GB --zone=us-central1-a --multi-writer --physical-block-size=4096 --verbosity="debug"

With no success... the documentation says that it's possible to use that option but it doesn't work currently.

And: .... Is it possible to use a multi-writer disk with terraform ?

LOG:

DEBUG: Running [gcloud.beta.compute.disks.create] with arguments: [--multi-writer: "True", --physical-block-size: "4096"
, --project: "XXXXXXX", --size: "32212254720", --type: "pd-ssd", --verbosity: "debug", --zone: "us-central1-a",
DISK_NAME:1: "['XXXXXXX-disk']"]
DEBUG: (gcloud.beta.compute.disks.create) Could not fetch resource:

  • Invalid resource usage: 'Multi Writer Disk feature is not available for this project.'.
    Traceback (most recent call last):
    File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 983, in Execute
    resources = calliope_command.Run(cli=self, args=args)
    File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 808, in Run
    resources = command_instance.Run(args)
    File "/usr/lib/google-cloud-sdk/lib/surface/compute/disks/create.py", line 589, in Run
    support_pd_interface=True)
    File "/usr/lib/google-cloud-sdk/lib/surface/compute/disks/create.py", line 547, in _Run
    return client.MakeRequests(requests)
    File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/client_adapter.py", line 105, in MakeRequests
    errors, error_message='Could not fetch resource:')
    File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/utils.py", line 124, in RaiseToolException
    RaiseException(problems, calliope_exceptions.ToolException, error_message)
    File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/utils.py", line 136, in RaiseException
    errors))
    googlecloudsdk.calliope.exceptions.ToolException: Could not fetch resource:
  • Invalid resource usage: 'Multi Writer Disk feature is not available for this project.'.
    ERROR: (gcloud.beta.compute.disks.create) Could not fetch resource:
  • Invalid resource usage: 'Multi Writer Disk feature is not available for this project.'.

@ccancellieri for this feature, where did you see? Can you post the link of the doc over here that will be helpful? Thanks

Here it is:

https://cloud.google.com/sdk/gcloud/reference/beta/compute/disks/create#--multi-writer

NOTE: I'm unable to add comments, this is why I'm editing

@edwardmedia edwardmedia self-assigned this Aug 6, 2020
@edwardmedia
Copy link
Contributor

edwardmedia commented Aug 6, 2020

@ccancellieri for this feature, where did you see? Can you post the link of the doc over here that will be helpful? Thanks

@ccancellieri
Copy link
Author

@ccancellieri for this feature, where did you see? Can you post the link of the doc over here that will be helpful? Thanks

Here it is:

https://cloud.google.com/sdk/gcloud/reference/beta/compute/disks/create#--multi-writer

@edwardmedia
Copy link
Contributor

@ccancellieri Thank you for clarification. Unfortunately the feature has not been implemented in google_compute_disk yet. Changing the label to 'enhancement` for dev backlog.

@edwardmedia edwardmedia removed their assignment Aug 6, 2020
@c2thorn c2thorn added the size/s label Aug 10, 2020
@c2thorn c2thorn added this to the Goals milestone Aug 10, 2020
@ccancellieri
Copy link
Author

FYI:
Just created an issue report on the GCP side:

@c2thorn
Copy link
Collaborator

c2thorn commented Aug 26, 2020

Labeling this upstream since the feature is still in alpha.

@gdsotirov
Copy link

The feature is already in beta, so should we expect it in the google-beta provider at least?

@kladiv
Copy link

kladiv commented Nov 18, 2020

+1

@tarrencev
Copy link

looking forward to support for this

@ghost
Copy link

ghost commented Jan 30, 2021

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 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Jan 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.