Skip to content

Releases: metal-toolbox/flasher

v1.0.1

02 Feb 13:46
Compare
Choose a tag to compare

Changelog

  • c7fbff5 Go: update bmclib to v2.2.1
  • c5786c7 cmd/export: update command that exports the statemachine docs
  • 253d3f0 install: update install command to use internal task runner
  • 388d981 runner: fix execution order with struct slice instead of map
  • 4dfc36f runner: runner initializes and runs tasks for flasher
  • 6997f2b statemachine: purge task statemachine runner
  • c9f62ac worker: fix up to use the internal task runner
  • aeff50c worker: purge debug prints

v1.0.0

07 Dec 09:36
Compare
Choose a tag to compare

Changelog

  • 578aebc Adapt mock for new parameter
  • ecc737b Add parameter to bypass Open on FirmwareTaskStatus
  • 4d0502f FirmwareTaskStatus(): remove unused bool parameter to skip bmc session Open
  • 6189492 Install uber's mockgen in make gen-mock
  • 4612e68 Need to downgrade rivets to take dev version
  • 7b55d25 Update go modules
  • 69f7a1a Update go modules
  • 594b36b action_handlers: update StatusRecord with status while polling
  • 7efd0a1 adds the install command
  • 5f8a08f app: define the cli app kind for when flasher install is invoked via CLI
  • 2d9f237 cap status history at last 5 entries (#109)
  • 886220c cmd/export: use FirmwareInstallSteps to generate docs
  • d02ed94 cmd/install: Add a --plan-only flag to print the firmware install plan
  • c9f107e cmd/install: a few fixes based on feedback
  • f4cdbd7 cmd/install: add --force flag to skip checking install versions
  • 17888d2 cmd/install: fix up force install param
  • e1660db cmd/install: include firmware vendor, model parameters required for firmware install
  • 394754a cmd/install: listen for ctrl+c
  • 35690a0 fix up task run, IP parse
  • ad2f8fd fix(deps): update module github.com/nats-io/nats-server/v2 to v2.10.4 [security]
  • 62be8df fixtures/bmc: replaced by gomock
  • 6e30158 fixtures/mock: make gen-mocks
  • 5e021a8 go: mod tidy
  • f8d97d5 go: pin bmclib to version with ASRR firmware update support
  • f4bdef9 go: update bmclib and other deps
  • 2a43a6c go: update bmclib dep to include bmc reset support for Dell, OpenBMC, SMC
  • b6bfb74 go: update bmclib for openbmc support
  • 6564c52 go: update deps to latest, pin to bmclib v2.2.0
  • aef181c gomock: move to go.uber.org/mock since https://github.com/golang/mock is deprecated
  • fc103de install/task_handler: update plan method to use FirmawreInstallSteps
  • 8d3b66e install/taskhandler: make linter happy
  • 25c7f0a install: fix up linter comments
  • 104efcd install: validate update file exists
  • fc79d0f model/DeviceQueryor: define the new interface methods
  • a5a8aa7 model/DeviceQueryor: update interface for newer firmware methods
  • 14e10ad model/DeviceQueryor: use go generate for mock
  • 09b0f72 model/component: BySlug to return BIOS, BMC components as is when found
  • d005f5a model/task: declare parameters for BMC resets
  • 2c28261 model/task: update comment and add the FirmwareInstallStep field
  • fac7879 model/task: updated boolean variable name
  • 97fcd3c outofband/BmcResetParams: Add helper method to resolve BMC reset parameters
  • 2580861 outofband/action handlers: update for newer handlers
  • 31a08f8 outofband/action: update tests for newer interface
  • c14c89d outofband/action_handlers: add a smaller powerCycleBMC() method for reuse
  • d2543a9 outofband/action_handlers: checkFirmwareInstall method returns errors only when firmware is equal
  • c6e1b02 outofband/action_handlers: pollFirmwareTaskStatus to use updated consts, rework
  • 1d39500 outofband/action_handlers: use newer bmclib upload and initiate firmware install method
  • 35412c6 outofband/actions: Add a Remove() method on the Transitions type
  • 0bf8989 outofband/actions: composeTransitions() to accept a bmc reset bool parameter
  • 817059f outofband/actions: purge postInstallResetBMC transition
  • be3f364 outofband/actions: resetDevice is run only if host indicates it requires a powercycle
  • 81efbdf outofband/actions: rework transitions
  • 1ffd534 outofband/actions: when required reset BMC during polling
  • b584eaa outofband/bmc: bmclibv2 is now main, purge trace spans added into bmclib
  • 66279d7 outofband/bmc: pin bmclib provider and reinit bmclib client on disconnect
  • 781b880 outofband/bmc_helper: check error on method return
  • 2e98a50 outofband/sessionActive(): bubble up bmcliberrs.ErrBMCUpdating error
  • b7b92b3 outofband: invert test based on changes to method
  • 1ac12d1 outofband: rework status poller method
  • dd39923 statemachine/actions: removes redundant Action Success, Failure Transitions and handlers
  • afc66b6 update docs to reflect changes
  • bc60ab8 worker/task_handler tests: update comments to reflect test case
  • 1b7ac72 worker: bmc resets to be done only for the first action when required
  • d8ec55d worker: initialize device queryor earlier, invoke FirmwareInstallSteps

v0.2.7

23 Oct 15:48
Compare
Choose a tag to compare

Changelog

  • 61f522b Task.Status to hold records of status updates
  • 81fae82 Task/StatusRecord: change method on type String() -> MustMarshal() json.RawMessage
  • 9e81160 go: update bmclib to current
  • f18a169 go: update deps
  • 6444c93 go: update rivets
  • 008ad8f outofband/powerOnDevice: don't fail on host power status in subsequent actions
  • 33d1de8 outofband: host required to be powered off based on task parameter
  • cc7c706 task/StatusRecord: add tests
  • cc16703 worker: log final action bool

v0.2.6

18 Oct 10:19
7e116de
Compare
Choose a tag to compare

Changelog

  • 7e116de Adding conditionKind values to traces (#91)
  • 8b8ecb6 statemachine/actions: a few more logging tweaks
  • bf99013 statemachine/actions: support conditional faults in action handlers
  • a42b9ff statemachine/actions: update logging and invert error check for readability
  • 4283a99 statemachine/task: fixes the task success handler not being executed
  • 3b523c4 worker/task_handler: TaskSuccessful to summarize task Status
  • ae60f60 worker/task_handler: tweak logging for consistency

v0.2.5

29 Sep 16:31
Compare
Choose a tag to compare

Changelog

  • daeb1fd Add TaskNotFound error
  • 10fea55 Disable vendor check
  • 59dd3d4 README: update to reflect current project status
  • 6cb3595 Raise complexity to 11
  • f475a89 Remove 2nd parameter to BySlugVendorModel
  • a431042 Rename to BySlugModel
  • b8b4535 chore(deps): update actions/checkout action to v4
  • a5cb0e0 chore(deps): update actions/setup-go action to v4
  • 4689929 chore(deps): update docker/build-push-action action to v5
  • ff9f65e chore(deps): update docker/login-action action to v3
  • 01370b5 chore(deps): update docker/setup-buildx-action action to v3
  • d2a04c7 chore(deps): update goreleaser/goreleaser-action action to v5
  • 1ff264d fix(deps): update module github.com/bombsimon/logrusr/v2 to v4
  • 5d22555 fix(deps): update module github.com/emicklei/dot to v1.6.0
  • 8e9ecb3 fix(deps): update module github.com/equinix-labs/otel-init-go to v0.0.9
  • 85a4322 fix(deps): update module github.com/jinzhu/copier to v0.4.0
  • 03e7597 fix(deps): update module github.com/metal-toolbox/conditionorc to v0.1.7
  • 68a55c0 fix(deps): update module github.com/nats-io/nats-server/v2 to v2.10.1
  • d0aef66 fix(deps): update module github.com/nats-io/nats.go to v1.30.1
  • 9561a27 fix(deps): update module go.hollow.sh/serverservice to v0.16.1
  • a6130f5 fix(deps): update module go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.44.0
  • 68a0cb5 flasher: disable ETAG header match for redfish provider
  • 866acf4 go: deps updated
  • 840f0be internal/outofband/bmc: catch TaskNotFound after BMC reboot
  • 97c86d5 switch to Condition types from the rivets package
  • 1e2b6dd worker/task_handler: include reasoning for no actions being taken
  • 1fcf67a worker: Tasks to execute in dry-run mode based on FirmwareInstallTaskParameters
  • 17c38dd worker: remove references to condition type from Conditionorc package

v0.2.4

30 Aug 12:32
aa6c0eb
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.3...v0.2.4

v0.2.3

29 Aug 03:55
Compare
Choose a tag to compare

Changelog

  • 354d169 bmclib/redfish: Fixes high memory consumption for firmware uploads

v0.2.2

22 Aug 11:03
558185c
Compare
Choose a tag to compare

Changelog

  • acfa593 add renovate.json
  • 558185c fix(deps): update module go.hollow.sh/serverservice to v0.16.0 (#54)

v0.2.1

08 Aug 19:18
Compare
Choose a tag to compare

What's Changed

  • outofband/download: determine checksum based on prefix value by @joelrebel in #48

Full Changelog: v0.2.0...v0.2.1

v0.2.0

02 Aug 15:50
56e86d9
Compare
Choose a tag to compare

Prior to this release, it is an error to try and install a firmware set to a server when one of the components of the set is already at the desired level. This release alters that behavior so that components already at the desired firmware level are ignored by flasher and will remain at that firmware version. If this results in no firmware at all being installed, that condition is marked as a success.

This behavior reflects the notion that applying a condition brings a system to the desired state. If it's already at that state, returning an error is counterintuitive and forcing a firmware reinstall is counter-productive.

What's Changed

  • make installing equal versions a no-op by @DoctorVin in #46
  • Make installing the current firmware version a no-op by @DoctorVin in #47

Full Changelog: v0.1.1...v0.2.0