This moves the tests directory under ironic_lib, which is kind of the
standard around here. Updates tox.ini to point at this directory.
Also updates tox.ini to use ostestr, to be more standard with other
OpenStack things.
Change-Id: I91e6ba38c44a475602175b66c10757ec11b173f9
The TODO doesn't make sense for this library; it refers to
things for ironic itself. (It is no longer in ironic either.)
Change-Id: If75f3050dfa66e254fd78e7295966abfc17ed359
When executing 'dd' command, baremetal provisioning fails on OS with
Japanese because of ascii codec error:
InstanceDeployFailure: Deploy failed for instance <uuid>.
Error: 'ascii' codec can't decode byte 0xc2 in position 24:
ordinal not in range(128)
This fixes it by using standard locale when executing 'dd'.
Change-Id: I1248adb71489a818cfe1b5218f3bb6c961e66692
Closes-Bug:#1488289
* No need to explicitly mention requirements.txt
* Added py34 environment
* Leave only required flake8 excludes
* Run with hash randomization
Also fixes tests on Python 3.
Change-Id: I03f2a474a66fba7a7e30bd326acb394f0b196f57
Our project is called ironic-lib, no point in publishing it as ironic_lib.
It's also inconsistent with tempest-lib.
This patch also removes unneeded elements from setup.cfg and switches
to postversioning.
Change-Id: I29c0f384fb8869ce3e28dedf0272fcc2e766fc26
There were changes to the disk partitioner code in ironic project to support
local boot, local boot with uefi, uefi support in agent driver, deploy whole
disk, etc. These changes should be merged in ironic-lib before we replace all
disk partitioner code in ironic with ironic-lib.
The ironic changes were part of the following commit SHA.
file: ironic/common/disk_partitioner.py
0f4eba18544469d826b4d2d4b420d83c646af463
8c07c4fda3e6a86a40aa00759652b99acbd73331
4e0a78633996d27e21d899661a6414bbea77a0d7
b7e8a8eb51dcd00ce06c9151ad7c8bca8391210e
file: ironic/drivers/modules/deploy_utils.py
e8eeba4c0d063eac3c283b4af92608c7a6d73e7d
cb2e58207203b210d91dacca3c40d91ed1c45a24
987302450af73940794e53233129e90cd4b950f7
da9ed8d0eb1c5d467b41f61185501c26ea2e4ce5
222c84fff52be8383b26495c37df28cc5a0f98b9
dedb425770a6f91a54e990159843ac201dc2f1a5
Change-Id: I6afdaf6a173c1caa9daccb62cb15b630391f161b
Partially-implements: blueprint partition-image-support-for-agent-driver
Mock 1.1 has a bug that prevents assert_has_calls() from working if the
argument is not a list. Rather than wait for a bug fix, update the one
test that is failing to pass a list instead of a single value.
Change-Id: I559ad3e97a0b2fea69e11e3fc156a6afa2b4e3ae
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.
The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.
Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.
Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages
Change-Id: I797d23fc5283e1951f8f75eecc23830b1ae0de69
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.
The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.
Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.
Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages
Change-Id: I779d8df5872887d5d8ec44012d792b59b0cf4f64
This file is needed for every developer working on it. It is also needed
by our bots like the requirements bot that is enabled on this
repository.
Fixes also the following pep8 warning so that the tests pass:
./tests/ironic_lib/test_disk_utils.py:493:1: W391 blank line at end of
file
We need both changes together to avoid a chicken/egg problem.
Change-Id: I7078c2f8a0cbf0544ae5cad97076118bc5741ec7
This changes the value (string) for INSPECTFAIL, from
'inspectfail' to 'inspect failed'. This makes it more readable
and consistent with DEPLOYFAIL's 'deploy failed'.
Change-Id: Ief2cd1fbd8bcf6136d0645f03e0f09baa66f9278
IPA deploy driver does not return required properties, this
patch adds this properties.
Closes-Bug: 1400342
Change-Id: I19172e957f2601d7d20a53fef1079ad421a6e893
Functions is_int_like(), generate_uuid() is_uuid_like() available in
oslo.utils, so we can use them from there and remove duplicates from
Ironic code
Change-Id: I2a319e633a835dbca6831148acaf425e4ff6a725
Currently, Ilo Drivers use only RIBCL to communicate with
iLO. As proliantutils module has been enhanced to support
communication over REST API for Gen9 Servers, the fix is
to support the use of newer version of proliantutils.
Closes-Bug: 1420210
Change-Id: Idba8a29a725ae393facca65ed0ae02a352e1da48
Bare metal server with BMC typically has multiple NICs.
User image needs dhcp-all-interfaces element to get IP to NIC other
than eth0 through DHCP.
Having booted the user image by "nova boot", user cannot login after
without dhcp-all-interfaces element.
Change-Id: Iac806397e39f489a3ccdc9c087ad120ac79f2144