dell / redfish-ansible-module

Ansible modules for Out-Of-Band Controllers using Redfish APIs
GNU General Public License v3.0
197 stars 80 forks source link

404 on Dell T130 (idrac_redfish_config) #114

Closed tholeb closed 2 years ago

tholeb commented 2 years ago

Hello, i'm writing this issue because i'm not sure what to do, I have the same problem as in issue #88 (404 cannot GET to '/redfish/v1/Managers/iDRAC.Embedded.1/Attributes').

From what I read it seems that the issue is caused because the server I use is a 13G(Dell T130) right ? But what can I do to apply Manager's settings with the redfish module (I'm doing it with the uri module and it works well, but i'm not a fan of it) ?

Here is my Ansible --version :

ansible 2.9.10
  config file = /home/user/Ambox/.ansible.cfg
  configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

Here is a sample of what I want to apply to Managers :

- name: Apply config
  idrac_redfish_config:
    category: Manager
    command: SetManagerAttributes
    manager_attribute_name: "{{ item.name }}"
    manager_attribute_value: "{{ item.value }}"
    baseuri: "{{ iDRAC_ip }}"
    username: "{{ username }}"
    password: "{{ password }}"
  loop:
    - name: "IPv4.1.Enable"
      value: "Enabled"
    - name: "NIC.1.VLanEnabled"
      value: "Disabled"
    - name: "NIC.1.VLanID"
      value: 1

Thank you.

anupamaloke commented 2 years ago

@tholeb, iDRAC8 (13G) servers don't have support for manager attributes configuration using Redfish. You will have to use either SCP, or WS-Man APIs or racadm commands using Ansible to update these attributes on iDRAC8.

My recommendation would be to use idrac_server_config_profile module to import a SCP file. I guess you are already using this approach based on the issue #405 that you had raised in the another repo.

I will close this issue here and we can continue the discussion in the other repo.