UNSOLVED

gdny

updated

3 years ago

Closed

G

gdny

1 Rookie

41 Posts

0

372

April 12th, 2023 06:00

Ansible Powerscale accesszone Auth Providers

Hi,

I'm trying to reorder my Auth Providers in the  dellemc.powerscale.accesszone module.

However, no matter what I do I cannot reorder them.

I also tried to "remove" the Local one and them put them back one at a time, but the Local provider will not remove.

How can I accomplish this?

thanks.

glenn.

  • gdny

    1 Rookie

    41 Posts

    253

    0

    Posted April 12th, 2023 07:00

    I should also say that the output after trying to remove local shows that it was Actually removed:

    "skeleton_directory": "/usr/sh********re/skel",
    "system": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
    "system_provider": "ls********-file-provider:System",
    "user_mapping_rules": [],
     

    As you can see, it only shows 1 provider and that one is System

    But when I look in the GUI it shows 

    Annotation 2023-04-12 103314.png

    So is this really a GUI problem??

    thanks.

    glenn.

  • gdny

    1 Rookie

    41 Posts

    254

    0

    Posted April 12th, 2023 07:00

    This is what I did.  I am able to remove the System one.  Just not the local.
    Here is my task:
     
    - name: Step 1 - Create New Access Zone
      dellemc.powerscale.accesszone:
        onefs_host: "{{ inventory_hostname }}"
        port_no: "{{ isilon_port }}"
        verify_ssl: false
        api_user: "{{ isilon_user }}"
        api_password: "{{ isilon_password }}"
        az_name: "{{ team.name }}"
        path: "{{ prefix }}/{{ team.name }}"
        groupnet: "{{ groupnet }}"
        create_path: "{{ create_path }}"
        provider_state: remove
        auth_providers: "{{ team.providers }}"
        state: "present"
     
    Where team.providers is set to:
      team:
        providers:
        - provider_type: file
          provider_name: System
        - provider_type: local
          provider_name: testteam1
     
  • jennifer_john

    1 Rookie

    79 Posts

    257

    0

    Posted April 12th, 2023 07:00

    Hi @gdny 

    To remove the auth provider, the provider_state need to be specified as remove (eg below). Could you please share the playbook which you are using to remove the provider? 


    dellemc.powerscale.accesszone:
      >> connection params
      az_name: "{{access zone}}"
      provider_state: "remove"
      auth_providers:
         - provider_name: "{{name}}"
           provider_type: "{{type}}"
      state: "present"

    Thanks,

    Jennifer

  • gdny

    1 Rookie

    41 Posts

    253

    0

    Posted April 12th, 2023 08:00

    Its not working but maybe a mistake in my last post showing you the wrong output.
    I should have shown this:

                        "auth_providers": [
                            "ls********-file-provider:System",
                            "ls********-loc********l-provider:testte********m1"
                        ],
     

    This is what it shows when I try to delete Local.  Please verify that this is what you are getting as well.

    I tried this with the GUI and even though it lets you delete, and says it worked, when you go back in it shows that its not deleted.  So this seems to be a System problem and not an Ansible issue.

    However, I don't care so much because I'm just looking to re-order and it does seem to move it to the bottom which is all I need right now.

     

  • jennifer_john

    1 Rookie

    79 Posts

    237

    0

    Posted April 13th, 2023 04:00

    Hi @gdny 

    Yes you are right, the local provider gets created by default and cannot be removed from the access zone. 

    Thanks,

    Jennifer

  • gdny

    1 Rookie

    41 Posts

    235

    0

    Posted April 13th, 2023 06:00

    Thanks @jennifer_john.
    So what is the preferred method for Arranging the order of Auth Providers?

    The way I do it by trying to "remove" the Local one.  But I have to assume there is a better way.

    thanks.

    glenn. 

  • jennifer_john

    1 Rookie

    79 Posts

    229

    0

    Posted April 13th, 2023 11:00

    Hi @gdny 

    Currently the module does not support arranging/ specifying the order of auth providers. The local provider is added by default and specifying other providers takes precedence over it. We will have a look on implementation of specifying the order through playbook.

     

    Thanks,

    Jennifer