#Importing Fsx to bluexp with the module netapp.cloudmanager.na_cloudmanager_aws_fsx module

1 messages · Page 1 of 1 (latest)

sterile tendon
#

Hello,
I am performing tests on a customer to add the FSx he has in AWS to the Bluexp console.

We are running the following ansible module with the parameters that appear in the documentation for importing an FSx: https://docs.ansible.com/ansible/latest/collections/netapp/cloudmanager/na_cloudmanager_aws_fsx_module.html

- name: Import AWS FSX
netapp.cloudmanager.na_cloudmanager_aws_fsx:
import_file_system: True
file_system_id: "{{ fsx_id }}"
state: present
refresh_token: "{{ refresh_token }}"
name: fsxAnsible
region: "{{ region }}"
workspace_id: "{{ workspace_id }}"
tenant_id: "{{ tenant_id }}"
aws_credentials_name: "{{ aws_connector }}"
primary_subnet_id: "{{subnet}}"
register: fsxes

But when we run it, it asks for more parameters:

[09:01:51] fatal: [************]: FAILED! => {"changed": false, "msg": "state is present but all of the following are missing: fsx_admin_password, throughput_capacity, secondary_subnet_id, storage_capacity_size, storage_capacity_size_unit"}

**Are these parameters required by default? **

Because in our case the secondary_subnet_id does not apply as it is a FSx single-node 😅

Thanks!

ornate hamlet
#

Looking into this, will get back to you

ornate hamlet
#

is it only secondary_subnet_id which needs to be removed as required? let me know

sterile tendon
#

In this case I would like to run it as in the example in the documentation, and that these parameters are not required: fsx_admin_password, throughput_capacity, secondary_subnet_id, storage_capacity_size, storage_capacity_size_unit

austere knoll
# ornate hamlet is it only secondary_subnet_id which needs to be removed as required? let me kno...

We are testing also only with Import parameters in the example on doc but error is similar. - name: Import AWS FSX
netapp.cloudmanager.na_cloudmanager_aws_fsx:
import_file_system: True
file_system_id: "{{ fsx_id }}" #sustituirlo por item"{{ item }}"
state: present
refresh_token: "{{ refresh_token }}" #crear caas de work de vault?
name: fsxAnsible
region: "{{ region }}"
workspace_id: "{{ workspace_id }}" #posible usar vaiable como parametro de entrada?
tenant_id: "{{ tenant_id }}" #guardado en el caas en vaulting
aws_credentials_name: "{{ aws_connector }}"
register: fsxes [08:58:43] fatal: [***************]: FAILED! => {"changed": false, "msg": "state is present but all of the following are missing: fsx_admin_password, throughput_capacity, primary_subnet_id, secondary_subnet_id, storage_capacity_size, storage_capacity_size_unit" ......... [08:58:43] Ansible_Interface - ERROR - Error executing cmd. Exit code: 2. Command: ansible-playbook /var/lib/jenkins/workspace/Global-common-overlay_operations/7928/nslookup_prueba/main.yml --inventory /usr/local/lib/python3.9/site-packages/navi_ansible/common/dynamic_inventory.py --fork 25 --limit ***************** --extra-vars physics_discipline=storage We are not finding the correct way to run. Thanks

ornate hamlet
#

oh I understand, have opened a story on this in Jira to fix this, thank you

austere knoll
#

Thank you, We would appreciate you letting us know any progress.