Project

General

Profile

Bug #21268

`open': Not a directory - /var/lib/qpidd/.qpidd/qls/jrnl/<something> (Errno::ENOTDIR)

Added by Evgeni Golov over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Installer
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Associated revisions

Revision b7a1898a (diff)
Added by Evgeni Golov over 4 years ago

Fixes #21268 - only migrate qpid directories, not random files (#549)

people sometimes place files at random places and then wonder why
things blow up, let's be nice to people

History

#1 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/549 added

#2 Updated by Evgeni Golov over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 284
  • 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)

Also available in: Atom PDF