6711 Commits

Author SHA1 Message Date
Vasyl Saienko
e48375538c Add Ironic standalone tests
This patch adds the following standalone tests:

  * agent_ipmitool + wholedisk image + bios
  * agent_ipmitool + partitioned image + bios
  * pxe_ipmitool + wholedisk image + bios
  * pxe_ipmitool + partitioned image + bios

Partial-Bug: #1660606

Change-Id: Ic04b0f134e20d9937a610a14d7c4128f45738eeb
2017-03-15 16:54:45 +02:00
Jenkins
a2cea8f2dc Merge "Fix typos of filename in api-ref" 2017-03-14 19:15:40 +00:00
Jenkins
c740182912 Merge "Updated from global requirements" 2017-03-14 19:13:09 +00:00
Jenkins
187866c123 Merge "Cleanup hung iscsi session" 2017-03-14 11:44:59 +00:00
wangkf
72abce14b0 Fix typos of filename in api-ref
Typo is fixed and port-list-response.json is updated.

Closes-Bug: 1672358

Change-Id: Iffe385d705e607966ac00455d56aaac85a1a1e69
2017-03-14 19:35:53 +08:00
OpenStack Proposal Bot
cc9aa3fe3e Updated from global requirements
Change-Id: I47d7279b17bf5c438da6b873d612c0e439e8b311
2017-03-14 11:19:15 +00:00
Jenkins
9334cb577c Merge "Speed up test_touch_conductor_deadlock()" 2017-03-14 09:55:50 +00:00
Vladyslav Drok
ac075b7f35 Fix the exception message in tempest plugin
Follow up to commit 733ff3fff71f8781414befe40aaca3c6492cda6b

Change-Id: I3498268c6dd7626c1e99ded9fdfb287b4197c999
2017-03-14 06:41:23 +00:00
Jenkins
7ce234d8b4 Merge "Deprecate support for glance v1" 2017-03-14 05:30:43 +00:00
Jenkins
a8ca8181e1 Merge "Refactor waiters in our tempest plugin" 2017-03-14 01:53:36 +00:00
Jenkins
bec748f437 Merge "Address a shell syntax mistake" 2017-03-14 00:05:03 +00:00
Ruby Loo
6c6663d45e Speed up test_touch_conductor_deadlock()
This speeds up the unit test in ironic.tests.unit.db.test_conductor,
DbConductorTestCase.test_touch_conductor_deadlock() by mocking
oslo_db.api.time.sleep(). In my local environment, it went from
1 second to about 0.02 seconds.

Change-Id: I534611dc51a8a3af6ddb17bf28cb096df084d8e7
Closes-Bug: #1672533
2017-03-13 21:00:39 +00:00
Vasyl Saienko
28ccbf79c4 Cleanup hung iscsi session
This patch ensure that there is no iscsi session left after
failed deployment.

Change-Id: I569933f27746da65b1d22ba9e9279439e2e792cf
Closes-Bug: #1632649
2017-03-13 20:52:55 +00:00
Vladyslav Drok
632f082b2c Refactor waiters in our tempest plugin
Deduplicates some of the code between common.waiters module and
BaremetalScenarioTest functions.

Change-Id: Ia87646cccdefba22caf121f4e347e8f2edf736e0
2017-03-13 19:30:58 +00:00
Matt Riedemann
e91f31663c Deprecate support for glance v1
Nova dropped support for glance v1 in Ocata and we're going
to disable glance v1 in CI runs for Pike. The glance v1
API is deprecated so we should start burning it out of the
system in all of the projects.

Closes-Bug: #1670423

Change-Id: I1398f81b28e1b000ee110c159e498b72e3746109
2017-03-13 14:32:51 -04:00
Jenkins
8e14f21c15 Merge "This adds a tempest test for creating a chassis with a specific UUID." 2017-03-13 17:35:03 +00:00
Jenkins
a244fb28c5 Merge "grenade: Only 'enable_plugin ironic' if not already in conf" 2017-03-13 16:09:01 +00:00
SofiiaAndriichenko
598f783825 This adds a tempest test for creating a chassis with a specific UUID.
Change-Id: I51fbcd0613c16618d5e4a52ae1d798321a21bced
2017-03-13 13:33:23 +00:00
Jenkins
4f8afe8085 Merge "Remove overwriting the default value of db_max_retries." 2017-03-13 10:58:25 +00:00
Jenkins
7e6fc1e597 Merge "Update ironic.conf.sample" 2017-03-13 10:51:57 +00:00
Jenkins
05ec267793 Merge "Do not load credentials on import in tempest plugin clients.py" 2017-03-13 10:10:22 +00:00
Tao Li
aec3663604 Address a shell syntax mistake
Missing space before ']' in addressed line and change it to
another better format.

Change-Id: Ib7cfe5990db180dbc347315759fffad002dfa550
2017-03-13 09:54:11 +08:00
Matt Riedemann
3f1aa22d4b Update ironic.conf.sample
The in-tree sample of ironic.conf is stale, this updates it.

Change-Id: I8c93b98d44a371587231f13e83e9198eaeddf368
2017-03-12 21:23:36 -04:00
John L. Villalovos
0be91665b4 grenade: Only 'enable_plugin ironic' if not already in conf
To support multi-node grenade jobs we need to move enabling of the
ironic devstack plugin out of the ironic grenade settings file
devstack/upgrade/settings. But if we add enabling of the ironic devstack
plugin to project-config it will cause the gate to break as the plugin
will be enabled twice.

This checks to see if the ironic devstack plugin has already been
enabled:
  * If it has already been enabled it will not enable it again.
  * If it has not yet been enabled it will enable it.

This will allow us to update project-config to enable the ironic
devstack plugin and not break the gate.

After all the changes have landed we will propose a follow-up patch to
remove all this additonal logic and the enabling of the ironic devstack
plugin.

Change-Id: I09ed78ef918eb0359045350e89d42c6df9f3e490
2017-03-10 13:22:33 -08:00
Joanna Taryma
66b0bcfd08 Remove overwriting the default value of db_max_retries.
Remove overwriting the default value of db_max_retries, instead use
default value defined by oslo.db which is 20.
Adjust the default value of db_max_retries in the release note and sample
configuration file.

Closes-Bug: #1671629
Change-Id: I1e5f632d687c1cebab895cc91958d502b9fce884
2017-03-10 10:41:27 -08:00
Jenkins
dd10f2e44f Merge "Correct typos in doc files" 2017-03-10 15:56:41 +00:00
Vladyslav Drok
94c5230413 Do not load credentials on import in tempest plugin clients.py
Set the ADMIN_CREDS global variable inside the Manager class
constructor instead of doing it on module import.

Change-Id: I8c82fa077f316c747a37e31980f7c2d74986bad2
Closes-Bug: 1671813
2017-03-10 16:16:14 +02:00
Jenkins
ad99084fbc Merge "Update the Ironic Upgrade guide" 2017-03-10 12:42:52 +00:00
Jenkins
4a8a0fd822 Merge "Fix updating node.driver to classic" 2017-03-10 12:42:41 +00:00
Jenkins
8ba5203731 Merge "Add wsgi handling to ironic-api in devstack" 2017-03-10 12:33:02 +00:00
Ramamani Yeleswarapu
77f3b3391e Update the Ironic Upgrade guide
This patch does the following:

- streamlines the upgrade information
- adds headers for L->M, M->N and N->O upgrades.

Partial-Bug: #1606675
Change-Id: I0cdf423ed1bf302f2c721e87cec291712f3f18d3
2017-03-09 11:09:47 -08:00
Xavier
0b23a041f1 Validation before perform node deallocation
Introduces a new validation to ensure the node deallocation
process will only be performed to nodes that have Server
Profile applied in OneView. When the allocation process
fails, the machine will have no Server Profile applied in
OneView and in ironic it will have no reference to any
Server Profile. Under these conditions if the deallocation
process be performed the driver will try to delete a
nonexistent Server Profile in OneView, leaving the node
in error state in ironic.

Change-Id: I83cef7fafac4e22ebf5eb4fe83f6da26ec132c99
Closes-Bug: #1657892
2017-03-09 14:04:24 -03:00
anascko
5d22cfe1a8 Add wsgi handling to ironic-api in devstack
Adds handling of running ironic API under Apache as WSGI app to
devstack plugin.

New variable IRONIC_USE_MOD_WSGI (False by default) is added.
Another new variable IRONIC_WSGI_DIR (default is distro specific) is
also added, which specifies location for WSGI scripts.

Change-Id: I9c5ad56e1acd292ff0f9cc9b460125fc420abda5
Closes-Bug: #1513005
2017-03-09 16:55:34 +02:00
Vasyl Saienko
3d02084559 Fix updating node.driver to classic
An issue when it was impossible to update ``node.driver``
to classic if the current driver is one of hardware types.

Change-Id: I348a27a13d3025fe7e8ddfa31992b895a3809730
Closes-Bug: #1668579
2017-03-09 12:07:49 +02:00
Jenkins
748e93009a Merge "devstack: Make sentry _IRONIC_DEVSTACK_LIB a global variable" 2017-03-08 22:07:54 +00:00
Jenkins
732c2a5943 Merge "Use Sphinx 1.5 warning-is-error" 2017-03-08 19:22:02 +00:00
John L. Villalovos
1e560b182f devstack: Make sentry _IRONIC_DEVSTACK_LIB a global variable
Make the sentry variable _IRONIC_DEVSTACK_LIB a global variable so
that it will work as expected.

When variables use the 'declare' directive, it is by default a local
variable. While other variables have global scope.

For example:
   declare -A AN_ARRAY   # local in scope
   foo=1                 # global in scope
   declare -A -g SPAM    # global in scope because of -g

This causes errors to occur as some of the variables will be local only
and others will be global.

The issue that can occur is that when sourcing devstack/lib/ironic a
second time the sentry _IRONIC_DEVSTACK_LIB will not be set but all
the other variables from devstack/lib/ironic will already have been
set as they are by default global variables. And the purpose of
_IRONIC_DEVSTACK_LIB is to prevent the file from being sourced twice.

Change-Id: I24b6ebb89f3d950d39b0665346b4c17bf05d0a0b
2017-03-08 08:19:40 -08:00
Andreas Jaeger
4cff2ab6d5 Use Sphinx 1.5 warning-is-error
With pbr 2.0 and Sphinx 1.5, the setting for treat sphinx warnings as
errors is setting warning-is-error in build_sphinx section. Migrate
the setting from the old warnerrors one.

Fix problems found:
* Duplicate labels (rename wrong faq entries, rename unused drivers
  entries)
* Add api/autoindex.rst as hidden to the index so that we do not get a
  warning. The modindex includes the same content, so no need to show
  this.
* Add releasenotes/index.rst, webapi/v1.rst, user-guide, and install-guide.rst
  to hidden index since they're not listed in index on purpose, so sphinx
  will not warn that they do not appear in a toc
* Add deploy/radosgw to index
* ignore app.add_directiv warning
* Fix reference to user-guide to use proper markup so that Sphinx knows
  the user-guide is referenced.

Change-Id: I00d249229d4d31ba36d4393d60847fdb1513a744
2017-03-08 08:22:24 +01:00
Jenkins
e2e5340981 Merge "Fixed release note for DBDeadLock handling" 2017-03-07 16:22:30 +00:00
Jenkins
96d7d6ad61 Merge "Remove references to py34 from developer guide" 2017-03-06 23:39:20 +00:00
Jenkins
a6796ccae9 Merge "Clean up eventlet monkey patch comment and reno" 2017-03-06 23:37:17 +00:00
Joanna Taryma
a1f1cd8538 Fixed release note for DBDeadLock handling
Follow up patch of 3428cb74f0a6fe05c23cf00dc66da4c1d9766409

Add information about db_max_retries configuration option to the
release note. Add periods at the end of senteces in the release note.

Change-Id: I2811ce6976d020e32928773ecb872fefa05e10b7
2017-03-06 14:08:09 -08:00
Solio Sarabia
83cf4b742d Remove references to py34 from developer guide
Developer guide should not include references to Python 3.4
or py34, since this Python version is not supported.

Change-Id: I0d326b7a542afa952c36ceb422f52d4192517b8b
Related-Bug: #1667312
2017-03-06 15:55:20 -06:00
Jay Faulkner
bb22ddd056 Delete release note to fix build
This release note was updated in master after the ocata branch was cut.
Doing this caused it to appear in both ocata and current-series release
notes. Removing the file from master will prevent it from showing up in
master anymore.

Change-Id: Ic1c7ec1483e92e15a82392d87874c08a7a03b710
Closes-bug: #1670401
2017-03-06 08:16:16 -08:00
yuhui_inspur
8bc960b317 Correct typos in doc files
Correct some typos in doc/source/drivers/ilo.rst,
doc/source/drivers/ipa.rst, doc/source/drivers/oneview.rst.

Change-Id: I47fc7ce7c6c8a83ab9b0ffae666f49cc90da9c0f
2017-03-06 01:29:29 +00:00
Jenkins
2751ab9b81 Merge "Moved fix-socat-command release note" 2017-03-03 19:56:27 +00:00
Jenkins
c216621cff Merge "Move eventlet monkey patch code" 2017-03-03 19:53:53 +00:00
Mario Villaplana
2751212eae Clean up eventlet monkey patch comment and reno
This is a follow up to I887a06566dcc2f09875f975f1e12ae4ff75fd348.

The release note tense is fixed, and more information is added about why
the change was necessary.

Change-Id: Ie89e21460a4a7654795830bf4781404ec506a52f
2017-03-03 18:16:57 +00:00
Joanna Taryma
547f23cd54 Moved fix-socat-command release note
Moved fix-socat-command release note to a proper directory
ironic/releasenotes instead of ironic/ironic/releasenotes

Change-Id: If2b2a54ceb00c29ae81c9b7ca672f163b1985cb7
2017-03-03 08:58:11 -08:00
Jenkins
f9ecaca12f Merge "doc: update FAQ for release notes" 2017-03-02 23:07:45 +00:00