Bug 1680667
| Summary: | oVirt.metrics-store-installation does not use correct template name when openshift_distribution is set to openshift-enterprise | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine-metrics | Reporter: | Ivana Saranova <isaranov> |
| Component: | Generic | Assignee: | Shirly Radco <sradco> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ivana Saranova <isaranov> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.2.0.2 | CC: | bugs, lleistne |
| Target Milestone: | ovirt-4.3.3 | Flags: | sradco:
ovirt-4.3?
lleistne: testing_ack+ |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-04-16 13:58:30 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1631193 | ||
Steps to Reproduce:
1. Configure /etc/ovirt-engine-metrics/config.yml.d/config.yml (set openshift_distribution to openshift-enterprise)
2. Run the script
/configure_ovirt_machines_for_metrics.sh --playbook=ovirt-metrics-store-installation.yml
Result:
Correct template is used, playbook finishes successfully.
Verified in:
ovirt-engine-4.2.8.5-0.1.el7ev.noarch
ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch
Also verified in:
ovirt-engine-4.3.3.1-0.1.el7.noarch
ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch
This bugzilla is included in oVirt 4.3.3 release, published on April 16th 2019. Since the problem described in this bug report should be resolved in oVirt 4.3.3 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |
Description of problem: When running the script for deploying the installer VM, user does not know about the need to specify variable ovirt_template_name in the config to make the playbook use the correct template name instead of default 'centos76'. Also, when variable openshift_distribution is set to 'openshift-enterprise', the template name is not changed to 'rhelguest76', but remains 'centos76', which leads to failure while running /usr/share/ovirt-engine-metrics/configure_ovirt_machines_for_metrics.sh. Version-Release number of selected component (if applicable): ovirt-engine-metrics-1.2.1-0.0.master.20190225121859.el7.noarch How reproducible: Always Steps to Reproduce: 1. Configure /etc/ovirt-engine-metrics/config.yml.d/config.yml (set openshift_distribution to openshift-enterprise 2. Run the script /configure_ovirt_machines_for_metrics.sh --playbook=ovirt-metrics-store-installation.yml Actual results: TASK [oVirt.vm-infra : Wait for VMs to be added] ************************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: Template with name 'centos76' and version 'None' in cluster 'cluster1' was not found' failed: [localhost] (item={'failed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/945793397302.7511', u'ansible_job_id': u'945793397302.7511', u'started': 1, 'changed': False}) => {"ansible_job_id": "945793397302.7511", "attempts": 1, "changed": false, "finished": 1, "item": {"ansible_job_id": "945793397302.7511", "changed": false, "failed": false, "finished": 0, "results_file": "/root/.ansible_async/945793397302.7511", "started": 1}, "msg": "Template with name 'centos76' and version 'None' in cluster 'cluster1' was not found'"} Expected results: The template name is 'rhelguest76' and VM is created without problems from this template. Additional info: