Bug 1326026 - Satellite 6.2 beta: Archive /var/log/* data causes service restart failures
Summary: Satellite 6.2 beta: Archive /var/log/* data causes service restart failures
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Audit Log
Version: 6.2.0
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: GSS_Sat6Beta_Tracker, GSS_Sat6_Tracker
TreeView+ depends on / blocked
 
Reported: 2016-04-11 15:39 UTC by Pradeep Kumar Surisetty
Modified: 2016-04-26 12:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-26 12:42:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pradeep Kumar Surisetty 2016-04-11 15:39:35 UTC
Description of problem:

To monitor  few latest failures, archived all the data /var/log/* and restarted katello services.  mongod, httpd, foreman-proxy fails to restart


[root@satserver log]# ls
old.tgz

[root@satserver log]# katello-service  restart
---
<snip>

Redirecting to /bin/systemctl stop  mongod.service

Success!
Redirecting to /bin/systemctl start  mongod.service
Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details.

Redirecting to /bin/systemctl start  postgresql.service

Redirecting to /bin/systemctl start  qpidd.service

Redirecting to /bin/systemctl start  qdrouterd.service

Redirecting to /bin/systemctl start  tomcat.service

Redirecting to /bin/systemctl start  foreman-proxy.service
Job for foreman-proxy.service failed because the control process exited with error code. See "systemctl status foreman-proxy.service" and "journalctl -xe" for details.

Redirecting to /bin/systemctl start  pulp_celerybeat.service

Redirecting to /bin/systemctl start  pulp_resource_manager.service

Redirecting to /bin/systemctl start  pulp_workers.service

Redirecting to /bin/systemctl start  httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

Redirecting to /bin/systemctl start  foreman-tasks.service
Job for foreman-tasks.service failed because the control process exited with error code. See "systemctl status foreman-tasks.service" and "journalctl -xe" for details.

Some services failed to start: mongod,foreman-proxy,httpd,foreman-tasks
---

untarring this helps to restart again. 


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


How reproducible:


Steps to Reproduce:
1. Archive  /var/log/* data
 [root@satserver log]# ls
  old.tgz

2. restart katello services
    katello-service  restart

3.  Some services failed to start: mongod,foreman-proxy,httpd,foreman-tasks

Actual results:

Few services fails to start

Expected results:

All services should start

Additional info:

Comment 1 Brad Buckingham 2016-04-26 12:42:12 UTC
Removing the logs from /var/log in order to archive is not the ideal solution.  The recommendation is to utilize logrotate vs rm/archive.


Note You need to log in before you can comment on or make changes to this bug.