API restore_bios_config Error during validation with iRMC Firmware 8.43F

Bug #1693413 reported by Tuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-scciclient
Fix Released
Undecided
Tuan

Bug Description

The PRIMERGY TX2540 M1 will raise "SCCIClientError: Failed to RESTORE bios config" when calling function restore_bios_config to setup bios config. This is log of Error:

---------------------------------------------------------------------------
SCCIClientError Traceback (most recent call last)
<ipython-input-1-08814122415b> in <module>()
     11
     12 bios_config_data = {'Server': {'SystemConfig': {'BiosConfig': {'SecurityConfig': {'SecureBootControlEnabled': True}}}}}
---> 13 irmc.elcm.restore_bios_config(irmc_info, bios_config_data)

/usr/local/lib/python2.7/dist-packages/scciclient/irmc/elcm.pyc in restore_bios_config(irmc_info, bios_config)
    676 operation='RESTORE',
    677 session_id=session['Session']['Id'],
--> 678 session_timeout=session_timeout)

/usr/local/lib/python2.7/dist-packages/scciclient/irmc/elcm.pyc in _process_session_bios_config(irmc_info, operation, session_id, session_timeout)
    565 'Session log is "%(session_log)s".' %
    566 {'operation': operation,
--> 567 'session_log': jsonutils.dumps(session_log)}))
    568
    569 else:

SCCIClientError: Failed to RESTORE bios config. Session log is "{"SessionLog": {"Tag": "", "WorkSequence": "applyProfile", "Id": 1, "Entries": {"Entry": [{"@date": "2017/05/24 09:10:27", "#text": "CreateSession: Session 'applyProfile' created with id 1"}, {"@date": "2017/05/24 09:10:27", "#text": "AttachWorkSequence: Attached work sequence 'applyProfile' to session 1"}, {"@date": "2017/05/24 09:11:02", "#text": "LCMScheduler: Launch ApplyProfileParameters"}, {"@date": "2017/05/24 09:11:02", "#text": "ValidateProfile: Error during validation - not supported sub profile 'OSInstallation' in 'SystemConfig'"}, {"@date": "2017/05/24 09:11:02", "#text": "LCMScheduler: Terminated processing of linked activity list due to execution error"}, {"@date": "2017/05/24 09:11:02", "#text": "LCMScheduler: LCM object is being destroyed as automatic termination was configured"}, {"@date": "2017/05/24 09:11:02", "#text": "TerminateSession: 'applyProfile' is being terminated"}]}}}".

The status of RestAPI response is "Error during validation - not supported sub profile 'OSInstallation'" indicates that the target resource does not supported sub profile 'OSInstallation' in with iRMC Firmware 8.43F.

Revision history for this message
Tuan (tuanla) wrote :

Please review this patch Remove Workaround add sub-profiles IrmcConfig and OSInstallation
https://review.openstack.org/#/c/467886/

Changed in python-scciclient:
assignee: nobody → Tuan (tuanla)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-scciclient (master)

Reviewed: https://review.openstack.org/467886
Committed: https://git.openstack.org/cgit/openstack/python-scciclient/commit/?id=c0fb69140265b79525ccd0f90a98d32f857127f8
Submitter: Jenkins
Branch: master

commit c0fb69140265b79525ccd0f90a98d32f857127f8
Author: Luong Anh Tuan <email address hidden>
Date: Thu May 25 18:44:37 2017 +0700

    Remove Workaround add sub-profiles IrmcConfig and OSInstallation

    The patch remove workaround add contain the sub-profiles IrmcConfig
    and OSInstallation for support old iRMC firmware version 7.82F. The
    workaround added two sub-profiles with empty value like:
      input_data['Server']['SystemConfig']['IrmcConfig'] = {}
      input_data['Server']['SystemConfig']['OSInstallation'] = {}
    On new version of iRMC firmware we should not to add two sub-profiles
    with empty value. This path success when test on iRMC firmware
    version 8.43F.

    Closes-bug: #1693413
    Co-Authored-By: Dao Cong Tien <email address hidden>

    Change-Id: Ia15dfa92e191ab5ea90710c4502d66a172007927

Changed in python-scciclient:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.