2826 Commits

Author SHA1 Message Date
Jim Rollenhagen
fb520b1302 Move tests/ under ironic_lib/, use ostestr
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
2015-09-30 09:37:17 -07:00
Ruby Loo
46a29ec4f4 Remove TODO
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
2015-09-30 14:25:13 +00:00
Ruby Loo
854ece3f29 Update setup.cfg
We aren't suppporting python 2.6.

Addressed a grammatical issue.

Change-Id: I6e89735a510ec87ae33dc29309d8be4b711d7489
2015-09-30 14:05:41 +00:00
Ruby Loo
618ab03b60 Use standard locale when executing 'dd' command
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
2015-09-30 13:47:20 +00:00
OpenStack Proposal Bot
3bb86b2cb4 Updated from global requirements
Change-Id: If843cee78314d5698bc03a74170c635da21210ad
2015-09-17 12:12:30 +00:00
OpenStack Proposal Bot
b3de4c5b6e Updated from global requirements
Change-Id: I3a694ec7cf921f6e4656a131865b356625a3611a
0.1.0
2015-08-28 23:43:36 +00:00
OpenStack Proposal Bot
8622f45e15 Updated from global requirements
Change-Id: I85ef88a57318eb6b7cb3d70343daaf0387b548a5
2015-08-25 07:07:38 +00:00
OpenStack Proposal Bot
52f97d9746 Updated from global requirements
Change-Id: I531f77dc82662fb93010cf1b0127e890ad67ad5c
2015-08-13 20:17:32 +00:00
Ramakrishnan G
f33d181430 Fix E128 issues and enable E128
This commit fixes the issues reported by pep8 as
violation of E128, and enables E128 in tox.ini

Change-Id: If88653c3dbadffa63b5ba7c561f69ce893d670ac
2015-08-13 12:57:19 +00:00
Jenkins
95d9f03f45 Merge "Update tox.ini and fix py34 issues" 2015-08-13 12:50:17 +00:00
Dmitry Tantsur
e5731c00b4 Update tox.ini and fix py34 issues
* 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
2015-08-13 11:24:46 +00:00
Jenkins
9baa471510 Merge "Updated from global requirements" 2015-08-13 11:23:27 +00:00
Dmitry Tantsur
aa66ebc6ee Change PyPI name to ironic-lib and clean up setup.cfg
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
2015-08-13 12:36:21 +02:00
OpenStack Proposal Bot
43fa2d7df4 Updated from global requirements
Change-Id: I381c16e8f3b8c1424254c5cf074986c8b00a24f0
2015-08-13 02:12:56 +00:00
Faizan Barmawer
123414e327 Merge latest disk partitioning code from ironic
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
2015-08-05 03:50:30 -07:00
OpenStack Proposal Bot
bf3732ae75 Updated from global requirements
Change-Id: Ie0d71321fddcdf37d6a98921a94d319e3753e404
2015-07-29 03:46:43 +00:00
OpenStack Proposal Bot
3f47a24dad Updated from global requirements
Change-Id: I3f7bbfd14e7015f2850c69f1fcc6696615a32c30
2015-07-24 18:37:58 +00:00
Doug Hellmann
c6cf9690d4 Update mock assertion for mock 1.1
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
2015-07-11 20:28:10 +00:00
Jenkins
6d5a098c79 Merge "Switch to oslo.service" 2015-07-03 02:00:43 +00:00
Jenkins
7ae169723a Merge "Updated from global requirements" 2015-06-24 15:19:01 +00:00
Jenkins
318107cd85 Merge "Drop use of 'oslo' namespace package" 2015-06-24 15:13:20 +00:00
OpenStack Proposal Bot
d3f8db7738 Updated from global requirements
Change-Id: Ia9d4779183e802b424dd8991acf2916b9fb3075a
2015-06-24 14:39:31 +00:00
Sergey Vilgelm
93e1664321 Switch to oslo.service
oslo.service has graduated, so ironic should consume it.

Change-Id: I93f1698016a30916f162a370728e87e18013c2bb
Partial-Bug: #1466851
2015-06-24 11:19:57 +02:00
OpenStack Proposal Bot
f99fa1d975 Updated from global requirements
Change-Id: I07af88e411efb41764c1d51c18a572c48dae878b
2015-06-22 08:21:29 +00:00
Doug Hellmann
cca45a9577 Drop use of 'oslo' namespace package
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
2015-06-19 16:44:38 +02:00
OpenStack Proposal Bot
bf8bebf7a1 Updated from global requirements
Change-Id: Ic4038c840fc9a853a0002244ae5c0365610afe33
2015-06-11 00:42:29 +00:00
Jenkins
76a884ef1c Merge "Updated from global requirements" 2015-05-25 12:47:24 +00:00
OpenStack Proposal Bot
2eeae88ad8 Updated from global requirements
Change-Id: Id3992f16e72347f068d546ca45fdd1fe447e2e7d
2015-05-07 23:31:19 +00:00
Doug Hellmann
cd937ea233 Drop use of 'oslo' namespace package
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
2015-04-28 19:26:27 +00:00
Jenkins
07837a9283 Merge "Copy .gitignore from Ironic" 2015-04-06 17:33:15 +00:00
Jim Rollenhagen
c05a3608d1 Copy .gitignore from Ironic
Could get painful without it. :)

Change-Id: Ib387b59ae8d02c4051a02e6286b88b5dad091431
2015-04-01 06:52:21 -07:00
OpenStack Proposal Bot
d09a4f20bd Updated from global requirements
Change-Id: Ia6a4da5138783e2a9c7568f9eff24d169c5a3920
2015-03-31 18:32:05 +00:00
Andreas Jaeger
230cfe9638 Add .gitreview
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
2015-03-27 10:01:11 +01:00
Faizan Barmawer
1d78cb7167 Initial commit for ironic-lib 2015-02-26 04:15:08 -08:00
Jenkins
6f0c39d3f4 Merge "Return required properties for agent deploy driver" 2015-02-24 01:04:51 +00:00
Jenkins
9e4db74f16 Merge "Remove unused modules from ironic/openstack/common" 2015-02-24 00:13:31 +00:00
Jenkins
9ba2e9971c Merge "INSPECTFAIL value is more readable" 2015-02-23 22:13:28 +00:00
Jenkins
29ad138401 Merge "Add dhcp-all-interfaces to get IP to NIC other than eth0" 2015-02-23 22:13:21 +00:00
Jenkins
735cc40add Merge "Address final comments of a4cf7149fb" 2015-02-23 22:12:37 +00:00
Jenkins
a7a95e4c9f Merge "Update Ilo drivers to use REST API interface to iLO" 2015-02-23 19:59:59 +00:00
Jenkins
9a3fc2b358 Merge "Use functions from oslo.utils" 2015-02-23 19:59:52 +00:00
Ruby Loo
6cf45b0adc INSPECTFAIL value is more readable
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
2015-02-23 16:39:51 +00:00
Lucas Alvares Gomes
3e01476800 Disable n-novnc, heat, cinder and horizon on devstack
Ironic doesn't integrate with those projects (at present) so no reason
to leave them enabled.

Change-Id: I0e27fdd01715ba9daebbdbbe5e45a772dd6abc1f
2015-02-23 15:04:52 +00:00
Yuriy Zveryanskyy
41951d039c Return required properties for agent deploy driver
IPA deploy driver does not return required properties, this
patch adds this properties.

Closes-Bug: 1400342
Change-Id: I19172e957f2601d7d20a53fef1079ad421a6e893
2015-02-23 16:02:51 +02:00
Victor Sergeyev
7b7b40f6ef Remove unused modules from ironic/openstack/common
Change-Id: I451caad43bd5bdea69434a9ed6b5bc00feb22b6e
2015-02-23 13:47:47 +02:00
Victor Sergeyev
4071325044 Use functions from oslo.utils
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
2015-02-23 13:29:50 +02:00
Anusha Ramineni
ae9ae3817d Update Ilo drivers to use REST API interface to iLO
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
2015-02-23 15:08:34 +05:30
Naohiro Tamura
5a05248a42 Add dhcp-all-interfaces to get IP to NIC other than eth0
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
2015-02-23 10:03:17 +09:00
Jenkins
34079f68cf Merge "Fix PEP8 E124 & E125 errors" 2015-02-22 00:47:40 +00:00
Jenkins
8ae642ca30 Merge "Log exception on tear_down failure" 2015-02-21 03:03:26 +00:00