Bug #21268
closed`open': Not a directory - /var/lib/qpidd/.qpidd/qls/jrnl/<something> (Errno::ENOTDIR)
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1500311
Description of problem:
When there are files (not directories) in /var/lib/qpidd/.qpidd/qls/jrnl/, the upgrade fails when migrating the qpidd dirs, as it tries to chdir to a non-directory (file, symlink, whatever).
I understand that having non-directories is not really expected in the jrnl folder, but I still think the upgrade should cope with that.
Version-Release number of selected component (if applicable):
Satellite 6.2.12
How reproducible:
100%
Steps to Reproduce:
1. touch /var/lib/qpidd/.qpidd/qls/jrnl/test.txt
2. upgrade from 6.2.10 to 6.2.12
Actual results:
/usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:124:in `open': Not a directory - /var/lib/qpidd/.qpidd/qls/jrnl/test.txt (Errno::ENOTDIR)
Expected results:
Upgrade succeeds
Additional info:
Workaround: remove all non-directories from the jrnl folder
Updated by The Foreman Bot almost 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello-installer/pull/549 added
Updated by Evgeni Golov almost 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-installer|b7a1898a046d8734aa2d983a060de28f08a43edc.
Updated by Justin Sherrill almost 7 years ago
- Subject changed from `open': Not a directory - /var/lib/qpidd/.qpidd/qls/jrnl/<something> (Errno::ENOTDIR) to `open': Not a directory - /var/lib/qpidd/.qpidd/qls/jrnl/<something> (Errno::ENOTDIR)
- Translation missing: en.field_release set to 284