Bug 1071875
| Summary: | engine-cleanup with reports outputs a weird error | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Netbulae <info> | ||||||
| Component: | ovirt-engine-installer | Assignee: | Yedidyah Bar David <didi> | ||||||
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Pavel Stehlik <pstehlik> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | 3.4 | CC: | acathrow, didi, gklein, iheim, sbonazzo, yeylon | ||||||
| Target Milestone: | --- | Keywords: | Reopened | ||||||
| Target Release: | 3.4.1 | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | integration | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-04-17 14:05:14 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Created attachment 869886 [details]
ovirt-engine-remove-20140303120637.log
(In reply to Netbulae from comment #0) > Created attachment 869885 [details] > ovirt-engine-remove-20140303121735.log > > Description of problem: > I run engine-cleanup to remove all ovirt components and configs. But when > running pre setup it fails. And when running post setup it doesn't fail, but > it fails removing ovirt-engine. > > Version-Release number of selected component (if applicable): > 3.4.0 RC > > How reproducible: > Always > > Steps to Reproduce: > engine-cleanup > > Actual results: > engine-cleanup > [ INFO ] Stage: Initializing > [ INFO ] Stage: Environment setup > Configuration files: > ['/etc/ovirt-engine-setup.conf.d/10-packaging.conf'] > Log file: > /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303120637.log Can you please provide this ^^ log file? > Version: otopi-1.2.0_beta2 (otopi-1.2.0-0.3.beta2.fc19) > [ ERROR ] Failed to execute stage 'Environment setup': > 'OVESETUP_REPORTS_CONFIG/jasperHome' > [ INFO ] Stage: Clean up > Log file is located at > /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303120637.log > [ INFO ] Stage: Pre-termination > [ INFO ] Stage: Termination > [ ERROR ] Execution of cleanup failed engine-cleanup on a clean system _is_ expected to fail, but with a different error message. Please provide the full log to help diagnose this. > > engine-cleanup > [ INFO ] Stage: Initializing > [ INFO ] Stage: Environment setup > Configuration files: > ['/etc/ovirt-engine-setup.conf.d/10-packaging.conf', > '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'] > Log file: > /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303121735.log > Version: otopi-1.2.0_beta2 (otopi-1.2.0-0.3.beta2.fc19) > [ INFO ] Stage: Environment packages setup > [ INFO ] Stage: Programs detection > [ INFO ] Stage: Environment customization > Do you want to remove all components? (Yes, No) [Yes]: > [ INFO ] Stage: Setup validation > During execution engine service will be stopped (OK, Cancel) [OK]: > ovirt-engine is about to be removed, data will be lost (OK, > Cancel) [Cancel]: ok > [ INFO ] Stage: Transaction setup > [ INFO ] Stopping engine service > [ INFO ] Stopping dwh service > [ INFO ] Stopping websocket-proxy service > [ INFO ] Stage: Misc configuration > [ INFO ] Stage: Package installation > [ INFO ] Stage: Misc configuration > [ INFO ] Backing up PKI configuration and keys > [ INFO ] Backing up database localhost:engine to > '/var/lib/ovirt-engine/backups/engine-20140303121751.UQInzh.sql'. > [ INFO ] Clearing Engine database engine > [ INFO ] Backing up database localhost:ovirt_engine_history to > '/var/lib/ovirt-engine-dwh/backups/dwh-20140303121812.34D86I.sql'. > [ INFO ] Clearing DWH database ovirt_engine_history > [ INFO ] Backing up database localhost:ovirt_engine_reports to > '/var/lib/ovirt-engine-reports/backups/reports-20140303121819.GroLiC.sql'. > [ INFO ] Clearing Reports database ovirt_engine_reports > [ INFO ] Removing files > [ INFO ] Reverting changes to files > [ INFO ] Stage: Transaction commit > [ INFO ] Stage: Closing up > > --== SUMMARY ==-- > > A backup of the Reports database is available at > /var/lib/ovirt-engine-reports/backups/reports-20140303121819.GroLiC.sql > A backup of the DWH database is available at > /var/lib/ovirt-engine-dwh/backups/dwh-20140303121812.34D86I.sql > A backup of the Engine database is available at > /var/lib/ovirt-engine/backups/engine-20140303121751.UQInzh.sql > A backup of PKI configuration and keys is available at > /var/lib/ovirt-engine/backups/engine-pki-20140303121751jYEJ6p.tar.gz > Engine setup successfully cleaned up > > --== END OF SUMMARY ==-- > > [ INFO ] Generating answer file > '/var/lib/ovirt-engine/setup/answers/20140303121822-cleanup.conf' > [ INFO ] Stage: Clean up > Log file is located at > /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303121735.log > [ INFO ] Stage: Pre-termination > [ INFO ] Stage: Termination > [ INFO ] Execution of cleanup completed successfully Seems ok > > > rpm -qa|grep ovirt > ovirt-engine-setup-plugin-websocket-proxy-3.4.0-0.12.master.20140228075627. > fc19.noarch > ovirt-engine-webadmin-portal-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-engine-setup-plugin-ovirt-engine-common-3.4.0-0.12.master. > 20140228075627.fc19.noarch > ovirt-iso-uploader-3.4.0-1.fc19.noarch > ovirt-engine-setup-plugin-ovirt-engine-3.4.0-0.12.master.20140228075627.fc19. > noarch > ovirt-engine-lib-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-engine-dwh-setup-3.4.0-0.3.fc19.noarch > ovirt-engine-cli-3.4.0.5-1.fc19.noarch > ovirt-host-deploy-1.2.0-0.1.beta.fc19.noarch > ovirt-engine-dbscripts-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-engine-restapi-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-engine-backend-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-engine-sdk-python-3.4.0.6-1.fc19.noarch > ovirt-engine-reports-setup-3.4.0-0.3.beta3.fc19.noarch > ovirt-image-uploader-3.4.0-1.fc19.noarch > ovirt-host-deploy-java-1.2.0-0.1.beta.fc19.noarch > ovirt-engine-userportal-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-engine-tools-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-engine-reports-3.4.0-0.3.beta3.fc19.noarch > ovirt-engine-setup-base-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-log-collector-3.4.0-1.fc19.noarch > ovirt-engine-setup-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-engine-dwh-3.4.0-0.3.fc19.noarch > ovirt-engine-websocket-proxy-3.4.0-0.12.master.20140228075627.fc19.noarch > ovirt-engine-3.4.0-0.12.master.20140228075627.fc19.noarch engine-cleanup is not supposed to remove RPMs, that's ok. > > ls -la /etc/ovirt-engine > total 84 > drwxr-xr-x. 15 root root 4096 Mar 3 12:18 . > drwxr-xr-x. 103 root root 12288 Mar 3 12:11 .. > drwxr-xr-x. 2 root root 4096 Mar 3 12:05 branding > drwxr-xr-x. 2 root root 4096 Mar 3 12:18 engine.conf.d > drwxr-xr-x. 2 root root 4096 Mar 3 12:05 engine-config > drwxr-xr-x. 2 root root 4096 Mar 3 12:05 engine-manage-domains > drwxr-xr-x. 2 root root 4096 Mar 3 12:18 firewalld > -rw-r-----. 1 root root 1045 Feb 24 10:18 imageuploader.conf > drwxr-xr-x. 2 root root 4096 Mar 3 12:18 imageuploader.conf.d > -rw-r-----. 1 root root 791 Feb 24 10:16 isouploader.conf > drwxr-xr-x. 2 root root 4096 Mar 3 12:18 isouploader.conf.d > -rw-r--r--. 1 root root 1498 Feb 24 09:10 logcollector.conf > drwxr-xr-x. 2 root root 4096 Mar 3 12:18 logcollector.conf.d > drwxr-xr-x. 3 root root 4096 Mar 3 12:05 notifier > drwxr-xr-x. 2 root root 4096 Mar 3 12:06 osinfo.conf.d > drwxr-xr-x. 2 root root 4096 Mar 3 12:06 ovirt-engine-dwh > drwxr-xr-x. 2 root root 4096 Mar 3 12:18 ovirt-websocket-proxy.conf.d > drwxr-xr-x. 2 root root 4096 Mar 3 12:18 uninstall.d > -rw-r--r--. 1 root root 112 Feb 28 10:01 usbfilter.txt It's also not supposed to remove configuration files included in the packages. It _is_ supposed to remove/undo changes done by setup. So, to test if it works well for you: 1. Install packages 2. Backup /etc 3. Run engine-setup 4. Run engine-cleanup 5. Compare /etc with the backup from step 1. You should see very few differences - mainly addition of backup files. Ok sorry about that. I read the wiki page (http://www.ovirt.org/Features/engine-cleanup#Detailed_Description) and it works as specified... but not what I expected. My bad, just a case of RTFM :-) (In reply to Yedidyah Bar David from comment #2) > (In reply to Netbulae from comment #0) > > Created attachment 869885 [details] > > ovirt-engine-remove-20140303121735.log > > > > Description of problem: > > I run engine-cleanup to remove all ovirt components and configs. But when > > running pre setup it fails. And when running post setup it doesn't fail, but > > it fails removing ovirt-engine. > > > > Version-Release number of selected component (if applicable): > > 3.4.0 RC > > > > How reproducible: > > Always > > > > Steps to Reproduce: > > engine-cleanup > > > > Actual results: > > engine-cleanup > > [ INFO ] Stage: Initializing > > [ INFO ] Stage: Environment setup > > Configuration files: > > ['/etc/ovirt-engine-setup.conf.d/10-packaging.conf'] > > Log file: > > /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303120637.log > > Can you please provide this ^^ log file? > > > Version: otopi-1.2.0_beta2 (otopi-1.2.0-0.3.beta2.fc19) > > [ ERROR ] Failed to execute stage 'Environment setup': > > 'OVESETUP_REPORTS_CONFIG/jasperHome' > > [ INFO ] Stage: Clean up > > Log file is located at > > /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303120637.log > > [ INFO ] Stage: Pre-termination > > [ INFO ] Stage: Termination > > [ ERROR ] Execution of cleanup failed > > engine-cleanup on a clean system _is_ expected to fail, but with a different > error message. Please provide the full log to help diagnose this. Reopening due to this weird error message. Some other message should have been displayed due to this [1] change. [1] http://gerrit.ovirt.org/18591 (In reply to Netbulae from comment #3) > Ok sorry about that. > > I read the wiki page > (http://www.ovirt.org/Features/engine-cleanup#Detailed_Description) and it > works as specified... but not what I expected. > > My bad, just a case of RTFM :-) No problem... If possible, please provide the above log. I'll try to reproduce anyway. Thanks! >
> If possible, please provide the above log. I'll try to reproduce anyway.
>
I've reinstalled ovirt-engine and the OS underneath about 20 times now so the log is gone.
I just tested installing, cleanup and setup steps again with the final 3.4 release but can't reproduce.
engine-cleanup
[ INFO ] Stage: Initializing
[ INFO ] Stage: Environment setup
Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging.conf', '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf']
Log file: /var/log/ovirt-engine/setup/ovirt-engine-remove-20140410153958.log
Version: otopi-1.2.0 (otopi-1.2.0-1.el6)
[ INFO ] Stage: Environment packages setup
[ INFO ] Stage: Programs detection
[ INFO ] Stage: Environment customization
Do you want to remove all components? (Yes, No) [Yes]: Yes
[ INFO ] Stage: Setup validation
[WARNING] Cannot validate host name settings, reason: resolved host does not match any of the local addresses
During execution engine service will be stopped (OK, Cancel) [OK]:
ovirt-engine is about to be removed, data will be lost (OK, Cancel) [Cancel]: OK
[ INFO ] Stage: Transaction setup
[ INFO ] Stopping engine service
[ INFO ] Stopping websocket-proxy service
[ INFO ] Stage: Misc configuration
[ INFO ] Stage: Package installation
[ INFO ] Stage: Misc configuration
[ INFO ] Backing up PKI configuration and keys
[ INFO ] Backing up database localhost:engine to '/var/lib/ovirt-engine/backups/engine-20140410154023.jvtquC.sql'.
[ INFO ] Clearing Engine database engine
[ INFO ] Removing files
[ INFO ] Reverting changes to files
[ INFO ] Stage: Transaction commit
[ INFO ] Stage: Closing up
--== SUMMARY ==--
A backup of the Engine database is available at /var/lib/ovirt-engine/backups/engine-20140410154023.jvtquC.sql
A backup of PKI configuration and keys is available at /var/lib/ovirt-engine/backups/engine-pki-20140410154023HD2BJW.tar.gz
Engine setup successfully cleaned up
--== END OF SUMMARY ==--
[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140410154043-cleanup.conf'
[ INFO ] Stage: Clean up
Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-remove-20140410153958.log
[ INFO ] Stage: Pre-termination
[ INFO ] Stage: Termination
[ INFO ] Execution of cleanup completed successfully
(In reply to Netbulae from comment #5) > I've reinstalled ovirt-engine and the OS underneath about 20 times now so > the log is gone. > > I just tested installing, cleanup and setup steps again with the final 3.4 > release but can't reproduce. Thanks for testing, closing with insufficient data for reproducing the issue. *** Bug 1078860 has been marked as a duplicate of this bug. *** |
Created attachment 869885 [details] ovirt-engine-remove-20140303121735.log Description of problem: I run engine-cleanup to remove all ovirt components and configs. But when running pre setup it fails. And when running post setup it doesn't fail, but it fails removing ovirt-engine. Version-Release number of selected component (if applicable): 3.4.0 RC How reproducible: Always Steps to Reproduce: engine-cleanup Actual results: engine-cleanup [ INFO ] Stage: Initializing [ INFO ] Stage: Environment setup Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging.conf'] Log file: /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303120637.log Version: otopi-1.2.0_beta2 (otopi-1.2.0-0.3.beta2.fc19) [ ERROR ] Failed to execute stage 'Environment setup': 'OVESETUP_REPORTS_CONFIG/jasperHome' [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303120637.log [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ ERROR ] Execution of cleanup failed engine-cleanup [ INFO ] Stage: Initializing [ INFO ] Stage: Environment setup Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging.conf', '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'] Log file: /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303121735.log Version: otopi-1.2.0_beta2 (otopi-1.2.0-0.3.beta2.fc19) [ INFO ] Stage: Environment packages setup [ INFO ] Stage: Programs detection [ INFO ] Stage: Environment customization Do you want to remove all components? (Yes, No) [Yes]: [ INFO ] Stage: Setup validation During execution engine service will be stopped (OK, Cancel) [OK]: ovirt-engine is about to be removed, data will be lost (OK, Cancel) [Cancel]: ok [ INFO ] Stage: Transaction setup [ INFO ] Stopping engine service [ INFO ] Stopping dwh service [ INFO ] Stopping websocket-proxy service [ INFO ] Stage: Misc configuration [ INFO ] Stage: Package installation [ INFO ] Stage: Misc configuration [ INFO ] Backing up PKI configuration and keys [ INFO ] Backing up database localhost:engine to '/var/lib/ovirt-engine/backups/engine-20140303121751.UQInzh.sql'. [ INFO ] Clearing Engine database engine [ INFO ] Backing up database localhost:ovirt_engine_history to '/var/lib/ovirt-engine-dwh/backups/dwh-20140303121812.34D86I.sql'. [ INFO ] Clearing DWH database ovirt_engine_history [ INFO ] Backing up database localhost:ovirt_engine_reports to '/var/lib/ovirt-engine-reports/backups/reports-20140303121819.GroLiC.sql'. [ INFO ] Clearing Reports database ovirt_engine_reports [ INFO ] Removing files [ INFO ] Reverting changes to files [ INFO ] Stage: Transaction commit [ INFO ] Stage: Closing up --== SUMMARY ==-- A backup of the Reports database is available at /var/lib/ovirt-engine-reports/backups/reports-20140303121819.GroLiC.sql A backup of the DWH database is available at /var/lib/ovirt-engine-dwh/backups/dwh-20140303121812.34D86I.sql A backup of the Engine database is available at /var/lib/ovirt-engine/backups/engine-20140303121751.UQInzh.sql A backup of PKI configuration and keys is available at /var/lib/ovirt-engine/backups/engine-pki-20140303121751jYEJ6p.tar.gz Engine setup successfully cleaned up --== END OF SUMMARY ==-- [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140303121822-cleanup.conf' [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-remove-20140303121735.log [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ INFO ] Execution of cleanup completed successfully rpm -qa|grep ovirt ovirt-engine-setup-plugin-websocket-proxy-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-webadmin-portal-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-setup-plugin-ovirt-engine-common-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-iso-uploader-3.4.0-1.fc19.noarch ovirt-engine-setup-plugin-ovirt-engine-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-lib-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-dwh-setup-3.4.0-0.3.fc19.noarch ovirt-engine-cli-3.4.0.5-1.fc19.noarch ovirt-host-deploy-1.2.0-0.1.beta.fc19.noarch ovirt-engine-dbscripts-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-restapi-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-backend-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-sdk-python-3.4.0.6-1.fc19.noarch ovirt-engine-reports-setup-3.4.0-0.3.beta3.fc19.noarch ovirt-image-uploader-3.4.0-1.fc19.noarch ovirt-host-deploy-java-1.2.0-0.1.beta.fc19.noarch ovirt-engine-userportal-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-tools-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-reports-3.4.0-0.3.beta3.fc19.noarch ovirt-engine-setup-base-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-log-collector-3.4.0-1.fc19.noarch ovirt-engine-setup-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-dwh-3.4.0-0.3.fc19.noarch ovirt-engine-websocket-proxy-3.4.0-0.12.master.20140228075627.fc19.noarch ovirt-engine-3.4.0-0.12.master.20140228075627.fc19.noarch ls -la /etc/ovirt-engine total 84 drwxr-xr-x. 15 root root 4096 Mar 3 12:18 . drwxr-xr-x. 103 root root 12288 Mar 3 12:11 .. drwxr-xr-x. 2 root root 4096 Mar 3 12:05 branding drwxr-xr-x. 2 root root 4096 Mar 3 12:18 engine.conf.d drwxr-xr-x. 2 root root 4096 Mar 3 12:05 engine-config drwxr-xr-x. 2 root root 4096 Mar 3 12:05 engine-manage-domains drwxr-xr-x. 2 root root 4096 Mar 3 12:18 firewalld -rw-r-----. 1 root root 1045 Feb 24 10:18 imageuploader.conf drwxr-xr-x. 2 root root 4096 Mar 3 12:18 imageuploader.conf.d -rw-r-----. 1 root root 791 Feb 24 10:16 isouploader.conf drwxr-xr-x. 2 root root 4096 Mar 3 12:18 isouploader.conf.d -rw-r--r--. 1 root root 1498 Feb 24 09:10 logcollector.conf drwxr-xr-x. 2 root root 4096 Mar 3 12:18 logcollector.conf.d drwxr-xr-x. 3 root root 4096 Mar 3 12:05 notifier drwxr-xr-x. 2 root root 4096 Mar 3 12:06 osinfo.conf.d drwxr-xr-x. 2 root root 4096 Mar 3 12:06 ovirt-engine-dwh drwxr-xr-x. 2 root root 4096 Mar 3 12:18 ovirt-websocket-proxy.conf.d drwxr-xr-x. 2 root root 4096 Mar 3 12:18 uninstall.d -rw-r--r--. 1 root root 112 Feb 28 10:01 usbfilter.txt