Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing dellemc_configure_idrac_users twice fails the second attempt #100

Closed
mikeletux opened this issue Feb 10, 2020 · 7 comments
Closed
Labels
area/idrac idrac modules/roles type/bug Something isn't working

Comments

@mikeletux
Copy link

Hello there,

I've been experiencing issues running the dellemc_configure_idrac_users module.
Turns out that if you use it for creating a user that does not exist, it works, but if you run the exact same thing twice, it gives an error. My conclusion on this is that the module is not idempotent.
I use the parameter "action" with "create" value.

  • name: Create the iDRAC users
    dellemc_configure_idrac_users:
    idrac_ip: "{{ idrac_ip }}"
    idrac_user: "{{ idrac_user }}"
    idrac_password: "{{ idrac_password }}"
    share_name: "{{ share_name }}"
    share_mnt: "{{ share_mnt }}"
    action: "create"
    user_name: "{{ user }}"
    user_password: "{{ password }}"
    privilege_users: "Administrator"

Can you please check this?
Many thanks.

/Miguel

@thizmo
Copy link

thizmo commented Feb 11, 2020

I see the same problem here.
It fails on the second run. Then i am not able to log in any more.

@jagadeeshnv
Copy link
Contributor

Thank you for reporting @mikeletux and @thizmo. We will look into it and do the needful

@rajeevarakkal rajeevarakkal added type/bug Something isn't working area/idrac idrac modules/roles labels Jul 28, 2020
@tsquillario
Copy link

The dellemc_configure_idrac_users module does not adhere to Ansible best practices. It should use a 'state' parameter instead of 'action' and accept 'present' or 'absent'. Then it should detect if this users already exists and modify it accordingly.

@tsquillario
Copy link

This module also needs rewritten to remove the dependency on the liaison share. I set 'share_name' to /tmp and I get "Unable to export scp, exception occurred"

@jagadeeshnv
Copy link
Contributor

@tsquillario We have addressed this issue with the new module "idrac_user" Kindly verify and let us know

@jagadeeshnv
Copy link
Contributor

@tsquillario Can you please verify and close this issue?

@jagadeeshnv
Copy link
Contributor

@tsquillario This has been fixed module 'idrac_user' as stated above. Hence closing this issue. Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/idrac idrac modules/roles type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants