forked from openbmc/bmcweb
-
Notifications
You must be signed in to change notification settings - Fork 0
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
systems.hpp - initial multi-host implementation #1
Open
mox669
wants to merge
4
commits into
master
Choose a base branch
from
dev/multi-host-impl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mox669
force-pushed
the
dev/multi-host-impl
branch
2 times, most recently
from
February 27, 2024 14:55
2b0ba60
to
af944a1
Compare
pointbazaar
reviewed
Feb 27, 2024
mox669
force-pushed
the
dev/multi-host-impl
branch
from
March 1, 2024 12:37
af944a1
to
ea01c9b
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
4 times, most recently
from
April 17, 2024 12:58
28045c1
to
d5b9425
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
from
April 24, 2024 18:01
d5b9425
to
d60c35a
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
10 times, most recently
from
May 15, 2024 12:35
2e50134
to
c885511
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
9 times, most recently
from
May 16, 2024 16:28
411fc52
to
54989b9
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
6 times, most recently
from
August 22, 2024 13:36
a532bc2
to
798f21a
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
4 times, most recently
from
November 6, 2024 19:05
eb9a959
to
68642c4
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
7 times, most recently
from
November 23, 2024 17:16
b109c3d
to
eafb178
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
6 times, most recently
from
November 30, 2024 20:42
8244bda
to
cc26456
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
from
December 6, 2024 12:38
65014a9
to
caf21aa
Compare
mox669
force-pushed
the
dev/multi-host-impl
branch
from
December 14, 2024 15:01
caf21aa
to
b3bde70
Compare
This change introduces a new a function similar to getCollectionMembers but specific to computerSystem discovery. Since more functionality will be added soon to support multi host redfish and in general request handling with the long term goal not using hardcoded URIs anymore, a new utility header for systems.hpp is being introduced in this patch that will hold the rest of the incoming definitions. getSystemCollectionMembers supports multi host platforms like yosemite4 or bletchley. Currently we have to distinguish between single and multi host platforms and unfortunately handle both separate from each other, thus cannot use the generic getCollectionMembers from collection.hpp. However, this should change sometime in the future. It should be mentioned, that functionalitywise the newly introduced function shares almost all of the code used in getCollectionMembers from collection.hpp. Only simplification has been done, since this function only serves a single usecase. Testing: TBD (currently blocked by ManagedHost interface missing on single-host) Change-Id: I82d59487b7c17b22cd638acd8f687f31c96ca156 Signed-off-by: Oliver Brewka <[email protected]>
Add support for multi-host for the majority of GET, POST and PATCH requests under the /redfish/v1/Systems/{computerSystemId}/ redfish resource. A complete listing can be found here: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/76118 Testing: TBD (currently blocked by ManagedHost interface missing on single-host) Change-Id: I67c17c3dd7a354fa9a2ebbc56d4def7a7e788909 Signed-off-by: Oliver Brewka <[email protected]>
Add support for multi-host to get a valid collection upon requesting /redfish/v1/Systems/{computerSystemId}/LogServices/ redfish resource. Testing: TBD Change-Id: Ic01cdfb18e1c219bf1fc2e0343a45d8ca5d4fa0a Signed-off-by: Oliver Brewka <[email protected]>
Add support for multi-host for all GET and POST method requests under /redfish/v1/Systems/{computerSystemId}/LogServices/PostCodes/ redfish resource. Testing: TBD (currently blocked by ManagedHost interface missing on single host) Change-Id: Ie04cb160a1f2756a04be68e6675a6cecc5f09117 Signed-off-by: Oliver Brewka <[email protected]>
mox669
force-pushed
the
dev/multi-host-impl
branch
from
December 16, 2024 16:21
b3bde70
to
70fa313
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BMCWEB multi-host implementation
In order to support class 1 multi-host server configurations (i.e. yosemite v3, 1 BMC, N hosts), this change enables bmcweb to gather information on multiple available hosts and handle the information accordingly.
The implementation is based on an already taken - and now abondened - effort from earlier this year as can be seen on gerrit:
The current changes are only a subset of the patches to come, to fully implement multi host support.
Reviewing
The bmcweb devs wrote a document on common errors. Since I am new to cpp, I might misunderstood or unintentionally ignored one or two of these common errors. Might be good to have a look at the document and have it ready for reviewing.
Testing
NOTE: real hardware testing hasn't been performed yet!
Changes were tested in QEMU with the romulus image by IBM. After successful compilation of bmcweb on local machine,
the resulting patch file has been appended to the yocto build system in
meta-ibm/meta-romulus/recipes-phosphor/interfaces/bmcweb
.In general, all Redfish routes touched by the change need to be tested - for both - single-host- and multi-host-configuration to ensure that we don't break the single-host configuration. This means, we have to test the implementation twice (enabling/ disabling -Dexperimental-redfish-multi-computer-system in bmcweb_%.bbappend).
In order to automate this process to some extend, the
scripts/test-all-routes.sh
curls every route for you, and stores the response in a file that you have to specify as argument to the script. Afterwards you have to compare the response to the expected output:Expected response
Expected response single host
Expected response multi host
Response of local testing in QEMU
Response single host
GET /redfish/v1/Systems
GET /redfish/v1/Systems/system
GET /redfish/v1/Systems/system0
GET /redfish/v1/Systems/system1
GET /redfish/v/fileSystems/sysem0
GET /redfish/v1/Systems/foobar
GET /redfish/v1/Systems/system/ResetActionInfo
GET /redfish/v1/Systems/system0/ResetActionInfo
GET /redfish/v1/Systems/system1/ResetActionInfo
GET /redfish/v1/Systems/sysem0/ResetActionInfo
GET /redfish/v1/Systems/foobar/ResetActionInfo
POST /redfish/v1/Systems/system/Actions/ComputerSystem.Reset
POST /redfish/v1/Systems/system0/Actions/ComputerSystem.Reset
POST /redfish/v1/Systems/system1/Actions/ComputerSystem.Reset
POST /redfish/v1/Systems/sysem0/Actions/ComputerSystem.Reset
POST /redfish/v1/Systems/foobar/Actions/ComputerSystem.Reset
Response multi host
GET /redfish/v1/SystemsGET /redfish/v1/Systems/system
GET /redfish/v1/Systems/system0
GET /redfish/v1/Systems/system1
GET /redfish/v/fileSystems/sysem0
GET /redfish/v1/Systems/foobar
GET /redfish/v1/Systems/system0/ResetActionInfo
GET /redfish/v1/Systems/system1/ResetActionInfo
GET /redfish/v1/Systems/sysem0/ResetActionInfo
GET /redfish/v1/Systems/foobar/ResetActionInfo
POST /redfish/v1/Systems/system/Actions/ComputerSystem.Reset
POST /redfish/v1/Systems/system0/Actions/ComputerSystem.Reset
POST /redfish/v1/Systems/system1/Actions/ComputerSystem.Reset
POST /redfish/v1/Systems/sysem0/Actions/ComputerSystem.Reset
POST /redfish/v1/Systems/foobar/Actions/ComputerSystem.Reset