Tempest: increase ironic sync timeout
Increase ironic_sync_timeout to 80 sec. Ironic default status check period
is 60 sec. But calling Ironic API to get node status takes some time, and
races appear, as result tempest job periodically fails. 80 sec would
be more than enough to make one more check.
Change-Id: I5fe0198b2ce2f1f0078c1d14aa1c367a71178097
diff --git a/ironic_tempest_plugin/config.py b/ironic_tempest_plugin/config.py
new file mode 100644
index 0000000..9802934
--- /dev/null
+++ b/ironic_tempest_plugin/config.py
@@ -0,0 +1,55 @@
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+from oslo_config import cfg
+
+from tempest import config # noqa
+
+
+baremetal_introspection_group = cfg.OptGroup(
+ name="baremetal_introspection",
+ title="Baremetal introspection service options",
+ help="When enabling baremetal introspection tests,"
+ "Ironic must be configured.")
+
+BaremetalIntrospectionGroup = [
+ cfg.StrOpt('catalog_type',
+ default='baremetal-introspection',
+ help="Catalog type of the baremetal provisioning service"),
+ cfg.StrOpt('endpoint_type',
+ default='publicURL',
+ choices=['public', 'admin', 'internal',
+ 'publicURL', 'adminURL', 'internalURL'],
+ help="The endpoint type to use for the baremetal introspection"
+ " service"),
+ cfg.IntOpt('introspection_sleep',
+ default=30,
+ help="Introspection sleep before check status"),
+ cfg.IntOpt('introspection_timeout',
+ default=600,
+ help="Introspection time out"),
+ cfg.IntOpt('hypervisor_update_sleep',
+ default=60,
+ help="Time to wait until nova becomes aware of "
+ "bare metal instances"),
+ cfg.IntOpt('hypervisor_update_timeout',
+ default=300,
+ help="Time out for wait until nova becomes aware of "
+ "bare metal instances"),
+ # NOTE(aarefiev): status_check_period default is 60s, but checking
+ # node state takes some time(API call), so races appear here,
+ # 80s would be enough to make one more check.
+ cfg.IntOpt('ironic_sync_timeout',
+ default=80,
+ help="Time it might take for Ironic--Inspector "
+ "sync to happen"),
+]