11394 Commits

Author SHA1 Message Date
Mark McLoughlin
ac236c085b Sync a rootwrap KillFilter fix from oslo-incubator
Syncs:

  ea78eec Update KillFilter to stop at '\0' for readlink() function.

Change-Id: Id0fa6408b208639e658da337299b390eba5c70f4
2013-05-22 14:05:13 +01:00
Mark McLoughlin
e13fac41b4 Sync oslo-incubator python3 changes
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
2013-05-22 13:45:34 +01:00
Chris Krelle
acb05d4018 Add steps to README.rst
Add tox to pip install.
Add step to run testr init

Change-Id: I10fd120d7757bc11695d064d488024e545655448
Authored-by: Chris Krelle <nobodycam@gmail.com>
2013-05-21 10:53:44 -07:00
Devananda van der Veen
08ed127fce Fix fake bmc driver.
The fake BMCDriver implementation accidentally copied, rather than
inherited from, the base class definition.

Change-Id: Ic2552dfdc93ad262c6ce04126f1133cd543bd800
2013-05-20 13:27:59 -07:00
Sean Dague
04c1574bee move ironic docs to top level for ease of discovery
Change-Id: Ief94889dc5c4d65a6d95067b51d73f13fbba640a
2013-05-20 15:14:16 -04:00
Jenkins
25fa44edec Merge "Add some API definitions to the README." 2013-05-20 18:54:11 +00:00
Jenkins
dd17b10a4e Merge "Update the README file development section." 2013-05-20 17:41:22 +00:00
Lucas Alvares Gomes
8a18c7abaf Update the README file development section.
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
2013-05-20 18:33:21 +01:00
Devananda van der Veen
0515326f85 Add some API definitions to the README.
Change-Id: I549de0d298d030308971c2739bf1ff88ef9363e1
2013-05-20 09:35:32 -07:00
Lucas Alvares Gomes
de63417639 Update the distribute dependency version.
MySQL-python requires the version of distribute to be >=0.6.28.

Change-Id: I44f77481208e1c3d6babd3b7d259f4a450a898c8
2013-05-20 17:34:44 +01:00
Devananda van der Veen
5b78a8d484 Add information to the project README.
Change-Id: I7f345369ded37167eb01e46e9aeb4e9d9940596e
2013-05-18 09:13:18 -07:00
Anita Kuno
aa19428b88 Fixes test_update_node by testing updated node.
Fixes a broken test - test_update_node - by testing the updated node.

Fixes bug #1180143

*ironic/tests/db/test_nodes.py

Change-Id: I402851c58c4f61c600f15960a851f41356240dca
2013-05-16 22:02:33 -04:00
Devananda van der Veen
dd4521a3cc Fix pep8 errors and make it pass Jenkins tests.
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
2013-05-16 18:40:38 -07:00
Devananda van der Veen
e1109c9b99 Update IPMI driver for new base class.
Fix IPMI unit tests, and add missing power states and exceptions.
2013-05-13 00:59:44 -07:00
Devananda van der Veen
70d2f67e3e Add new base and fake driver classes. 2013-05-13 00:59:44 -07:00
Devananda van der Veen
70b20f2d4f Delete old base and fake classes. 2013-05-13 00:59:35 -07:00
Devananda van der Veen
e4927fa904 Add a few fixes for the API. 2013-05-13 00:59:26 -07:00
Devananda van der Veen
06af4def6c Move strong nova depenencies into temporary dir.
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.
2013-05-13 00:59:25 -07:00
Devananda van der Veen
370f0fca69 Update IPMI for new DB schema. 2013-05-13 00:59:15 -07:00
Devananda van der Veen
463c44e848 Add unit tests for DB API.
Also, fix some issues found along the way.
2013-05-13 00:59:15 -07:00
Devananda van der Veen
c8f5140056 Remove tests for old DB. 2013-05-13 00:59:15 -07:00
Devananda van der Veen
7c7d23b54c Add tests for ironic-dbsync. 2013-05-13 00:59:15 -07:00
Devananda van der Veen
3b4b5bb6cb Remove ironic_manage.
It will be replaced by ironic-dbsync.
2013-05-13 00:58:54 -07:00
Devananda van der Veen
b430c775be Implement GET /node/ifaces/<id> in API. 2013-05-13 00:58:49 -07:00
Devananda van der Veen
537def2b1a Update exception.py
- rename NovaException -> IronicException
- remove many unused exceptions
2013-05-13 00:58:48 -07:00
Devananda van der Veen
fed78f5dfd Update db models and API. 2013-05-13 00:58:41 -07:00
Devananda van der Veen
9e242f8d2d Implement skeleton for a new DB backend. 2013-05-13 00:58:31 -07:00
Devananda van der Veen
c4c6204acf Remove the old db implementation. 2013-05-13 00:57:57 -07:00
Devananda van der Veen
39a9f767ce Implement initial skeleton of a manager service. 2013-05-13 00:57:48 -07:00
Devananda van der Veen
8ac57c720c Implement initial draft of a Pecan-based API. 2013-05-13 00:57:31 -07:00
Devananda van der Veen
73f81e029f Fix IPMI tests. 2013-05-13 00:57:27 -07:00
Devananda van der Veen
e90a312996 Merge and trim utils and test_utils.
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
2013-05-13 00:57:15 -07:00
Devananda van der Veen
1e69517110 Move common things to ironic.common.
Move from ironic/ to ironic/common/
 config.py
 context.py
 exception.py
 paths.py
 policy.py
 safe_utils.py
 states.py
 utils.py
2013-05-13 00:57:07 -07:00
Devananda van der Veen
54da19c8d2 Fix failing db and deploy_helper tests
- 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
2013-05-07 16:52:53 -07:00
Devananda van der Veen
50a450c8a1 un-split the db backend 2013-05-07 16:47:58 -07:00
Devananda van der Veen
0480834614 Rename files and fix things. 2013-05-07 16:47:55 -07:00
Devananda van der Veen
05e9ce4c48 Import add'l files from Nova
Import lots of files from Nova at rev
f0da3464ab17552f24977d22365fa9573702f5a8
2013-05-07 16:47:49 -07:00
Devananda van der Veen
089e2ff25b update openstack-common.conf and import from oslo 2013-05-07 16:23:48 -07:00
Monty Taylor
87ffa55426 Added .testr.conf. 2013-05-02 17:32:04 -04:00
Monty Taylor
a520425dd9 Renamed nova to ironic. 2013-05-02 15:55:48 -04:00
Monty Taylor
7bad35dd1f Fixed hacking, pep8 and pyflakes errors. 2013-05-02 15:54:00 -04:00
Monty Taylor
84a7dc47e2 Added project infrastructure needs. 2013-05-02 14:55:43 -04:00
Devananda van der Veen
112a2f11f8 Fix baremetal get_available_nodes
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
2013-04-30 14:34:56 -07:00
Dirk Mueller
98c4e04ac6 Improve Python 3.x compatibility
A bit of mechanical translation to clean
out the deprecated except x,y: construct

Change-Id: I80883b6b0c014bdf4799e8b7b2c4a4a07d951a0b
2013-04-22 04:16:31 +02:00
Michael Still
0490eab24c Import and convert to oslo loopingcall.
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
2013-04-09 13:25:38 +10:00
Arata Notsu
4c82958f3d baremetal: VirtualPowerDriver uses mac addresses in bm_interfaces
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
2013-04-15 20:27:03 +09:00
Arata Notsu
f3a0117ecd baremetal: Change input for sfdisk
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
2013-04-09 21:43:52 +09:00
Arata Notsu
88e203a1fc baremetal: Change node api related to prov_mac_address
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
2013-04-03 19:31:09 +09:00
Stanislaw Pitucha
2f9a4ec598 Remove "undefined name" pyflake errors
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
2013-04-10 18:59:23 +00:00
Stanislaw Pitucha
ff06b94958 Remove unnecessary LOG initialisation
Remove a lot of getLogger lines and imports of logging in modules
which never use that functionality.

Change-Id: Icdaee2c540980412b000d02ebf1ec568dcf5b38a
2013-04-10 13:26:12 +00:00