Oslo.config deprecated parameter enforce_type and change its
default value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0.
Nova peridic py35 job failure due to the DeprecationWarning: "Using the
'enforce_type' argument is deprecated in version '4.0' and will be
removed in version '5.0': The argument enforce_type has changed its
default value to True and then will be removed completely."[1]
So need clean up usage of enforce_type.
Note this patch also change enforce_type from False to default value
True in test__get_node_console_with_reset_wait_timeout. We should test
as runtime, we can use float type to test when config option
serial_console_state_timeout is float.
Reviewed: https:/ /review. openstack. org/457188 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=213f7120c48 3a37317091b7478 dfb99495619ce4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 213f7120c483a37 317091b7478dfb9 9495619ce4
Author: ChangBo Guo(gcb) <email address hidden>
Date: Mon Apr 17 16:51:02 2017 +0800
Remove usage of parameter enforce_type
Oslo.config deprecated parameter enforce_type and change its 0388cbc9f7dbaa5 5700ca276b0.
default value to True in Ifa552de0a994e4
Nova peridic py35 job failure due to the DeprecationWarning: "Using the
'enforce_type' argument is deprecated in version '4.0' and will be
removed in version '5.0': The argument enforce_type has changed its
default value to True and then will be removed completely."[1]
So need clean up usage of enforce_type.
Note this patch also change enforce_type from False to default value node_console_ with_reset_ wait_timeout. We should test console_ state_timeout is float.
True in test__get_
as runtime, we can use float type to test when config option
serial_
[1] http:// logs.openstack. org/periodic/ periodic- nova-py35- with-oslo- master/ 6eeea0f/ testr_results. html.gz
Related--Bug: #1517839
Change-Id: I94915a5c6abbbb 739c597025272dc 0e25d3ba2ec