You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I am trying to do node power management via sdk. Here is what i have so far.
# Login to the server
handle.login()
servers = handle.query_classid(class_id="LsServer")
print([server.name for server in servers])
server = [server for server in servers if server.name == "hostname"][0]
LsPower(parent_mo_or_dn=server,state=LsPowerConsts.STATE_DOWN)
handle.set_mo(server)
handle.commit()
handle.logout()
In which case I get the following exception
ucsmsdk.ucsexception.UcsException: [ErrorCode]: 170[ErrorDescription]: Insufficient privileges to configure 'lsServer'. User's privileges must have at least one of 'admin,ls-config,ls-server,ls-compute', but user has 'read-only,operations,fault,pn-equipment,pn-policy,pn-maintenance,ls-ext-access,ls-server-oper'
I know that ls-server-oper gives me the following abilities:
Launch KVM
Boot Server
Shutdown Server
Reset
Is there a way to poweroff node via sdk with ls-server-oper privs only?
The text was updated successfully, but these errors were encountered:
Hi there,
I am trying to do node power management via sdk. Here is what i have so far.
In which case I get the following exception
I know that ls-server-oper gives me the following abilities:
Is there a way to poweroff node via sdk with ls-server-oper privs only?
The text was updated successfully, but these errors were encountered: