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.
Updated by The Foreman Bot over 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
Updated by Evgeni Golov over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset installer|36ffca77dc8885d90bd883a3eca617034bdb1083.
Actions