Powerscale.FileSystem Path goes to "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", not able to fetch

22 views
Skip to first unread message

javed khan Siddque

unread,
Apr 21, 2023, 2:09:50 PM4/21/23
to Ansible Project
Hi Team,


i was able to successfully create a FileSystem using module which is not exist only
(eg: if nothing there it will create 1 , )
(eg: if 1 and 2 there it will create 3 , )
(eg: if 1, 2, 3 there it will create 4 , )

       #creating /ifs/cluster_name/MA/DEV/FOUMAD0031301
       #creating /ifs/cluster_name/MA/DEV/FOUMAD0031302
       #creating /ifs/cluster_name/MA/DEV/FOUMAD0031303


But i am not able to find the path which was created even with register option , it is "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
HOw i will get the path which created



    - name: "Create Source Filesystem For DEV"
      dellemc.powerscale.filesystem:
        onefs_host: "{{ ip_address }}"
        port_no: "8080"
        verify_ssl: false
        api_user: "{{ api_user }}"
        api_password: "{{ api_password }}"
        path: "/ifs/{{ cluster_name }}/{{ region }}/DEV/{{ division }}{{ region }}{{ env }}{{ '{:>05}'.format(app_id) }}{{ '%02d' | format(item) }}"                        
        owner:
          name: '{{ api_user }}'
          provider_type: 'ads'
        state: "present"
      register: quota_output_dev_source
      when: not (quota_output_dev_source.changed | d(false))
      loop: '{{ list_of_sequence }}'



vars
=====
division: "FOU"
region: "MA"
env: "D"
app_id: "313"
list_of_sequence: "{{ range(1, 50) | list }}"

==========================================================================================================

changed: [xxx.xxx.xx.org] => (item=3) => {
    "add_quota": "",
    "ansible_loop_var": "item",
    "changed": true,
    "create_filesystem": true,
    "delete_filesystem": "",
    "delete_quota": "",
    "filesystem_details": {
        "attrs": [
            {
                "name": "is_hidden",
                "namespace": null,
                "value": "False"
            },
            {
                "name": "size",
                "namespace": null,
                "value": "0"
            },
            {
                "name": "block_size",
                "namespace": null,
                "value": "8192"
            },
            {
                "name": "blocks",
                "namespace": null,
                "value": "64"
            },
            {
                "name": "last_modified",
                "namespace": null,
                "value": "Fri, 21 Apr 2023 12:55:40 GMT"
            },
            {
                "name": "change_time",
                "namespace": null,
                "value": "Fri, 21 Apr 2023 12:55:40 GMT"
            },
            {
                "name": "access_time",
                "namespace": null,
                "value": "Fri, 21 Apr 2023 12:55:40 GMT"
            },
            {
                "name": "create_time",
                "namespace": null,
                "value": "Fri, 21 Apr 2023 12:55:40 GMT"
            },
            {
                "name": "mtime_val",
                "namespace": null,
                "value": "1682081740"
            },
            {
                "name": "ctime_val",
                "namespace": null,
                "value": "1682081740"
            },
            {
                "name": "atime_val",
                "namespace": null,
                "value": "1682081740"
            },
            {
                "name": "btime_val",
                "namespace": null,
                "value": "1682081740"
            },
            {
                "name": "owner",
                "namespace": null,
                "value": "CS\\\\user"
            },
            {
                "name": "group",
                "namespace": null,
                "value": "Unknown Group"
            },
            {
                "name": "uid",
                "namespace": null,
                "value": "1718493"
            },
            {
                "name": "gid",
                "namespace": null,
                "value": "230"
            },
            {
                "name": "id",
                "namespace": null,
                "value": "10248563658"
            },
            {
                "name": "nlink",
                "namespace": null,
                "value": "2"
            },
            {
                "name": "type",
                "namespace": null,
                "value": "container"
            },
            {
                "name": "stub",
                "namespace": null,
                "value": "False"
            },
            {
                "name": "mode",
                "namespace": null,
                "value": "0700"
            }
        ],
        "namespace_acl": {
            "acl": [
                {
                    "accessrights": [
                        "dir_gen_read",
                        "dir_gen_write",
                        "dir_gen_execute",
                        "std_write_dac",
                        "delete_child"
                    ],
                    "accesstype": "allow",
                    "inherit_flags": [],
                    "op": null,
                    "trustee": {
                        "id": "SID:S-1-5-21-1229272821-706699826-839522115-11328533",
                        "name": "CS\\\\user",
                        "type": "user"
                    }
                },
                {
                    "accessrights": [
                        "std_read_dac",
                        "std_synchronize",
                        "dir_read_attr"
                    ],
                    "accesstype": "allow",
                    "inherit_flags": [],
                    "op": null,
                    "trustee": {
                        "id": "GID:230",
                        "name": null,
                        "type": null
                    }
                }
            ],
            "action": "replace",
            "authoritative": "mode",
            "group": {
                "id": "GID:230",
                "name": null,
                "type": null
            },
            "mode": "0700",
            "owner": {
                "id": "SID:S-1-5-21-1229272821-706699826-839522115-11328533",
                "name": "CS\\\\user",
                "type": "user"
            }
        }
    },
    "filesystem_snapshots": "",
    "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\\\\user",
            "group": null,
            "list_snapshots": false,
            "onefs_host": "xxx.xx.xxx.xxx",
            "owner": {
                "name": "cs\\\\user",
                "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
        }
    },
    "item": 3,
    "modify_filesystem": "",
    "modify_group": "",
    "modify_owner": "",
    "modify_quota": "",
    "quota_details": {
        "quotas": [],
        "resume": null
    }
}

Felix Fontein

unread,
Apr 26, 2023, 1:21:26 AM4/26/23
to ansible...@googlegroups.com
Hi,

> i was able to successfully create a FileSystem using module which is
> not exist only
> (eg: if nothing there it will create 1 , )
> (eg: if 1 and 2 there it will create 3 , )
> (eg: if 1, 2, 3 there it will create 4 , )
>
> #creating /ifs/cluster_name/MA/DEV/FOUMAD0031301
> #creating /ifs/cluster_name/MA/DEV/FOUMAD0031302
> #creating /ifs/cluster_name/MA/DEV/FOUMAD0031303
>
>
> But i am not able to find the path which was created even with
> register option , it is "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"

That's because the dellemc.powerscale.filesystem module declares `path`
as `no_log=True` in its argument specification:

https://github.com/dell/ansible-powerscale/blob/1.9.0/plugins/modules/filesystem.py#L1565

This tells ansible-core that the value of `path` is a secret that
should not be logged or accidentally returned. If you want this to
change, you need to ask the collection to change that (for example by
creating an issue in https://github.com/dell/ansible-powerscale/issues).


You can wrk around it by re-composing the path manually. Alternatively
you could first create a datastructure (list of dicts) which also
contains the path, and then loop over that to call the
dellemc.powerscale.filesystem module. If you then register the result,
you can get hold of the path with the `item` element of the return
value.

Best regards,
Felix Fontein

javed khan Siddque

unread,
May 1, 2023, 8:25:58 AM5/1/23
to Ansible Project
Thanks ,


Reply all
Reply to author
Forward
0 new messages