Syncs these commits:
0c54b72 python3: use 'as' syntax for exception assignment
fde1e15 Convert unicode for python3 portability
Note this adds a dependency on the 'six' library.
Change-Id: Ibcffa3ab10f6969f1f088b1f5a890f4aa655e9bf
Add tox to pip install.
Add step to run testr init
Change-Id: I10fd120d7757bc11695d064d488024e545655448
Authored-by: Chris Krelle <nobodycam@gmail.com>
The fake BMCDriver implementation accidentally copied, rather than
inherited from, the base class definition.
Change-Id: Ic2552dfdc93ad262c6ce04126f1133cd543bd800
Add more prerequisites to set up a local environment for development on
Ubuntu and the Fedora equivalents.
* libxml2 and libxslt are needed to build lxml.
* mysql libs are needed to build MySQL-python.
Change-Id: I4627b34ba72d677975c8c067e981fca732d78215
Fixes a broken test - test_update_node - by testing the updated node.
Fixes bug #1180143
*ironic/tests/db/test_nodes.py
Change-Id: I402851c58c4f61c600f15960a851f41356240dca
Fix all existing pep8 errors.
Remove install_venv and friends, which were not needed.
Add a few ignores for nova code that is yet to be cleaned up.
Skip one failing test case, fixed by review 29394.
Import contrib/redhat-eventlet.patch from Nova.
Change-Id: I46b6ccaa272bd058757064672ce9221263ed7087
Sequester files which have a very strong dependency on the nova codebase
into a separate "nova" dir. These will be ported and/or re-implemented
in Ironic. Move the corresponding unit tests to "tests/nova".
Also, disable the unit tests by removing __init__.py from that dir.
Merge baremetal/utils and nova utils
Merge baremetal/test_utils and nova/test_utils
Remove many unused methods from both files
Update test_pxe for merged utils.py
- minor cleanup of db/sqlalchemy/api
- fix some things in conf_fixtures
- fix tests in deploy_helper
- remote unused retry_on_deadlock method
- remove network and service from test.py
Baremetal driver get_available_nodes was incorrectly returning only a
list of unprovisioned nodes, leading update_availabile_resources to
sometimes delete a baremetal node that had an instance provisioned
to it -- sometimes even while the provisioning was still in process.
Fix bug 1174952
Change-Id: I4f08a2f6539a5b6cd12245ac6b4dc308767ae0cd
Import the oslo looping call implementation (which is a copy of
nova's), delete nova's local copy, convert all users to the new
location.
It should be noted that the oslo implementation of
FixedIntervalLoopingCall measures time from the start of the
periodic task, not the end, so periodic tasks will run with a
constant frequency instead of the frequency changing depending on
how long the periodic task takes to run.
Change-Id: Ia62ce1988f5373c09146efa6b3b1d1dc094d50c4
After the change I6653829364b0a641442d45e766493180d6f2a880,
bm_nodes.prov_mac_address is no longer set. However VPD still
uses it. This patch changes VPD to use bm_interfaces.address
instead of bm_nodes.prov_mac_address.
Fixes bug 1168574.
Change-Id: I2bab869b282958ee9fd0e4776928e56351018324
To prevent sfdisk stopping with "bad input", use a empty string
instead of "-" (and doing so requires using "," as a separator).
Fixes bug 1166112
Change-Id: I5e4cffaa326fbafd1583d55744f921a40b3ae76f
Now prov_mac_address is going to be dropped from bm_nodes table. This patch
adjust api to the change.
A user is expected to create a node without specifying prov_mac_address, then add
an interface having the address to the node. However, for compatibility, a user
still can specify prov_mac_address when create a node. In this case, an interface
having prov_mac_address is automatically added to the node.
In response body of create, index and show, "prov_mac_address" field no longer
exists since they are showed as a member of "interfaces" fileld.
DocImpact
Change-Id: I6653829364b0a641442d45e766493180d6f2a880
A number of places tried to use undefined names. This included one
powervm test which turned out to not check anything at all (used
fake implementation of tested method) and needed to be moved.
Make sure that this class of errors causes run_pep8 failure in the
future.
Change-Id: I82ccb63bbc6f6d2b20ecb7f06b2fc22f8f034a33
Remove a lot of getLogger lines and imports of logging in modules
which never use that functionality.
Change-Id: Icdaee2c540980412b000d02ebf1ec568dcf5b38a