Closed hellt closed 6 years ago
Another example why dynamic add_host calls might be a better idea than generating this intermediate buildvars file
Sent from my iPhone
On May 25, 2018, at 6:42 AM, Roman Dodin notifications@github.com wrote:
Hi, version: v2.4@master
I am experiencing an issue where my new build_vars file is not taking into account and the vars from previous run are used instead.
First run
In order to deploy an NSGV I have executed a role using the following command:
cd /opt/nuage-metro/nuage-metro && ./metro-ansible nsgv_predeploy.yml -e build_vars_file=build_vars_0025.yml It was the first time I've used the new v2.4
Second run
I wanted to deploy another NSGV using different Org/Port_layout/etc. So I created another build_vars and started the deployment:
cd /opt/nuage-metro/nuage-metro && ./metro-ansible nsgv_predeploy.yml -e build_vars_file=build_vars_0026.yml Instead I see in the logs, that the data extracted from a previous build role were used. Consider the following ansible.log generated after the second run:
2018-05-25 15:34:17,257 p=18320 u=root | [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 2018-05-25 15:34:17,258 p=18320 u=root | [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 2018-05-25 15:34:18,200 p=18320 u=root | PLAY [localhost] *** 2018-05-25 15:34:18,489 p=18320 u=root | TASK [Gathering Facts] * 2018-05-25 15:34:23,260 p=18320 u=root | ok: [localhost] 2018-05-25 15:34:23,318 p=18320 u=root | TASK [common : Set data file variables] **** 2018-05-25 15:34:23,356 p=18320 u=root | ok: [localhost] 2018-05-25 15:34:23,408 p=18320 u=root | TASK [common : Include build variable files] 2018-05-25 15:34:23,439 p=18320 u=root | ok: [localhost] 2018-05-25 15:34:23,484 p=18320 u=root | TASK [common : Include user credential file] 2018-05-25 15:34:23,519 p=18320 u=root | ok: [localhost] 2018-05-25 15:34:23,558 p=18320 u=root | TASK [common : Check if build is required] * 2018-05-25 15:34:27,722 p=18320 u=root | TASK [common : Stat the file] ** 2018-05-25 15:34:28,211 p=18320 u=root | ok: [localhost] 2018-05-25 15:34:28,274 p=18320 u=root | TASK [common : assert] ***** 2018-05-25 15:34:28,310 p=18320 u=root | ok: [localhost] => { "changed": false, "failed": false, "msg": "All assertions passed" } 2018-05-25 15:34:28,362 p=18320 u=root | TASK [common : Find md5 file] ** 2018-05-25 15:34:28,784 p=18320 u=root | ok: [localhost] 2018-05-25 15:34:28,851 p=18320 u=root | TASK [common : Set variable to do build if md5 not found] ** 2018-05-25 15:34:28,934 p=18320 u=root | TASK [common : Get the md5 value in the file we found] *** 2018-05-25 15:34:29,347 p=18320 u=root | changed: [localhost] 2018-05-25 15:34:29,410 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:29,522 p=18320 u=root | TASK [common : Set variable to do build if md5s don't match] * 2018-05-25 15:34:29,605 p=18320 u=root | TASK [common : Stat the file] ** 2018-05-25 15:34:29,958 p=18320 u=root | ok: [localhost] 2018-05-25 15:34:30,024 p=18320 u=root | TASK [common : assert] ***** 2018-05-25 15:34:30,079 p=18320 u=root | ok: [localhost] => { "changed": false, "failed": false, "msg": "All assertions passed" } 2018-05-25 15:34:30,137 p=18320 u=root | TASK [common : Find md5 file] ** 2018-05-25 15:34:30,447 p=18320 u=root | ok: [localhost] 2018-05-25 15:34:30,493 p=18320 u=root | TASK [common : Set variable to do build if md5 not found] ** 2018-05-25 15:34:30,557 p=18320 u=root | TASK [common : Get the md5 value in the file we found] * 2018-05-25 15:34:30,809 p=18320 u=root | changed: [localhost] 2018-05-25 15:34:30,856 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:30,971 p=18320 u=root | TASK [common : Set variable to do build if md5s don't match] * 2018-05-25 15:34:31,063 p=18320 u=root | TASK [common : Check for Ansible version] ** 2018-05-25 15:34:31,152 p=18320 u=root | TASK [common : Check YAML syntax] ** 2018-05-25 15:34:31,219 p=18320 u=root | TASK [common : Check build_vars.yml] ***** 2018-05-25 15:34:31,283 p=18320 u=root | TASK [common : Check if package is installed] ** 2018-05-25 15:34:31,344 p=18320 u=root | TASK [common : Fail if package is not installed] ***** 2018-05-25 15:34:31,400 p=18320 u=root | TASK [common : Verify that the ntp servers are dotted decimal notation] **** 2018-05-25 15:34:31,487 p=18320 u=root | TASK [common : Verify that the VSC system name is not longer than 32 characters] * 2018-05-25 15:34:31,574 p=18320 u=root | TASK [common : Verify exactly 1 or 3 vsds are defined] *** 2018-05-25 15:34:31,639 p=18320 u=root | TASK [common : Verify exactly 1 or 3 vstats(elastic search) are defined] * 2018-05-25 15:34:31,710 p=18320 u=root | TASK [common : Verify VSD DNS entries exist at server {{ dns_server_list[0] }}, and hostnames map to their m] 2018-05-25 15:34:31,775 p=18320 u=root | TASK [common : Verify VStat DNS entries exist at server {{ dns_server_list[0] }}, and hostnames map to their management IPs] 2018-05-25 15:34:31,839 p=18320 u=root | TASK [common : Verify VNS Utils DNS entries exist at server {{ dns_server_list[0] }}, and hostnames map to their IPs] * 2018-05-25 15:34:31,896 p=18320 u=root | TASK [build : Clear host_vars directory] ***** 2018-05-25 15:34:31,954 p=18320 u=root | TASK [build : Create the host_vars directory] ** 2018-05-25 15:34:32,013 p=18320 u=root | TASK [common : Check for Ansible version] ** 2018-05-25 15:34:32,068 p=18320 u=root | TASK [common : get the paramiko version] 2018-05-25 15:34:32,130 p=18320 u=root | TASK [common : get the paramiko version] 2018-05-25 15:34:32,185 p=18320 u=root | TASK [common : Check for supported host OS on Ansible host] **** 2018-05-25 15:34:32,241 p=18320 u=root | TASK [common : Output installed packages yum] ** 2018-05-25 15:34:32,309 p=18320 u=root | TASK [common : Output installed packages pip] ** 2018-05-25 15:34:32,364 p=18320 u=root | TASK [common : Output installed group packages] **** 2018-05-25 15:34:32,420 p=18320 u=root | TASK [common : Check if all pip packages are installed] **** 2018-05-25 15:34:32,500 p=18320 u=root | TASK [common : Check if all yum packages are installed] **** 2018-05-25 15:34:32,664 p=18320 u=root | TASK [common : Check if all yum group packages are installed] ** 2018-05-25 15:34:32,775 p=18320 u=root | TASK [common : Find name of VSD QCOW2 File] **** 2018-05-25 15:34:32,857 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:32,951 p=18320 u=root | TASK [common : Verify that a VSD QCOW2 file was found] *** 2018-05-25 15:34:33,039 p=18320 u=root | TASK [common : Register VSD QCOW2 variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:33,114 p=18320 u=root | TASK [common : Find name of VSD OVA File] ** 2018-05-25 15:34:33,186 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:33,253 p=18320 u=root | TASK [common : Verify that a VSD OVA file was found] ***** 2018-05-25 15:34:33,335 p=18320 u=root | TASK [common : Register VSD OVA variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:33,400 p=18320 u=root | TASK [common : Find name of VSD Migration ISO File] **** 2018-05-25 15:34:33,472 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:33,564 p=18320 u=root | TASK [common : Verify that a VSD migration ISO file was found] *** 2018-05-25 15:34:33,645 p=18320 u=root | TASK [common : Register VSD Migration ISO variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:33,726 p=18320 u=root | TASK [common : Set myvsds_check] *** 2018-05-25 15:34:33,801 p=18320 u=root | TASK [common : Assign empty list to myvsds if it is undefined] * 2018-05-25 15:34:33,893 p=18320 u=root | TASK [common : Verify that vsd_fqdn_global is defined] * 2018-05-25 15:34:33,969 p=18320 u=root | TASK [common : Create host_vars files for vsd] ***** 2018-05-25 15:34:34,049 p=18320 u=root | TASK [common : Find name of VSC QCOW2 File] **** 2018-05-25 15:34:34,125 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:34,191 p=18320 u=root | TASK [common : Verify that a VSC QCOW2 file was found] *** 2018-05-25 15:34:34,265 p=18320 u=root | TASK [common : Register VSC QCOW2 variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:34,329 p=18320 u=root | TASK [common : Find name of VSC OVA File] ** 2018-05-25 15:34:34,398 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:34,478 p=18320 u=root | TASK [common : Verify that a VSC OVA file was found] ***** 2018-05-25 15:34:34,541 p=18320 u=root | TASK [common : Register VSC OVA variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:34,601 p=18320 u=root | TASK [common : Find name of VSC TIM File] ** 2018-05-25 15:34:34,663 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:34,717 p=18320 u=root | TASK [common : Verify that a VSC TIM file was found] ***** 2018-05-25 15:34:34,777 p=18320 u=root | TASK [common : Register VSC TIM variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:34,842 p=18320 u=root | TASK [common : Set myvscs_check] *** 2018-05-25 15:34:34,896 p=18320 u=root | TASK [common : Assign empty list to myvscs if it is undefined] * 2018-05-25 15:34:34,958 p=18320 u=root | TASK [common : Create host_vars files for vsc] *** 2018-05-25 15:34:35,020 p=18320 u=root | TASK [common : Determine Major, Minor and Patch version from upgrade_from_version var] * 2018-05-25 15:34:35,094 p=18320 u=root | TASK [common : Determine Major, Minor and Patch version from upgrade_to_version var] * 2018-05-25 15:34:35,171 p=18320 u=root | TASK [common : Set minor upgrade path] *** 2018-05-25 15:34:35,273 p=18320 u=root | TASK [common : Set major upgrade path] ***** 2018-05-25 15:34:35,367 p=18320 u=root | TASK [common : Set in-place upgrade flag] ** 2018-05-25 15:34:35,435 p=18320 u=root | TASK [common : Skip setting qcow2 or ova vars] * 2018-05-25 15:34:35,505 p=18320 u=root | TASK [common : Find name of Stats VM QCOW2 File] ***** 2018-05-25 15:34:35,574 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:35,648 p=18320 u=root | TASK [common : Verify that a Stats VM QCOW2 file was found] **** 2018-05-25 15:34:35,742 p=18320 u=root | TASK [common : Register VSTAT QCOW2 variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:35,822 p=18320 u=root | TASK [common : Find name of Stats VM OVF/OVA File] *** 2018-05-25 15:34:35,908 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:35,992 p=18320 u=root | TASK [common : Verify that a Stats VM OVF file was found] ** 2018-05-25 15:34:36,076 p=18320 u=root | TASK [common : Register VSTAT OVF/OVA variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:36,150 p=18320 u=root | TASK [common : Find name of VSTAT backup Package Files (EL7 architecture)] * 2018-05-25 15:34:36,208 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:36,301 p=18320 u=root | TASK [common : Verify that VSTAT backup scripts are found] ***** 2018-05-25 15:34:36,389 p=18320 u=root | TASK [common : Register VSTAT backup script variables with proper path and script locations for use in other playbooks] * 2018-05-25 15:34:36,463 p=18320 u=root | TASK [common : Find name of VSTAT upgrade Package Files (EL7 architecture)] 2018-05-25 15:34:36,539 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:36,605 p=18320 u=root | TASK [common : Verify that VSTAT upgrade scripts are found] **** 2018-05-25 15:34:36,677 p=18320 u=root | TASK [common : Register VSTAT upgrade script variables with proper path and script locations for use in other playbooks] * 2018-05-25 15:34:36,737 p=18320 u=root | TASK [common : Create host_vars files for vstat] *** 2018-05-25 15:34:36,802 p=18320 u=root | TASK [common : Find name of VSD QCOW2 File] **** 2018-05-25 15:34:36,872 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:36,942 p=18320 u=root | TASK [common : Verify that a VSD QCOW2 file was found] * 2018-05-25 15:34:37,019 p=18320 u=root | TASK [common : Register VSD QCOW2 variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:37,094 p=18320 u=root | TASK [common : Find name of VSD OVA File] ** 2018-05-25 15:34:37,173 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:37,244 p=18320 u=root | TASK [common : Verify that a VSD OVA file was found] ***** 2018-05-25 15:34:37,315 p=18320 u=root | TASK [common : Register VSD OVA variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:37,387 p=18320 u=root | TASK [common : Find name of VSD Migration ISO File] **** 2018-05-25 15:34:37,447 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:37,512 p=18320 u=root | TASK [common : Verify that a VSD migration ISO file was found] *** 2018-05-25 15:34:37,576 p=18320 u=root | TASK [common : Register VSD Migration ISO variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:37,636 p=18320 u=root | TASK [common : Set myvcins_check] ** 2018-05-25 15:34:37,696 p=18320 u=root | TASK [common : Assign empty list to myvcins if it is undefined] **** 2018-05-25 15:34:37,754 p=18320 u=root | TASK [common : Disable HA deployment for VCIN] *** 2018-05-25 15:34:37,824 p=18320 u=root | TASK [common : Create host_vars files for vcin] **** 2018-05-25 15:34:37,891 p=18320 u=root | TASK [common : Re-enabling HA testing based on VSD count] ** 2018-05-25 15:34:37,957 p=18320 u=root | TASK [common : Find name of VNS UTIL QCOW2 File] ***** 2018-05-25 15:34:38,030 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:38,096 p=18320 u=root | TASK [common : Verify that a VNS UTIL QCOW2 file was found] **** 2018-05-25 15:34:38,160 p=18320 u=root | TASK [common : Register VNS UTIL QCOW2 variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:38,229 p=18320 u=root | TASK [common : Find name of VNS UTIL OVA File] *** 2018-05-25 15:34:38,288 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:38,382 p=18320 u=root | TASK [common : Verify that a VNS UTIL OVA file was found] ** 2018-05-25 15:34:38,463 p=18320 u=root | TASK [common : Register VNS UTIL OVA variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:38,536 p=18320 u=root | TASK [common : Set myvnsutil_check] **** 2018-05-25 15:34:38,626 p=18320 u=root | TASK [common : Assign empty list to myvnsutils if it is undefined] * 2018-05-25 15:34:38,710 p=18320 u=root | TASK [common : Create host_vars files for vnsutil] ***** 2018-05-25 15:34:38,795 p=18320 u=root | TASK [common : Find name of NSGV QCOW2 File] ***** 2018-05-25 15:34:38,878 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:38,964 p=18320 u=root | TASK [common : Verify that a NSGV QCOW2 file was found] **** 2018-05-25 15:34:39,051 p=18320 u=root | TASK [common : Register VNS UTIL QCOW2 variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:39,143 p=18320 u=root | TASK [common : Find name of NSGV OVF File] *** 2018-05-25 15:34:39,229 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:39,312 p=18320 u=root | TASK [common : Verify that a NSGV OVF file was found] ** 2018-05-25 15:34:39,385 p=18320 u=root | TASK [common : Register NSGV OVF variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:39,460 p=18320 u=root | TASK [common : Set mynsgvs_check] ** 2018-05-25 15:34:39,515 p=18320 u=root | TASK [common : Assign empty list to mynsgvs if it is undefined] **** 2018-05-25 15:34:39,571 p=18320 u=root | TASK [common : Create host_vars files for nsgv] **** 2018-05-25 15:34:39,645 p=18320 u=root | TASK [common : Create facts to be used with vrs deploy if vrs is Debian 14.04 based] 2018-05-25 15:34:39,711 p=18320 u=root | TASK [common : Create facts to be used with vrs deploy if vrs is Debian 16.04 based] 2018-05-25 15:34:39,778 p=18320 u=root | TASK [common : Create facts to be used with vrs deploy if vrs is Redhat el6 based] 2018-05-25 15:34:39,839 p=18320 u=root | TASK [common : Create facts to be used with vrs deploy if vrs is Redhat el7 based] 2018-05-25 15:34:39,899 p=18320 u=root | TASK [common : initialize vrs_target_os_is_supported to be evaluated for vrs supported target os types] * 2018-05-25 15:34:39,958 p=18320 u=root | TASK [common : Set facts if vrs os type is set to a supported version] *** 2018-05-25 15:34:40,017 p=18320 u=root | TASK [common : assert] ***** 2018-05-25 15:34:40,073 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:40,133 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:40,186 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:40,240 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:40,304 p=18320 u=root | TASK [common : Find name of VRS Package Files (EL6 architecture)] ** 2018-05-25 15:34:40,365 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:40,426 p=18320 u=root | TASK [common : Verify that VRS file was found] * 2018-05-25 15:34:40,492 p=18320 u=root | TASK [common : Register VRS package variables with proper path and image locations for use in other playbooks (EL6 architecture)] * 2018-05-25 15:34:40,571 p=18320 u=root | TASK [common : Find name of nuage DKMS Package Files (EL6 architecture)] ***** 2018-05-25 15:34:40,649 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:40,721 p=18320 u=root | TASK [common : Verify that DKMS file was found] **** 2018-05-25 15:34:40,798 p=18320 u=root | TASK [common : Register DKMS package variables with proper path and image locations for use in other playbooks (EL6 architecture)] * 2018-05-25 15:34:40,883 p=18320 u=root | TASK [common : Find name of VRS Package Files (EL7 architecture)] ** 2018-05-25 15:34:40,967 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:41,071 p=18320 u=root | TASK [common : Verify that VRS file was found] *** 2018-05-25 15:34:41,149 p=18320 u=root | TASK [common : Register VRS package variables with proper path and image locations for use in other playbooks (EL7 architecture)] * 2018-05-25 15:34:41,235 p=18320 u=root | TASK [common : Find name of nuage DKMS Package Files (EL7 architecture)] ***** 2018-05-25 15:34:41,324 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:41,392 p=18320 u=root | TASK [common : Verify that DKMS file was found] **** 2018-05-25 15:34:41,455 p=18320 u=root | TASK [common : Register DKMS package variables with proper path and image locations for use in other playbooks (EL7 architecture)] * 2018-05-25 15:34:41,516 p=18320 u=root | TASK [common : Find name of Selinux Package Files (EL7 architecture)] ** 2018-05-25 15:34:41,583 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:41,653 p=18320 u=root | TASK [common : Register Selinux package variables with proper path and image locations for use in other playbooks (EL7 architecture)] * 2018-05-25 15:34:41,712 p=18320 u=root | TASK [common : Find name of VRS python package file (Debian architecture)] * 2018-05-25 15:34:41,804 p=18320 u=root | TASK [common : debug] **** 2018-05-25 15:34:41,888 p=18320 u=root | TASK [common : Verify that VRS python package file was found] ** 2018-05-25 15:34:41,965 p=18320 u=root | TASK [common : Register VRS package path and VRS python package file name for use in other playbooks (Debian Architecture)] * 2018-05-25 15:34:42,040 p=18320 u=root | TASK [common : Find name of VRS common package file (Debian architecture)] * 2018-05-25 15:34:42,108 p=18320 u=root | TASK [common : debug] **** 2018-05-25 15:34:42,217 p=18320 u=root | TASK [common : Verify that VRS common package file was found] ** 2018-05-25 15:34:42,296 p=18320 u=root | TASK [common : Register VRS common package file name for use in other playbooks (Debian Architecture)] * 2018-05-25 15:34:42,368 p=18320 u=root | TASK [common : Find name of VRS switch package file (Debian architecture)] * 2018-05-25 15:34:42,446 p=18320 u=root | TASK [common : debug] **** 2018-05-25 15:34:42,509 p=18320 u=root | TASK [common : Verify that VRS switch package file was found] ** 2018-05-25 15:34:42,570 p=18320 u=root | TASK [common : Register VRS switch package file name for use in other playbooks (Debian Architecture)] * 2018-05-25 15:34:42,633 p=18320 u=root | TASK [common : Find name of DKMS package file (Debian architecture)] ***** 2018-05-25 15:34:42,691 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:42,761 p=18320 u=root | TASK [common : Verify that DKMS package file was found] **** 2018-05-25 15:34:42,823 p=18320 u=root | TASK [common : Register DKMS package path and package file name for use in other playbooks (Debian Architecture)] * 2018-05-25 15:34:42,882 p=18320 u=root | TASK [common : Find name of VRS python package file (Debian architecture)] * 2018-05-25 15:34:42,948 p=18320 u=root | TASK [common : debug] **** 2018-05-25 15:34:43,009 p=18320 u=root | TASK [common : Verify that VRS python package file was found] ** 2018-05-25 15:34:43,077 p=18320 u=root | TASK [common : Register VRS package path and VRS python package file name for use in other playbooks (Debian Architecture)] * 2018-05-25 15:34:43,145 p=18320 u=root | TASK [common : Find name of VRS common package file (Debian architecture)] * 2018-05-25 15:34:43,236 p=18320 u=root | TASK [common : debug] **** 2018-05-25 15:34:43,335 p=18320 u=root | TASK [common : Verify that VRS common package file was found] ** 2018-05-25 15:34:43,412 p=18320 u=root | TASK [common : Register VRS common package file name for use in other playbooks (Debian Architecture)] * 2018-05-25 15:34:43,511 p=18320 u=root | TASK [common : Find name of VRS switch package file (Debian architecture)] * 2018-05-25 15:34:43,596 p=18320 u=root | TASK [common : debug] **** 2018-05-25 15:34:43,666 p=18320 u=root | TASK [common : Verify that VRS switch package file was found] ** 2018-05-25 15:34:43,739 p=18320 u=root | TASK [common : Register VRS switch package file name for use in other playbooks (Debian Architecture)] * 2018-05-25 15:34:43,801 p=18320 u=root | TASK [common : Check if any of the VRSs have libnetwork_install set] ***** 2018-05-25 15:34:43,868 p=18320 u=root | TASK [common : Find name of libnetwork package Files (RH architecture)] **** 2018-05-25 15:34:43,966 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:44,050 p=18320 u=root | TASK [common : Verify that Libnetwork package file was found] ** 2018-05-25 15:34:44,129 p=18320 u=root | TASK [common : Register libnetwork variables with proper path and image locations for use in other playbooks (RH architecture)] * 2018-05-25 15:34:44,221 p=18320 u=root | TASK [common : Set libnetwork target path based on version (Ubuntu 14.04 architecture)] * 2018-05-25 15:34:44,307 p=18320 u=root | TASK [common : Find name of libnetwork package files (Debian architecture)] 2018-05-25 15:34:44,387 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:44,451 p=18320 u=root | TASK [common : Verify that Libnetwork package file was found] ** 2018-05-25 15:34:44,524 p=18320 u=root | TASK [common : Register libnetwork variables with proper path and image locations for use in other playbooks (Debian architecture)] * 2018-05-25 15:34:44,620 p=18320 u=root | TASK [common : Set libnetwork target path based on version (Ubuntu 16.04 architecture)] * 2018-05-25 15:34:44,719 p=18320 u=root | TASK [common : Find name of libnetwork package files (Debian architecture)] 2018-05-25 15:34:44,808 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:44,875 p=18320 u=root | TASK [common : Verify that libnetwork package file was found] ** 2018-05-25 15:34:44,954 p=18320 u=root | TASK [common : Register libnetwork variables with proper path and image locations for use in other playbooks (Debian architecture)] * 2018-05-25 15:34:45,016 p=18320 u=root | TASK [common : Set myvrss_check] *** 2018-05-25 15:34:45,077 p=18320 u=root | TASK [common : Assign empty dict to myvrss if it is undefined] * 2018-05-25 15:34:45,143 p=18320 u=root | TASK [common : Create host_vars files for vrs] ***** 2018-05-25 15:34:45,205 p=18320 u=root | TASK [common : Find name of VSR QCOW2 File] **** 2018-05-25 15:34:45,269 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:45,369 p=18320 u=root | TASK [common : Verify that a VSR QCOW2 file was found] * 2018-05-25 15:34:45,444 p=18320 u=root | TASK [common : Register VSR QCOW2 variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:45,515 p=18320 u=root | TASK [common : Find name of VSR OVA File] ** 2018-05-25 15:34:45,575 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:45,639 p=18320 u=root | TASK [common : Verify that a VSR OVA file was found] ***** 2018-05-25 15:34:45,725 p=18320 u=root | TASK [common : Register VSR OVA variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:45,800 p=18320 u=root | TASK [common : Set myvsrs_check] ***** 2018-05-25 15:34:45,869 p=18320 u=root | TASK [common : Assign empty list to myvsrs if it is undefined] * 2018-05-25 15:34:45,929 p=18320 u=root | TASK [common : Create host_vars files for vsr] ***** 2018-05-25 15:34:45,988 p=18320 u=root | TASK [common : create dns directory] ***** 2018-05-25 15:34:46,064 p=18320 u=root | TASK [common : Find name of VSTAT VM QCOW2 File] * 2018-05-25 15:34:46,133 p=18320 u=root | TASK [common : Verify that VSTAT VM QCOW2 file was found] ** 2018-05-25 15:34:46,209 p=18320 u=root | TASK [common : Copy vstat qcow2 image to dns directory] **** 2018-05-25 15:34:46,280 p=18320 u=root | TASK [common : Find name of DNS VM QCOW2 File] *** 2018-05-25 15:34:46,350 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:46,416 p=18320 u=root | TASK [common : Verify that a DNS VM QCOW2 file was found] ** 2018-05-25 15:34:46,501 p=18320 u=root | TASK [common : Register DNS QCOW2 variables with proper path and image locations for use in other playbooks] * 2018-05-25 15:34:46,595 p=18320 u=root | TASK [common : Set mydns_check] **** 2018-05-25 15:34:46,664 p=18320 u=root | TASK [common : Assign empty list to mydnss if it is undefined] * 2018-05-25 15:34:46,724 p=18320 u=root | TASK [common : Create host_vars files for dns] ***** 2018-05-25 15:34:46,797 p=18320 u=root | TASK [common : Find name of Nuage OpenStack Package Files (RH architecture)] * 2018-05-25 15:34:46,855 p=18320 u=root | TASK [common : debug] ** 2018-05-25 15:34:46,919 p=18320 u=root | TASK [common : Verify that Nuage OpenStack files were found] ***** 2018-05-25 15:34:46,983 p=18320 u=root | TASK [common : Register Nuage OpenStack package variables with proper path and image locations for use in other playbooks (RH architecture)] * 2018-05-25 15:34:47,045 p=18320 u=root | TASK [common : Ensure that Nuage OS variables are set] *** 2018-05-25 15:34:47,104 p=18320 u=root | TASK [common : Set myoscs_check] *** 2018-05-25 15:34:47,190 p=18320 u=root | TASK [common : Assign empty list to myoscs if it is undefined] * 2018-05-25 15:34:47,273 p=18320 u=root | TASK [common : Create host_vars files for osc server] ** 2018-05-25 15:34:47,357 p=18320 u=root | TASK [common : Set myoscomputes_check] *** 2018-05-25 15:34:47,431 p=18320 u=root | TASK [common : Assign empty list to myoscomputes if it is undefined] * 2018-05-25 15:34:47,500 p=18320 u=root | TASK [common : Create host_vars files for os-compute server] * 2018-05-25 15:34:47,577 p=18320 u=root | TASK [common : Set myinfras_check] *** 2018-05-25 15:34:47,655 p=18320 u=root | TASK [common : Assign empty list to myinfras if it is undefined] * 2018-05-25 15:34:47,730 p=18320 u=root | TASK [common : Create host_vars files for infra server] **** 2018-05-25 15:34:47,801 p=18320 u=root | TASK [common : Set mycis_check] **** 2018-05-25 15:34:47,862 p=18320 u=root | TASK [common : Assign empty list to mycis if it is undefined] ** 2018-05-25 15:34:47,928 p=18320 u=root | TASK [common : Create host_vars files for cis] *** 2018-05-25 15:34:48,016 p=18320 u=root | TASK [common : Set mygvms] ***** 2018-05-25 15:34:48,092 p=18320 u=root | TASK [common : Assign empty list to mygvms if it is undefined] * 2018-05-25 15:34:48,187 p=18320 u=root | TASK [common : Create host_vars files for gvms] **** 2018-05-25 15:34:48,271 p=18320 u=root | TASK [build : Create hosts file] *** 2018-05-25 15:34:48,340 p=18320 u=root | TASK [build : Create the group_vars directory] * 2018-05-25 15:34:48,408 p=18320 u=root | TASK [build : Create group_vars/all file] ** 2018-05-25 15:34:48,477 p=18320 u=root | TASK [common : Wrap-up build] ** 2018-05-25 15:34:48,522 p=18320 u=root | [WARNING]: Could not match supplied host pattern, ignoring: vrss
2018-05-25 15:34:48,523 p=18320 u=root | PLAY [vrss] **** 2018-05-25 15:34:48,523 p=18320 u=root | skipping: no hosts matched 2018-05-25 15:34:48,523 p=18320 u=root | PLAY RECAP ** 2018-05-25 15:34:48,523 p=18320 u=root | localhost : ok=12 changed=2 unreachable=0 failed=0 2018-05-25 15:34:49,805 p=19473 u=root | [DEPRECATION WARNING]: DEFAULT_TASK_INCLUDES_STATIC option, include itself is deprecated and this setting will not matter in the future . This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 2018-05-25 15:34:49,828 p=19473 u=root | [DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 2018-05-25 15:34:49,950 p=19473 u=root | [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 2018-05-25 15:34:49,950 p=19473 u=root | [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 2018-05-25 15:34:49,957 p=19473 u=root | [DEPRECATION WARNING]: The use of 'static' has been deprecated. Use 'import_tasks' for static inclusion, or 'include_tasks' for dynamic inclusion. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 2018-05-25 15:34:50,053 p=19473 u=root | PLAY [nsgvs] 2018-05-25 15:34:50,074 p=19473 u=root | TASK [nsgv-predeploy : Set local variable with vmname] *** 2018-05-25 15:34:50,125 p=19473 u=root | ok: [0025_VNF_NSG] 2018-05-25 15:34:50,132 p=19473 u=root | TASK [check-node-running : include] **** 2018-05-25 15:34:50,170 p=19473 u=root | included: /opt/nuage-metro/nuage-metro/roles/check-node-running/tasks/kvm.yml for 0025_VNF_NSG 2018-05-25 15:34:50,198 p=19473 u=root | TASK [check-node-running : List the Virtual Machines running] ** 2018-05-25 15:34:51,330 p=19473 u=root | ok: [0025_VNF_NSG -> 10.167.60.5] 2018-05-25 15:34:51,347 p=19473 u=root | TASK [check-node-running : Verify that the VM is not running if not reachable] * 2018-05-25 15:34:51,381 p=19473 u=root | TASK [check-node-running : Verify that the VM is running if reachable] * 2018-05-25 15:34:51,420 p=19473 u=root | TASK [check-node-running : Set fact for node running] ** 2018-05-25 15:34:51,473 p=19473 u=root | ok: [0025_VNF_NSG] 2018-05-25 15:34:51,488 p=19473 u=root | TASK [nsgv-predeploy : include] **** 2018-05-25 15:34:51,587 p=19473 u=root | included: /opt/nuage-metro/nuage-metro/roles/nsgv-predeploy/tasks/kvm.yml for 0025_VNF_NSG 2018-05-25 15:34:51,648 p=19473 u=root | TASK [nsgv-predeploy : Query Target Server facts] ** 2018-05-25 15:34:57,611 p=19473 u=root | ok: [0025_VNF_NSG -> 10.167.60.5] 2018-05-25 15:34:57,672 p=19473 u=root | TASK [nsgv-predeploy : Include OS-specific variables.] ***** 2018-05-25 15:34:57,720 p=19473 u=root | ok: [0025_VNF_NSG] 2018-05-25 15:34:57,778 p=19473 u=root | TASK [nsgv-predeploy : Check target for supported OS] ** 2018-05-25 15:34:57,852 p=19473 u=root | TASK [nsgv-predeploy : Check target memory] **** 2018-05-25 15:34:57,927 p=19473 u=root | TASK [nsgv-predeploy : Check target cores] ** 2018-05-25 15:34:57,995 p=19473 u=root | TASK [nsgv-predeploy : Check target bridges] 2018-05-25 15:34:58,106 p=19473 u=root | TASK [nsgv-predeploy : Check if required OS packages are installed] **** 2018-05-25 15:34:58,844 p=19473 u=root | [WARNING]: Consider using yum, dnf or zypper module rather than running rpm
2018-05-25 15:34:58,845 p=19473 u=root | changed: [0025_VNF_NSG -> 10.167.60.5] 2018-05-25 15:34:58,924 p=19473 u=root | TASK [nsgv-predeploy : Print rpm_check when verbosity >= 1] **** 2018-05-25 15:34:59,059 p=19473 u=root | TASK [nsgv-predeploy : If RedHat, install packages for RedHat OS family distros] * 2018-05-25 15:34:59,180 p=19473 u=root | TASK [nsgv-predeploy : Make sure libvirtd has started] *** 2018-05-25 15:35:00,246 p=19473 u=root | ok: [0025_VNF_NSG -> 10.167.60.5] 2018-05-25 15:35:00,323 p=19473 u=root | TASK [nsgv-predeploy : List the Virtual Machines running] ** 2018-05-25 15:35:00,788 p=19473 u=root | ok: [0025_VNF_NSG -> 10.167.60.5] 2018-05-25 15:35:00,854 p=19473 u=root | TASK [nsgv-predeploy : Set fact for VM already running] **** 2018-05-25 15:35:00,905 p=19473 u=root | ok: [0025_VNF_NSG] 2018-05-25 15:35:00,975 p=19473 u=root | TASK [nsgv-predeploy : Create libvirt image directory] * 2018-05-25 15:35:01,055 p=19473 u=root | TASK [nsgv-predeploy : Copy the VM qcow image to virt images directory] **** 2018-05-25 15:35:01,124 p=19473 u=root | TASK [nsgv-predeploy : Create local temp directory] **** 2018-05-25 15:35:01,210 p=19473 u=root | TASK [nsgv-predeploy : Set Top-Level-Directory] **** 2018-05-25 15:35:01,306 p=19473 u=root | TASK [nsgv-predeploy : Generate ISO file] ** 2018-05-25 15:35:01,376 p=19473 u=root | TASK [nsgv-predeploy : Search for errors in the output of ZFB script] ** 2018-05-25 15:35:01,438 p=19473 u=root | TASK [nsgv-predeploy : Ensure NSGV has the correct configuration] ** 2018-05-25 15:35:01,502 p=19473 u=root | TASK [nsgv-predeploy : Copy the ISO image to virt images directory] **** 2018-05-25 15:35:01,572 p=19473 u=root | TASK [nsgv-predeploy : Display if skipping NSGV predeploy] * 2018-05-25 15:35:01,619 p=19473 u=root | ok: [0025_VNF_NSG] => { "msg": [ "", "Skipping NSGV predeploy because it is already present", "" ] } 2018-05-25 15:35:01,666 p=19473 u=root | TASK [nsgv-predeploy : Define VM] ** 2018-05-25 15:35:01,728 p=19473 u=root | TASK [nsgv-predeploy : Autostart] ** 2018-05-25 15:35:01,793 p=19473 u=root | TASK [nsgv-predeploy : Run VM] * 2018-05-25 15:35:01,883 p=19473 u=root | TASK [nsgv-predeploy : include] **** 2018-05-25 15:35:01,955 p=19473 u=root | TASK [nsgv-predeploy : include] **** 2018-05-25 15:35:01,987 p=19473 u=root | PLAY RECAP ***** 2018-05-25 15:35:01,987 p=19473 u=root | 0025_VNF_NSG : ok=12 changed=1 unreachable=0 failed=0 Seems like something is not working correctly?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
What fixes the issue it to run ./metro-ansible build.yml -e build_vars_file=build_vars_0026.yml
before the nsgv predeploy role.
So clearly something is messing up with the "cached" host/group vars
ansible.log collected when executed build then nsgv_predeploy one after another with a second build_vars - https://pastebin.com/mndQVFy0
Fix is in 37ca6f6ff30aebdef6a88eee3ba3824f51de0f82, part of #649.
Hi, version: v2.4@master
I am experiencing an issue where my new build_vars file is not taking into account and the vars from previous run are used instead.
First run
In order to deploy an NSGV I have executed a role using the following command (build_vars_0025.yml):
It was the first time I've used the new v2.4
Second run
I wanted to deploy another NSGV using different Org/Port_layout/etc (build_vars_0026.yml). So I created another build_vars and started the deployment:
Instead I see in the logs, that the data extracted from a previous build role were used. Consider the following ansible.log generated after the second run:
Seems like something is not working correctly?
build_vars_0025.yml file used in the first run:
build_vars_0026.yml file used in the second run: