Project

General

Profile

Bug #34686

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

Added by Evgeni Golov 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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.

Associated revisions

Revision 36ffca77 (diff)
Added by Evgeni Golov 3 months ago

Fixes #34686 - remove all puppet-candlepin flag files on reset

History

#1 Updated by The Foreman Bot 3 months ago

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

#2 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases 3.3.0 added

#3 Updated by Evgeni Golov 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF