2025-07-21 14:09:38,564 - INFO - Domain Default found not creating 2025-07-21 14:09:38,868 - INFO - Project ctest-TestvifStats-46050252 not found, creating it 2025-07-21 14:09:39,518 - INFO - Created Project:ctest-TestvifStats-46050252, ID : 06dc2d56-2200-4f58-aa3a-e8f78bf440c9 2025-07-21 14:09:41,758 - INFO - ================================================================================ 2025-07-21 14:09:41,758 - INFO - STARTING TEST : test_vif_statistics 2025-07-21 14:09:41,758 - 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-21 14:09:42,078 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-21 14:09:42,079 - INFO - Initial checks done. Running the testcase now 2025-07-21 14:09:42,079 - INFO - 2025-07-21 14:09:42,788 - DEBUG - Response for create_network : {'network': {'id': '0a4b8bd6-eded-4ba5-8394-f36e24947039', 'name': 'ctest-vn-96489056', 'tenant_id': '06dc2d5622004f58aa3ae8f78bf440c9', 'project_id': '06dc2d5622004f58aa3ae8f78bf440c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvifStats-46050252', 'ctest-vn-96489056'], 'port_security_enabled': True, 'description': ''}} 2025-07-21 14:09:43,004 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd579d9e-48be-4dfa-bf44-cea45cc77147', 'name': '', 'tenant_id': '06dc2d5622004f58aa3ae8f78bf440c9', 'network_id': '0a4b8bd6-eded-4ba5-8394-f36e24947039', 'ip_version': 4, 'cidr': '110.22.131.192/26', 'allocation_pools': [{'start': '110.22.131.194', 'end': '110.22.131.254'}], 'gateway_ip': '110.22.131.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.22.131.194', 'tags': [], 'project_id': '06dc2d5622004f58aa3ae8f78bf440c9'}} 2025-07-21 14:09:43,028 - INFO - Created VN ctest-vn-96489056 2025-07-21 14:09:43,086 - DEBUG - VN ctest-vn-96489056 UUID is 0a4b8bd6-eded-4ba5-8394-f36e24947039 2025-07-21 14:09:43,223 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 14:09:43,546 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 14:09:43,586 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33 2025-07-21 14:09:43,616 - DEBUG - Requesting: http://10.0.0.254:8082/project/06dc2d56-2200-4f58-aa3a-e8f78bf440c9 2025-07-21 14:09:43,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a4b8bd6-eded-4ba5-8394-f36e24947039 2025-07-21 14:09:43,724 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a4b8bd6-eded-4ba5-8394-f36e24947039 2025-07-21 14:09:43,739 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/509480c5-3528-406b-9a1f-9d2a238f80c8 2025-07-21 14:09:43,752 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/509480c5-3528-406b-9a1f-9d2a238f80c8 2025-07-21 14:09:43,761 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5215925a-14e4-4fbc-8cc0-1ca851ac34f4 2025-07-21 14:09:43,771 - DEBUG - Route Targets: ['target:64512:8000011'] 2025-07-21 14:09:43,771 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a4b8bd6-eded-4ba5-8394-f36e24947039 2025-07-21 14:09:43,784 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/509480c5-3528-406b-9a1f-9d2a238f80c8 2025-07-21 14:09:43,803 - INFO - Verified VN network id 16 for VN 0a4b8bd6-eded-4ba5-8394-f36e24947039 2025-07-21 14:09:43,803 - INFO - Verifications in API Server for VN ctest-vn-96489056 passed 2025-07-21 14:09:43,804 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a4b8bd6-eded-4ba5-8394-f36e24947039 2025-07-21 14:09:43,815 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/509480c5-3528-406b-9a1f-9d2a238f80c8 2025-07-21 14:09:43,826 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/509480c5-3528-406b-9a1f-9d2a238f80c8 2025-07-21 14:09:43,840 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5215925a-14e4-4fbc-8cc0-1ca851ac34f4 2025-07-21 14:09:43,862 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-46050252:ctest-vn-96489056', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-46050252', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '741840318863592357', 'uuid-lslong': '9481470769907396665'}, 'enable': 'true', 'created': '2025-07-21T14:09:42', 'last-modified': '2025-07-21T14:09:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.910789'} 2025-07-21 14:09:43,874 - DEBUG - Route Targets: ['target:64512:8000011'] 2025-07-21 14:09:43,874 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96489056 passed 2025-07-21 14:09:43,874 - DEBUG - ====Verifying policy data for ctest-vn-96489056 in API_Server ====== 2025-07-21 14:09:43,874 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 14:09:43,881 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33 2025-07-21 14:09:43,893 - DEBUG - Requesting: http://10.0.0.254:8082/project/06dc2d56-2200-4f58-aa3a-e8f78bf440c9 2025-07-21 14:09:43,964 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a4b8bd6-eded-4ba5-8394-f36e24947039 2025-07-21 14:09:43,976 - DEBUG - =>VN ctest-vn-96489056 has no policy to be verified 2025-07-21 14:09:43,977 - DEBUG - Verifying the vn in opserver 2025-07-21 14:09:43,977 - DEBUG - Verifying the default-domain:ctest-TestvifStats-46050252:ctest-vn-96489056 virtual network link through opserver 10.0.0.254 2025-07-21 14:09:43,977 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-21 14:09:44,277 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-21 14:09:44,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-46050252:ctest-vn-96489056', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-46050252:ctest-vn-96489056?flat'} 2025-07-21 14:09:44,357 - INFO - Validated that VN default-domain:ctest-TestvifStats-46050252:ctest-vn-96489056 is found in opserver 2025-07-21 14:09:44,375 - DEBUG - Do not have enough data to verify VN in agent 2025-07-21 14:09:44,384 - DEBUG - VRF ids for VN ctest-vn-96489056: {} 2025-07-21 14:09:44,417 - DEBUG - Services list from nova: [, , ] 2025-07-21 14:09:44,417 - DEBUG - Hosts: {'nova': ['cn-jenkins-deploy-platform-ansible-os-3677-1']} 2025-07-21 14:09:44,417 - DEBUG - Hosts: {'nova': ['cn-jenkins-deploy-platform-ansible-os-3677-1']} 2025-07-21 14:11:25,260 - DEBUG - Installing image ubuntu 2025-07-21 14:11:25,260 - DEBUG - Image info {'name': 'ubuntu.vmdk.gz', 'webserver': '', 'location': '/images/converts/', 'username': 'ubuntu', 'password': 'ubuntu', 'type': 'os', 'flavor': 'contrail_flavor_tiny', 'params': '--container-format bare --disk-format vmdk --property vmware_disktype="sparse" --property vmware_adaptertype="ide" --property hw_scsi_model=virtio-scsi --property hw_disk_bus_model=virtio-scsi --property hw_disk_bus=virtio', 'name_docker': 'phusion-baseimage-enablesshd', 'vctmpl': 'ubuntu.vmtx', 'vcname': 'ubuntu-disk1.vmdk'} 2025-07-21 14:11:25,262 - DEBUG - Image build path file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-21 14:11:25,262 - DEBUG - Download image from local file file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-21 14:11:25,263 - DEBUG - Unzip image 2025-07-21 14:11:25,263 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: gunzip -f /contrail-test/images/ubuntu.vmdk.gz 2025-07-21 14:11:25,313 - DEBUG - Try to create image in user context 2025-07-21 14:11:25,513 - INFO - Deleting VN ctest-vn-96489056 2025-07-21 14:11:25,764 - DEBUG - Response for deleting network () 2025-07-21 14:11:25,764 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/509480c5-3528-406b-9a1f-9d2a238f80c8 2025-07-21 14:11:25,776 - DEBUG - Response Code: 404 2025-07-21 14:11:25,776 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 14:11:25,790 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33 2025-07-21 14:11:25,809 - DEBUG - Requesting: http://10.0.0.254:8082/project/06dc2d56-2200-4f58-aa3a-e8f78bf440c9 2025-07-21 14:11:25,928 - INFO - Validated that VN ctest-vn-96489056 is not found in API Server 2025-07-21 14:11:25,964 - DEBUG - VN ctest-vn-96489056 is not present in Agent 10.0.0.254 2025-07-21 14:11:25,965 - INFO - Validated that VN ctest-vn-96489056 is not in any agent 2025-07-21 14:11:26,017 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96489056 info 2025-07-21 14:11:26,326 - ERROR -
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-21 14:11:26,346 - DEBUG - No XMPP flaps were noticed during the test 2025-07-21 14:11:26,347 - INFO - 2025-07-21 14:11:26,347 - INFO - END TEST : test_vif_statistics : FAILED[0:01:45] 2025-07-21 14:11:26,347 - INFO - -------------------------------------------------------------------------------- 2025-07-21 14:11:27,207 - INFO - Deleted project: ctest-TestvifStats-46050252, ID : 06dc2d56-2200-4f58-aa3a-e8f78bf440c9