conserver_client_found,
])
- def _check_credentials(self):
- if not self.has_ipmi_credentials:
- log.error(
- "Must set ipmi_user, ipmi_password, and ipmi_domain in " \
- ".teuthology.yaml"
- )
-
def _pexpect_spawn_ipmi(self, ipmi_cmd):
"""
Run the cmd specified using ipmitool.
"""
- self._check_credentials()
full_command = self._ipmi_command(ipmi_cmd)
return self._pexpect_spawn(full_command)
return self._ipmi_command('sol activate')
def _ipmi_command(self, subcommand):
+ self._check_ipmi_credentials()
template = \
'ipmitool -H {s}.{dn} -I lanplus -U {ipmiuser} -P {ipmipass} {cmd}'
return template.format(
ipmipass=self.ipmipass,
)
+ def _check_ipmi_credentials(self):
+ if not self.has_ipmi_credentials:
+ log.error(
+ "Must set ipmi_user, ipmi_password, and ipmi_domain in "
+ ".teuthology.yaml"
+ )
+
def _exit_session(self, child, timeout=None):
child.send('~.')
t = timeout or self.timeout
:returns: a subprocess.Popen object
"""
- self._check_credentials()
ipmi_cmd = self._ipmi_command('sol activate')
pexpect_templ = \
"import pexpect; " \