Python3 have a standard library for mock in the unittest module,
let's drop the mock requirement and switch tests to unittest mock.
Change-Id: I4f1b3e25c8adbc24cdda51c73da3b66967f7ef23
- Move staticmethods and classmethods to functions, since
in py36 we have a bug when ussing unittest.mock [1]
The only classmethod we are keeping is `_set_boot_device`
since it's used by `DracRedfishVirtualMediaBoot`
[1] https://bugs.python.org/issue23078
Change-Id: I6e51bb956890a01535c62f8a378756e65d438ac3
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: I794c6bd82ac530fc063daf815d97eaef2a95d318
Sem-Ver: feature
The SNMP hardware type does not have a management interface, thus
it's impossible to switch boot device to local. Keep using netboot.
As a nice side effect, this job will keep testing whole disk images
with network boot.
Make the job voting since it's pretty stable when we don't break it.
Change-Id: I559fdccfbaf02396a0a096c50fbb9660c22a4dee
It appears that grenade now requires ironic-python-agent-builder
to be in the projects list in order for clone operations to take
place.
Also switch to netboot as the default boot option is local now.
Change-Id: Ibf66351137d9f4221c9c191b4d9a4b2272f0f516
Fixing configure-vm script and vm.xml with this patch because for
latest OS like centos8 - older python version and older qemu machine
type is causing issue.
* For configure-vm.py - Replacing python with python3 in environment
path as python3 is the default in many latest OS.
* For vm.xml - Replacing Machine type from pc-1.0 to pc.
- pc-1.0 is old and unsupported machine type for Centos8
- Moving machine type from pc-1.0 to pc will help as pc have alias to
supported qemu machine type
Related-Bug: #1875681
Change-Id: Icd7e98ceb8859f730a32981a150f2730bde9836b
For Software RAID, we need to pass the boot mode to the IPA via a new
parameter. In case the IPA does not understand this new parameter yet,
we catch the error and fail for UEFI. This patch proposes to only fail
in the case of software RAID, since the older IPA can handle the general
case of UEFIi, e.g. with a whole disk image.
Change-Id: Id6b51dd19e83d20dc8d6d312cbec12d09bfd76c1
Now that HUAWEI ironic 3rd party CI is back, the ``ibmc`` hardware type driver is supported. We can reactive the ibmc driver.
Change-Id: I136aba37d8f5b2044e9c0f28498eb75b2d6499c9
Story: 2007594
Task: 39559
Signed-off-by: Qianbiao.NG <iampurse@vip.qq.com>
The agent_client may get a general "command_error" field
returned to it upon commands and the agent may not properly
sinal that the command failed because we are reliant upon
the same data elsewhere in the ironic/agent interaction.
This resulted in the case where the embedded error signaled that
the error was method compatability as opposed to the actual method
command error.
This could cause higher level failures and prevent fallback logic
from detecting that we could try a different command.
We now consider the error type, and raise the appropriate exception
to signal that the issue may be an API compatability issue.
Change-Id: Ia2f63bd853632e1d7138901cf23fde1e261fc4d6
Also fix a docstring and add a missing TODO.
Follow-up to commit 4795c4a8b8896129228fba5a09b87d0551f6e140.
Change-Id: I99c28776d135c57311c6a9d4bbd799cc2b642839
Story: #2006963
It's supposed to include the patch we need, and using the final
release allows us to benefit from caching of images by the infra.
Change-Id: Iabef3fa7e3af7fb6fd19973d6a44908d5a3ce93b