Description of problem: ----------------------- The generated gdeploy config files should be persisted, ( maybe under /var/log/vdsm.) This serves helpful for debugging purposes and reusing the same conf file for different deployment. Version-Release number of selected component (if applicable): ------------------------------------------------------------- cockpit-ovirt-dashboard-0.10.7-0.0.3.el7rhgs How reproducible: ----------------- Always Steps to Reproduce: ------------------- 1. Use gluster deployment using cockpit-ovirt Actual results: --------------- 1. gdeploy config file is generated under /tmp. /tmp is the location of temporary files only 2. Not all attempts of gdeploy config file creations are saved Expected results: ----------------- 1. gdeploy config file should be generated and saved under proper location. say /var/log/vdsm/ 2. gdeploy config file should get named with timestamps, so older config files are never overwritten
Gobinda, to address Bug 1462006 , are we saving the generated gdeploy conf in a specific location?
Sahina, Bug 1462006 has been addressed by Phillip and I saw the patch, looks like it's still in default location. I will take it up and change the file location.
gdeploy conf file location changed to /var/lib/ovirt-hosted-engine-setup/gdeploy/gdeployConfig.conf he-answer file location changed to /var/lib/ovirt-hosted-engine-setup/answers/he-answer.conf And taking each file backup with timestamp for each deployment.
Gobinda, when I run the gluster wizard, the he-answer.conf and gdeployConfig.conf files aren't written to their respective directories. The output from the developer console is below. Failed to read file /var/lib/ovirt-hosted-engine-setup/answers/he-answer.conf. Check that the file exists and is not empty File /var/lib/ovirt-hosted-engine-setup/answers/he-answer-1512137352027.conf backup failed. /var/lib/ovirt-hosted-engine-setup/gdeploy/gdeployConfig.conf: couldn't open unique file: No such file or directory Directory /var/lib/ovirt-hosted-engine-setup/gdeploy already exist. File /var/lib/ovirt-hosted-engine-setup/gdeploy/gdeployConfig-1512137352039.conf backup failed. File /var/lib/ovirt-hosted-engine-setup/answers/he-answer-1512137357727.conf backup failed. /var/lib/ovirt-hosted-engine-setup/gdeploy/gdeployConfig.conf: couldn't open unique file: No such file or directory Directory /var/lib/ovirt-hosted-engine-setup/gdeploy already exist. File /var/lib/ovirt-hosted-engine-setup/gdeploy/gdeployConfig-1512137357746.conf backup failed.
Hi Phillip, I have change code from async call to synchronous and patch has been pushed. https://gerrit.ovirt.org/#/c/85008/ Please check and let me know if any issue.
Tested with cockpit-ovirt-dashboard-0.11.24 The generated gdeploy configuration files are saved under /var/lib/ovirt-hosted-engine-setup/gdeploy/
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.