Skip to content

Instantly share code, notes, and snippets.

View cleanup.sql
# Total metric count
select count(id) from gnocchi.metric;
# Total resource count
select count(id) from gnocchi.resource;
################################################################################
# Instance related cleanups
################################################################################
update gnocchi.metric as upm
View gist:25b16bdba7be792f9c322c6139feb64e
ubuntu@review:~$ export GERRIT_SITE=~/gerrit_testsite
ubuntu@review:~$ mkdir -p $GERRIT_SITE
ubuntu@review:~$ java -jar gerrit*.war init --batch --dev -d $GERRIT_SITE
[2020-02-06 22:35:19,113] [main] INFO com.google.gerrit.server.config.GerritServerConfigProvider : No /home/ubuntu/gerrit_testsite/etc/gerrit.config; assuming defaults
Generating SSH host key ... rsa... ed25519... ecdsa 256... ecdsa 384... ecdsa 521... done
Initialized /home/ubuntu/gerrit_testsite
Reindexing projects: 100% (2/2)
Reindexed 2 documents in projects index in 0.2s (9.6/s)
Executing /home/ubuntu/gerrit_testsite/bin/gerrit.sh start
Starting Gerrit Code Review: WARNING: Could not adjust Gerrit's process for the kernel's out-of-memory killer.
View gist:58d97dbc770fa5527a55a2da7a34a260
ERROR neutron Traceback (most recent call last):
ERROR neutron File "/usr/local/bin/neutron-openvswitch-agent", line 10, in <module>
ERROR neutron sys.exit(main())
ERROR neutron File "/opt/stack/neutron/neutron/cmd/eventlet/plugins/ovs_neutron_agent.py", line 20, in main
ERROR neutron agent_main.main()
ERROR neutron File "/opt/stack/neutron/neutron/plugins/ml2/drivers/openvswitch/agent/main.py", line 47, in main
ERROR neutron mod.main()
ERROR neutron File "/opt/stack/neutron/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/main.py", line 35, in main
ERROR neutron 'neutron.plugins.ml2.drivers.openvswitch.agent.'
ERROR neutron File "/usr/local/lib/python3.5/dist-packages/os_ken/base/app_manager.py", line 375, in run_apps
View gist:d76faf87ee1a6f9d5b2f4a7c2bf5725f
2018-01-03 12:03:07.141 15265 INFO tempest [-] Using tempest config file /opt/stack/tempest/etc/tempest.conf
2018-01-03 12:03:07.145 15265 DEBUG tempest [-] ******************************************************************************** log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2866
2018-01-03 12:03:07.146 15265 DEBUG tempest [-] Configuration options gathered from: log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2867
2018-01-03 12:03:07.146 15265 DEBUG tempest [-] command line args: [] log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2868
2018-01-03 12:03:07.147 15265 DEBUG tempest [-] config files: ['/opt/stack/tempest/etc/tempest.conf'] log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2870
2018-01-03 12:03:07.147 15265 DEBUG tempest [-] ================================================================================ log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2871
2018-01-0
View blade0-host
root@maas-server:~# ps aux | grep qemu
libvirt+ 24893 8.7 0.4 21544516 1661372 ? Sl 07:36 25:47 /usr/bin/qemu-system-x86_64 -name virtual-blade1 -S -machine pc-i440fx-xenial,accel=kvm,usb=off -cpu host -m 16384 -realtime mlock=off -smp 8,sockets=8,cores=1,threads=1 -uuid 68ec8111-03a3-46b3-b0cd-be7e32ffe277 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-virtual-blade1/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot order=nc,menu=on,strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2 -drive file=/home/libvirt/images/virtual-blade1-roo
View unit-neutron-gateway-0.log
This file has been truncated, but you can view the full file.
erlon@thinkpad ~ $ maas-hds
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-64-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
5 packages can be updated.
0 updates are security updates.
View neutron commands
(openstack) network list
+--------------------------------------+----------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+----------+--------------------------------------+
| bf8d51ad-f971-4966-8c0c-1da956fab0df | internal | 152b45b6-b0be-4881-8ef6-0278237b0925 |
| c12ad2d2-3b32-4c4b-8b8e-0c804e01a1a6 | ext_net | eb8d5b0a-49b7-4fd1-a85b-ecf4420842cd |
+--------------------------------------+----------+--------------------------------------+
(openstack) network show bf8d51ad-f971-4966-8c0c-1da956fab0df
+---------------------------+--------------------------------------+
| Field | Value |
View neutron-gateway
ps aux | grep qemu
root 20187 0.0 0.0 12944 1092 pts/4 S+ 17:32 0:00 grep --color=auto qemu
root@virtual-blade2:/home/ubuntu# ifconfig -a
br-ens3 Link encap:Ethernet HWaddr 52:54:00:34:10:a2
inet addr:192.168.51.80 Bcast:192.168.51.255 Mask:255.255.255.0
inet6 addr: fe80::5054:ff:fe34:10a2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:68085 errors:0 dropped:0 overruns:0 frame:0
TX packets:73755 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
View compute5
root@virtual-blade5:/home/ubuntu# ps aux | grep qemu
libvirt+ 293706 0.7 1.1 3873556 186408 ? Sl 16:56 0:14 qemu-system-x86_64 -enable-kvm -name instance-00000005 -S -machine pc-i440fx-xenial,accel=kvm,usb=off -cpu IvyBridge,+pdpe1gb,+hypervisor,+osxsave,+pcid,+vmx,+ss -m 2000 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid f9957200-aadd-406d-ab69-de63bafb3601 -smbios type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=14.0.1,serial=6a44ecb9-e425-4472-ba78-351f856123ab,uuid=f9957200-aadd-406d-ab69-de63bafb3601,family=Virtual Machine -nographic -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-instance-00000005/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=rbd:cinder-ceph/volume-7bc898f8-d917-43a2-8575-5a8da1d448e0:id=nova-co
View gist:688a8765d52f781a4ef5a242473d9312
root@virtual-blade5:/home/ubuntu# ps aux | grep qemu
libvirt+ 293706 0.7 1.1 3873556 186408 ? Sl 16:56 0:14 qemu-system-x86_64 -enable-kvm -name instance-00000005 -S -machine pc-i440fx-xenial,accel=kvm,usb=off -cpu IvyBridge,+pdpe1gb,+hypervisor,+osxsave,+pcid,+vmx,+ss -m 2000 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid f9957200-aadd-406d-ab69-de63bafb3601 -smbios type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=14.0.1,serial=6a44ecb9-e425-4472-ba78-351f856123ab,uuid=f9957200-aadd-406d-ab69-de63bafb3601,family=Virtual Machine -nographic -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-instance-00000005/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=rbd:cinder-ceph/volume-7bc898f8-d917-43a2-8575-5a8da1d448e0:id=nova-co