Skip to content

Instantly share code, notes, and snippets.

@satishdotpatel
satishdotpatel / rabbitmq-create-queues.sh
Last active Mar 11, 2020
rabbitmq create queue after rebuilding cluster from scratch
View rabbitmq-create-queues.sh
#!/usr/bin/env bash
#
# After rebuilding rabbitmq cluster on openstack-ansible following script will help to create queues.
#
# https://access.redhat.com/articles/1167113
cinder_rabbitmq_password=<blah>
nova_rabbitmq_password=<blah>
neutron_rabbitmq_password=<blah>
heat_rabbitmq_password=<blah>
@satishdotpatel
satishdotpatel / openstack-ansible rebuild rabbitmq cluster recovery
Last active Nov 19, 2020
openstack-ansible rebuild rabbitmq cluster
View openstack-ansible rebuild rabbitmq cluster recovery
========> This is what i did to rebuild RabbitMQ cluster for Openstack-ansible <===============
1. stop all services on 3 rabbitmq containers, if it fail then kill -9 but clean up all the existing process.
2. yum remove rabbitmq-server (remove package)
3. rm -rf /var/lib/rabbitmq/mnesia/* (remove all dirty files)
4. ssh ostack-osa (ansible host)
5. cd /opt/openstack-ansible/playbooks/
6. openstack-ansible rabbitmq-install.yml -e rabbitmq_upgrade=true (It will install fresh new cluster)
7. After successfully installation verify cluster (rabbitmqctl cluster_status)
8. You need to re-create queue for each services (nova, neutron, glance, heat)
View Add User Account to iLO.xml
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="Administrator" PASSWORD="password">
<USER_INFO MODE="write">
<ADD_USER
USER_NAME="spatel"
USER_LOGIN="spatel"
PASSWORD="Secret123">
<ADMIN_PRIV value ="Yes"/>
<REMOTE_CONS_PRIV value ="Yes"/>
<RESET_SERVER_PRIV value ="Yes"/>
View change ilo default password.xml
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="Administrator" PASSWORD="unknown">
<USER_INFO MODE="write">
<MOD_USER USER_LOGIN="Administrator">
<PASSWORD value="Secret123"/>
</MOD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>
@satishdotpatel
satishdotpatel / openstack-ansible-designate-integration
Last active Jan 26, 2021
openstack-ansible-designate-integration
View openstack-ansible-designate-integration
************* Install bind9 DNS in designate container
yum install bind bind-utils
************* Configure bind9 DNS
$ cat /etc/rndc.key
key "designate" {
algorithm hmac-md5;
secret "O3P6S6Y2AmeDAIB98TLrNw==";
};
View rabbitmq-add-admin-user
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: