1 Rookie
•
17 Posts
0
519
April 3rd, 2023 11:00
Error :- Create Filesystem in default (system) access zone, without Quota
- name : Create Filesystem in default (system) access zone, without Quota
dellemc.powerscale.filesystem :
onefs_host : " { { isilon_ip_address_p }} "
port_no : "8080"
verify_ssl : false
api_user : " { { isilon_api_user }} "
api_password : " { { isilon_api_password }} "
path : "/ifs/cluster_name/DEV"
owner :
name : 'user@domain'
provider_type : 'ads'
state : "present"
===============================================================
"msg": "Creation of Filesystem /ifs/cluster_name/DEV failed with error: { errors : [ { code : AEC_SYSTEM_INTERNAL_ERROR , message : Unable to create directory as requested -- system internal error. } ] } "
however user able to create directory , but using sudo
===============================================================
"msg": "Creation of Filesystem /ifs/cluster_name/DEV failed with error: { errors : [ { code : AEC_SYSTEM_INTERNAL_ERROR , message : Unable to create directory as requested -- system internal error. } ] } "
however user able to create directory , but using sudo
Javed Khan Siddque
1 Rookie
1 Rookie
•
17 Posts
0
April 20th, 2023 09:00
Hi @jennifer_john ,
Thanks For the response.
I can able to create File System Over Powerscale Cluster.
Tower was looking for home directory for Owner which was dynamic in case of service account .
So moved my code from "SVC home directory " TO "/tmp/" and it worked.
Javed Khan Siddque
1 Rookie
1 Rookie
•
17 Posts
0
April 5th, 2023 00:00
Noticed that there is no issue with module
the problem is
/ifs/cluster_name/DEV ---- accepted path name
/ifs/clustername/DEV ---- accepted path name
/ifs/cluster-name/DEV ---- not accepted path , it breakes on '-'
/ifs/cluster name/DEV ---- not accepted path , it breakes on ' '
when we try to escape the character it created with that name.
like
/ifs/'cluster-name'/DEV ---- created with wrong name , while escaping
/ifs/'cluster-name'/DEV ---- created with wrong name , while escaping
/ifs/\'cluster-name\'/DEV ---- created with wrong name , while escaping
is it a way to create a Directory by space or '-' b/w words ??
jennifer_john
1 Rookie
1 Rookie
•
79 Posts
0
April 5th, 2023 03:00
Hi @Javed Khan Siddque
I tried to execute the playbook with space and - (/ifs/cluster name/DEV and /ifs/cluster-name/DEV) and the creation was successful using filesystem module.
Could you please share the log output after executing the playbook with space or - in the directory path to view the errors by executing
tail -10 ansible_powerscale.log from the same folder where the playbook is?
Thanks,
Jennifer
Javed Khan Siddque
1 Rookie
1 Rookie
•
17 Posts
0
April 6th, 2023 01:00
@jennifer_john ,
This is what i have from Ansible-tower logs.
The full traceback is:
File "/tmp/ansible_dellemc.powerscale.filesystem_payload_629eohxq/ansible_dellemc.powerscale.filesystem_payload.zip/ansible_collections/dellemc/powerscale/plugins/modules/filesystem.py", line 718, in create_filesystem
File "/usr/local/lib/python3.6/site-packages/isi_sdk_9_1_0/api/namespace_api.py", line 405, in create_directory
(data) = self.create_directory_with_http_info(directory_path, x_isi_ifs_target_type, **kwargs) # noqa: E501
File "/usr/local/lib/python3.6/site-packages/isi_sdk_9_1_0/api/namespace_api.py", line 502, in create_directory_with_http_info
collection_formats=collection_formats)
File "/usr/local/lib/python3.6/site-packages/isi_sdk_9_1_0/api_client.py", line 346, in call_api
_preload_content, _request_timeout)
File "/usr/local/lib/python3.6/site-packages/isi_sdk_9_1_0/api_client.py", line 177, in __call_api
_request_timeout=_request_timeout)
File "/usr/local/lib/python3.6/site-packages/isi_sdk_9_1_0/api_client.py", line 397, in request
body=body)
File "/usr/local/lib/python3.6/site-packages/isi_sdk_9_1_0/rest.py", line 369, in PUT
body=body)
File "/usr/local/lib/python3.6/site-packages/isi_sdk_9_1_0/rest.py", line 236, in request
raise ApiException(http_resp=r)
fatal: [myserver.xxxx.xx.org]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"access_control": null,
"access_control_rights": null,
"access_control_rights_state": null,
"access_zone": "System",
"api_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"api_user": "cs\\\\svc_xxxxx",
"group": null,
"list_snapshots": false,
"onefs_host": "172.xx.xx.xx",
"owner": {
"name": "cs\\\\svc_xxxxx",
"provider_type": "ads"
},
"path": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"port_no": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"quota": null,
"recursive": true,
"recursive_force_delete": false,
"state": "present",
"verify_ssl": false
}
},
"msg": "Creation of Filesystem ifs/cluster-name/MA/DEV/FOUMAD0031301 failed with error: { errors : [ { code : AEC_SYSTEM_INTERNAL_ERROR , message : Unable to create directory as requested -- system internal error. } ] } "
}
jennifer_john
1 Rookie
1 Rookie
•
79 Posts
0
April 12th, 2023 06:00
Hi @Javed Khan Siddque
Does the filesystem creation succeed with sudo account?
This looks to be permission related issue, Could you try to assign privileges ISI_PRIV_IFS_RESTORE and ISI_PRIV_NS_TRAVERSE to the user to enable the creation of filesystem?
Please do let me know of any additional queries.
Thanks,
Jennifer