3081 Commits

Author SHA1 Message Date
Ghe Rivero
aafeed2f85 Use oslo_log lib
Module 'log' from oslo-incubator was removed after release of oslo_log library.

Change-Id: I4261083dae076cea66c42ad16eb82a5faaeb1a65
2015-05-05 08:43:28 +02:00
Jenkins
f1635d0cd8 Merge "Imported Translations from Transifex" 2015-05-05 04:06:58 +00:00
Ghe Rivero
338c1f2d01 Adopt config generator
oslo.config.generator has been removed from olso-incubator so
we need to adopt it in order to generated up-to-date config
files.
Changes introduced:
- Move config/generator.py from openstack.common to ironic.common
- Update config generator to use new style list_opts discovery
- Split _print_opt function to reduce complexity and pass pep8 tests

Change-Id: I397504bf0604a86082f26e46952720117611f3a8
2015-05-04 20:38:13 +00:00
OpenStack Proposal Bot
6aff3de4a3 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I5c702e1056b4fd0c10dd5f478010a3177acd6deb
2015-05-03 06:13:40 +00:00
Jenkins
451bf7bb0d Merge "Add a venv that can generate/write/update the states diagram" 2015-04-30 17:07:21 +00:00
Jenkins
b098c4a364 Merge "Update the Vendor Passthru documentation" 2015-04-29 19:20:34 +00:00
Jenkins
01ca106fd7 Merge "Update iLO documentation for capabilities" 2015-04-29 16:05:39 +00:00
Lucas Alvares Gomes
79a8962a74 Update the Vendor Passthru documentation
This patch updates the documentation about the Nodes and Drivers Vendor
Passthru. It talks about the discoverability of the vendor methods via
the Ironic API, the support for multiple HTTP methods and what to expect
of a asynchrounous or synchrounous method.

Change-Id: I6a3c971dfe53cc7148ea2a51c6449bf729d39fa5
2015-04-29 15:04:35 +01:00
Jenkins
b4ea46084e Merge "Add maintenance mode example with reason" 2015-04-29 10:03:34 +00:00
Jenkins
3e41c8c5b1 Merge "Add logical name example to install-guide" 2015-04-29 08:28:09 +00:00
Jenkins
6b50e301f7 Merge "Improve strictness of DRAC test cases error checking" 2015-04-29 08:27:40 +00:00
Jenkins
0460aa8439 Merge "Log attempts while trying to sync power state" 2015-04-29 05:05:59 +00:00
Jenkins
c7bbb0789d Merge "supports alembic migration for db2" 2015-04-29 03:57:01 +00:00
Chris Krelle
32741a7846 Add maintenance mode example with reason
This adds an example of using --reason when setting maintenance mode.

Change-Id: I503493bcf4684ea814399ee2306d1fbeb2cd4708
2015-04-28 15:01:21 -07:00
Chris Krelle
2496ce7743 Add logical name example to install-guide
This adds a simple example of using a logical name to reference
a node.

Change-Id: Id22f13047c1b089a4f6171336885fae7401c761c
2015-04-28 09:16:15 -07:00
Jenkins
8dad33164b Merge "Remove state transition: CLEANFAIL -> CLEANING" 2015-04-28 13:01:33 +00:00
Jenkins
02a11b461d Merge "Update some config option's help strings" 2015-04-28 10:57:33 +00:00
Naohiro Tamura
d4f8c33e63 Improve strictness of DRAC test cases error checking
The 'spec_set' option of Mock object directs stricter checking than
'spec' option.
The commit 926a6d2521de5cad2221e4acade7b4af2eb37dc0 assigned
'spec_set' to the external functions of PYWSMAN, but it assigned
'spec' to the internal functions.
This patch makes strictness of the error checking consistent among
DRAC test cases.

Change-Id: I96eba89b3360668afa628a8ac0880c866bec7e5c
2015-04-28 18:44:57 +09:00
Joshua Harlow
4c7a7bdf64 Add a venv that can generate/write/update the states diagram
Instead of requiring manual understanding of how to generate
the states diagram, add an explicit virtualenv that can be
used to create and generate that docs diagram (and replace the
existing file with it).

Change-Id: I1738da9bf08bfda9b9be01489e8456569a31709e
2015-04-27 11:07:01 -07:00
Zhenguo Niu
c46541c89c Log attempts while trying to sync power state
This commit adds some logging for errors encountered
during periodic task of syncing power state. It logs the
error encountered by the power driver on each attempt.

Change-Id: I9a879aaa64a12570c4b3558d4a5fc39ca8bfa1b8
2015-04-27 21:58:31 +08:00
Jenkins
ca5e89d1ed Merge "Disable clean_step if config option is set to 0" 2015-04-27 02:55:48 +00:00
Anusha Ramineni
f68a60ab06 Disable clean_step if config option is set to 0
Disabling erase_devices clean_step in agent_ilo driver doesn't work
even though the configuration option is updated to 0.

Change-Id: I72501793b9a0d384555bec2bbe2ddfdb2f1c2c2f
Closes-Bug:#1448103
2015-04-24 19:49:08 +05:30
Lucas Alvares Gomes
21f6799a19 Improve iSCSI deployment logs
This patch just add some DEBUG and INFO logs for the iSCSI deployment
methodology, so that the operator knows what's the steps the ramdisk is
taken by looking at the conductor logs.

The patch add logs for Ironic when working with both supported ramdisks
DIB and IPA.

Change-Id: Iaee09643b03877a1a735b6019def47445bf3e16f
2015-04-24 11:26:14 +01:00
Haomeng, Wang
a4ade0beaa supports alembic migration for db2
This patch adds the optional runtime dependency to support db2
for alembic migration, will not break the default mysql path.

And I did the testing in db2 env, works fine.

Change-Id: I59deff0d82bc9e2e7ceaa157c626cd2bb7a36f0d
Closes-Bug: 1444270
2015-04-24 05:22:33 +00:00
OpenStack Proposal Bot
48da9f0058 Updated from global requirements
Change-Id: I2cda5ef47d5948f27a5a3d4c883472853f256337
2015-04-23 17:55:29 +00:00
Nisha Agarwal
d44335cf13 Update iLO documentation for capabilities
This commit updates the iLO documentation with the
nova flavor examples for how the iLO capabilities
can be used for scheduling.
It also updates the documentation for automatic
boot ISO creation for iscsi_ilo driver.

Change-Id: I392d3e5d46b62fa195d176b54e150258880f061f
2015-04-23 10:52:09 -07:00
Jenkins
13af298b96 Merge "ironic/tests/drivers/drac: Add spec_set= or autospec=True" 2015-04-23 16:51:14 +00:00
Jenkins
4a7f1c9b1a Merge "ironic/tests/drivers/irmc: Add spec_set & autospec=True" 2015-04-23 16:50:30 +00:00
Jenkins
00c0499838 Merge "ironic/tests/drivers/amt: Add autospec=True to mocks" 2015-04-23 16:44:25 +00:00
Jenkins
fee6b2bcfb Merge "Remove ironic compute driver and sched manager" 2015-04-23 09:52:20 +00:00
John L. Villalovos
ef44187a8b ironic/tests/drivers/amt: Add autospec=True to mocks
Added autospec=True or spec_set= to mocks

Fixed one incorrect call to has_calls() and changed to assert_has_calls()

Change-Id: I01756a4db88e50a8a663a164644feebd9be90f2c
2015-04-22 20:43:18 -07:00
John L. Villalovos
3084705ece ironic/tests/drivers/irmc: Add spec_set & autospec=True
Add spec_set and autospec=True to mocks

Also added a mock spec for 3rd party driver scciclient

Change-Id: I44cb641cddf271415d715fc2cd1d7cbfff70ca3b
2015-04-22 20:21:59 -07:00
John L. Villalovos
926a6d2521 ironic/tests/drivers/drac: Add spec_set= or autospec=True
Add spec_set= or autospec=True to mocks

Change-Id: Ic54834f4e06fd56a101a9701873032f2f6222c42
2015-04-22 12:53:35 -07:00
John L. Villalovos
788b7503cb Create a 3rd party mock specs file
Create third_party_driver_mock_specs.py with an initial mock spec for
the pywsman 3rd party library.

Enable initial use of this mock spec.

Change-Id: I387d26ef490833f5e833ca214dbce009c5edff0d
2015-04-22 12:42:30 -07:00
Jenkins
fff6bc7b03 Merge "Document how to configure Neutron with iPXE" 2015-04-22 15:05:14 +00:00
Lucas Alvares Gomes
f66ddc73ff Document how to configure Neutron with iPXE
In order to use iPXE with neutron we need to create a tag in Neutron,
this patch document how to do it.

Change-Id: I313eb3600e864ff7a868154fe2d0aa6fb8cc69a2
2015-04-22 10:39:17 +01:00
Ruby Loo
0c295153af Remove state transition: CLEANFAIL -> CLEANING
The state machine incorrectly models the transition from CLEANFAIL to
to CLEANING state. The spec [1] mentions that management of CLEANING
tasks should be handled in the same fashion as ZAPPING tasks. For
ZAPFAIL:
    Nodes that transition into ZAPFAIL will automatically enter
    maintenance mode, as failure to ZAP a machine usually indicates
    a hardware failure or something else that requires remote hands
    to fix.

Nodes in CLEANFAIL should do a similar thing as ZAPFAIL; they are
put in maintenance mode, but shouldn't be able to transition directly
to CLEANING.

This patch also clarifies the documentation for the transition
CLEANFAIL -> MANAGEABLE.

[1] http://specs.openstack.org/openstack/ironic-specs/specs/kilo/new-ironic-state-machine.html#proposed-change

Change-Id: Ieda2fcd78332a063c51685cd01bb824014f0f4a8
Closes-Bug: #1446758
2015-04-21 19:07:32 +00:00
Jenkins
6f36e056d4 Merge "Remove scripts for migrating nova baremetal" 2015-04-21 17:04:24 +00:00
Jenkins
811b6c974a Merge "Add a missing comma and correct some typos" 2015-04-21 16:01:59 +00:00
Jenkins
2ae4ad47e3 Merge "Remove API reboot from cleaning docs" 2015-04-21 10:38:47 +00:00
Zhenguo Niu
0990db2f5e Add a missing comma and correct some typos
Change-Id: I9c1717c386bc5587420d47f5b6e9d481e589cc2c
2015-04-21 15:44:29 +08:00
Josh Gachnang
0ebf0c9d5e Remove API reboot from cleaning docs
The API should not need to reboot for a neutron config option.
Follow up to 03d9dec4e4d94b598d54dd6a0d1b22d8be40b597.

Change-Id: Ic6462f31cef49fa943046b963989680240f292cf
2015-04-20 13:49:47 -05:00
Ruby Loo
76ab94fcbd Remove scripts for migrating nova baremetal
In juno, ironic provided support for migrating from nova's
"baremetal" driver to its "ironic" driver. These scripts
were used for that.

The baremetal driver was removed from nova in kilo. Ironic
doesn't support migrating from pre-kilo nova's baremetal
driver to post-juno nova's ironic driver.

Hence, deleting these migration scripts.

Closes-Bug: #1446330
Change-Id: Ic4990caa83a2eca3ee9fbd105bfe0a12bdaa7efe
2015-04-20 18:14:03 +00:00
Jenkins
904fa9515c Merge "Add cleaning network docs" 2015-04-20 11:16:17 +00:00
Jenkins
9775dedc2e Merge "Fixed is_glance_image(image_href) predicate logic" 2015-04-20 10:50:34 +00:00
Jenkins
86842ec33d Merge "Rearrange some code in PXEDeploy.prepare" 2015-04-20 08:41:20 +00:00
Naohiro Tamura
c624d537d9 Fixed is_glance_image(image_href) predicate logic
is_glance_image() returned True if image_href was a normal file like
"deploy.iso". It should return False for this case.
This patch fixed is_glance_image() predicate logic so that it returns
True only if image_href is glance URL or glance UUID.

Change-Id: I338964d05280175dd86bb2b6e1c7073871382277
Closes-Bug: #1446052
2015-04-20 14:55:03 +09:00
Zhenguo Niu
06fad8e1eb Rearrange some code in PXEDeploy.prepare
Change-Id: I6063ca8c4695d4cd678ad6fd08f2d52648754a36
2015-04-19 09:54:05 +08:00
Jenkins
b5d66a0ec7 Merge "Fixes typo in ironic/api/hooks.py and removes unnecessary parenthesis" 2015-04-17 21:02:29 +00:00
Mario Villaplana
12c0357dc2 Fixes typo in ironic/api/hooks.py and removes unnecessary parenthesis
Change-Id: Ie29c3732eb15a2c86ed1348465102dff82d9124e
2015-04-17 19:37:15 +00:00