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

Add standalone volume #165

Closed
ransa808 opened this issue Apr 3, 2023 · 8 comments
Closed

Add standalone volume #165

ransa808 opened this issue Apr 3, 2023 · 8 comments

Comments

@ransa808
Copy link

ransa808 commented Apr 3, 2023

Hi,
I couldn't post in discussions for some reason so excuse for asking here.
Is it possible to add a standalone volume (not a member of a storage group) ? if so how?

Thanks

@ransa808 ransa808 changed the title Add stadlone volume Add standalone volume Apr 3, 2023
@rawstorage
Copy link
Collaborator

rawstorage commented Apr 3, 2023 via email

@ransa808
Copy link
Author

ransa808 commented Apr 4, 2023

Yes there is an add volume to storage group function and add existing volume to storage group function. If you search the read the docs you should be able to find. I can post names here later if you have trouble finding them

My goal is to create a volume that is not a member of any storage group, is it possible via the api?

@rawstorage
Copy link
Collaborator

rawstorage commented Apr 4, 2023

no, you must use a storage group to create a volume with the API

Can I ask why you want to create a volume outside storage group structure?

@rawstorage
Copy link
Collaborator

closing as this is not supported in the API

@ransa808
Copy link
Author

I'm trying to add a volume to an existing SG which has SRDF replicated volumes, I get the following error message :
invalid input [this will render the storage group srdf unmanagable. Force flag is needed to continue.

Is there any other solution or workaround to create a new volume and add it to such SG ?

@ransa808
Copy link
Author

no, you must use a storage group to create a volume with the API

Can I ask why you want to create a volume outside storage group structure?

Can you re-open please?

I'm trying to add a volume to an existing SG which has SRDF replicated volumes, I get the following error message : invalid input [this will render the storage group srdf unmanagable. Force flag is needed to continue.

Is there any other solution or workaround to create a new volume and add it to such SG ?

@rawstorage rawstorage reopened this Apr 18, 2023
@rawstorage rawstorage reopened this Apr 18, 2023
@rawstorage
Copy link
Collaborator

i've re-opened but the error is clear, it's not a PyU4V issue you are having, the issue is you are trying to add volumes to a protected storage group without following the protection workflow, you need to provide the additional parameters to provide details for where to protect, this is a protection mechanism in the API you will get the same error in GUI.

@rawstorage
Copy link
Collaborator

rawstorage commented Apr 18, 2023

Per documentation for add_new_volume_to_storage_group
https://pyu4v.readthedocs.io/en/latest/PyU4V.html?highlight=add_new_volume_to_storage_group#PyU4V.provisioning.ProvisioningFunctions.add_new_volume_to_storage_group

:param remote_array_1_id: 12 digit serial number of remote array,
optional -- str
:param remote_array_1_sgs: list of storage groups on remote array to
add Remote device, Unisphere instance must
be local to R1 storage group otherwise
volumes will only be added to the local
group -- str or list

These parameters are the ones you provide when adding volumes to SRDF protected storage group, on the assumption you want to protect them. If you want to force add them then that's up to you but it will make the storage group unmanageable as per the message, you can provide the force flag to the API call but you will need to make a custom API call for that as PyU4V doesn't have these flags added to the functions to protect customers from breaking things in an automated way. We should really be following the rules and not trying to force anything outside of the happy path workflows. https://pyu4v.readthedocs.io/en/latest/quick_start.html#perform-a-custom-rest-call-in-pyu4v

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

2 participants