Bug 1713223

Summary: CI fails on ansible yumlock error
Product: Red Hat Enterprise Virtualization Manager Reporter: grosenth
Component: ovirt-engine-metricsAssignee: Shirly Radco <sradco>
Status: CLOSED UPSTREAM QA Contact: Ivana Saranova <isaranov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.8-4CC: lleistne, lsvaty, mgoldboi, sradco
Target Milestone: ovirt-4.3.4Keywords: ZStream
Target Release: 4.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-metrics-1.3.1.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-17 09:49:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description grosenth 2019-05-23 07:56:26 UTC
Description of problem:


disabled by setting deprecation_warnings=False in ansible.cfg.
2019-05-21 06:56:56,371 p=24377 u=root |  skipping: [lago-rhv-suite-4-2-host-0]
2019-05-21 06:56:56,467 p=24377 u=root |  TASK [oVirt.initial-validations : Check Fluentd packages are available] ********
2019-05-21 06:56:59,355 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-1] => (item=fluentd)
2019-05-21 06:56:59,493 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-0] => (item=fluentd)
2019-05-21 06:57:00,975 p=24377 u=root |  ok: [localhost] => (item=fluentd)
2019-05-21 06:57:01,640 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-0] => (item=rubygem-fluent-plugin-collectd-nest)
2019-05-21 06:57:01,824 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-1] => (item=rubygem-fluent-plugin-collectd-nest)
2019-05-21 06:57:04,108 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-0] => (item=rubygem-fluent-plugin-rewrite-tag-filter)
2019-05-21 06:57:04,336 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-1] => (item=rubygem-fluent-plugin-rewrite-tag-filter)
2019-05-21 06:57:04,770 p=24377 u=root |  ok: [localhost] => (item=rubygem-fluent-plugin-collectd-nest)
2019-05-21 06:57:06,322 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-0] => (item=rubygem-fluent-plugin-secure-forward)
2019-05-21 06:57:06,706 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-1] => (item=rubygem-fluent-plugin-secure-forward)
2019-05-21 06:57:08,693 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-0] => (item=rubygem-fluent-plugin-viaq_data_model)
2019-05-21 06:57:09,096 p=24377 u=root |  ok: [localhost] => (item=rubygem-fluent-plugin-rewrite-tag-filter)
2019-05-21 06:57:09,232 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-1] => (item=rubygem-fluent-plugin-viaq_data_model)
2019-05-21 06:57:10,786 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-0] => (item=rubygem-fluent-plugin-elasticsearch)
2019-05-21 06:57:11,339 p=24377 u=root |  failed: [localhost] (item=rubygem-fluent-plugin-secure-forward) => {"ansible_loop_var": "item", "changed": false, "item": "rubygem-fluent-plugin-secure-forward", "msg": "yum lockfile is held by another process"}
2019-05-21 06:57:11,409 p=24377 u=root |  ok: [lago-rhv-suite-4-2-host-1] => (item=rubygem-fluent-plugin-elasticsearch)
2019-05-21 06:57:13,744 p=24377 u=root |  failed: [localhost] (item=rubygem-fluent-plugin-viaq_data_model) => {"ansible_loop_var": "item", "changed": false, "item": "rubygem-fluent-plugin-viaq_data_model", "msg": "yum lockfile is held by another process"}
2019-05-21 06:57:17,631 p=24377 u=root |  ok: [localhost] => (item=rubygem-fluent-plugin-elasticsearch)
2019-05-21 06:57:17,876 p=24377 u=root |  TASK [oVirt.initial-validations : Set fluentd_base_packages_available fact] ****
2019-05-21 06:57:18,152 p=24377 u=root |  skipping: [lago-rhv-suite-4-2-host-1] => (item={'failed': False, 'ansible_loop_var': u'item', 'item': u'fluentd', u'invocation': {u'module_args': {u'install_weak_deps': True, u'autoremove': False, u'lock_timeout': 0, u'download_dir': None, u'install_repoquery': True, u'update_cache': False, u'conf_file': None, u'exclude': [], u'update_only': False, u'installroot': u'/', u'allow_downgrade': False, u'name': [], u'download_only': False, u'bugfix': False, u'list': u'fluentd', u'disable_gpg_check': False, u'disable_excludes': None, u'use_backend': u'auto', u'validate_certs': True, u'state': None, u'disablerepo': [], u'releasever': None, u'disable_plugin': [], u'enablerepo': [], u'skip_broken': False, u'security': False, u'enable_plugin': []}}, 'changed': False, u'results': [{u'envra': u'0:fluentd-0.12.42-1.el7.x86_64', u'name': u'fluentd', u'repo': u'alocalsync', u'epoch': u'0', u'version': u'0.12.42', u'release': u'1.el7', u'yumstate': u'available', u'arch': u'x86_64'}, {u'envra': u'0:fluentd-0.12.42-1.el7.x86_64', u'name': u'fluentd', u'repo': u'installed', u'epoch': u'0', u'version': u'0.12.42', u'release': u'1.el7', u'yumstate': u'installed', u'arch': u'x86_64'}]}) 
2019-05-21 06:57:18,155 p=24377 u=root |  skipping: [lago-rhv-suite-4-2-host-1] => (item={'failed': False, 'ansible_loop_var': u'item', 'item': u'rubygem-fluent-plugin-collectd-nest', u'invocation': {u'module_args': {u'install_weak_deps': True, u'autoremove': False, u'lock_timeout': 0, u'download_dir': None, u'install_repoquery': True, u'update_cache': False, u'conf_file': None, u'exclude': [], u'update_only': False, u'installroot': u'/', u'allow_downgrade': False, u'name': [], u'download_only': False, u'bugfix': False, u'list': u'rubygem-fluent-plugin-collectd-nest', u'disable_gpg_check': False, u'disable_excludes': None, u'use_backend': u'auto', u'validate_certs': True, u'state': None, u'disablerepo': [], u'releasever': None, u'disable_plugin': [], u'enablerepo': [], u'skip_broken': False, u'security': False, u'enable_plugin': []}}, 'changed': False, u'results': [{u'envra': u'0:rubygem-fluent-plugin-collectd-nest-0.1.4-1.el7.noarch', u'name': u'rubygem-fluent-plugin-collectd-nest', u'repo': u'alocalsync', u'epoch': u'0', u'version': u'0.1.4', u'release': u'1.el7', u'yumstate': u'available', u'arch': u'noarch'}, {u'envra': u'0:rubygem-fluent-plugin-collectd-nest-0.1.4-1.el7.noarch', u'name': u'rubygem-fluent-plugin-collectd-nest', u'repo': u'installed', u'epoch': u'0', u'version': u'0.1.4', u'release': u'1.el7', u'yumstate': u'installed', u'arch': u'noarch'}]}) 


Version-Release number of selected component (if applicable):


How reproducible:
The situation can be reproduced by running yum in another terminal or by creating a lock file.

echo 1 > /var/run/yum.pid

Steps to Reproduce:
1.
2.
3.

Actual results:
CI jobs fail rhv-suite-4.2 D/S  (happens also 4.3 d/s)

Expected results:

should end successfully

Additional info:

Comment 1 Shirly Radco 2019-05-23 09:01:45 UTC
*** Bug 1713224 has been marked as a duplicate of this bug. ***

Comment 3 Lucie Leistnerova 2019-06-17 09:45:29 UTC
Shirly, if I understand it correctly, the verification steps should be:

1. set yum lock
2. run role oVirt.metrics/roles/oVirt.initial-validations
3. role should stay in task running
4. remove yum lock
5. role continues and successfully finishes

Comment 4 Lukas Svaty 2019-06-17 09:49:12 UTC
No QE for DEV CI. Feel free to reopen if you want to verify.