JSON file boot_table in openbmc-test-automation

Michael Walsh micwalsh at us.ibm.com
Sat Dec 21 06:38:05 AEDT 2019


There are several 'Power on' boot types represented in 
data/boot_table.json.  Let's take the 'REST Power On' as an example:

    "REST Power On": {
        "start": {
            "rest": "^1$",
            "chassis": "^Off$",
            "boot_progress": "^Off|Unspecified$",
            "operating_system": "^Inactive$",
            "host": "^Off$"
        },
        "end": {
            "rest": "^1$",
            "chassis": "^On$",
            "boot_progress": "^FW Progress, Starting OS|OSStart$",
            "operating_system": "^BootComplete$",
            "host": "^Running$",
            "os_ping": "^1$",
            "os_login": "^1$",
            "os_run_cmd": "^1$"
        },
        "bmc_reboot": 0,
        "method_type": "keyword",
        "method": "Initiate Host Boot  wait=${0}",
        "lib_file_path": "state_manager.robot"
    },

The end requirements indicate that the operating_system value must be 
BootComplete.  I've never seen this fail because the operating_system 
state was "Standby".  Unless you foresee a change coming that necessitate 
this, I'd be inclined to leave it as is.  As the saying goes "If it ain't 
broke, don't fix it".


Michael Walsh
IBM Dept 3AL
Rochester, MN
micwalsh at us.ibm.com




From:   "Tony Lee (李文富)" <Tony.Lee at quantatw.com>
To:     "micwalsh at us.ibm.com" <micwalsh at us.ibm.com>
Cc:     "openbmc at lists.ozlabs.org" <openbmc at lists.ozlabs.org>
Date:   12/19/2019 09:24 PM
Subject:        [EXTERNAL] JSON file boot_table in openbmc-test-automation



Hi Michael,

Refer to the method readHostState() in repo phosphor-logging. The 
description 
"For host on, looks for the values of 'BootComplete' or 'Standby'
in the OperatingSystemState property ..."
So, I'm wonder that if the value of the key "operating_system" can be
"^BootComplete|Standby$" for action "Power On" in the boot_table.json?

Thanks
Best Regards,
Tony





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191220/191c8408/attachment-0001.htm>


More information about the openbmc mailing list