Project

General

Profile

Actions

Bug #34686

closed

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

Added by Evgeni Golov over 2 years ago. Updated over 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

Also available in: Atom PDF