mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-28 16:20:54 +00:00
Implement workaround for SMM config
SMM configuration only reliably applies after reset. Reset SMM to enact process for now.
This commit is contained in:
@@ -67,6 +67,7 @@ import confluent.config.configmanager as cfm
|
||||
import confluent.discovery.protocols.slp as slp
|
||||
import confluent.discovery.handlers.xcc as xcc
|
||||
import confluent.discovery.handlers.bmc as bmc
|
||||
import confluent.discovery.handlers.smm as smm
|
||||
import confluent.networking.macmap as macmap
|
||||
import confluent.util as util
|
||||
import traceback
|
||||
@@ -74,7 +75,7 @@ import traceback
|
||||
import eventlet
|
||||
|
||||
nodehandlers = {
|
||||
'service:lenovo-smm': bmc,
|
||||
'service:lenovo-smm': smm,
|
||||
'service:management-hardware.Lenovo:lenovo-xclarity-controller': xcc,
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class NodeHandler(generic.NodeHandler):
|
||||
return
|
||||
# TODO(jjohnson2): probe serial number and uuid
|
||||
|
||||
def config(self, nodename):
|
||||
def config(self, nodename, reset=False):
|
||||
# TODO(jjohnson2): set ip parameters, user/pass, alert cfg maybe
|
||||
# In general, try to use https automation, to make it consistent
|
||||
# between hypothetical secure path and today.
|
||||
@@ -105,4 +105,6 @@ class NodeHandler(generic.NodeHandler):
|
||||
ic.disable_user(uid)
|
||||
else:
|
||||
ic.user_delete(uid)
|
||||
if reset:
|
||||
ic.reset_bmc()
|
||||
return
|
||||
|
||||
@@ -15,7 +15,10 @@
|
||||
import confluent.discovery.handlers.bmc as bmchandler
|
||||
|
||||
class NodeHandler(bmchandler.NodeHandler):
|
||||
pass
|
||||
|
||||
def config(self, nodename):
|
||||
# SMM for now has to reset to assure configuration applies
|
||||
super(NodeHandler, self).config(nodename, reset=True)
|
||||
|
||||
# notes for smm:
|
||||
# POST to:
|
||||
|
||||
Reference in New Issue
Block a user