Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1576391

Summary: Paths in config should not include trailing /
Product: [oVirt] ovirt-engine-metrics Reporter: Lukas Svaty <lsvaty>
Component: GenericAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: low Docs Contact:
Priority: low    
Version: 1.1.4.2CC: bugs
Target Milestone: ovirt-4.2.5Flags: rule-engine: ovirt-4.2+
Target Release: 1.1.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-metrics-1.1.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-31 15:31:36 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: 1594753    

Description Lukas Svaty 2018-05-09 11:04:05 UTC
Description of problem:
Paths in configs such as 


Must include trailing /, therefore if it is set in the config file without suffix / not desired path can be used. Please support specification of the path without trailing /


Version-Release number of selected component (if applicable):
ovirt-engine-metrics-1.1.4.2-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1.# grep -R ovirt_elasticsearch_mounted_storage_path /usr/share/ansible/roles/oVirt.metrics/roles/oVirt.metrics-store-installation/README.md


Actual results:
`ovirt_elasticsearch_mounted_storage_path:`(default:`/var/lib/`)

Expected results:
`ovirt_elasticsearch_mounted_storage_path:`(default:`/var/lib`)

Additional info:
The same format as engine paths:
]# grep -R PATH  .
./50-ovirt-engine-extension-aaa-jdbc.conf:ENGINE_JAVA_MODULEPATH="${ENGINE_JAVA_MODULEPATH}:/usr/share/ovirt-engine-extension-aaa-jdbc/modules"

Comment 1 Shirly Radco 2018-06-25 11:57:04 UTC
To test, after exchanging the keys between engine machine and the metrics store machine, please run  /usr/share/ovirt-engine-metrics/configure_ovirt_machines_for_metrics.sh --playbook=ovirt-metrics-store-installation.yml from the engine machine.

Please make sure that the ansible-inventory are created under the /root directory on the metrics store machine and that the path in the files for the path is still as expected:
openshift_logging_elasticsearch_hostmount_path=/var/lib/elasticsearch

Comment 2 Sandro Bonazzola 2018-07-31 15:31:36 UTC
This bugzilla is included in oVirt 4.2.5 release, published on July 30th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.5 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.