Actions
Bug #34686
closed--reset-data does not remove /var/lib/candlepin/.puppet-candlepin-rpm-version
Difficulty:
Triaged:
No
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