Ampere HAWK platform requires that certain IPMI raw commands be padded
to a fixed number of bytes with zeroes.
Co-authored-by: Jimmy Lafontaine Rivera <lafonj@gmail.com>
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Change-Id: I6f68ed0d4c2b010760fef9109beb14d6da4ae813
Name: ironic-virtmedia-driver
Version: %{_version}
Name: ironic-virtmedia-driver
Version: %{_version}
Summary: Contains ironic drivers for virtualmedia based deployment
License: %{_platform_licence}
Source0: %{name}-%{version}.tar.gz
Summary: Contains ironic drivers for virtualmedia based deployment
License: %{_platform_licence}
Source0: %{name}-%{version}.tar.gz
# Remote Image Service commands
RAW_RESTART_RIS_CD = '0x32 0x9f 0x01 0x0b 0x01'
# Remote Image Service commands
RAW_RESTART_RIS_CD = '0x32 0x9f 0x01 0x0b 0x01'
-RAW_SET_RIS_NFS = '0x32 0x9f 0x01 0x05 0x00 0x6e 0x66 0x73'
+RAW_SET_RIS_NFS = '0x32 0x9f 0x01 0x05 0x00 0x6e 0x66 0x73 0x00 0x00 0x00'
RAW_SET_RIS_NFS_IP = '0x32 0x9f 0x01 0x02 0x00 %s'
RAW_SET_RIS_NFS_PATH = '0x32 0x9f 0x01 0x01 0x01 %s'
RAW_SET_RIS_PROGRESS = '0x32 0x9f 0x01 0x01 0x00 %s'
RAW_SET_RIS_NFS_IP = '0x32 0x9f 0x01 0x02 0x00 %s'
RAW_SET_RIS_NFS_PATH = '0x32 0x9f 0x01 0x01 0x01 %s'
RAW_SET_RIS_PROGRESS = '0x32 0x9f 0x01 0x01 0x00 %s'
RAW_SET_IMG_NAME = '0x32 0xd7 0x01 0x01 0x01 0x01 %s'
RAW_STOP_REDIRECT = '0x32 0xd7 0x01 0x01 0x01 0x00 %s'
RAW_SET_IMG_NAME = '0x32 0xd7 0x01 0x01 0x01 0x01 %s'
RAW_STOP_REDIRECT = '0x32 0xd7 0x01 0x01 0x01 0x00 %s'
class FALCON(OpenBMCIronicVirtMediaHW):
def __init__(self, log):
super(FALCON, self).__init__(log)
class FALCON(OpenBMCIronicVirtMediaHW):
def __init__(self, log):
super(FALCON, self).__init__(log)
def _set_nfs_server_ip(self, driver_info, task):
try:
def _set_nfs_server_ip(self, driver_info, task):
try:
- cmd = RAW_SET_RIS_NFS_IP % (self.hex_convert(driver_info['provisioning_server']))
+ cmd = RAW_SET_RIS_NFS_IP % (self.hex_convert(driver_info['provisioning_server'], True, 63))
self.log.debug('Virtual media server "%s"' % driver_info['provisioning_server'])
ipmitool.send_raw(task, cmd)
except Exception as err:
self.log.debug('Virtual media server "%s"' % driver_info['provisioning_server'])
ipmitool.send_raw(task, cmd)
except Exception as err:
ipmitool.send_raw(task, cmd)
time.sleep(2)
ipmitool.send_raw(task, cmd)
time.sleep(2)
- cmd = RAW_SET_RIS_NFS_PATH % (self.hex_convert(self.remote_share))
+ cmd = RAW_SET_RIS_NFS_PATH % (self.hex_convert(self.remote_share, True, 64))
ipmitool.send_raw(task, cmd)
time.sleep(2)
ipmitool.send_raw(task, cmd)
time.sleep(2)
def _set_image_name(self, image_filename, task):
try:
def _set_image_name(self, image_filename, task):
try:
- cmd = RAW_SET_IMG_NAME % (self.hex_convert(image_filename))
+ cmd = RAW_SET_IMG_NAME % (self.hex_convert(image_filename, True, 64))
self.log.debug('Setting virtual media image: %s' % image_filename)
ipmitool.send_raw(task, cmd)
except Exception as err:
self.log.debug('Setting virtual media image: %s' % image_filename)
ipmitool.send_raw(task, cmd)
except Exception as err: