Project

General

Profile

Actions

Bug #17047

closed

katello-clean-empty-puppet-environments cron.weekly job needs to hide errors when trying to delete non-existent folders

Added by Chris Roberts over 7 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from Bugzilla:

Description of problem:
The cron.weekly job put in place to clean empty puppet environments will now have situations where there are no KT_* environments to clean up. In this situation, the find command fails and an error is output. We should redirect the errors to null (hide them) or come up with a different command.

Version-Release number of selected component (if applicable):
Satellite 6.2.2.1

How reproducible:
100%

Steps to Reproduce:
1. Install Satellite 6.2
2. Have no publshed puppet environments. (KT_* folders are no longer created for content-views, so on if not modules are published)
3. Run /etc/cron.weekly/katello-clean-empty-puppet-environments

Actual results:
find: ‘/etc/puppet/environments/KT*’: No such file or directory

Expected results:
No errors from script output

Additional info:
Since the only purpose is to clean out unused puppet environments, we could simply add '> /dev/null 2>&1' to the end of the scripts `find` command.


Related issues 1 (0 open1 closed)

Has duplicate Katello - Bug #17471: Cron fails to clean katello environmentsDuplicate11/24/2016Actions
Actions #1

Updated by Chris Roberts over 7 years ago

  • Category changed from Tooling to Installer
Actions #2

Updated by Stephen Benjamin over 7 years ago

  • Project changed from Katello to Packaging
  • Category deleted (Installer)
Actions #3

Updated by Chris Roberts over 7 years ago

  • Status changed from New to Resolved
  • Pull request https://github.com/Katello/katello-packaging/pull/311 added
Actions #4

Updated by Justin Sherrill about 7 years ago

  • Has duplicate Bug #17471: Cron fails to clean katello environments added
Actions #5

Updated by Greg Sutcliffe over 5 years ago

  • Target version deleted (Katello 3.2.1)
Actions

Also available in: Atom PDF