Merge "Make it clear that removing ironic-inspector.sqlite is for Liberty only"
This commit is contained in:
commit
6cefced4f5
@ -126,27 +126,33 @@ for information on how to fix it.
|
|||||||
How can introspection be stopped?
|
How can introspection be stopped?
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Starting with the Mitaka release, introspection for a node can be stopped with
|
Introspection for a node can be stopped with the following command::
|
||||||
the following command::
|
|
||||||
|
|
||||||
openstack baremetal introspection abort <NODE UUID>
|
openstack baremetal introspection abort <NODE UUID>
|
||||||
|
|
||||||
For older versions the recommended path is to wait until it times out.
|
.. admonition:: Liberty
|
||||||
Changing ``timeout`` setting in ``/etc/ironic-inspector/inspector.conf``
|
:class: liberty
|
||||||
may be used to reduce this timeout from 1 hour (which usually too much,
|
|
||||||
especially on virtual environment).
|
|
||||||
|
|
||||||
If you do need to stop introspection **for all nodes** right now, do the
|
The ``abort`` command above was introduced in the Mitaka release.
|
||||||
following for each node::
|
For older versions the recommended path is to wait until it times out.
|
||||||
|
Changing ``timeout`` setting in ``/etc/ironic-inspector/inspector.conf``
|
||||||
|
may be used to reduce the timeout from 1 hour (which is usually too much,
|
||||||
|
especially on virtual environments).
|
||||||
|
|
||||||
ironic node-set-power-state UUID off
|
If you do need to stop introspection **for all nodes** right now on
|
||||||
|
the Liberty release, you can do the following for each node::
|
||||||
|
|
||||||
then remove ironic-inspector cache, rebuild it and restart ironic-inspector::
|
ironic node-set-power-state UUID off
|
||||||
|
|
||||||
rm /var/lib/ironic-inspector/inspector.sqlite
|
then remove ironic-inspector cache, rebuild it and restart
|
||||||
sudo ironic-inspector-dbsync --config-file /etc/ironic-inspector/inspector.conf upgrade
|
ironic-inspector::
|
||||||
sudo systemctl restart openstack-ironic-inspector
|
|
||||||
|
|
||||||
|
rm /var/lib/ironic-inspector/inspector.sqlite
|
||||||
|
sudo ironic-inspector-dbsync --config-file /etc/ironic-inspector/inspector.conf upgrade
|
||||||
|
sudo systemctl restart openstack-ironic-inspector
|
||||||
|
|
||||||
|
Note that this procedure is not recommended and may have unexpected side
|
||||||
|
effects.
|
||||||
|
|
||||||
.. _ironic-inspector troubleshooting documentation: http://docs.openstack.org/developer/ironic-inspector/troubleshooting.html
|
.. _ironic-inspector troubleshooting documentation: http://docs.openstack.org/developer/ironic-inspector/troubleshooting.html
|
||||||
.. _the dynamic-login element: https://github.com/openstack/diskimage-builder/tree/master/elements/dynamic-login
|
.. _the dynamic-login element: https://github.com/openstack/diskimage-builder/tree/master/elements/dynamic-login
|
||||||
|
Loading…
x
Reference in New Issue
Block a user