533 Commits

Author SHA1 Message Date
Dmitry Tantsur
3429e3824c Switch to Futurist library for asynchronous execution and periodic tasks
This change switches the conductor to using Futurist library executor and
periodic tasks worker instead of oslo.service periodic tasks. This allows
running periodic tasks in parallel and relying on more standard interfaces
(futures, executors) when dealing with asynchronous execution.

A green thread executor is used instead of using an eventlet green pool
directly. The maximum number of workers is taken from the existing
workers_pool_size configuration option, and no tasks are allowed
to be enqueued to mimic the previous behaviour (might be lifted later).

The periodic tasks worker is using the same executor, and its main loop thread
is also running on it. For this reason minimum value for workers_pool_size
is now 3: periodic task main loop, keep alive thread and at least one thread for
other tasks. A special decorator for driver-periodic tasks is now deprecated,
as the generic decorator can be used there as well.

Closes-Bug: #1526277
Change-Id: I57bf7cebfb6db805b6c521bacfef2993b16ce1ee
2016-02-24 15:44:05 +01:00
Jenkins
1226bde2ff Merge "Replace config 'clean_nodes' with 'automated_clean'" 2016-02-16 17:15:18 +00:00
Lin Tan
080707f59b Introduce driver_internal_info in code-contribution-guide
Change-Id: Icdc0237efb13b01b483baff6516493921bdf41d7
2016-02-15 16:43:11 +08:00
Jenkins
aa1f251b69 Merge "Document possible access problems with custom IRONIC_VM_LOG_DIR path" 2016-02-12 19:17:56 +00:00
Jacek Tomasiak
959689e30d Document possible access problems with custom IRONIC_VM_LOG_DIR path
Example local.conf from Ironic docs uses $HOME/ironic-bm-logs as VM log dir.
On some systems (e.g. Fedora) user's home is accessible only to the owner by
default which causes "permission denied" errors when starting VMs because
QEMU domains are running as non-root user ("qemu" in Fedora).

Extend the documentation with note about possible problems with custom
log directory set using IRONIC_VM_LOG_DIR.

Change-Id: Ia1d7688fd71c4853538621ec32b2d4a024f52a76
Closes-Bug: #1532184
2016-02-11 15:03:39 +01:00
Vladyslav Drok
26922806ac Add documentation for proxies usage with IPA
This change adds documentation on setting proxy properties that will
be used by IPA ramdisk to download a disk image.

Closes-bug: #1526222

Change-Id: Ib640da7304e8a5779e74e1f15898229b6f772b11
2016-02-11 12:15:14 +02:00
Ruby Loo
9220cbd385 Replace config 'clean_nodes' with 'automated_clean'
Since we have automated cleaning and manual cleaning, the config
'clean_nodes' is a bit confusing since it only refers to automated
cleaning. It is replaced with 'automated_clean'.

This deprecates the 'clean_nodes' config; the plan is to delete it
in Newton cycle.

Updates to the documentation to explicitly mention automated vs
manual cleaning is done in a separate patch.

This includes a reno-style release note about the upgrade impact.

Change-Id: I5b4fbac1753cb4213eb151b663490f381b751597
Partial-Bug: #1526290
2016-02-10 16:03:28 +00:00
Ruby Loo
edc37cbe1d API to manually clean nodes
This adds an API to allow manual cleaning of nodes, via
PUT /v1/nodes/<node_ident>/states/provision. The argument
'target' is 'clean', and the argument 'clean_steps' (the
list of clean steps to be performed on the node) must be
specified.

The API version is bumped to 1.15.

Change-Id: I0e34407133684e34c4ab9446b3521a24f3038f92
Partial-Bug: #1526290
2016-02-09 14:41:01 +00:00
Jenkins
c9f96d6d79 Merge "Show transitions initiated by API requests" 2016-02-09 10:45:14 +00:00
Jenkins
19bf5a8b62 Merge "Updated iLO documentation for boot mode capability" 2016-02-09 10:21:09 +00:00
vmud213
39a2828bb5 Updated iLO documentation for boot mode capability
Updated the "Boot mode support" section to include more details about
the boot mode capability

Closes-Bug: #1540857
Change-Id: Ib0ec1bf0e308d2c761efb8b483a6edb4194f0ebd
2016-02-08 10:48:57 -08:00
Jenkins
4d77414f05 Merge "Refactor install-guide to configure API/Conductor seperately" 2016-02-08 16:18:49 +00:00
Jenkins
f47d4ee6ca Merge "Enable Ironic Inspector for Cisco Drivers" 2016-02-04 18:35:21 +00:00
Jenkins
f476aa133f Merge "Fix doc8's "duplicated target names" (D000) error" 2016-02-04 17:26:23 +00:00
Lin Tan
0f73a8b765 Refactor install-guide to configure API/Conductor seperately
Users are asking how to add new conductors. But install guide
missing a clear description about that.
So this will seperate API and Conductor configs to guide user adding
new conductors easily.

Change-Id: I40f6a13c2561de2c9b311b9a988db8ef733eb912
Implements: blueprint online-upgrade-support
Closes-Bug: #1529021
2016-02-04 09:24:03 +08:00
Jenkins
d54c1535ca Merge "DRAC: cleanup after switch to python-dracclient" 2016-02-03 20:33:04 +00:00
Sam Betts
65efbfd2c4 Enable Ironic Inspector for Cisco Drivers
This patch enables inspection via the Ironic Inspector for the Cisco
UCS and CIMC drivers.

Change-Id: Ibec82663532c5f49edbb5fc9159220c967ecf498
2016-02-03 16:35:05 +00:00
Lucas Alvares Gomes
d85b9970ce Fix doc8's "duplicated target names" (D000) error
This patch is enabling the D000 error (duplicated target names) in doc8
and fixing the occurrences of this error in the docs.

Change-Id: Iac048d213e0571b99696ec708f5c07d6e1bebb19
2016-02-03 15:22:35 +00:00
Jenkins
7e734252e9 Merge "Extend root device hints to support device name" 2016-02-03 14:45:40 +00:00
Lucas Alvares Gomes
0edba8a86c Extend root device hints to support device name
This patch is extending the root device hints to support the device name
as input.

It's important to note that for SATA, SCSI and IDE disk controllers
the name is not recommended to be used because the order in which the
device nodes are added in Linux is arbitrary, resulting in devices like
/dev/sda and /dev/sdb switching around at boot time. The documentation
was updated to inform operators about this problem.

Depends-On: I48d6456c75bbe6ddf16ac6561e5461ca51eb9c37
Change-Id: I564d68ab1c66505195745c34e16e829b45a00a75
Closes-Bug: #1526732
2016-02-02 17:29:15 +00:00
Lucas Alvares Gomes
fc72b4d904 Enable doc8 style checker for *.rst files
This patch is enabling the doc8 style checker for the *.rst files in
Ironic.

Since this patch is just the first stab at enabling this new check two
errors are currently being ignored by doc8 because of the number of
occurrences in our docs:

* D000 - Duplicated target names. We do have many links with generic
         names scattered around the docs (e.g "see", "link")

* D001 - Line's too long

These errors will be fixed in a following patch.

Change-Id: I32fb5a3104b9773c55a80a84dd81e49c567c76ac
2016-02-02 12:38:20 +00:00
Ruby Loo
4f8b97dff6 Show transitions initiated by API requests
This updates the state machine diagram and documentation to indicate
which transitions are initiated by API requests versus the ones that
are internally done by the conductor. Stable states are highlighted
a bit.

Change-Id: I1a2de81b14696286f1da47c06374ad235962c849
Closes-Bug: #1527316
2016-02-01 14:39:12 +00:00
Lin Tan
fa981fdb2f Fix tiny format issue with install_guide
Change-Id: I2202556d329805a0d0e8c1b387b356a9776fc5c1
2016-01-28 11:46:28 +00:00
Mark Silence
8a1063e803 Fix minor typo
Corrected spelling of signatures in last line of doc.

Change-Id: I55981725ae4b19c915010c5adaf08453ab704060
2016-01-27 01:25:03 +00:00
Imre Farkas
47be8011c6 DRAC: cleanup after switch to python-dracclient
DRAC specific code from Ironic is moving to its own project, to
python-dracclient project. This patch finishes refactoring code in
Ironic to use the new library.

Change-Id: I6223dbbeb770d773ebdd72277017156cbdb1d035
2016-01-25 12:44:11 +01:00
Jenkins
5bd6fe735c Merge "Remove unneeded enable_service in dev-quickstart.rst" 2016-01-22 00:07:52 +00:00
Zhenguo Niu
6bcbe9d477 Remove duplicate words in API version history
Change-Id: I56ad0f4f0adfd70663a720bcd9366d340dff0851
2016-01-21 14:54:20 +08:00
Zhenguo Niu
0c9915e4ab Remove unneeded enable_service in dev-quickstart.rst
We already added service enabled in devstack settings file
https://github.com/openstack/ironic/blob/master/devstack/settings

Change-Id: Ie43e8daf5b15f0c76e6f2095c0911c1ef640929d
2016-01-21 13:15:40 +08:00
Jenkins
25ce6f6767 Merge "Clarify that size in root device hints and local_gb are often different" 2016-01-20 19:52:12 +00:00
Jenkins
30435dd750 Merge "Reorganize the developer's main page" 2016-01-20 19:39:01 +00:00
Dmitry Tantsur
7a5acbd7bf Clarify that size in root device hints and local_gb are often different
We often set local_gb = size - 1, while in root device hints size
is expected to be real.

Change-Id: Ia1d53fa66870b13bff53324c85cef9731d59f71b
2016-01-20 17:02:37 +01:00
Andreas Jaeger
a74f8169d5 Update links to OpenStack manuals
Security Guide and User Guide have been reworked, update links to them
to current location.

Change-Id: I2c642546df21196c70f1b3a4498b8e07494c09f2
2016-01-16 18:02:04 +01:00
Ruby Loo
2ef3b403e4 Reorganize the developer's main page
This reorganizes the developer's main page by adding a
'Commands and API References' section at the same level
as the sections for Administrator's & Developer's guides.

It also removes subsections like 'Introduction' and 'Overview'
that didn't make sense any more since they included more than
one might expect from such sections.

Change-Id: Ibf5415d946238ffadedc36c9a731f773f4fa2d71
2016-01-13 22:22:08 +00:00
Ruby Loo
c12cc036eb Document backwards compat for passthru methods
This adds a section to the vendor-passthru documentation
about backwards compatibility (which isn't necessary but
desirable) for vendor-passthru methods.

Change-Id: I27b4a6638772e3508e9dab34d90ca904198352f0
2016-01-13 20:59:06 +00:00
Jenkins
1f59516a0a Merge "Clarify rejected status in RFE contribution docs" 2016-01-08 14:08:03 +00:00
Jenkins
0bfb89bd6b Merge "Document the process of proposing new features" 2016-01-08 13:57:59 +00:00
Jim Rollenhagen
16bb29ea1b Clarify rejected status in RFE contribution docs
s/not approved/rejected/ to be absolutely clear.

Change-Id: Iad135139a9d3731f0949010440518076927d0ebe
2016-01-08 05:42:21 -08:00
Jenkins
da5dfef88e Merge "Add documentation for standalone ilo drivers" 2016-01-08 13:30:12 +00:00
Vladyslav Drok
ffb654ba29 Document the process of proposing new features
This change adds documentation in code contribution guide on how to
propose new features to ironic using "Requests for Feature
Enhancements".

Change-Id: I439f073f00e3732ad246765389d17bc54f96fe13
2016-01-07 09:15:02 -08:00
Lucas Alvares Gomes
b48289e8a2 Remove release differences from flavor creation docs
The documentation in the master should reflect to the current version of
the code, therefore information from previous releases should be
removed. This patch is simplifying the flavor creation section of the
documentation because it reflected to many different versions of Ironic,
since Icehouse.

Change-Id: I5d3d54783dcaf1828cf8e09efcf2239566e5a916
Partial-Bug: #1523962
2016-01-06 19:21:42 +00:00
Nisha Agarwal
b0eaea1b1e Add documentation for standalone ilo drivers
This commit adds documentation for iLO drivers with
standalone ironic.

Closes-bug: #1513314

Change-Id: I8d0891176ef59afce006cadc6ae142df427bacfc
2016-01-06 08:45:53 -08:00
Jenkins
87a91e3ad2 Merge "Don't return tracebacks in API response in debug mode" 2016-01-04 23:05:38 +00:00
Jenkins
0f245db577 Merge "Add documentation for user inputs as HTTPS URLs" 2016-01-04 16:44:23 +00:00
Jim Rollenhagen
bd60603e44 Don't return tracebacks in API response in debug mode
The API should not return tracebacks in a production environment. As
deployers often run services in debug mode, because OpenStack is hard to
debug, we should not return tracebacks in debug mode. To allow
developers etc to continue to use this feature, add a new config option
'debug_tracebacks_in_api' that maintains this behavior.

Also add to troubleshooting docs.

Change-Id: Idbbf7efc45140e9e3d8b9491edd58905cbba0363
Closes-Bug: #1525002
2016-01-04 15:11:03 +00:00
Jenkins
56c4fe590c Merge "Enable ironic devstack plugin in local.conf sample" 2015-12-29 03:13:14 +00:00
Jenkins
87e08d122a Merge "Update "Developer Quick-Start" guide for Fedora 23+" 2015-12-28 11:34:41 +00:00
Jenkins
caf0614681 Merge "Correct a tiny issue in install-guide" 2015-12-25 15:27:35 +00:00
Lucas Alvares Gomes
13cf3c1f68 Update "Developer Quick-Start" guide for Fedora 23+
This patch is updating the "Developer Quick-Start" guide to instruct
people using Fedora 23+ to install a package called "redhat-rpm-config".
This is needed to build a virtualenv for development successfully.

Closes-Bug: #1527614
Change-Id: I95c927330faea009b327492a3884e01b9c44606d
2015-12-25 13:48:49 +00:00
Vladyslav Drok
73ea7ce39b Enable ironic devstack plugin in local.conf sample
As ironic is installed as devstack plugin, add this to sample
local.conf file. Apart from that, some formatting issues in
dev-quickstart are fixed.

Depends-On: I5125fce295c79600781469c2f48bea80e7600081
Change-Id: I30683b2569e6ca1233f54d1529a74f6a63cd633e
2015-12-25 13:02:35 +00:00
Lin Tan
5fa4465ff5 Correct a tiny issue in install-guide
rabbit_host/rabbit_userid/rabbit_password/rabbit_virtual_host are
no longer belong to default group. They are under
oslo_messaging_rabbit group right now.

Close-Bug: 1529202
Change-Id: Iff25c3daed35a8490abc7914a79eb3427d2803f5
2015-12-25 09:28:32 +00:00