sos 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sos.rb +1 -3
- data/lib/sos/openstack.rb +30 -25
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b6549235d0dc42416385294e9dc405198c888a4
|
4
|
+
data.tar.gz: da34fa20261670b4a942e0147206bc900e517170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4922b10481332f3c83cf8b110f0114ec57528676b761a6bdcd6cbb8c80bdf393016134f7c01177d500bff124782cb4def8ffa577a976f0ffd9edb0906e9387
|
7
|
+
data.tar.gz: 875fe4ff6d3c34def12bd3b20551e563354c3cc87eff716a46612bb8824baa4e3f475f9fe7d233cb4614fabadf3ae62fb8e48795ddd8081294c4bf81dd51b300
|
data/lib/sos.rb
CHANGED
@@ -15,7 +15,6 @@ require 'os/openstack'
|
|
15
15
|
|
16
16
|
SYNTAX =
|
17
17
|
%s{Usage:
|
18
|
-
os [-fr] clean [<SERVICE>] ... [<SERVICE>]
|
19
18
|
os [-fr] list
|
20
19
|
os [-fr] logs [<SERVICE>] ... [<SERVICE>]
|
21
20
|
os [-fr] restart [<SERVICE>] ... [<SERVICE>]
|
@@ -25,11 +24,10 @@ SYNTAX =
|
|
25
24
|
os help
|
26
25
|
|
27
26
|
Options:
|
28
|
-
-r, --runlevel <RUNLEVEL> Change run-level
|
27
|
+
-r, --runlevel <RUNLEVEL> Change run-level. Default is level 3.
|
29
28
|
-h, --help This help
|
30
29
|
|
31
30
|
Commands:
|
32
|
-
clean
|
33
31
|
list List available OpenStack services
|
34
32
|
logs Runs "tail -f"
|
35
33
|
restart Runs "service restart"
|
data/lib/sos/openstack.rb
CHANGED
@@ -1,28 +1,33 @@
|
|
1
1
|
module OpenStack
|
2
|
-
|
2
|
+
VarLog = '/var/log/'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
}
|
4
|
+
LOGS = {
|
5
|
+
'neutron-dhcp-agent' => ["#{VarLog}/neutron/dhcp-agent.log"],
|
6
|
+
'neutron-l3-agent' => ["#{VarLog}/neutron/l3-agent.log"],
|
7
|
+
'neutron-lbaas-agent' => ["#{VarLog}/neutron/lbaas-agent"],
|
8
|
+
'neutron-metadata-agent' => ["#{VarLog}/neutron/metadata-agent"],
|
9
|
+
'neutron-openvswitch-agent' => ["#{VarLog}/neutron/openvswitch-agent"],
|
10
|
+
'neutron-ovs-cleanup' => [""],
|
11
|
+
'neutron-server' => ["#{VarLog}/neutron/server.log"],
|
12
|
+
'openstack-ceilometer-api' => ["#{VarLog}/ceilometer/api.log"],
|
13
|
+
'openstack-ceilometer-central' => ["#{VarLog}/ceilometer/central.log"],
|
14
|
+
'openstack-ceilometer-collector' => ["#{VarLog}/ceilometer/collector.log"],
|
15
|
+
'openstack-cinder-api' => ["#{VarLog}/cinder/api.log"],
|
16
|
+
'openstack-cinder-scheduler' => ["#{VarLog}/cinder/api.log"],
|
17
|
+
'openstack-cinder-volume' => ["#{VarLog}/cinder/api.log"],
|
18
|
+
'openstack-glance-api' => ["#{VarLog}/glance/api.log"],
|
19
|
+
'openstack-glance-registry' => ["#{VarLog}/glance/registry.log"],
|
20
|
+
'openstack-heat-api' => ["#{VarLog}/heat/heat-api.log"],
|
21
|
+
'openstack-heat-engine' => ["#{VarLog}/heat/heat-engine.log"],
|
22
|
+
'openstack-heat-manage' => ["#{VarLog}/heat/heat-manage.log"],
|
23
|
+
'openstack-keystone' => ["#{VarLog}/keystone/keystone.log"],
|
24
|
+
'openstack-nova-api' => ["#{VarLog}/nova/api.log"],
|
25
|
+
'openstack-nova-cert' => ["#{VarLog}/nova/cert.log"],
|
26
|
+
'openstack-nova-compute' => ["#{VarLog}/nova/compute.log"],
|
27
|
+
'openstack-nova-conductor' => ["#{VarLog}/nova/conductor.log"],
|
28
|
+
'openstack-nova-console' => ["#{VarLog}/nova/console.log"],
|
29
|
+
'openstack-nova-consoleauth' => ["#{VarLog}/nova/consoleauth.log"],
|
30
|
+
'openstack-nova-novncproxy' => [""],
|
31
|
+
'openstack-nova-scheduler' => ["#{VarLog}/nova/scheduler.log"],
|
32
|
+
}
|
28
33
|
end
|