diff --git a/playbooks/roles/os_cinder/defaults/main.yml b/playbooks/roles/os_cinder/defaults/main.yml index b910b3a3b7..438af092b4 100644 --- a/playbooks/roles/os_cinder/defaults/main.yml +++ b/playbooks/roles/os_cinder/defaults/main.yml @@ -24,6 +24,8 @@ cinder_storage_address: 127.0.0.1 cinder_nova_catalog_info: compute:nova:internalURL cinder_nova_catalog_admin_info: compute:nova:adminURL +cinder_fatal_deprecations: False + ## DB cinder_galera_user: cinder cinder_galera_database: cinder diff --git a/playbooks/roles/os_cinder/templates/cinder.conf.j2 b/playbooks/roles/os_cinder/templates/cinder.conf.j2 index ac24316246..7179860494 100644 --- a/playbooks/roles/os_cinder/templates/cinder.conf.j2 +++ b/playbooks/roles/os_cinder/templates/cinder.conf.j2 @@ -6,6 +6,7 @@ [DEFAULT] verbose = {{ verbose }} debug = {{ debug }} +fatal_deprecations = {{ cinder_fatal_deprecations }} my_ip = {{ cinder_storage_address }} osapi_volume_workers = {{ cinder_osapi_volume_workers | default(api_threads) }} diff --git a/playbooks/roles/os_glance/defaults/main.yml b/playbooks/roles/os_glance/defaults/main.yml index 80b73eb3cf..48c6276ae0 100644 --- a/playbooks/roles/os_glance/defaults/main.yml +++ b/playbooks/roles/os_glance/defaults/main.yml @@ -19,6 +19,7 @@ is_metal: true ## Verbosity Options debug: False verbose: True +glance_fatal_deprecations: False ## System info glance_system_user_name: glance diff --git a/playbooks/roles/os_glance/templates/glance-api.conf.j2 b/playbooks/roles/os_glance/templates/glance-api.conf.j2 index 7937a2746e..bc2a72b8c3 100644 --- a/playbooks/roles/os_glance/templates/glance-api.conf.j2 +++ b/playbooks/roles/os_glance/templates/glance-api.conf.j2 @@ -7,6 +7,7 @@ verbose = {{ verbose }} debug = {{ debug }} log_file = /var/log/glance/glance-api.log +fatal_deprecations = {{ glance_fatal_deprecations }} use_syslog = False bind_host = {{ glance_api_bind_address }} bind_port = {{ glance_api_service_port }} diff --git a/playbooks/roles/os_glance/templates/glance-registry.conf.j2 b/playbooks/roles/os_glance/templates/glance-registry.conf.j2 index f09b335e73..07c1ba1930 100644 --- a/playbooks/roles/os_glance/templates/glance-registry.conf.j2 +++ b/playbooks/roles/os_glance/templates/glance-registry.conf.j2 @@ -6,6 +6,7 @@ [DEFAULT] verbose = {{ verbose }} debug = {{ debug }} +fatal_deprecations = {{ glance_fatal_deprecations }} log_file = /var/log/glance/glance-registry.log use_syslog = False bind_host = {{ glance_registry_bind_address }} diff --git a/playbooks/roles/os_heat/defaults/main.yml b/playbooks/roles/os_heat/defaults/main.yml index fb69aee7c9..5c959e09e3 100644 --- a/playbooks/roles/os_heat/defaults/main.yml +++ b/playbooks/roles/os_heat/defaults/main.yml @@ -22,6 +22,7 @@ is_metal: true ## Verbosity Options debug: False verbose: True +heat_fatal_deprecations: False heat_client_endpoint: internalURL diff --git a/playbooks/roles/os_heat/templates/heat.conf.j2 b/playbooks/roles/os_heat/templates/heat.conf.j2 index aded1a728f..49808cb4ed 100644 --- a/playbooks/roles/os_heat/templates/heat.conf.j2 +++ b/playbooks/roles/os_heat/templates/heat.conf.j2 @@ -3,6 +3,7 @@ [DEFAULT] verbose = {{ verbose }} debug = {{ debug }} +fatal_deprecations = {{ heat_fatal_deprecations }} use_syslog = False log_file = /var/log/heat/heat.log diff --git a/playbooks/roles/os_keystone/defaults/main.yml b/playbooks/roles/os_keystone/defaults/main.yml index b04f5bfdbd..5714634393 100644 --- a/playbooks/roles/os_keystone/defaults/main.yml +++ b/playbooks/roles/os_keystone/defaults/main.yml @@ -19,6 +19,7 @@ is_metal: true ## Verbosity Options debug: False verbose: True +keystone_fatal_deprecations: False ## System info keystone_system_user_name: keystone diff --git a/playbooks/roles/os_keystone/templates/keystone.conf.j2 b/playbooks/roles/os_keystone/templates/keystone.conf.j2 index 906affde07..42f0fc9361 100644 --- a/playbooks/roles/os_keystone/templates/keystone.conf.j2 +++ b/playbooks/roles/os_keystone/templates/keystone.conf.j2 @@ -11,6 +11,7 @@ public_endpoint = {{ keystone_public_endpoint }} {% endif %} admin_port = {{ keystone_admin_port }} admin_endpoint = {{ keystone_service_adminuri }} +fatal_deprecations = {{ keystone_fatal_deprecations }} log_file = keystone.log log_dir = /var/log/keystone diff --git a/playbooks/roles/os_neutron/defaults/main.yml b/playbooks/roles/os_neutron/defaults/main.yml index 182e38f070..80e10e34bb 100644 --- a/playbooks/roles/os_neutron/defaults/main.yml +++ b/playbooks/roles/os_neutron/defaults/main.yml @@ -19,6 +19,7 @@ is_metal: true ## Verbosity Options debug: False verbose: True +neutron_fatal_deprecations: False ## neutron User / Group neutron_system_user_name: neutron diff --git a/playbooks/roles/os_neutron/templates/neutron.conf.j2 b/playbooks/roles/os_neutron/templates/neutron.conf.j2 index 6924d4937d..191f3445e1 100644 --- a/playbooks/roles/os_neutron/templates/neutron.conf.j2 +++ b/playbooks/roles/os_neutron/templates/neutron.conf.j2 @@ -8,6 +8,7 @@ [DEFAULT] verbose = {{ verbose }} debug = {{ debug }} +fatal_deprecations = {{ neutron_fatal_deprecations }} use_syslog = False diff --git a/playbooks/roles/os_nova/defaults/main.yml b/playbooks/roles/os_nova/defaults/main.yml index 2dc41fb011..96dc91eb4e 100644 --- a/playbooks/roles/os_nova/defaults/main.yml +++ b/playbooks/roles/os_nova/defaults/main.yml @@ -19,6 +19,7 @@ is_metal: true ## Verbosity Options debug: False verbose: True +nova_fatal_deprecations: False ## System info nova_system_user_name: nova diff --git a/playbooks/roles/os_nova/templates/nova.conf.j2 b/playbooks/roles/os_nova/templates/nova.conf.j2 index e9c59c2ea6..86db6fb2b8 100644 --- a/playbooks/roles/os_nova/templates/nova.conf.j2 +++ b/playbooks/roles/os_nova/templates/nova.conf.j2 @@ -7,6 +7,7 @@ # Logs / State debug = {{ debug }} verbose = {{ verbose }} +fatal_deprecations = {{ nova_fatal_deprecations }} log_dir = /var/log/nova state_path = {{ nova_system_home_folder }} lock_path = /var/lock/nova diff --git a/playbooks/roles/os_tempest/defaults/main.yml b/playbooks/roles/os_tempest/defaults/main.yml index 708c21e47f..48a1b57b70 100644 --- a/playbooks/roles/os_tempest/defaults/main.yml +++ b/playbooks/roles/os_tempest/defaults/main.yml @@ -19,6 +19,7 @@ is_metal: true ## Verbosity Options debug: False verbose: True +tempest_fatal_deprecations: False tempest_private_subnet_cidr: "192.168.74.0/24" tempest_public_subnet_cidr: "10.1.13.0/24" diff --git a/playbooks/roles/os_tempest/templates/tempest.conf.j2 b/playbooks/roles/os_tempest/templates/tempest.conf.j2 index a2de5cc8f3..b3cb14fdd1 100644 --- a/playbooks/roles/os_tempest/templates/tempest.conf.j2 +++ b/playbooks/roles/os_tempest/templates/tempest.conf.j2 @@ -5,6 +5,7 @@ disable_process_locking = false lock_path = {{ tempest_git_dest }}/locks debug = {{ debug }} verbose = {{ verbose }} +fatal_deprecations = {{ tempest_fatal_deprecations }} log_file = /var/log/utility/tempest.log use_stderr = False fatal_deprecations = true diff --git a/scripts/bootstrap-aio.sh b/scripts/bootstrap-aio.sh index b4c78d1777..acfa8f2268 100755 --- a/scripts/bootstrap-aio.sh +++ b/scripts/bootstrap-aio.sh @@ -29,6 +29,15 @@ export NOVA_VIRT_TYPE=${NOVA_VIRT_TYPE:-"qemu"} export TEMPEST_FLAT_CIDR=${TEMPEST_FLAT_CIDR:-"172.29.248.0/22"} export FLUSH_IPTABLES=${FLUSH_IPTABLES:-"yes"} +# Default disabled fatal deprecation warnings +export CINDER_FATAL_DEPRECATIONS=${CINDER_FATAL_DEPRECATIONS:-"no"} +export GLANCE_FATAL_DEPRECATIONS=${GLANCE_FATAL_DEPRECATIONS:-"no"} +export HEAT_FATAL_DEPRECATIONS=${HEAT_FATAL_DEPRECATIONS:-"no"} +export KEYSTONE_FATAL_DEPRECATIONS=${KEYSTONE_FATAL_DEPRECATIONS:-"no"} +export NEUTRON_FATAL_DEPRECATIONS=${NEUTRON_FATAL_DEPRECATIONS:-"no"} +export NOVA_FATAL_DEPRECATIONS=${NOVA_FATAL_DEPRECATIONS:-"no"} +export TEMPEST_FATAL_DEPRECATIONS=${TEMPEST_FATAL_DEPRECATIONS:-"no"} + ## Library Check ------------------------------------------------------------- info_block "Checking for required libraries." 2> /dev/null || source $(dirname ${0})/scripts-library.sh @@ -267,6 +276,35 @@ if [ "${DEPLOY_SWIFT}" == "yes" ]; then sed -i "s/glance_swift_store_user:.*/glance_swift_store_user: '{{ keystone_admin_user_name }}:{{ keystone_admin_tenant_name }}'/" /etc/openstack_deploy/user_secrets.yml fi +# Update fatal_deprecations settings +if [ "${CINDER_FATAL_DEPRECATIONS}" == "yes" ]; then + echo "cinder_fatal_deprecations: True" | tee -a /etc/openstack_deploy/user_variables.yml +fi + +if [ "${GLANCE_FATAL_DEPRECATIONS}" == "yes" ]; then + echo "glance_fatal_deprecations: True" | tee -a /etc/openstack_deploy/user_variables.yml +fi + +if [ "${HEAT_FATAL_DEPRECATIONS}" == "yes" ]; then + echo "heat_fatal_deprecations: True" | tee -a /etc/openstack_deploy/user_variables.yml +fi + +if [ "${KEYSTONE_FATAL_DEPRECATIONS}" == "yes" ]; then + echo "keystone_fatal_deprecations: True" | tee -a /etc/openstack_deploy/user_variables.yml +fi + +if [ "${NEUTRON_FATAL_DEPRECATIONS}" == "yes" ]; then + echo "neutron_fatal_deprecations: True" | tee -a /etc/openstack_deploy/user_variables.yml +fi + +if [ "${NOVA_FATAL_DEPRECATIONS}" == "yes" ]; then + echo "nova_fatal_deprecations: True" | tee -a /etc/openstack_deploy/user_variables.yml +fi + +if [ "${TEMPEST_FATAL_DEPRECATIONS}" == "yes" ]; then + echo "tempest_fatal_deprecations: True" | tee -a /etc/openstack_deploy/user_variables.yml +fi + # Log some data about the instance and the rest of the system log_instance_info diff --git a/scripts/gate-check-commit.sh b/scripts/gate-check-commit.sh index 7c726c5e9f..d47fca1b29 100755 --- a/scripts/gate-check-commit.sh +++ b/scripts/gate-check-commit.sh @@ -43,6 +43,14 @@ export SYMLINK_DIR=${SYMLINK_DIR:-"$(pwd)/logs"} export RUN_TEMPEST_OPTS=${RUN_TEMPEST_OPTS:-'--serial'} export TESTR_OPTS=${TESTR_OPTS:-''} +# enable fatal deprecation warnings +export CINDER_FATAL_DEPRECATIONS=yes +export GLANCE_FATAL_DEPRECATIONS=yes +export HEAT_FATAL_DEPRECATIONS=yes +export KEYSTONE_FATAL_DEPRECATIONS=yes +export NEUTRON_FATAL_DEPRECATIONS=yes +export NOVA_FATAL_DEPRECATIONS=yes +export TEMPEST_FATAL_DEPRECATIONS=yes ## Functions ----------------------------------------------------------------- info_block "Checking for required libraries." 2> /dev/null || source $(dirname ${0})/scripts-library.sh