dell / ansible-powerstore

Ansible Modules for Dell PowerStore
GNU General Public License v3.0
34 stars 26 forks source link

[BUG]: dellemc.powerstore.cluster does not create cluster #33

Closed jason-technology closed 10 months ago

jason-technology commented 1 year ago

Running cluster create task does not initiate cluster creation. Nothing happens on the array. Ansible reports success immediately, even though set to synchronous. All other modules are working fine / not a config error. API call with the same parameters results in cluster creation. Link_local_address is correct. Latest PyPowerstore Latest powerstore galaxy collection Newly shipped arrays.

anupamaloke commented 1 year ago

@jason-technology , thank you for reporting the issue. We will be investigating this and accordingly address this in future release.

Bhavneet-Sharma commented 1 year ago

Hi @jason-technology , I can see here, you have not given the validate_create flag (reference: https://github.com/dell/ansible-powerstore/blob/main/plugins/modules/cluster.py#L291). So by default, this flag is passed as True and then it will follow the validate create cluster workflow. Hence you were getting success immediately because the module is executing the validate create cluster operation. Please give it a try with validate_create: false . sample playbook would be like this:

image

It is recommended to use the Async call (using this flag as wait_for_completion: false ) to perform the create cluster operation as it takes more than 15 to 30 minutes. This will generate the job ID. You can use the Job to track the deployment status of the cluster using job_id.

Please check the module documentation for each parameter usage and Let us know if you need further information.

anupamaloke commented 10 months ago

@jason-technology, I am closing this issue. Please feel free to open a new one if you are still running into this issue.