Skip to content

Instantly share code, notes, and snippets.

Avatar
🏡
Working from home

Hervé Beraud 4383

🏡
Working from home
View GitHub Profile
@4383
4383 / check.md
Last active Apr 15, 2020
Check the number of error that happened in a cluster
View check.md

This logs all errors recorded by the cluster by using crm_mon

$ crm_mon --as-xml | xmllint --xpath 'count(//failures/failure)' -

This one dumps current fail count per resource and per operation by using cibadmin

$ cibadmin -Q | grep fail-count
@4383
4383 / .tmux.conf
Created Apr 8, 2020
Switch tmux prefix from C-b to C-a,
View .tmux.conf
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
@4383
4383 / infrared.sh
Created Apr 6, 2020
To know what infrared will think is the latest puddle, you run
View infrared.sh
rhos-release -t /tmp 16-trunk && cat /tmp/latest-installed
@4383
4383 / rpm-info.md
Created Mar 12, 2020
RPM and package info
View rpm-info.md
# From an uninstalled package
yum deplist python3-oslo-messaging
# From an installed package
rpm -qR python3-oslo-messaging
# From a rpm file
rpm -qpR python3-oslo-messaging.rpm
@4383
4383 / drop.txt
Last active Feb 13, 2020
Oslo releases related to drop of py27 support on oslo scope
View drop.txt
Support dropped | Major released | Version | Project
----------------+----------------+---------+------------------------------
X | NA | NA | openstack-dev/cookiecutter
----------------+----------------+---------+------------------------------
X | NA | NA | openstack-dev/oslo-cookiecutter
----------------+----------------+---------+------------------------------
X | W | | openstack-dev/pbr
----------------+----------------+---------+------------------------------
X | X | 2.0.0 | openstack/automaton
----------------+----------------+---------+------------------------------
@4383
4383 / new_release.sh
Created Jan 6, 2020
create openstack new release
View new_release.sh
tools/new_release.sh stein oslo.serialization feature
@4383
4383 / overload.log
Last active Oct 3, 2019
openstack overload logs
View overload.log
Sep 24 13:19:39 overcloud-controller-0 dockerd-current[14639]: 2019/09/24 13:19:39 grpc: Server.processUnaryRPC failed to write status: stream error: code = 4 desc = "context deadline exceeded"
Sep 24 18:21:11 overcloud-controller-0 kernel: neutron-server invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
Sep 24 18:21:11 overcloud-controller-0 kernel: Out of memory: Kill process 20674 (collectd) score 650 or sacrifice child
Sep 24 18:21:11 overcloud-controller-0 kernel: Out of memory: Kill process 22087 (writer#1) score 650 or sacrifice child
Sep 24 13:19:34 overcloud-controller-0 lrmd[25452]: warning: ip-172.16.4.29_monitor_10000 process (PID 820218) timed out
Sep 24 13:19:34 overcloud-controller-0 lrmd[25452]: warning: ip-172.16.4.29_monitor_10000:820218 - timed out after 20000ms
@4383
4383 / patch.sh
Created Oct 1, 2019
patching overcloud with dev
View patch.sh
curl -4 "https://review.openstack.org/changes/541827/revisions/b1d6bcc7f343e0462dc7543f1c665fb63028feb6/patch?download" | base64 -d | sudo patch -d /usr/share/openstack-tripleo-heat-templates/ -p1 -b -z .patch1
source stackrc
# Set BUILD_ID manually to "12.0-20180124.1"
BUILD_ID="13.0-20191001.1"
openstack overcloud container image prepare \
--namespace=rhos-qe-mirror-qeos.usersys.redhat.com:5000/rhosp12 \
--output-images-file /home/stack/container_images_12.yaml \
--push-destination 192.168.24.1:8787 \
--prefix=openstack- \
@4383
4383 / registry.sh
Created Sep 27, 2019
list docker image for openstack from local registry
View registry.sh
curl -X GET http://192.168.24.1:8787/v2/_catalog
{"repositories":["rhosp13/openstack-aodh-api","rhosp13/openstack-aodh-evaluator","rhosp13/openstack-aodh-listener","rhosp13/openstack-aodh-notifier","rhosp13/openstack-ceilometer-central","rhosp13/openstack-ceilometer-compute","rhosp13/openstack-ceilometer-notification","rhosp13/openstack-cinder-api","rhosp13/openstack-cinder-scheduler","rhosp13/openstack-cinder-volume","rhosp13/openstack-cron","rhosp13/openstack-glance-api","rhosp13/openstack-gnocchi-api","rhosp13/openstack-gnocchi-metricd","rhosp13/openstack-gnocchi-statsd","rhosp13/openstack-haproxy","rhosp13/openstack-heat-api","rhosp13/openstack-heat-api-cfn","rhosp13/openstack-heat-engine","rhosp13/openstack-horizon","rhosp13/openstack-iscsid","rhosp13/openstack-keystone","rhosp13/openstack-mariadb","rhosp13/openstack-memcached","rhosp13/openstack-neutron-dhcp-agent","rhosp13/openstack-neutron-l3-agent","rhosp13/openstack-neutron-metadata-agent","rhosp13/openstack-neutron-openvswitch-agent","rhosp13/opens
@4383
4383 / locate file rpm
Created Sep 26, 2019
locate where file is installed through rpm info
View locate file rpm
$ rpm -ql openstack-tripleo-heat-templates | grep logrot
You can’t perform that action at this time.