Skip to content

Commit e05ebe0

Browse files
authored
Let metal-bmc configure booting from disk via redfish (#85)
1 parent 0d1fd9e commit e05ebe0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25
55
require (
66
github.com/gliderlabs/ssh v0.3.8
77
github.com/kelseyhightower/envconfig v1.4.0
8-
github.com/metal-stack/go-hal v0.5.8
8+
github.com/metal-stack/go-hal v0.6.0
99
github.com/metal-stack/metal-go v0.42.1
1010
github.com/metal-stack/v v1.0.3
1111
github.com/nsqio/go-nsq v1.1.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ github.com/lestrrat-go/option v1.0.1 h1:oAzP2fvZGQKWkvHa1/SAcFolBEca1oN+mQ7eooNB
8282
github.com/lestrrat-go/option v1.0.1/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I=
8383
github.com/mailru/easyjson v0.9.0 h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4=
8484
github.com/mailru/easyjson v0.9.0/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU=
85-
github.com/metal-stack/go-hal v0.5.8 h1:k7VBzclgGiBdUJOGtX7qFJgWHPJE7Lp8b4QzlKG7ft4=
86-
github.com/metal-stack/go-hal v0.5.8/go.mod h1:2yeab7N8ApBd44z7mEwWCb+CL7o3ioZu41kSsra50Dw=
85+
github.com/metal-stack/go-hal v0.6.0 h1:mhe+x3HPqtud3VH4NJwJR0yNV4Kh9oOnhj9yyXDBLIc=
86+
github.com/metal-stack/go-hal v0.6.0/go.mod h1:2yeab7N8ApBd44z7mEwWCb+CL7o3ioZu41kSsra50Dw=
8787
github.com/metal-stack/metal-go v0.42.1 h1:sBtmXuoYg88gUh+zQtVE2fIiYQPWuUvmJ/hRmW18Yp0=
8888
github.com/metal-stack/metal-go v0.42.1/go.mod h1:T0lbyrc+aHlI/GWAu2Og4Fmj4oaj5RD55736jBG0R8Y=
8989
github.com/metal-stack/metal-lib v0.23.4 h1:/xvCpgfvkGM8kdF0C3+mP7WGl0wiwU33MKG2UGIDXA8=

internal/bmc/nsq.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ func (b *BMCService) HandleMessage(message *nsq.Message) error {
139139
default:
140140
b.log.Error("unhandled command", "topic", b.machineTopic, "channel", "core", "event", event)
141141
}
142-
case Create, Update:
142+
case Create:
143+
return outBand.BootFrom(hal.BootTargetDisk)
144+
case Update:
143145
fallthrough
144146
default:
145147
b.log.Warn("unhandled event", "topic", b.machineTopic, "channel", "core", "event", event)

0 commit comments

Comments
 (0)