atop logrotate number of kept files is too small

Bug #1597250 reported by Dmitry Sutyagin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Maksim Malchuk
6.0.x
Won't Fix
Medium
MOS Maintenance
6.1.x
Won't Fix
Medium
MOS Maintenance
7.0.x
Fix Released
Medium
Rodion Tikunov
8.0.x
Fix Released
Medium
Rodion Tikunov

Bug Description

Currently Fuel sets up logrotate for atop in a way that only 7 days of data are kept. This has proven over time to be insufficient for any long-term issue analysis and for RCAs. Multiple support cases required atop logs from earlier periods, which were not available.

We need to increase atop storage to keep 6 months of data, and maybe make this configurable in UI before deployment. This will also require increasing minimal storage requirements for /var partition.

Changed in fuel:
status: New → Confirmed
Dmitry Klenov (dklenov)
tags: added: area-library
Changed in fuel:
importance: Undecided → Medium
assignee: Fuel Dev (fuel-dev) → Fuel Sustaining (fuel-sustaining-team)
Revision history for this message
Roman Rufanov (rrufanov) wrote :

Customer found on 6.0 - most likely exists in other versions. Need to keep atop logs for at least 90 days so we can do RCAs for past issues.

Revision history for this message
Roman Rufanov (rrufanov) wrote :
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Maksim Malchuk (mmalchuk)
Dmitry Klenov (dklenov)
no longer affects: fuel/future
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/336725

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/336726

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/336725
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=dee15ae89ea65320d45326301de299d7526e6d9d
Submitter: Jenkins
Branch: master

commit dee15ae89ea65320d45326301de299d7526e6d9d
Author: Maksim Malchuk <email address hidden>
Date: Sat Jul 2 00:27:30 2016 +0300

    Add the atop service UI settings section

    This change adds the appropriate section to UI settings page.
    It contains the default settings from the fuel-library and the
    note message for an operator.

    DocImpact
    Change-Id: Ie0e69f58183193455d5d036b45668a3476f1a693
    Partial-Bug: #1597250
    Signed-off-by: Maksim Malchuk <email address hidden>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/336726
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=a7f03d7c55446dd035b499046b6ffc86ec112bed
Submitter: Jenkins
Branch: master

commit a7f03d7c55446dd035b499046b6ffc86ec112bed
Author: Maksim Malchuk <email address hidden>
Date: Sat Jul 2 00:55:38 2016 +0300

    Add atop configuration settings

    Now the atop setting are configurable from UI and can be overriden in
    hiera. Also, this change adds idempotency and fix noop tests.

    DocImpact
    Depends-On: Ie0e69f58183193455d5d036b45668a3476f1a693
    Change-Id: I59cea9ea5ca31c20db2cf3eaaebe09bad0abdcf8
    Closes-Bug: #1597250
    Signed-off-by: Maksim Malchuk <email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/338157

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/338194

Revision history for this message
Rodion Tikunov (rtikunov) wrote :

Closing this bug as Won't Fix for MOS 6 and MOS 6.1 as we have finished active support for those releases and don't merge non-critical and non-security fixes there anymore.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/7.0)

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/367873

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/7.0)

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/368031

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/7.0)

Reviewed: https://review.openstack.org/367873
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=2077e661e390dc1981bd3d3537e54cff108aae58
Submitter: Jenkins
Branch: stable/7.0

commit 2077e661e390dc1981bd3d3537e54cff108aae58
Author: Maksim Malchuk <email address hidden>
Date: Sat Jul 2 00:27:30 2016 +0300

    Add the atop service UI settings section

    This change adds the appropriate section to UI settings page.
    It contains the default settings from the fuel-library and the
    note message for an operator.

    DocImpact
    Change-Id: Ie0e69f58183193455d5d036b45668a3476f1a693
    Partial-Bug: #1597250
    Signed-off-by: Maksim Malchuk <email address hidden>
    (cherry picked from commit dee15ae89ea65320d45326301de299d7526e6d9d)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/8.0)

Reviewed: https://review.openstack.org/338157
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=602cd95e65392fb92d1cae14905fca59944451b9
Submitter: Jenkins
Branch: stable/8.0

commit 602cd95e65392fb92d1cae14905fca59944451b9
Author: Maksim Malchuk <email address hidden>
Date: Sat Jul 2 00:27:30 2016 +0300

    Add the atop service UI settings section

    This change adds the appropriate section to UI settings page.
    It contains the default settings from the fuel-library and the
    note message for an operator.

    DocImpact
    Change-Id: Ie0e69f58183193455d5d036b45668a3476f1a693
    Partial-Bug: #1597250
    Signed-off-by: Maksim Malchuk <email address hidden>
    (cherry picked from commit dee15ae89ea65320d45326301de299d7526e6d9d)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/7.0)

Reviewed: https://review.openstack.org/368031
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=3d6aa6140b03072f79210b3cb6d982d4b8e749db
Submitter: Jenkins
Branch: stable/7.0

commit 3d6aa6140b03072f79210b3cb6d982d4b8e749db
Author: Maksim Malchuk <email address hidden>
Date: Sat Jul 2 00:55:38 2016 +0300

    Add atop configuration settings

    Now the atop setting are configurable from UI and can be overriden in
    hiera. Also, this change adds idempotency and fix noop tests.

    DocImpact
    Depends-On: Ie0e69f58183193455d5d036b45668a3476f1a693
    Change-Id: I59cea9ea5ca31c20db2cf3eaaebe09bad0abdcf8
    Closes-Bug: #1597250
    Signed-off-by: Maksim Malchuk <email address hidden>
    (cherry picked from commit a7f03d7c55446dd035b499046b6ffc86ec112bed)
    (cherry picked from commit a55cbdb8c812a3d1c4fd5be3a42d11b0e26809b9)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/8.0)

Reviewed: https://review.openstack.org/338194
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=a55cbdb8c812a3d1c4fd5be3a42d11b0e26809b9
Submitter: Jenkins
Branch: stable/8.0

commit a55cbdb8c812a3d1c4fd5be3a42d11b0e26809b9
Author: Maksim Malchuk <email address hidden>
Date: Sat Jul 2 00:55:38 2016 +0300

    Add atop configuration settings

    Now the atop setting are configurable from UI and can be overriden in
    hiera. Also, this change adds idempotency and fix noop tests.

    Conflicts:
     deployment/puppet/osnailyfacter/manifests/tools/tools.pp has not
            presented in 8.0 yet so changes has been moved to
            deployment/puppet/osnailyfacter/modular/tools/tools.pp
     tests/noop/spec/hosts/tools/tools_spec.rb

    DocImpact
    Depends-On: Ie0e69f58183193455d5d036b45668a3476f1a693
    Change-Id: I59cea9ea5ca31c20db2cf3eaaebe09bad0abdcf8
    Closes-Bug: #1597250
    Signed-off-by: Maksim Malchuk <email address hidden>
    (cherry picked from commit a7f03d7c55446dd035b499046b6ffc86ec112bed)

tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on MOS 7.0 + MU6 updates.

tags: removed: on-verification
tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 8.0 + MU4 updates.

Steps to verify:
1. Update nailgun database to see setting 'Advanced System & Process Monitor (atop)'
2. Create cluster, set 'Interval between the snapshots' and 'Rotate days' values in Fuel UI
3. Deploy cluster
4. Check files '/etc/cron.daily/atop_retention' and '/etc/default/atop' on controller

Actual results:
Appropriate values from step 2 are present in files '/etc/cron.daily/atop_retention' and '/etc/default/atop'.

tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.