7933 Commits

Author SHA1 Message Date
Zuul
eef73d257f Merge "Switch non-vendor parts admin guide to hardware types" 2018-01-11 13:32:00 +00:00
Zuul
7ac39e4029 Merge "Remove ironic_tempest_plugin/ directory" 2018-01-11 00:46:43 +00:00
John L. Villalovos
ac7988fe14 Remove ironic_tempest_plugin/ directory
People can read the release notes to find out that the
ironic_tempest_plugin/ has been removed and moved to the
openstack/ironic-tempest-plugin project

Change-Id: Iabd7a7a19bb5c4bd07f9776bb1cdeadb1ac2e7c7
2018-01-10 09:42:53 -08:00
Dmitry Tantsur
a7623d92dc Do not validate root partition size for whole disk images in iscsi deploy
On whole disk images a root partition is already created and populated, so
validating its size makes no sense. We don't do it for direct deploy.

Change-Id: I7a4114979afb310aeb77f99fbcf09ef7c54862d6
Closes-Bug: #1742451
2018-01-10 15:53:23 +01:00
Dmitry Tantsur
8a87fc6fcb Switch non-vendor parts admin guide to hardware types
This change makes the admin guide use hardware types for examples and
explanations. The in-band inspection document was updated with recent
changes.

Vendor driver documentation requires more careful review, and ideally
should be updated by vendor representatives.

Change-Id: I98a2eb905e352502a7f9f4cb1804c9d64489ec47
Partial-Bug: #1690185
2018-01-10 12:34:17 +01:00
Zuul
d491ef543a Merge "Clean up release notes before a release" 2018-01-09 19:13:56 +00:00
Zuul
c31b22887f Merge "Run in superconductor cellsv2 mode for non-grenade jobs" 2018-01-09 16:12:28 +00:00
Dmitry Tantsur
f1c26abc24 Clean up release notes before a release
Change-Id: I9f1344ce247a82689878c9b5f852f0f802e8247e
2018-01-09 16:51:55 +01:00
Zuul
b5563b4384 Merge "Adds rescue_interface to base driver class" 2018-01-09 06:11:20 +00:00
Zuul
cd8610bae2 Merge "Devstack: install qemu-system-x86 on RHEL" 2018-01-09 00:56:48 +00:00
Zuul
01cf26019e Merge "Add uWSGI support" 2018-01-08 18:09:33 +00:00
Zuul
2c13e4157d Merge "Add a provisioning target:adopt" 2018-01-08 16:11:53 +00:00
John L. Villalovos
7e1287f243 Remove ironic_tempest_plugin/ directory
We now use the project openstack/ironic-tempest-plugin to store our
tempest plugin. All content from the ironic_tempest_plugin/ directory
has been ported to that project.

We no longer want to have the plugin content stored here so we delete
it.

Remove check in tools/flake8wrap.sh that prevented changes to the
ironic_tempest_plugin/ directory.

Change-Id: I700bd7b71472fa91f6bc02aebc055584df08e0ef
2018-01-05 15:12:13 -08:00
Sam Betts
12d8500ce5 Fix initialization of auth token AuthProtocol
AuthProtocol expects the conf paramter to be in the form
{"oslo_config_config": cfg.CONF} if you want to use your own oslo config
object. This change ensures we init AuthProtocol with the right form of
configuration.

Change-Id: I7f8abf200c6fcbf83c5a7d5c867fdb56d95923c3
2018-01-05 18:29:02 +00:00
Dmitry Tantsur
2b5849b49e Rework exception handling on deploy failures in conductor
Currently on unexpected python error we only log the error message, e.g.
"NoneType object is not iterable" or just KeyError missing key. This is
obviously not helping debugging too much.

This change splits error handling into separate handling of IronicException
and other exceptions.

For IronicException: only log the error message, remove redundant "Error: "
from the last_error message.

For other exceptions: log traceback, mention that the exception was not
expected.

Finally, move logging to the top of the error handling helper to make sure
it never gets lost.

Change-Id: Idc2339c3bdad8092907d9651d40f241a2ae50dbe
Related-Bug: #1741223
2018-01-04 11:12:33 +01:00
fpxie
7490b6e743 Add a provisioning target:adopt
Change-Id: If6c8b18b41c1fe3f2868c4b144402d4a031ee957
2018-01-04 15:29:49 +08:00
Jim Rollenhagen
28a165fae4 Devstack: install qemu-system-x86 on RHEL
This wasn't installed for me on a devstack run on a fresh RHEL 7.4 box.
Make sure it's installed as we depend on it by default.

Change-Id: I4faadb2d73afd298ffb1b7690b23f72800123f77
2018-01-03 14:41:48 -05:00
Vasyl Saienko
61b81d0c73 Add uWSGI support
This patch implements uWSGI support for ironic API service.
ironic/api/app.wsgi is deprecated in favor of pbr generated
ironic-api-wsgi

Co-Authored-By: anascko <ovoshchana@mirantis.com>

Change-Id: Ieb68c1042e31b77f9a549fd90afe31a65008deca
Closes-Bug: #1719260
Closes-Bug: #1668966
2017-12-28 18:08:49 +02:00
Zuul
bf8cb05aa4 Merge "Updated from global requirements" 2017-12-27 18:45:12 +00:00
wangzhengwei
28a50d8a49 Fix ironic node create cli
Change-Id: Ief59bc5c498de70dec94743c25b68888acffc549
2017-12-27 09:57:35 +00:00
Zuul
866b82ed69 Merge "zuul: Update TLSPROXY based on branch" 2017-12-23 14:48:02 +00:00
Zuul
b3ef903f28 Merge "Use openstack port create instead of neutron port-create" 2017-12-22 20:09:06 +00:00
Zuul
14c6a311b4 Merge "zuul: Add ability to specify a 'branch_override' value" 2017-12-22 18:23:58 +00:00
John L. Villalovos
844cd0436a zuul: Update TLSPROXY based on branch
We can not use DEVSTACK_GATE_TLSPROXY=1 when building stable/ocata.
Update it to not set it if we have BRANCH_OVERRIDE or the ZUUL_BRANCH
set to stable/ocata.

This will allow us to build stable/ocata from the
openstack/ironic-tempest-plugin gate jobs.

Change-Id: Id487b997a9d83c5daf2f9284a4e80e1f90fe6ce2
2017-12-22 09:06:59 -08:00
Matt Riedemann
da477a07f8 Run in superconductor cellsv2 mode for non-grenade jobs
Added in change I2bbdac5cd431e72517cb1c72bb925660ec8e868b,
ironic needed to run the multi-node jobs in singleconductor
mode because they rely on reschedules working in nova, which
doesn't work in superconductor mode where the top-level conductor
and scheduler are on a different message queue from the compute
service and cell conductor.

With the alternate hosts series in nova in Queens, we should have
the reschedule problem fixed such that when originally scheduling,
we not only get a target host but also a list of alternates for
retries within the cell. This allows us to run ironic multi-node
CI jobs (and all ironic non-upgrade related jobs for that matter)
in the default superconductor mode which is the recommended way
to run nova with cellsv2.

Depends-On: Iae904afb6cb4fcea8bb27741d774ffbe986a5fb4
Depends-On: Ie599968d9e7537e551fe6d9deb63a91b256b1e11
Change-Id: I755243abed054e6b6556a9a9498e565042293262
2017-12-22 16:43:45 +00:00
OpenStack Proposal Bot
7428eebbf4 Updated from global requirements
Change-Id: I334e41029c958466d9dc37e0f4e79ffe7bae8a89
2017-12-22 02:54:09 +00:00
Zuul
a24e5dd116 Merge "[ansible] add defaults to config" 2017-12-21 20:14:26 +00:00
Julia Kreger
26d7be52d7 Add documentation covering storage multi-attach
Change-Id: Ia4767328023acfa43ce513396fc963e75ba60b52
Closes-Bug: #1735474
2017-12-21 12:06:40 -08:00
Zuul
c0a4513f83 Merge "zuul: Remove some redundancy by consolidating the 'post.yaml' files" 2017-12-21 18:16:06 +00:00
Zuul
ed1872141c Merge "Document the check done in "ironic-dbsync upgrade"" 2017-12-21 12:30:08 +00:00
Shivanand Tendulker
433b1fd197 Adds rescue_interface to base driver class
This commit adds `rescue` interface to `BaseDriver` and implements
it for `fake-hardware` hardware type. It adds configuration
parameters '[DEFAULT]/enabled_rescue_interfaces' and
'[DEFAULT]/default_rescue_interface'. The default value of
configuration parameter '[DEFAULT]/enabled_rescue_interfaces' is
`no-rescue`.

It adds new rescue states and a new 'rescue' field to the Node
object. It adds objects.node.Node._convert_to_version().
The method handles converting the new rescue_interface field
between different versions of the Node.

Partial-bug: #1526449
Co-Authored-By: Jay Faulkner <jay@jvf.cc>
Co-Authored-By: Josh Gachnang <josh@pcsforeducation.com>
Co-Authored-By: Jesse J. Cook <jesse.j.cook@member.fsf.org>
Co-Authored-By: Mario Villaplana <mario.villaplana@gmail.com>
Co-Authored-By: Aparna <aparnavtce@gmail.com>
Co-Authored-By: Shivanand Tendulker <stendulker@gmail.com>

Change-Id: I1534247bf207a20a7a58534988192aef392eaff2
2017-12-21 03:01:48 -05:00
Ruby Loo
7e38a08ee2 Document the check done in "ironic-dbsync upgrade"
This adds documentation about the version check done by the
"ironic-dbsync upgrade" command.

Change-Id: Id213784602658692ea452edebfb874b26f127c58
2017-12-20 22:57:44 +00:00
John L. Villalovos
8490f75607 zuul: Add ability to specify a 'branch_override' value
To be able to run a job on a different branch add the ability to
specify a 'branch_override' value. We will use this in the
openstack/ironic-tempest-plugin testing to be able to check changes
against our stable branches.

Change-Id: I939ab8c410b39658b4209a41a91c3339802d134b
2017-12-20 14:28:39 -08:00
John L. Villalovos
27e44605a4 zuul: Remove some redundancy by consolidating the 'post.yaml' files
All the 'post.yaml' files are identical. Put them in the two parent
jobs so we only have two copies instead of ~14 copies.

Change-Id: Ic8e519d597ec8423ad1040b4f4671fae0662f2db
2017-12-20 14:12:53 -08:00
Zuul
5feb626f64 Merge "ansible: handle mount of /sys the same way IPA does it" 2017-12-20 20:51:36 +00:00
Harald Jensas
4cb638f65e Use openstack port create instead of neutron port-create
Change-Id: Icbb95fd00bfaac69f3fe8ff3b93118b2095608ff
2017-12-20 14:18:17 +01:00
Zuul
49b528101a Merge "Remove deprecated ironic.common.policy.enforce()" 2017-12-20 13:17:18 +00:00
Dmitry Tantsur
d4a3cb6c05 ansible: handle mount of /sys the same way IPA does it
* Mount with -t sysfs instead of a bind mount
* Retry umounting of each directory several times.

I'm seeing occasional failures unmounting /sys, as it's still busy.
This patch should fix it.

Change-Id: I4bc6dfd6939699f7a4ed7cc59e2e503b46bbaeaf
2017-12-20 12:47:47 +01:00
Pavlo Shchelokovskyy
ce7119eaf3 [ansible] add defaults to config
In a homogeneous hardware deployment that uses the same ramdisk for all
nodes, and possibly the same playbooks for actions with ansible deploy
interface, it is benefitial to make defaults of various `ansible_`
driver_info fields to be configurable via ironic configuration file
to simplify node enrollment.

This patch also deprecates `ansible_deploy_username` and
`ansible_deploy_key_file` options in node's driver_info in favor of
`ansible_username` and `ansible_key_file` respectively.

Change-Id: Ib198c07c1d414c0d78950e5d98a5176e12a7df13
Closes-Bug: #1736409
2017-12-20 10:06:11 +00:00
Zuul
2924c3efb6 Merge "Finalize migration to keystoneauth adapters" 2017-12-20 02:21:54 +00:00
John L. Villalovos
435328e54f Prevent changes to the ironic_tempest_plugin/ directory
Add a check to the PEP8 test to prevent changes to the
ironic_tempest_plugin/ directory.

This will be removed when we remove the ironic_tempest_plugin/
directory.

Change-Id: I3cdbb39ebc661652ff9ceba5f3115ac26667953b
2017-12-19 09:25:44 -08:00
Zuul
7ff667674b Merge "Updated from global requirements" 2017-12-19 16:12:06 +00:00
Pavlo Shchelokovskyy
ba53acb279 Finalize migration to keystoneauth adapters
removes code that allowed some service sections to not have and use
keystoneauth adapter options.

Also deprecates `[keystone]region_name` option in favor of per-client
option of the same name.

Change-Id: Ifd58947b016bfa93b516dd47a170ba8f5abf277e
Closes-Bug: #1699547
2017-12-19 12:17:35 +02:00
Zuul
77246085af Merge "Use NamedExtensionManager for drivers" 2017-12-19 03:18:52 +00:00
OpenStack Proposal Bot
f5f39f790e Updated from global requirements
Change-Id: I2cf715505a254e950c6a9720898e99201bb4869a
2017-12-19 01:18:17 +00:00
Zuul
547159c893 Merge "Use adapters for neutronclient" 2017-12-18 05:51:38 +00:00
Zuul
75499e1ccf Merge "Follow up Add additional capabilities discovery for iRMC driver" 2017-12-15 14:57:17 +00:00
Nguyen Hung Phuong
076b3e649e Follow up Add additional capabilities discovery for iRMC driver
This commit makes changes based upon review feedback
in I1958e18a5b9d933e2aa405b200bac7717f146611.
 - Updates documentation describes required software by python-scciclient
 - Updates release note

Co-authored-By: Tran Ha Tuyen <tuyenth@vn.fujitsu.com>

Related-Bug: #1637422
Change-Id: I1ca1e1e02b8c2102e0dbd858c0a51df0dd6b58fb
2017-12-15 14:26:06 +00:00
Thomas Herve
7eccab7dc0 Use NamedExtensionManager for drivers
Instead of using stevedore NameDispatchExtensionManager and filter the
enabled drivers, use NamedExtensionManager with the list of enabled
names. That has the benefit of not loading the drivers we don't want.

Change-Id: I492a140f22f52a3ddc52b83a774efc8c17e68c20
Closes-Bug: #1738411
2017-12-15 15:01:10 +01:00
Zuul
4ef82a34e0 Merge "Switch emphasis to hardware types in the installation guide" 2017-12-14 19:51:41 +00:00