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
This patch ensure that there is no iscsi session left after
failed deployment.
Change-Id: I569933f27746da65b1d22ba9e9279439e2e792cf
Closes-Bug: #1632649
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
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
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
Set the ADMIN_CREDS global variable inside the Manager class
constructor instead of doing it on module import.
Change-Id: I8c82fa077f316c747a37e31980f7c2d74986bad2
Closes-Bug: 1671813
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
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
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
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
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
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
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
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
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
Correct some typos in doc/source/drivers/ilo.rst,
doc/source/drivers/ipa.rst, doc/source/drivers/oneview.rst.
Change-Id: I47fc7ce7c6c8a83ab9b0ffae666f49cc90da9c0f
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
Moved fix-socat-command release note to a proper directory
ironic/releasenotes instead of ironic/ironic/releasenotes
Change-Id: If2b2a54ceb00c29ae81c9b7ca672f163b1985cb7