2025-07-22 17:29:07,135 - INFO - Domain Default found not creating
2025-07-22 17:29:07,282 - INFO - Project ctest-TestvifStats-92553717 not found, creating it
2025-07-22 17:29:07,880 - INFO - Created Project:ctest-TestvifStats-92553717, ID : 951da4f9-cd90-4577-88f5-a85c42e83cb7
2025-07-22 17:29:09,423 - INFO - ================================================================================
2025-07-22 17:29:09,423 - INFO - STARTING TEST : test_vif_statistics
2025-07-22 17:29:09,423 - INFO - TEST DESCRIPTION :
Description:
Verify vif statistics
Vm's across compute node
steps:
1. create 1 VN and launch 2 VMs in compute node
2. client and server VMs on same node
3. send icmp traffic assert if ping is not working
4. get_vif_stats to check vif interface
5. clear_vif_stats to clear vif interface stats
6. Repeat step4
Pass criteria:
1. If output of vif stats/clear execute successfully from compute
2025-07-22 17:29:10,695 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.27': {'10.20.0.14': '0', '10.20.0.254': '0'}} with
2025-07-22 17:29:10,695 - INFO - Initial checks done. Running the testcase now
2025-07-22 17:29:10,696 - INFO -
2025-07-22 17:29:11,391 - DEBUG - Response for create_network : {'network': {'id': '96a6338c-4ee0-42d8-896e-06391bf7f7e8', 'name': 'ctest-vn-77834808', 'tenant_id': '951da4f9cd90457788f5a85c42e83cb7', 'project_id': '951da4f9cd90457788f5a85c42e83cb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvifStats-92553717', 'ctest-vn-77834808'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 17:29:11,705 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae24e790-9878-4aa3-bebd-dedcb30edc74', 'name': '', 'tenant_id': '951da4f9cd90457788f5a85c42e83cb7', 'network_id': '96a6338c-4ee0-42d8-896e-06391bf7f7e8', 'ip_version': 4, 'cidr': '106.54.169.192/26', 'allocation_pools': [{'start': '106.54.169.194', 'end': '106.54.169.254'}], 'gateway_ip': '106.54.169.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.54.169.194', 'tags': [], 'project_id': '951da4f9cd90457788f5a85c42e83cb7'}}
2025-07-22 17:29:11,759 - INFO - Created VN ctest-vn-77834808
2025-07-22 17:29:11,787 - DEBUG - VN ctest-vn-77834808 UUID is 96a6338c-4ee0-42d8-896e-06391bf7f7e8
2025-07-22 17:29:11,887 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 17:29:12,190 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 17:29:12,219 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910
2025-07-22 17:29:12,236 - DEBUG - Requesting: http://10.0.0.254:8082/project/951da4f9-cd90-4577-88f5-a85c42e83cb7
2025-07-22 17:29:12,331 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96a6338c-4ee0-42d8-896e-06391bf7f7e8
2025-07-22 17:29:12,346 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96a6338c-4ee0-42d8-896e-06391bf7f7e8
2025-07-22 17:29:12,356 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/76fed7e5-0f54-4651-95c6-01338c8ca278
2025-07-22 17:29:12,364 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/76fed7e5-0f54-4651-95c6-01338c8ca278
2025-07-22 17:29:12,371 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/54e13050-e674-479b-8687-1a6c95dee468
2025-07-22 17:29:12,378 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 17:29:12,379 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96a6338c-4ee0-42d8-896e-06391bf7f7e8
2025-07-22 17:29:12,389 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/76fed7e5-0f54-4651-95c6-01338c8ca278
2025-07-22 17:29:12,407 - INFO - Verified VN network id 12 for VN 96a6338c-4ee0-42d8-896e-06391bf7f7e8
2025-07-22 17:29:12,407 - INFO - Verifications in API Server for VN ctest-vn-77834808 passed
2025-07-22 17:29:12,407 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96a6338c-4ee0-42d8-896e-06391bf7f7e8
2025-07-22 17:29:12,418 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/76fed7e5-0f54-4651-95c6-01338c8ca278
2025-07-22 17:29:12,426 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/76fed7e5-0f54-4651-95c6-01338c8ca278
2025-07-22 17:29:12,437 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/54e13050-e674-479b-8687-1a6c95dee468
2025-07-22 17:29:12,453 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-92553717', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10855420629534917336', 'uuid-lslong': '9902859472986437608'}, 'enable': 'true', 'created': '2025-07-22T17:29:11', 'last-modified': '2025-07-22T17:29:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.805440'}
2025-07-22 17:29:12,460 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 17:29:12,467 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-92553717', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10855420629534917336', 'uuid-lslong': '9902859472986437608'}, 'enable': 'true', 'created': '2025-07-22T17:29:11', 'last-modified': '2025-07-22T17:29:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.799427'}
2025-07-22 17:29:12,474 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 17:29:12,483 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-92553717', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10855420629534917336', 'uuid-lslong': '9902859472986437608'}, 'enable': 'true', 'created': '2025-07-22T17:29:11', 'last-modified': '2025-07-22T17:29:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.837852'}
2025-07-22 17:29:12,490 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 17:29:12,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77834808 passed
2025-07-22 17:29:12,491 - DEBUG - ====Verifying policy data for ctest-vn-77834808 in API_Server ======
2025-07-22 17:29:12,491 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 17:29:12,500 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910
2025-07-22 17:29:12,513 - DEBUG - Requesting: http://10.0.0.254:8082/project/951da4f9-cd90-4577-88f5-a85c42e83cb7
2025-07-22 17:29:12,628 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96a6338c-4ee0-42d8-896e-06391bf7f7e8
2025-07-22 17:29:12,638 - DEBUG - =>VN ctest-vn-77834808 has no policy to be verified
2025-07-22 17:29:12,639 - DEBUG - Verifying the vn in opserver
2025-07-22 17:29:12,639 - DEBUG - Verifying the default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808 virtual network link through opserver 10.0.0.254
2025-07-22 17:29:12,639 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-22 17:29:12,935 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-22 17:29:13,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808?flat'}
2025-07-22 17:29:13,003 - DEBUG - Verifying the default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808 virtual network link through opserver 10.0.0.50
2025-07-22 17:29:13,003 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-22 17:29:13,293 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-22 17:29:13,353 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808?flat'}
2025-07-22 17:29:13,353 - DEBUG - Verifying the default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808 virtual network link through opserver 10.0.0.23
2025-07-22 17:29:13,353 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-07-22 17:29:13,650 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-07-22 17:29:13,707 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808?flat'}
2025-07-22 17:29:13,707 - INFO - Validated that VN default-domain:ctest-TestvifStats-92553717:ctest-vn-77834808 is found in opserver
2025-07-22 17:29:13,731 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 17:29:13,742 - DEBUG - VRF ids for VN ctest-vn-77834808: {}
2025-07-22 17:29:13,768 - DEBUG - Services list from nova: [Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/vrouter/test_vif_stats.py", line 84, in test_vif_statistics
node_name=compute_hosts[0])
File "/contrail-test/common/vrouter/base.py", line 179, in create_vms
*args, **kwargs
File "/contrail-test/common/base.py", line 281, in create_vm
**kwargs)
File "/contrail-test/common/base.py", line 254, in create_only_vm
vm_obj.setUp()
File "/contrail-test/fixtures/vm_test.py", line 188, in setUp
self.create()
File "/contrail-test/fixtures/vm_test.py", line 240, in create
fixed_ips=self.fixed_ips)
File "/contrail-test/fixtures/openstack.py", line 118, in create_vm
return self.nova_h.create_vm(vm_name=vm_name, image_name=image_name, vn_ids=vn_ids, **kwargs)
File "/contrail-test/fixtures/nova_test.py", line 577, in create_vm
image = self.get_image(image_name=image_name)
File "/contrail-test/fixtures/nova_test.py", line 198, in get_image
self._install_image(image_name=image_name)
File "/contrail-test/fixtures/nova_test.py", line 338, in _install_image
return self.copy_and_glance(build_path, image_name, params)
File "/contrail-test/fixtures/nova_test.py", line 407, in copy_and_glance
image_id = self.glance_h.create_image(generic_image_name, image_path_real, **params)
File "/contrail-test/fixtures/glance_test.py", line 50, in create_image
self.upload_image(obj['id'], filename)
File "/contrail-test/fixtures/glance_test.py", line 54, in upload_image
self.obj.images.upload(uuid, open(filename, 'rb'))
FileNotFoundError: [Errno 2] No such file or directory: '/contrail-test/images/ubuntu.vmdk'
2025-07-22 17:30:55,947 - DEBUG - No XMPP flaps were noticed during the test
2025-07-22 17:30:55,947 - INFO -