Skip to content

Merge CSM SMD head to OpenCHAMI #60

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

Merged
merged 49 commits into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
322b166
Fix case for the Arch enum in the swagger spec
Aug 17, 2023
116a7ce
Merge pull request #115 from Cray-HPE/CASMHMS-6068
alvarez3-hpe Aug 17, 2023
1c440d8
Fix HSN NIC numbering
Aug 21, 2023
a2c572c
Merge pull request #118 from Cray-HPE/CASMTRIAGE-5914_master
alvarez3-hpe Aug 21, 2023
633bb10
Update go.mod go.sum
Aug 30, 2023
6fc7089
Update tests
Aug 30, 2023
fcbacb0
Checkin
Aug 30, 2023
753f4fb
Bump version to 2.12.0
Aug 30, 2023
1d270bc
Merge pull request #120 from Cray-HPE/CASMHMS-6073-take2
rsjostrand-hpe Aug 30, 2023
528bff3
Pull in hms-xname with VirtualNode support
Aug 30, 2023
b2df3f3
Grab component defaults from SLS/NodeMap for VirtualNodes
Aug 30, 2023
a967f63
Update swagger
Aug 31, 2023
a35d1ef
Updated NodeMap tests for VirtualNodes
Aug 31, 2023
0caca08
Generate bogus NIDs properly for VirtualNodes
Sep 1, 2023
d146d66
Add Node/VirtualNode tests for grabbing NID/Role/SubRole information …
Sep 5, 2023
f403e36
Write tests for Node/VirtualNode interactions with NodeMaps
Sep 5, 2023
03284f4
Fixup tests
Sep 5, 2023
c0e6fdc
Update version
Sep 5, 2023
d1b956e
Use stable build of SLS
Sep 5, 2023
d9d6eec
Update license headers
Sep 5, 2023
05d131f
Merge pull request #121 from Cray-HPE/CASMHMS-6073-part2
rsjostrand-hpe Sep 6, 2023
ab928a2
Change FRU history to create 'Detected' events after 'Removed' events
Sep 26, 2023
4e49d6d
Merge pull request #122 from Cray-HPE/CASMHMS-6096
alvarez3-hpe Sep 27, 2023
fa223bd
Moved VirtualNode up in the list in the swagger docs (#126)
shunr-hpe Oct 3, 2023
b96ddc2
Add ability to determine arch for paradise nodes
mjendrysik-hpe Mar 14, 2024
4623b33
Handle alternative Paradise system model string
jwlv Mar 19, 2024
c20c573
Discover Paradise node MACs using correct redfish endpoint
jwlv Apr 18, 2024
665f625
Paradise discovery enhancements (including fixed power capping)
jwlv May 3, 2024
418670d
Fixed tavern tests to allow CDUMgmtSwitch component endpoints (#138)
shunr-hpe May 6, 2024
518bc67
Updated tavern tests to handle Foxconn Paradise ethernet interface names
jwlv May 6, 2024
16add87
Pick appropriate chassis to act as node enclosure for Paradise
jwlv May 15, 2024
8814c23
Add 'Zone' chassis type to tavern test
jwlv May 15, 2024
5b99946
CASMHMS-5838: Fix bugs that break component role/subrole bulk updates
mharding-hpe May 28, 2024
ec3b7bb
Merge pull request #149 from Cray-HPE/casmhms-5838-csm-1.6
mharding-hpe May 28, 2024
f0148a2
Added support for Foxconn Paradise power events (#150)
shunr-hpe May 31, 2024
ae51474
Re-discover Power data in the system endpoint when the node power on …
jwlv Jun 7, 2024
970d121
Paradise: Fixed functional hardware test to pass processor types of "…
jwlv Jun 17, 2024
17f8b52
Paradise: Adapted SMD to BMC fw changing the behavior of the /Power e…
jwlv Jul 18, 2024
6abbd27
Parse Managers .Actions correctly for Gigabyte and Paradise platforms…
jwlv Jul 25, 2024
b4933d6
Fix tavern functional test for new eth int name and fix CT/Unit test …
jwlv Sep 20, 2024
ba99da3
Resolved various scaling/resource issues in SMD (#165)
jwlv Dec 12, 2024
424abad
Added support for ppprof builds (#166)
jwlv Jan 9, 2025
0781f83
Added DiscoveryStarted as an allowed RedfishEndpoint state in the tes…
shunr-hpe Jan 13, 2025
41ff570
Update image and module dependencies (#168)
jwlv Jan 24, 2025
cda9250
Update module dependencies related to vault and hms-certs (#169)
jwlv Mar 4, 2025
cb3553c
Updated test_components test to allow additional flag values (#170)
mbuchmann-hpe Mar 7, 2025
c04b03f
Fixed false positive ComponentEndpoints test failure (#173)
jwlv Apr 14, 2025
5764136
Update modules to pull in fixes to resource issues in HMS modules (#174)
jwlv Apr 18, 2025
8ba0c84
Merge remote-tracking branch 'csm/master' into csm-sync
shunr-hpe Apr 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ dist/
/smd-loader
/smd-loader-native
/smd-native

/pprof
25 changes: 25 additions & 0 deletions Dockerfile.pprof
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM chainguard/wolfi-base:latest

RUN apk add --no-cache tini

# Include curl in the final image.
RUN set -ex \
&& apk update \
&& apk add --no-cache curl tini \
&& rm -rf /var/cache/apk/* \
&& rm -rf /tmp/*

COPY pprof/smd /
COPY pprof/smd-loader /
COPY pprof/smd-init /
RUN mkdir /persistent_migrations
COPY migrations/* /persistent_migrations/

EXPOSE 27779

# nobody 65534:65534
USER 65534:65534

CMD [ "/smd" ]

ENTRYPOINT [ "/sbin/tini", "--" ]
28 changes: 20 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021-2022,2025 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -41,7 +41,7 @@ LDFLAGS := -ldflags "-X main.GitCommit=$(COMMIT) \
-X 'main.GoVersion=$(GO_VERSION)' \
-X 'main.BuildUser=$(BUILD_USER)'"

all: image unittest ct snyk ct_image
all: image image-pprof unittest ct snyk ct_image

.PHONY : all image unittest snyk ct ct_image binaries coverage docker

Expand All @@ -62,29 +62,41 @@ ct_image:

binaries: smd smd-init smd-loader native



smd: cmd/smd/*.go
GOOS=linux GOARCH=amd64 go build -o smd -v -tags musl $(LDFLAGS) ./cmd/smd

smd-init: cmd/smd-init/*.go
GOOS=linux GOARCH=amd64 go build -o smd-init -v -tags musl $(LDFLAGS) ./cmd/smd-init

smd-loader: cmd/smd-loader/*.go
GOOS=linux GOARCH=amd64 go build -o smd-loader -v -tags musl $(LDFLAGS) ./cmd/smd-loader


native:
go build -o smd-init-native -v -tags musl $(LDFLAGS) ./cmd/smd-init
go build -o smd-native -v -tags musl $(LDFLAGS) ./cmd/smd
go build -o smd-loader-native -v -tags musl $(LDFLAGS) ./cmd/smd-loader

coverage:
go test -cover -v -tags musl ./cmd/* ./internal/* ./pkg/*

binaries-pprof: pprof/smd pprof/smd-init pprof/smd-loader

pprof/smd: cmd/smd/*.go
GOOS=linux GOARCH=amd64 go build -o pprof/smd -v -tags "musl pprof" $(LDFLAGS) ./cmd/smd

smd-loader: cmd/smd-loader/*.go
GOOS=linux GOARCH=amd64 go build -o smd-loader -v -tags musl $(LDFLAGS) ./cmd/smd-loader
pprof/smd-init: cmd/smd-init/*.go
GOOS=linux GOARCH=amd64 go build -o pprof/smd-init -v -tags "musl pprof" $(LDFLAGS) ./cmd/smd-init

coverage:
go test -cover -v -tags musl ./cmd/* ./internal/* ./pkg/*
pprof/smd-loader: cmd/smd-loader/*.go
GOOS=linux GOARCH=amd64 go build -o pprof/smd-loader -v -tags "musl pprof" $(LDFLAGS) ./cmd/smd-loader

image-pprof:
docker build ${NO_CACHE} --pull ${DOCKER_ARGS} --tag '${NAME}-pprof:${VERSION}' -f Dockerfile.pprof .

clean:
rm -f smd smd-init smd-init-native smd-loader smd-loader-native smd-native
rm -rf pprof
go clean -testcache
go clean -cache
go clean -modcache
Expand Down
5 changes: 4 additions & 1 deletion api/swagger_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,7 @@ paths:
- MgmtHLSwitch
- CDUMgmtSwitch
- Node
- VirtualNode
- Processor
- Drive
- StorageGroup
Expand Down Expand Up @@ -11869,6 +11870,7 @@ definitions:
- MgmtHLSwitch
- CDUMgmtSwitch
- Node
- VirtualNode
- Processor
- Drive
- StorageGroup
Expand Down Expand Up @@ -12157,6 +12159,7 @@ parameters:
- MgmtHLSwitch
- CDUMgmtSwitch
- Node
- VirtualNode
- Processor
- Drive
- StorageGroup
Expand Down Expand Up @@ -12272,7 +12275,7 @@ parameters:
- X86
- ARM
- Other
- Unknown
- UNKNOWN
compClassParam:
name: class
in: query
Expand Down
4 changes: 2 additions & 2 deletions cmd/smd-loader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ import (
"net/http"
"os"
"os/signal"
"github.com/Cray-HPE/hms-base/v2"
hmshttp "github.com/Cray-HPE/hms-go-http-lib"
"syscall"
"time"

base "github.com/Cray-HPE/hms-base"
hmshttp "github.com/Cray-HPE/hms-go-http-lib"
"github.com/hashicorp/go-retryablehttp"
)

Expand Down
Loading
Loading