3058 Commits

Author SHA1 Message Date
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
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
OpenStack Proposal Bot
48da9f0058 Updated from global requirements
Change-Id: I2cda5ef47d5948f27a5a3d4c883472853f256337
2015-04-23 17:55:29 +00: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
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
Jenkins
f66802c843 Merge "ironic/tests/drivers/ilo: Add spec= & autospec=True to mocks" 2015-04-17 15:49:41 +00:00
Josh Gachnang
03d9dec4e4 Add cleaning network docs
Ironic requires a cleaning network uuid in Kilo when using the default
config. This adds docs for how to configure the option and notes this
must be done when upgrading from Juno to Kilo.

Change-Id: Ia5cc118daefa7e3d966f1ff219ab024cb47d81f5
2015-04-16 16:49:33 -05:00
Ruby Loo
ee56f57ac9 Remove ironic compute driver and sched manager
This removes the deprecated ironic compute driver and scheduler
manager. The compute driver and scheduler manager have been in
nova's tree since Juno and this was to have been deprecated in
the Kilo release. It is now Liberty, so it is about time :)

DocImpact

Change-Id: I8c3c35ca5a9a163e689a4c856b1efd557779b9fb
2015-04-16 18:17:43 +00:00
Jenkins
d499734509 Merge "Replace 'metrics' with 'meters' in option" 2015-04-16 17:57:04 +00:00
John L. Villalovos
cdfcebca1a ironic/tests/drivers/ilo: Add spec= & autospec=True to mocks
Add spec= and autospec=True to mocks

Fixed issues with misspelled mock asserts discovered because of this
work.

Example errors
    assert_called_ince_with()
    called_once_with()

Change-Id: Ie883399427e8e1066da1e166e3a8dbf546e57bee
2015-04-16 09:36:35 -07:00
Edwin Zhai
094b76300b Replace 'metrics' with 'meters' in option
So that the openstack manuals are consistent and use the
same (right) term, this replaces the term 'metrics' with
'meters' in the help for the config option
send_sensor_data_interval.

DocImpact

Closes-bug: #1436371

Change-Id: Id88058bf2fe070a8e0774857f2c5690a60c30de0
2015-04-16 14:46:56 +00:00
Jenkins
d31ee07e61 Merge "Update ilo drivers documentation for inspection" 2015-04-16 14:11:05 +00:00
Jenkins
335c27dad5 Merge "Fix heartbeat when clean step in progress" 2015-04-16 10:32:46 +00:00
jxiaobin
8755222790 document "scheduler_use_baremetal_filters" option in nova.conf
Change-Id: Id1651764b8cd54e6f7a7a5e017302412ac4855f8
2015-04-15 16:02:34 -07:00
Jim Rollenhagen
7e49bf856b Fix heartbeat when clean step in progress
The agent returns command_result of None when a command is in progress.
The code assumed it would return an empty dict. Fix the access of
command_result to never return None, and fix the tests to reflect
reality.

Closes-Bug: #1444715
Change-Id: Iae6cd90517cb7b268ce2c089c92f64b09a606a42
2015-04-15 14:57:57 -07:00
Nisha Agarwal
ad3a7bd0a0 Update ilo drivers documentation for inspection
Change-Id: Ie209581ab9e1c7208fef341911987a0e96eea393
2015-04-15 09:09:14 -07:00
Jenkins
7ff924574a Merge "Update session headers during initialization of AgentClient" 2015-04-14 03:39:47 +00:00
Jenkins
57e9c0b24f Merge "Fix typos in vendor-passthru.rst" 2015-04-14 03:39:39 +00:00
Jenkins
05b5314db4 Merge "Open Liberty development" 2015-04-14 03:21:49 +00:00
Thierry Carrez
e8391b3630 Open Liberty development
Bump pre-version in setup.cfg to formally open Liberty development.
Kilo release branch will be cut from the previous commit.

Change-Id: I869afdbe3eb4f80277082329cb9a5794812f15f2
2015-04-14 00:27:11 +00:00
Jenkins
1a227d71ed Merge "Local boot note about updated deploy ramdisk" 2015-04-13 23:25:12 +00:00
Jenkins
dd5f9e2dc0 Merge "Cleanup DHCPFactory._dhcp_provider after tests" 2015-04-13 23:25:04 +00:00
Jenkins
31975f0eaa Merge "Convert internal RPC continue_node_cleaning to a "cast"" 2015-04-13 20:11:55 +00:00
Jenkins
9db6bc92da Merge "iLO driver documentation for node cleaning" 2015-04-13 19:58:44 +00:00
Jenkins
29b97a4c29 Merge "Fix type of value in error middleware response header" 2015-04-13 19:21:11 +00:00
Lucas Alvares Gomes
29cec9e192 Local boot note about updated deploy ramdisk
This patch is adding a note to the local boot documentation about it
being dependent upon a updated deploy ramdisk.

Change-Id: I16904cd1c9c942239c1416acbe3d8d0ce490d8f2
2015-04-13 19:29:31 +01:00
Josh Gachnang
af3918fb69 Convert internal RPC continue_node_cleaning to a "cast"
The agent driver is using RPCs to call back from the driver to the
conductor asynchronously. When using the RPC.call() method, some nodes
would end up with stuck locks when using the agent driver during cleaning.

The agent driver would issue a call() to continue_node_cleaning() after
either the first heartbeat (from prepare_cleaning) or a heartbeat after
a clean step had completed. The conductor would attempt to get a lock,
but would not be able to. The node would retain its locked state (so
far as I could tell), even after the error. Other nodes would continue
and complete cleaning just fine. The exception raised by
continue_node_cleaning() was likely not caught by the agent driver, but
caught by vendor_passthru() in the conductor as an expected exception.

Switching to cast() avoids the issue because the errors are not sent
back to the caller. I didn't experience any more stuck locks with
this change.

Change-Id: I4dbb04ccb93199bba4e1a1614bc19b70a068a9ea
Closes-Bug: 1442810
2015-04-13 10:12:55 -07:00