role 'dump_vars' not found leading to logs not getting collect in post

Bug #1841405 reported by chandan kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Kevin Carter

Bug Description

In almost all the periodic/check jobs, logs are not getting collected due to the following errors:

https://logs.rdoproject.org/openstack-periodic-master/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-7-standalone-master/5b3d4d7/job-output.txt.gz#_2019-08-26_02_30_13_125082

2019-08-26 02:30:11.714011 | primary | [WARNING]: log file at /home/zuul/.ansible/logs/ansible-2019-08-26T02.log is not writeable and we cannot create it, aborting
2019-08-26 02:30:11.714232 | primary |
2019-08-26 02:30:13.124655 | primary | ERROR! the role 'dump_vars' was not found in /home/zuul/workspace/.quickstart/playbooks/roles:/home/zuul/.ansible/roles:/usr/share/ansible/tripleo-roles:/usr/share/ansible/roles:/etc/ansible/roles:/usr/share/openstack-tripleo-validations/roles:/home/zuul/workspace/.quickstart/playbooks
2019-08-26 02:30:13.124867 | primary |
2019-08-26 02:30:13.124942 | primary | The error appears to be in '/home/zuul/workspace/.quickstart/playbooks/collect-logs.yml': line 5, column 7, but may
2019-08-26 02:30:13.125002 | primary | be elsewhere in the file depending on the exact syntax problem.
2019-08-26 02:30:13.125014 | primary |
2019-08-26 02:30:13.125041 | primary | The offending line appears to be:
2019-08-26 02:30:13.125051 | primary |
2019-08-26 02:30:13.125064 | primary | roles:
2019-08-26 02:30:13.125082 | primary | - dump_vars
2019-08-26 02:30:13.125099 | primary | ^ here
2019-08-26 02:30:13.156939 | primary | + echo 'WARNING: quickstart collect-logs failed, check quickstart_collectlogs.log for details'

https://review.opendev.org/#/c/678072/ [Create ansible environment variables in profile.d] in tripleo-ansible is overriding the ansible.cfg leading to undefined dump_var vars.

And here is the difference in ansible.cfg from passed one
https://logs.rdoproject.org/openstack-periodic-master/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-7-standalone-master/d38eab9/logs/quickstart_collect_logs.log

ansible-playbook 2.8.4
  config file = /home/zuul/src/opendev.org/openstack/tripleo-quickstart/ansible.cfg
  configured module search path = [u'/usr/lib/python2.7/site-packages/tripleo-quickstart/library', u'/home/zuul/workspace/.quickstart/usr/local/share/tripleo-quickstart/library', u'/home/zuul/src/opendev.org/openstack/tripleo-quickstart/library']

and filed one
https://logs.rdoproject.org/openstack-periodic-master/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-7-standalone-master/5b3d4d7/logs/quickstart_collect_logs.log

ansible-playbook 2.8.4
  config file = /home/zuul/src/opendev.org/openstack/tripleo-quickstart/ansible.cfg
  configured module search path = [u'/home/zuul/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules', u'/usr/share/ansible/tripleo-plugins/modules', u'/usr/share/openstack-tripleo-validations/modules']

description: updated
Revision history for this message
chandan kumar (chkumar246) wrote :
Revision history for this message
Ronelle Landy (rlandy) wrote :

https://review.opendev.org/#/c/678476/2 merged - we can close this out

Changed in tripleo:
status: Confirmed → Fix Released
Revision history for this message
chandan kumar (chkumar246) wrote :
Download full text (5.1 KiB)

Due to revert revert catch we hit https://logs.rdoproject.org/openstack-periodic-master/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-centos-7-master-containers-build-push/ba32228/logs/build.log.txt.gz#_2019-08-27_00_29_49
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient:Transaction check error:
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/tasks/hieradata_vars.yaml conflicts between attempted installs of tripleo-ansible-0.2.1-0.20190826144854.bf61a6f.el7.noarch and openstack-tripleo-common-11.1.1-0.20190826025903.29b7c8a.el7.noarch
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/templates/all_nodes.j2 conflicts between attempted installs of tripleo-ansible-0.2.1-0.20190826144854.bf61a6f.el7.noarch and openstack-tripleo-common-11.1.1-0.20190826025903.29b7c8a.el7.noarch
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/templates/bootstrap_node.j2 conflicts between attempted installs of tripleo-ansible-0.2.1-0.20190826144854.bf61a6f.el7.noarch and openstack-tripleo-common-11.1.1-0.20190826025903.29b7c8a.el7.noarch
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/templates/cloud_domain.j2 conflicts between attempted installs of tripleo-ansible-0.2.1-0.20190826144854.bf61a6f.el7.noarch and openstack-tripleo-common-11.1.1-0.20190826025903.29b7c8a.el7.noarch
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/templates/extraconfig.j2 conflicts between attempted installs of tripleo-ansible-0.2.1-0.20190826144854.bf61a6f.el7.noarch and openstack-tripleo-common-11.1.1-0.20190826025903.29b7c8a.el7.noarch
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/templates/fqdn.j2 conflicts between attempted installs of tripleo-ansible-0.2.1-0.20190826144854.bf61a6f.el7.noarch and openstack-tripleo-common-11.1.1-0.20190826025903.29b7c8a.el7.noarch
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/templates/net_ip_map.j2 conflicts between attempted installs of tripleo-ansible-0.2.1-0.20190826144854.bf61a6f.el7.noarch and openstack-tripleo-common-11.1.1-0.20190826025903.29b7c8a.el7.noarch
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/templates/role_extraconfig.j2 conflicts between attempted installs of tripleo-ansible-0.2.1-0.20190826144854.bf61a6f.el7.noarch and openstack-tripleo-common-11.1.1-0.20190826025903.29b7c8a.el7.noarch
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/templates/service_configs.j2 conflicts between attempted installs of tripleo-ansible-0.2.1-0.20190826144854.bf61a6f.el7.noarch and openstack-tripleo-common-11.1.1-0.20190826025903.29b7c8a.el7.noarch
2019-08-27 00:29:49 | INFO:kolla.common.utils.tripleoclient: file /usr/share/ansible/roles/tripleo-hieradata/templates/vip_data.j2 ...

Read more...

Changed in tripleo:
assignee: nobody → Kevin Carter (kevin-carter)
Revision history for this message
chandan kumar (chkumar246) wrote :

Added another bug to track the above issue https://bugs.launchpad.net/tripleo/+bug/1841564 and closing this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.