2 Documentation Test suite for Cassandra DataStore Queue Stats Verification
7 Library ../../../libraries/Common.py
8 Resource ../../../libraries/KarafKeywords.robot
9 Resource ../../../libraries/TsdrUtils.robot
10 Variables ../../../variables/Variables.py
12 Suite Setup Initialize Cassandra Tables Metricval
13 Suite Teardown Stop Tsdr Suite
17 @{QUEUE_METRICS} TransmittedPackets TransmittedBytes TransmissionErrors
18 ${TSDR_QUEUESTATS} tsdr:list QueueStats
19 ${QUERY_HEAD} ${OPERATIONAL_NODES_API}/node
20 ${query_head1} ${QUERY_HEAD}/openflow:2/node-connector/openflow:2:2/queue/
24 ${transmittedpackets} flow-capable-node-connector-queue-statistics/transmitted-packets
25 ${transmittedbytes} flow-capable-node-connector-queue-statistics/transmitted-bytes
26 ${transmittederrors} flow-capable-node-connector-queue-statistics/transmission-errors
33 Verification of TSDR Cassandra Feature Installation
34 [Documentation] Install and Verify the TSDR Cassandra Features
35 COMMENT Install a Feature odl-tsdr-cassandra-all ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60
36 Verify Feature Is Installed odl-tsdr-cassandra
37 COMMENT Verify Feature Is Installed odl-tsdr-cassandra-persistence
38 Verify Feature Is Installed odl-tsdr-openflow-statistics-collector
40 Configuration of Queue on Switch
42 Wait Until Keyword Succeeds 5x 30 sec Check Metric val \\d{5}
44 Getting all Tables from Openflow Plugin
45 [Documentation] Getting Queue Stats from openflow plugin
46 ${ret}= Get Stats XML ${query_head1}0/ ${transmittederrors}
47 Append To List ${openflow_q0} ${ret}
48 ${ret}= Get Stats XML ${query_head1}0/ ${transmittedpackets}
49 Append To List ${openflow_q0} ${ret}
50 ${ret}= Get Stats XML ${query_head1}0/ ${transmittedbytes}
51 Append To List ${openflow_q0} ${ret}
52 Set Suite Variable @{openflow_q0}
53 ${ret}= Get Stats XML ${query_head1}1/ ${transmittederrors}
54 Append To List ${openflow_q1} ${ret}
55 ${ret}= Get Stats XML ${query_head1}1/ ${transmittedpackets}
56 Append To List ${openflow_q1} ${ret}
57 ${ret}= Get Stats XML ${query_head1}1/ ${transmittedbytes}
58 Append To List ${openflow_q1} ${ret}
59 Set Suite Variable @{openflow_q1}
60 ${ret}= Get Stats XML ${query_head1}2/ ${transmittederrors}
61 Append To List ${openflow_q2} ${ret}
62 ${ret}= Get Stats XML ${query_head1}2/ ${transmittedpackets}
63 Append To List ${openflow_q2} ${ret}
64 ${ret}= Get Stats XML ${query_head1}2/ ${transmittedbytes}
65 Append To List ${openflow_q2} ${ret}
66 Set Suite Variable @{openflow_q2}
68 Verification of FlowStats-Attributes on Cassandra Data Store
69 [Documentation] Verify the InterfaceMetrics has been updated on Cassandra Data Store
71 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client
72 ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmissionErrors | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:0
73 Append To List ${tsdr_q0} ${ret_val1}
74 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client
75 ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedPackets | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:0
76 Append To List ${tsdr_q0} ${ret_val1}
77 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client
78 ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedBytes | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:0
79 Append To List ${tsdr_q0} ${ret_val1}
80 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client
81 ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmissionErrors | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:1
82 Append To List ${tsdr_q1} ${ret_val1}
83 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client
84 ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedPackets | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:1
85 Append To List ${tsdr_q1} ${ret_val1}
86 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client
87 ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedBytes | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:1
88 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client
89 ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmissionErrors | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:2
90 Append To List ${tsdr_q2} ${ret_val1}
91 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client
92 ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedPackets | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:2
93 Append To List ${tsdr_q2} ${ret_val1}
94 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client
95 ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedBytes | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:2
96 Append To List ${tsdr_q2} ${ret_val1}
98 Comparing Queue Metrics
99 [Documentation] Comparing Queue metrics between Cassandra and OF plugin
100 FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_q0} ${tsdr_q0}
101 Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20
103 FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_q1} ${tsdr_q1}
104 Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20
106 FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_q2} ${tsdr_q2}
107 Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20
112 Configuration of Queue on Switch
113 [Documentation] Queue configuration on openvswitch
114 Configure the Queue on Switch s2-eth2