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

SCP import fails via CIFS #45

Closed
qwertzlbert opened this issue Apr 29, 2019 · 4 comments
Closed

SCP import fails via CIFS #45

qwertzlbert opened this issue Apr 29, 2019 · 4 comments

Comments

@qwertzlbert
Copy link

qwertzlbert commented Apr 29, 2019

Importing a SCP fails when using a CIFS share. Importing from local works.
Importing via WebGUI works.

Details

System: R7415
iDRAC version: 3.30.30.30
BIOS: 1.7.6

inventory:

all:
  children:
    servers:
      hosts:
        c1-drac:
          baseuri: "10.113.0.46"
        update_share:
        # only smb/cifs is supported by this playbooks atm!
          username: "user1"
          password: "password"
          path: '\\10.113.0.244\firmware'
          catalog: 'opx-lab\BasicDeploymentFirmware_1.00_Catalog.xml'
        deployment: "local"

task:

- name: update System (14G) - upload update-SCP to iDRAC
  when: ansible_facts[baseuri]['SystemInventory']['System'][0]['SystemGeneration'] == "14G Monolithic"
  dellemc_idrac_server_config_profile: 
    command: import
    idrac_ip: "{{ baseuri }}"
    idrac_user: "{{ user }}"
    idrac_pwd: "{{ password }}"
    share_name: "{{ update_share['path'] }}"
    share_user: "{{ update_share['username'] }}"
    share_pwd: "{{ update_share['password'] }}"
    scp_file: "{{ ansible_facts[baseuri]['SystemInventory']['System'][0]['ServiceTag'] }}-scp.xml"
    scp_components: "ALL"
    job_wait: "True"
    shutdown_type: "Forced"
  register: result
  until: result is changed
  retries: 3
  delay: 10
  delegate_to: localhost

Error Message:

FAILED - RETRYING: update System (14G) - upload update-SCP to iDRAC (1 retries left).Result was: {
    "attempts": 3, 
    "changed": false, 
    "invocation": {
        "module_args": {
            "command": "import", 
            "end_host_power_state": "On", 
            "export_format": "XML", 
            "export_use": "Default", 
            "idrac_ip": "10.113.0.46", 
            "idrac_port": 443, 
            "idrac_pwd": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
            "idrac_user": "root", 
            "job_wait": true, 
            "scp_components": "ALL", 
            "scp_file": "90YSGL2-scp.xml", 
            "share_name": "\\\\10.113.0.244\\firmware", 
            "share_pwd": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
            "share_user": "user1", 
            "shutdown_type": "Forced"
        }
    }, 
    "msg": "Failed to import scp.", 
    "retries": 4, 
    "scp_status": {
        "Data": {
            "Message": "returned status code doesn't match with the expected success code", 
            "Status": "Failed", 
            "StatusCode": 400
        }, 
        "Message": "none", 
        "Status": "Failed", 
        "StatusCode": 400, 
        "error": {
            "error": {
                "@Message.ExtendedInfo": [
                    {
                        "Message": "The property Username is a required property and must be included in the request.", 
                        "MessageArgs": [
                            "Username"
                        ], 
                        "MessageArgs@odata.count": 1, 
                        "MessageId": "Base.1.2.PropertyMissing", 
                        "RelatedProperties": [
                            "Username"
                        ], 
                        "RelatedProperties@odata.count": 1, 
                        "Resolution": "Ensure that the property is in the request body and has a valid value and resubmit the request if the operation failed.", 
                        "Severity": "Warning"
                    }
                ], 
                "code": "Base.1.2.GeneralError", 
                "message": "A general error has occurred. See ExtendedInfo for more information"
            }
        }, 
        "file": "\\\\10.113.0.244\\firmware\\90YSGL2-scp.xml", 
        "retval": true
    }
}

Repro Steps

Allways

@qwertzlbert
Copy link
Author

qwertzlbert commented Apr 29, 2019

This bug seems to be originating from a typo in OMSDK.
My pull request there should fix it.
dell/omsdk#5

@qwertzlbert
Copy link
Author

I did further testing and the iDRAC firmware version 3.30.30.30 seems to have changed the expected property from "UserName" to "Username".
I rolled back to iDRAC version 3.21.25.22 for testing now I've got the opposite error:
expected id "UserName" not "Username".

fatal: [c1-drac -> localhost]: FAILED! => {
    "attempts": 3, 
    "changed": false, 
    "invocation": {
        "module_args": {
            "command": "import", 
            "end_host_power_state": "On", 
            "export_format": "XML", 
            "export_use": "Default", 
            "idrac_ip": "10.113.0.46", 
            "idrac_port": 443, 
            "idrac_pwd": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
            "idrac_user": "root", 
            "job_wait": true, 
            "scp_components": "ALL", 
            "scp_file": "90YSGL2-scp.xml", 
            "share_name": "\\\\10.113.0.244\\firmware", 
            "share_pwd": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
            "share_user": "user1", 
            "shutdown_type": "Forced"
        }
    }, 
    "msg": "Failed to import scp.", 
    "scp_status": {
        "Data": {
            "Message": "returned status code doesn't match with the expected success code", 
            "Status": "Failed", 
            "StatusCode": 400
        }, 
        "Message": "none", 
        "Status": "Failed", 
        "StatusCode": 400, 
        "error": {
            "error": {
                "@Message.ExtendedInfo": [
                    {
                        "Message": "The property UserName is a required property and must be included in the request.", 
                        "MessageArgs": [
                            "UserName"
                        ], 
                        "MessageArgs@odata.count": 1, 
                        "MessageId": "Base.1.0.PropertyMissing", 
                        "RelatedProperties": [
                            "UserName"
                        ], 
                        "RelatedProperties@odata.count": 1, 
                        "Resolution": "Ensure that the property is in the request body and has a valid value and resubmit the request if the operation failed.", 
                        "Severity": "Warning"
                    }
                ], 
                "code": "Base.1.0.GeneralError", 
                "message": "A general error has occurred. See ExtendedInfo for more information"
            }
        }, 
        "file": "\\\\10.113.0.244\\firmware\\90YSGL2-scp.xml", 
        "retval": true
    }
}

@anupamaloke
Copy link
Contributor

@qwertzlbert, we are working on this at the moment and planning for a fix soon.

@rajeevarakkal
Copy link
Contributor

@qwertzlbert We have fixed this issue in the latest devel. Closing the issue as of now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants