Jenkins
e7e53ac2e4
Merge "encapulate same codes into functions"
2015-12-22 02:02:39 +00:00
boding
3535c14668
encapulate same codes into functions
...
use functions to avoid repeatly calling "cat" commad and make code cleaner
Change-Id: If8a2643eb99f9acfcd94d9f042216bbaec7718cc
2015-12-22 06:40:43 +08:00
Fei Rao
99e8b32edb
support ovs port traffic statistics
...
ovs port traffic statistics can be get by assigning the port name
parameters.
eg, ./ovs_port_statistics.sh qvoxxxxx
Change-Id: I5e6cb80122560ad54e55c9415ddfbbfa6288d622
2015-12-15 16:53:48 +08:00
Kun Huang
eba48346bc
mv scripts/agent.py to cmd/
...
Change-Id: Ifd91bc6966f485a3fe28971362f8c284f4b1b1f1
2015-11-11 13:46:37 +08:00
Kun Huang
28a26ff91f
redesign endpoints
...
see:
sca = scalpels.client.shell:main
sca-manage = scalpels.cmd.manage:main # admin's behaviour
sca-agent = scalpels.cmd.agent:main # agent daemon on node
sca-tracer = scalpels.cmd.tracer:main # tracer process
Change-Id: Ieb4fcde857290999e43aeb06a0eeac9149ea2bd7
2015-11-11 13:18:43 +08:00
Kun Huang
472f4ae4d2
add utils for client side
...
move common functions there
Change-Id: I51bf2dd4425b5cc385cc0fd5d3734bc71548f740
2015-11-11 12:37:32 +08:00
Kun Huang
c009cff9a4
add rpc count tracer
...
Change-Id: Ied86a60dad36661736a47ac4fa6d42f609582c9d
2015-11-04 23:57:42 +08:00
Kun Huang
a0760df95a
add sqlalchemy execution tracer
...
Change-Id: I3e77ada0d6670240c23ead2a699f0f0ee2facb28
2015-11-04 22:49:14 +08:00
Kun Huang
272792ef58
add model save tracer
...
Change-Id: Idf8e264a4328acdca0fa435f6d9b9b346a2152d4
2015-11-04 00:23:47 +08:00
Kun Huang
3cacb3cb76
add some notes in oslo-lock script
...
Change-Id: I8008837c9fb28f65b5b0e89e3482318e233e9381
2015-11-03 21:54:09 +08:00
Kun Huang
5646d51268
add oslo-lock tracer
...
Change-Id: I7dbfe8c1b683af8705cadfb7e7aae7a2062040e5
2015-11-03 21:11:42 +08:00
Kun Huang
84c9bd95ee
rbt parse
...
Change-Id: Icf7f51b8a486fef910272610d94a112046c3d525
2015-10-29 16:49:25 +08:00
Kun Huang
9c188cc61a
parse device traffic like rpc
...
Change-Id: Ifc2aa017b45f41052fecc80c49fd239b621e6aee
2015-10-29 16:21:39 +08:00
Kun Huang
698c248ca0
parse rpc data before write into db
...
sca start -a rpc
sleep 20
sca stop
sca report
[you will see two results here: pkts and bytes]
Change-Id: Ibab207c43ef1a5509c8f85c0003cee48c4b66625
2015-10-29 16:05:06 +08:00
Kun Huang
1bd32a7524
fix rbt
...
rpc calling maybe contain like:
{u'_unique_id': u'012fad2a867c4582900b4dbf7af13de6',
u'event_type': u'image.send',
u'timestamp': u'2015-10-29 05:29:35.282756',
u'message_id': u'70f443d2-56fe-451b-92cc-5456c5c97185',
u'priority': u'INFO',
u'publisher_id': u'image.localhost',
u'payload': {u'receiver_tenant_id': u'7157341aa9f14e1ead34af636f19f306',
u'destination_ip': u'127.0.0.1',
u'bytes_sent': 3740163,
u'image_id': u'3451f5dc-e0a4-44f0-b5e4-566b9a930b49',
u'receiver_user_id': u'fe96cc0fd2e5421aa0be229a5c09431c',
u'owner_id': u'7157341aa9f14e1ead34af636f19f306'}}
no such oslo.messaging yet
Change-Id: I7d612edd6d7782aeac62d1235fca66093cfd7258
2015-10-29 13:31:21 +08:00
Kun Huang
c2e118b367
add lock for task update
...
Change-Id: I53aa58d7d8ae75f9e229fe2c5d7d75b3b9afbed1
2015-10-29 12:04:04 +08:00
Kun Huang
c0f8f6711e
add sca result --list command
...
Change-Id: I68e9e78bf962c7f86e6726f261653709645d880a
2015-10-28 23:55:39 +08:00
Kun Huang
be3e382636
impl async agent to gather data
...
old:
sca load
sca start -a agent
sca report
new
sca start -a agent
sca load
sca stop <task-uuid>
sca report
Change-Id: Ib8f5223111ad776d1a69257009dc39c9dae627a3
2015-10-28 22:01:04 +08:00
Kun Huang
0c7f5eefa9
run port traffice tracer
...
filter.INPUT is not the start of iptables, it is mangle.PREROUTING
Change-Id: I7e237bdb5472ad0396780a6cd600376b1df98cd4
2015-10-28 00:10:45 +08:00
Kun Huang
118affad2b
fix rabbit tracer
...
Change-Id: I10e490261ecf02873ab66e44b8b6c96a61eda006
2015-10-26 23:35:28 +08:00
Kun Huang
decdeb5ed1
delete the declared queue
2015-10-23 13:46:08 +08:00
Kun Huang
abbbc744ba
run singal agent successfully now
2015-10-23 12:06:07 +08:00
Kun Huang
3ec61813cf
read data from subprocess, but it's bad for shell scripts
2015-10-23 04:56:29 +08:00
Kun Huang
fdaa73b8f6
rename existing scripts
2015-10-20 15:27:08 +08:00