Merge pull request #26 from adobdin/issue14

Timmy v1.0 merge to master
This commit is contained in:
Dmitry 2016-05-13 18:05:19 -07:00
commit 35df4446d3
206 changed files with 735 additions and 585 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pyc

View File

@ -2,3 +2,4 @@ recursive-include rq *
recursive-include doc *
include README.md
include config.yaml
include rq.yaml

View File

@ -10,22 +10,32 @@ env_vars:
- 'IPTABLES_STR="iptables -nvL"'
fuelip: '127.0.0.1'
rqdir: './rq'
rqfile: './rq.yaml'
soft_filter:
status: ['ready']
online: True
timeout: 15
compress_timeout: 3600
log_path: '/var/log'
log_filter:
include: '(.)*'
logs:
path: '/var/log'
exclude: '[-_]\d{8}$|atop[-_]|\.gz$'
# by_role:
# contrail:
# log_filter:
# include: 'contrail'
# by_node_id:
# 3:
# by_roles:
# compute:
# logs:
# path: '/var/log'
# include: 'compute'
# ceph-osd:
# logs:
# path: '/var/log'
# include: 'ceph'
# start: '2016-05-05'
# by_id:
# 1:
# env_vars:
# - 'OPENRC=/root/openrc'
# - 'IPTABLES_STR="iptables -S"'
# log_filter:
# include: 'messages'
# logs:
# path: '/var/log'
# start: '2016-05-08 22:00:01'
# cmds:
# - 'df-m'

69
rq.yaml Normal file
View File

@ -0,0 +1,69 @@
filelists:
by_roles:
fuel: [etc-nailgun, etc-fuel]
ceph-osd: [etc-ceph]
cinder: [etc-cinder]
compute: [etc-nova, etc-libvirt]
controller: [etc-glance, etc-haproxy, etc-nova,
etc-keystone, etc-neutron, etc-mysql]
# f3flight: removed etc-heat, etc-ceph-controller from controller since it's not always present, gives a warning
# f3flight: need to make a better way to decide which files to collect
by_os_platform:
centos: [etc-yum]
ubuntu: [etc-apt]
scripts:
by_release:
'4.1.1':
by_roles:
fuel: [fuel-postgres-dump]
'5.0.1':
by_roles:
fuel: [fuel-docker-ps, fuel-dockerctl-check, fuel-docker-db-archive]
'6.0':
by_roles:
compute: [ipset-save, ipset-list]
controller: [ipset-save, ipset-list]
'6.1':
by_roles:
fuel: [fuel-notifications]
'7.0':
by_roles:
fuel: [fuel-notifications]
'5.1.1':
by_roles:
fuel: [fuel-dockerctl-list, fuel-docker-ps, fuel-dockerctl-check, fuel-docker-db-archive]
'8.0':
by_roles:
fuel: [fuel-notifications]
by_roles:
fuel: [fuel-release, fuel-task-list, fuel-environment-list]
cinder: [ovs-vsctl-show, cinder-manage]
compute: [compute-iptables-nat, ovs-dump-flows, compute-iptables, ovs-ofctl-show-bridges,
ovs-vsctl-show]
controller: [rabbitmqctl-list-queues, nova-manage-service-list, iptables-namespaces,
rabbitmqctl-cluster-status, crm-resource-status, ovs-dump-flows, neutron-agent-list,
mysql-status, ceph-mon-status, ovs-ofctl-show-bridges, rabbitmqctl-list-connections,
ovs-vsctl-show, rabbitmqctl-report, mysql-size, rabbitmqctl-status, crm-resource-list,
cinder-manage]
mongo: [mongo-replication-status, ipa, mongo-replica-conf, mongo-status, ovs-vsctl-show]
once_by_roles:
ceph-osd: [ceph-df, ceph-osd-status, ceph-osd-tree, ceph-pg-dump, ovs-vsctl-show,
ceph-health-detail]
controller: [neutron-router-list, neutron-net-list, neutron-subnet-list, keystone-endpoint-list,
cinder-list, nova-list, nova-manage-vm-list, keystone-tenant-list, nova-usage-list,
neutron-port-list]
by_os_platform:
ubuntu: [dmesg-t-ubuntu, packages-ubuntu]
centos: [dmesg-centos, packages-centos]
__default:
[ip-ne, iptables, ipnetns, ss, ipa, iptables-nat, df-m, services-status, cpuinfo, df-i, ipro]
# cmds:
# __default:
# test:
# 'echo "test" | head -n 1'
# test2:
# 'echo "test2" | less'
# by_roles:
# compute:
# t3: 'echo t3'
# t4: 'echo t4'

View File

@ -1 +0,0 @@
../../cmds/cinder-manage

View File

@ -1 +0,0 @@
../../cmds/ovs-vsctl-show

View File

@ -1 +0,0 @@
../../cmds/compute-iptables

View File

@ -1 +0,0 @@
../../cmds/compute-iptables-nat

View File

@ -1 +0,0 @@
../../cmds/ovs-dump-flows

View File

@ -1 +0,0 @@
../../cmds/ovs-ofctl-show-bridges

View File

@ -1 +0,0 @@
../../cmds/ovs-vsctl-show

View File

@ -1 +0,0 @@
../../cmds/ceph_mon_status

View File

@ -1 +0,0 @@
../../cmds/cinder-manage

View File

@ -1 +0,0 @@
../../cmds/crm-resource-list

View File

@ -1 +0,0 @@
../../cmds/crm-resource-status

View File

@ -1 +0,0 @@
../../cmds/iptables-namespaces

View File

@ -1 +0,0 @@
../../cmds/mysql-size

View File

@ -1 +0,0 @@
../../cmds/mysql-status

View File

@ -1 +0,0 @@
../../cmds/neutron-agent-list

View File

@ -1 +0,0 @@
../../cmds/nova-manage-service-list

View File

@ -1 +0,0 @@
../../cmds/ovs-dump-flows

View File

@ -1 +0,0 @@
../../cmds/ovs-ofctl-show-bridges

View File

@ -1 +0,0 @@
../../cmds/ovs-vsctl-show

View File

@ -1 +0,0 @@
../../cmds/rabbitmqctl-cluster-status

View File

@ -1 +0,0 @@
../../cmds/rabbitmqctl-list-queues

View File

@ -1 +0,0 @@
../../cmds/rabbitmqctl-report

View File

@ -1 +0,0 @@
../../cmds/rabbitmqctl-status

View File

@ -1 +0,0 @@
../../cmds/rabbitmqctl_list_connections

View File

@ -1 +0,0 @@
../../cmds/fuel-environment-list

View File

@ -1 +0,0 @@
../../cmds/fuel-release

View File

@ -1 +0,0 @@
../../cmds/fuel-task-list

View File

@ -1 +0,0 @@
../../cmds/ipa

View File

@ -1 +0,0 @@
../../cmds/mongo-replica-conf

View File

@ -1 +0,0 @@
../../cmds/mongo-replication-status

View File

@ -1 +0,0 @@
../../cmds/mongo-status

View File

@ -1 +0,0 @@
../../cmds/ovs-vsctl-show

View File

@ -1,9 +0,0 @@
Please, don't include commands which requests lists of vms, images, endpoints,
tenants, etc. to decrease a high load on the cluster.
Add these command to 'extended' role, which can be configured for some nodes.
The following commands can be executed in extended mode:
cinder-list
nova-list
nova-usage-list
nova-manage-vm-list

View File

@ -1,2 +0,0 @@
ceph mon_status

View File

@ -1,2 +0,0 @@
source "$OPENRC"
keystone endpoint-list

View File

@ -1,2 +0,0 @@
source "$OPENRC"
keystone tenant-list

View File

@ -1 +0,0 @@
keep this directory structure to compatible symlinks

View File

@ -1 +0,0 @@
../../cmds/dmesg

View File

@ -1 +0,0 @@
../../cmds/dmesg-t

View File

@ -1 +0,0 @@
../../cmds/.packages-centos

View File

@ -1 +0,0 @@
../../cmds/.packages-ubuntu

View File

@ -1 +0,0 @@
../../cmds/cpuinfo

View File

@ -1 +0,0 @@
../../cmds/df-i

View File

@ -1 +0,0 @@
../../cmds/df-m

View File

@ -1 +0,0 @@
../../cmds/ip-ne

View File

@ -1 +0,0 @@
../../cmds/ipa

View File

@ -1 +0,0 @@
../../cmds/ipnetns

View File

@ -1 +0,0 @@
../../cmds/ipro

View File

@ -1 +0,0 @@
../../cmds/iptables

View File

@ -1 +0,0 @@
../../cmds/iptables-nat

View File

@ -1 +0,0 @@
../../cmds/services-status

View File

@ -1 +0,0 @@
../../cmds/ss

View File

@ -1 +0,0 @@
../../cmds/ceph-df

View File

@ -1 +0,0 @@
../../cmds/ceph-health-detail

View File

@ -1 +0,0 @@
../../cmds/ceph-osd-status

View File

@ -1 +0,0 @@
../../cmds/ceph-osd-tree

View File

@ -1 +0,0 @@
../../cmds/ceph-pg-dump

View File

@ -1 +0,0 @@
../../cmds/ovs-vsctl-show

View File

@ -1 +0,0 @@
../../cmds/cinder-list

View File

@ -1 +0,0 @@
../../cmds/keystone-endpoint-list

View File

@ -1 +0,0 @@
../../cmds/keystone-tenant-list

View File

@ -1 +0,0 @@
../../cmds/neutron-net-list

View File

@ -1 +0,0 @@
../../cmds/neutron-port-list

View File

@ -1 +0,0 @@
../../cmds/neutron-router-list

View File

@ -1 +0,0 @@
../../cmds/neutron-subnet-list

View File

@ -1 +0,0 @@
../../cmds/nova-list

View File

@ -1 +0,0 @@
../../cmds/nova-manage-vm-list

View File

@ -1 +0,0 @@
../../cmds/nova-usage-list

View File

@ -1 +0,0 @@
enabled by set extended=1 in env.sh

View File

@ -1 +0,0 @@
../../cmds/fuel-postgres-dump

View File

@ -1 +0,0 @@
../../cmds/fuel-docker-db-archive

View File

@ -1 +0,0 @@
../../cmds/fuel-docker-ps

View File

@ -1 +0,0 @@
../../cmds/fuel-dockerctl-check

View File

@ -1 +0,0 @@
../../cmds/fuel-docker-db-archive

View File

@ -1 +0,0 @@
../../cmds/fuel-docker-ps

View File

@ -1 +0,0 @@
../../cmds/fuel-dockerctl-check

View File

@ -1 +0,0 @@
../../cmds/fuel-dockerctl-list

View File

@ -1 +0,0 @@
../../cmds/ipset-list

View File

@ -1 +0,0 @@
../../cmds/ipset-save

View File

@ -1 +0,0 @@
../../cmds/ipset-list

View File

@ -1 +0,0 @@
../../cmds/ipset-save

View File

@ -1 +0,0 @@
../../cmds/fuel-notifications

View File

@ -1 +0,0 @@
../../cmds/fuel-notifications

View File

@ -1 +0,0 @@
../../cmds/fuel-notifications

Some files were not shown because too many files have changed in this diff Show More