Professional Documents
Culture Documents
Dentry Cache
(CBIS release 19/19A)
Customer: SETAR
SF: 02838221
pg. 1
Difficulty Level: Easy
Version: 1.0
Contents
Summary ..................................................................................................................................... 3
A. Pre-Health check .................................................................................................................. 3
B. Cleanup PCS resources .......................................................................................................... 4
C. Barbican API Healthcheck ..................................................................................................... 4
D. Limit Negative Dentry Size .................................................................................................... 4
E. Rollback ............................................................................................................................... 5
F. Post-Health check ................................................................................................................. 5
pg. 2
Summary
This MOP covers these procedural actions for CBIS 19:
• Modification of /openstack/healthcheck on each controller
• dropping inode/dentry cache on each controller
A. Pre-Health check
1. Hardware status of compute and controller. Make sure Power State should be on for all,
Provisioning State should be active and Maintenance mode should false
2. Openstack Status: Undercloud ----> There should not be any failed Service.
3. Nova Compute Services: Undercloud ----> Status should be enable and State should be UP
4. Tenant Status: Undercloud ----> All Tenants should be in ACTIVE State (Leave VM named Test)
6. PCS Status ----> Controller (Any) ----> No Service should be in stopped status.
[stack@undercloud ~]$ o 0
[cbis-admin@overcloud-controller-0 ~]$ sudo pcs status
7. Ceph Status and CEPH Health Check: Undercloud ----> This status will vary at Pre-Check. At
Post Health Check, it should be active and all the OSDs should be up.
pg. 3
B. Cleanup PCS resources
Check the resources and perform a clan up if needed
pcs status
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-barbican_wsgi_main.conf)
export NSS_SDB_USE_CACHE=no
curl ${check_url} --insecure --cacert /etc/pki/ca-trust/source/anchors/ca-internal.crt.pem
--key /etc/barbican/barbican-server.key --cert /etc/barbican/barbican-server.pem
==============================================================================
1. We can reclaim memory manually, by dropping inode/dentry cache on each controller (this
command my take few minutes during the first execution):
pg. 4
[root@overcloud-controller-0 ~]# sysctl -w vm.drop_caches=2
E. Rollback
Below the steps for rollback :
Execute the same steps described in chapter C and remove the added line export
NSS_SDB_USE_CACHE=no
Execute the step 3 described in chapter D and remove the added lines in root crontab on each
controller.
F. Post-Health check
Hardware status of compute and controller. Make sure Power State should be on for all, Provisioning
State should be active and Maintenance mode should false
pg. 5
[stack@undercloud ~]$ openstack baremetal node list
2. Openstack Status : Undercloud ----> There should not be any failed Service.
3. Nova Compute Services: Undercloud ----> Status should be enable and State should be UP
4. Tenant Status: Undercloud ----> All Tenants should be in ACTIVE State (Leave VM named
Test)
6. PCS Status ----> Controller (Any) ----> No Service should be in stopped status.
[stack@undercloud ~]$ o 0
[cbis-admin@overcloud-controller-0 ~]$ sudo pcs status
7. Ceph Status and CEPH Health Check: Undercloud ----> This status will vary at Pre-Check. At
Post Health Check, it should be active and all the OSDs should be up.
pg. 6