dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
335 stars 163 forks source link

503 on SCP import #405

Closed tholeb closed 2 years ago

tholeb commented 2 years ago
Question

Hello, i'm working on a DELL T130 (PLC7) iDRAC/8 server, and I try to import a SCP file to the server through Ansible but in vain. When I import the file (locally), I always receive a status 503 (Service Unavailable). I tried using cURL in case the task's attributes were incorrect, but I have the same error.

I can confirm that the /tmp/dell_model.xml is present (if not, another error is triggered) and valid (I can import it with racadm).

Here is my ansible tasks:

- name: Dell - Upload la configuration du {{ model }}
  template: 
    src: "dell_{{ model }}.xml.j2"
    dest: "/tmp/dell_{{ model }}.xml"
    owner: root
    group: root
    mode: "644"
  no_log: true

- name: Dell - Importe la configuration XML
  idrac_server_config_profile:
    idrac_ip: "{{ iDRAC_ip }}"
    idrac_user: "{{ username }}"
    idrac_password: "{{ vlt_dell_setup_passwd }}"
    command: "import"
    share_name: "/tmp"
    scp_file: "dell_{{ model }}.xml"
    scp_components: "IDRAC"
    job_wait: true

Am I doing something wrong ? Am I missing something ? Is the server too old ?

Details

Server: T130 CentOS 7 - iDRAC/8

My Ansible (host) version:

ansible 2.9.10
  config file = /home/ansible-ambx/Ambox/.ansible.cfg
  configured module search path = [u'/home/ansible-ambx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/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)]
anupamaloke commented 2 years ago

@tholeb, you need iDRAC Enterprise license to perform import/export SCP operation. Could you please check whether you have iDRAC Enterprise license deployed on your iDRAC?

tholeb commented 2 years ago

Hello, thank you for your answer, I wasn't aware that we needed to have an Enterprise license to import the SCP (I have the "basic" plan), and there is nothing about license in the Ansible's idrac_server_config_profile page. Also, it seems there is a mistake on that page, it says that the host needs the omsdk library, but if the library isn't on the remote server, the task fails with a Dell EMC OMSDK library is required for this module. Is there a way for me to edit the documentation, the github link in the end doesn't work (404) ? EDIT: Found it!

anupamaloke commented 2 years ago

@tholeb, I checked internally and for iDRAC 8, Import SCP is supported for both iDRAC Express and Enterprise license.

tholeb commented 2 years ago

@anupamaloke It seems that export SCP is available via any plan, I can export on a T130 with a "Basic" plan.

anupamaloke commented 2 years ago

@tholeb, you are correct. Only import operation requires an Express or Enterprise license.