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

Unable to attach volume #492

Open
hezyabudy opened this issue Feb 20, 2025 · 0 comments
Open

Unable to attach volume #492

hezyabudy opened this issue Feb 20, 2025 · 0 comments

Comments

@hezyabudy
Copy link

Hi,

I am trying to attach boot volume as block volume, which are works fine from console.
I getting this error:
"Error returned by Compute Service. Http Status Code: 400. Error Code: InvalidParameter. Message: The volume cannot be attached to the instance ocid1.instance.oc1.iad because the specified device attribute /dev/oracleoci/oraclevdc is invalid..\nOperation Name: AttachVolume
I got this error from here:

log.With("service", "compute", "verb", "create", "resource", "volumeAttachment", "statusCode", util.GetHttpStatusCode(err)).

I am not sure but it's seems that the device selection is wrong here:

listInstanceDevicesResp, err := c.compute.ListInstanceDevices(ctx, core.ListInstanceDevicesRequest{

also device attribute is optional, is it possible not to send it?
https://docs.oracle.com/en-us/iaas/api/#/en/iaas/20160918/datatypes/AttachVolumeDetails

Thanks,
Hezy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant