Skip to content

Instantly share code, notes, and snippets.

View jacobwagner's full-sized avatar

Jacob Wagner jacobwagner

View GitHub Profile
@jacobwagner
jacobwagner / gist:a3776602779ce8067d3680f80bf3c8e0
Created December 12, 2019 18:35
double creation of creds
root@c307a5432864:~# kaasctl cluster init --provider-name dev2 --provider-type openstack jake-test
root@c307a5432864:~# cat /config/clusters/
dev1/ dev2/ eks1/
root@c307a5432864:~# cat /config/clusters/dev
dev1/ dev2/
root@c307a5432864:~# cat /config/clusters/dev
dev1/ dev2/
root@c307a5432864:~# cat /config/clusters/dev2/
config.yaml jake-test/ jake-test-bad-auth/ kaas-kaas-cci-pull-1778-16864/
root@c307a5432864:~# cat /config/clusters/dev2/
root@63ac215c121f:~# kubectl -n rackspace-system get alertmanagers
NAME AGE
kubernetes-prometheus-oper-alertmanager 7m33s
root@63ac215c121f:~# kubectl -n rackspace-system get podmonitors
No resources found.
root@63ac215c121f:~# kubectl -n rackspace-system get prometheuses
NAME AGE
customer-prometheus-operat-prometheus 5m57s
kubernetes-prometheus-oper-prometheus 7m49s
root@63ac215c121f:~# kubectl -n rackspace-system get prometheusrules
@jacobwagner
jacobwagner / gist:73528fa5e83268d06140
Created August 13, 2015 20:40
eng-lab02 f5 config 08/13/15
root@605086-infra01:~# cat rpc_f5_config.sh
#!/usr/bin/bash
### CREATE RPC PARTITION ###
create auth partition RPC
### SET DISPLAY PORT NUMBERS ###
modify cli global-settings service number
### CREATE SNATPOOL ###
@jacobwagner
jacobwagner / gist:6217d11280ae536c924e
Created February 4, 2015 22:10
Testing bug/1415994
command line ran:
```
scripts/f5-config.py -f ~/Documents/testing_templates/sat6_lab02_rpc_inventory.json -s 172.29.236.15 -e ~/Documents/testing_templates/sat6_lab02_rpc_f5.sh -r 100 -p SAT6_LAB02
```
output:
```
MP218EG3QN:os-ansible-deployment solo4572$ cat ~/Documents/testing_templates/sat6_lab02_rpc_f5.sh
#!/usr/bin/bash
@jacobwagner
jacobwagner / gist:9814455
Created March 27, 2014 18:17
Possible RedHat Shittyness
/usr/share/ceilometer/openstack-ceilometer-collector.upstart
/usr/share/ceilometer/openstack-ceilometer-central.upstart
/usr/share/ceilometer/ceilometer-dist.conf
/usr/share/ceilometer/openstack-ceilometer-api.upstart
/usr/share/glance/glance-cache-dist.conf
/usr/share/glance/openstack-glance-scrubber.upstart
/usr/share/glance/glance-scrubber-dist.conf
/usr/share/glance/glance-api-dist-paste.ini
/usr/share/glance/openstack-glance-registry.upstart
/usr/share/glance/glance-api-dist.conf
@jacobwagner
jacobwagner / gist:7160162
Created October 25, 2013 19:09
RabbitMQ failes to upgrade on 4.1.2 to 4.1.3 precise
Recipe: erlang::package
* package[erlang-nox] action install (up to date)
* package[erlang-dev] action install (up to date)
Recipe: rabbitmq::default
* package[util-linux] action install (up to date)
* remote_file[/var/chef/cache/rabbitmq-server_3.1.5-1_all.deb] action create_if_missing (up to date)
* dpkg_package[/var/chef/cache/rabbitmq-server_3.1.5-1_all.deb] action install
================================================================================
Error executing action `install` on resource 'dpkg_package[/var/chef/cache/rabbitmq-server_3.1.5-1_all.deb]'
================================================================================
@jacobwagner
jacobwagner / gist:7140123
Created October 24, 2013 16:12
iptables multiple instances of the same nat rule for HA on mysql/rabbit ip binds
root@qa-precise-pool251:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT all -- anywhere 198.101.133.155 to:198.101.133.226
DNAT all -- anywhere 198.101.133.155 to:198.101.133.226
DNAT all -- anywhere 198.101.133.154 to:198.101.133.226
DNAT all -- anywhere 198.101.133.155 to:198.101.133.226
DNAT all -- anywhere 198.101.133.154 to:198.101.133.226
DNAT all -- anywhere 198.101.133.154 to:198.101.133.226
@jacobwagner
jacobwagner / gist:6997131
Created October 15, 2013 19:17
glance-image-sync
[root@qa-centos-pool473 ~]# ls /var/lib/glance/
glance-image-sync.py image-cache images
[root@qa-centos-pool473 ~]# cat /var/log/glance/glance-image-sync.log
2013-10-15 11:40:01,433 image.update 305e8529-6a33-481d-8642-4bfe074dac08 qa-centos-pool473
2013-10-15 11:40:01,475 image.update ab6b2be9-9001-431e-b38c-cebdb50c28cc qa-centos-pool473
[root@qa-centos-pool473 ~]# glance index
ID Name Disk Format Container Format Size
------------------------------------ ------------------------------ -------------------- -------------------- --------------
ab6b2be9-9001-431e-b38c-cebdb50c28cc precise-image qcow2 bare 253952000
305e8529-6a33-481d-8642-4bfe074dac08 cirros-image qcow2 bare 13147648
From /etc/openstack-dashboard/local_settings.py
# If Horizon is being served through SSL, then add the following two
# settings to better secure the cookies from security exploits
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
from /etc/nova/nova.conf
##### MISC #####
# force backing images to raw format
force_raw_images=false
allow_same_net_traffic=true
osapi_max_limit=1000
snapshot_image_format=qcow2
start_guests_on_host_boot=false
resume_guests_state_on_host_boot=false