Project

General

Profile

Actions

Bug #34686

closed

--reset-data does not remove /var/lib/candlepin/.puppet-candlepin-rpm-version

Added by Evgeni Golov about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Ohai,

https://github.com/theforeman/foreman-installer/blob/ae449b051d6e3648bb6dcb34e12f2bd7bc7bf6f8/hooks/pre/10-reset_data.rb#L54-L57 currently reads:

def reset_candlepin
  execute!('rm -f /var/lib/candlepin/.puppet-candlepin-cpdb*', false, true)
  empty_db_in_postgresql('candlepin')
end

However, in reality, the files are called:

# ls -alh /var/lib/candlepin/.puppet*
-rw-r--r--. 1 root root 25 Mar 28 10:53 /var/lib/candlepin/.puppet-candlepin-cpdb-create-done
-rw-r--r--. 1 root root  6 Mar 28 10:53 /var/lib/candlepin/.puppet-candlepin-rpm-version

Not the missing "cpdb" in the second filename. Thus the file is not removed, and puppet-candlepin doesn't try to migrate the CP database.

Actions #1

Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Evgeni Golov
  • Pull request https://github.com/theforeman/foreman-installer/pull/757 added
Actions #2

Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases 3.3.0 added
Actions #3

Updated by Evgeni Golov about 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF