2025-07-23 17:15:23,319 - INFO - Domain Default found not creating 2025-07-23 17:15:23,540 - INFO - Project ctest-TestvifStats-79913145 not found, creating it 2025-07-23 17:15:24,093 - INFO - Created Project:ctest-TestvifStats-79913145, ID : b06279e4-5ca5-41d5-8b3e-ae11fab6b4f0 2025-07-23 17:15:25,510 - INFO - ================================================================================ 2025-07-23 17:15:25,510 - INFO - STARTING TEST : test_vif_statistics 2025-07-23 17:15:25,510 - 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-23 17:15:26,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.130': {'10.20.0.17': '0', '10.20.0.254': '0'}} with 2025-07-23 17:15:26,870 - INFO - Initial checks done. Running the testcase now 2025-07-23 17:15:26,870 - INFO - 2025-07-23 17:15:27,533 - DEBUG - Response for create_network : {'network': {'id': 'b67d9c75-6ca4-47c7-81b5-f84df610023d', 'name': 'ctest-vn-43223009', 'tenant_id': 'b06279e45ca541d58b3eae11fab6b4f0', 'project_id': 'b06279e45ca541d58b3eae11fab6b4f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvifStats-79913145', 'ctest-vn-43223009'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 17:15:27,822 - DEBUG - Response for create_subnet : {'subnet': {'id': '125a868d-81cf-4c0b-a23f-7d210a6e8139', 'name': '', 'tenant_id': 'b06279e45ca541d58b3eae11fab6b4f0', 'network_id': 'b67d9c75-6ca4-47c7-81b5-f84df610023d', 'ip_version': 4, 'cidr': '44.86.198.64/26', 'allocation_pools': [{'start': '44.86.198.66', 'end': '44.86.198.126'}], 'gateway_ip': '44.86.198.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.86.198.66', 'tags': [], 'project_id': 'b06279e45ca541d58b3eae11fab6b4f0'}} 2025-07-23 17:15:27,845 - INFO - Created VN ctest-vn-43223009 2025-07-23 17:15:27,861 - DEBUG - VN ctest-vn-43223009 UUID is b67d9c75-6ca4-47c7-81b5-f84df610023d 2025-07-23 17:15:27,934 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 17:15:28,229 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 17:15:28,262 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 17:15:28,281 - DEBUG - Requesting: http://10.0.0.23:8082/project/b06279e4-5ca5-41d5-8b3e-ae11fab6b4f0 2025-07-23 17:15:28,376 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b67d9c75-6ca4-47c7-81b5-f84df610023d 2025-07-23 17:15:28,389 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b67d9c75-6ca4-47c7-81b5-f84df610023d 2025-07-23 17:15:28,400 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da4aea63-7fc0-412f-bc1d-df36419e5f86 2025-07-23 17:15:28,408 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da4aea63-7fc0-412f-bc1d-df36419e5f86 2025-07-23 17:15:28,419 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/403d7225-1b08-443f-a877-ae7a1643a37d 2025-07-23 17:15:28,425 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 17:15:28,425 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b67d9c75-6ca4-47c7-81b5-f84df610023d 2025-07-23 17:15:28,435 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da4aea63-7fc0-412f-bc1d-df36419e5f86 2025-07-23 17:15:28,452 - INFO - Verified VN network id 12 for VN b67d9c75-6ca4-47c7-81b5-f84df610023d 2025-07-23 17:15:28,452 - INFO - Verifications in API Server for VN ctest-vn-43223009 passed 2025-07-23 17:15:28,452 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b67d9c75-6ca4-47c7-81b5-f84df610023d 2025-07-23 17:15:28,464 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da4aea63-7fc0-412f-bc1d-df36419e5f86 2025-07-23 17:15:28,473 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da4aea63-7fc0-412f-bc1d-df36419e5f86 2025-07-23 17:15:28,481 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/403d7225-1b08-443f-a877-ae7a1643a37d 2025-07-23 17:15:28,498 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-79913145', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13149838515139528647', 'uuid-lslong': '9346649615401747005'}, 'enable': 'true', 'created': '2025-07-23T17:15:27', 'last-modified': '2025-07-23T17:15:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.736039'} 2025-07-23 17:15:28,506 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 17:15:28,513 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-79913145', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13149838515139528647', 'uuid-lslong': '9346649615401747005'}, 'enable': 'true', 'created': '2025-07-23T17:15:27', 'last-modified': '2025-07-23T17:15:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752065'} 2025-07-23 17:15:28,522 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 17:15:28,529 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-79913145', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13149838515139528647', 'uuid-lslong': '9346649615401747005'}, 'enable': 'true', 'created': '2025-07-23T17:15:27', 'last-modified': '2025-07-23T17:15:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.768226'} 2025-07-23 17:15:28,537 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 17:15:28,537 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43223009 passed 2025-07-23 17:15:28,538 - DEBUG - ====Verifying policy data for ctest-vn-43223009 in API_Server ====== 2025-07-23 17:15:28,538 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 17:15:28,545 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 17:15:28,558 - DEBUG - Requesting: http://10.0.0.23:8082/project/b06279e4-5ca5-41d5-8b3e-ae11fab6b4f0 2025-07-23 17:15:28,655 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b67d9c75-6ca4-47c7-81b5-f84df610023d 2025-07-23 17:15:28,667 - DEBUG - =>VN ctest-vn-43223009 has no policy to be verified 2025-07-23 17:15:28,667 - DEBUG - Verifying the vn in opserver 2025-07-23 17:15:28,667 - DEBUG - Verifying the default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009 virtual network link through opserver 10.0.0.23 2025-07-23 17:15:28,667 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-23 17:15:28,973 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-23 17:15:29,037 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009?flat'} 2025-07-23 17:15:29,038 - DEBUG - Verifying the default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009 virtual network link through opserver 10.0.0.249 2025-07-23 17:15:29,038 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-07-23 17:15:29,352 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-07-23 17:15:29,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009?flat'} 2025-07-23 17:15:29,409 - DEBUG - Verifying the default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009 virtual network link through opserver 10.0.0.73 2025-07-23 17:15:29,409 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-07-23 17:15:29,729 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-07-23 17:15:29,781 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009?flat'} 2025-07-23 17:15:29,781 - INFO - Validated that VN default-domain:ctest-TestvifStats-79913145:ctest-vn-43223009 is found in opserver 2025-07-23 17:15:29,820 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 17:15:29,840 - DEBUG - VRF ids for VN ctest-vn-43223009: {} 2025-07-23 17:15:29,867 - DEBUG - Services list from nova: [, , , ] 2025-07-23 17:15:29,868 - DEBUG - Hosts: {'nova': ['an-jenkins-deploy-platform-ansible-os-3704-2', 'an-jenkins-deploy-platform-ansible-os-3704-1']} 2025-07-23 17:15:29,868 - DEBUG - Hosts: {'nova': ['an-jenkins-deploy-platform-ansible-os-3704-2', 'an-jenkins-deploy-platform-ansible-os-3704-1']} 2025-07-23 17:17:10,225 - DEBUG - Installing image ubuntu 2025-07-23 17:17:10,225 - 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'} 2025-07-23 17:17:10,225 - DEBUG - Image build path file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-23 17:17:10,225 - DEBUG - Download image from local file file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-23 17:17:10,225 - DEBUG - Unzip image 2025-07-23 17:17:10,225 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: gunzip -f /contrail-test/images/ubuntu.vmdk.gz 2025-07-23 17:17:10,246 - DEBUG - Try to create image in user context 2025-07-23 17:17:10,319 - INFO - Deleting VN ctest-vn-43223009 2025-07-23 17:17:10,490 - DEBUG - Response for deleting network () 2025-07-23 17:17:10,490 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da4aea63-7fc0-412f-bc1d-df36419e5f86 2025-07-23 17:17:10,505 - DEBUG - Response Code: 404 2025-07-23 17:17:10,506 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 17:17:10,514 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 17:17:10,571 - DEBUG - Requesting: http://10.0.0.23:8082/project/b06279e4-5ca5-41d5-8b3e-ae11fab6b4f0 2025-07-23 17:17:10,659 - INFO - Validated that VN ctest-vn-43223009 is not found in API Server 2025-07-23 17:17:10,688 - DEBUG - VN ctest-vn-43223009 is not present in Agent 10.0.0.50 2025-07-23 17:17:10,702 - DEBUG - VN ctest-vn-43223009 is not present in Agent 10.0.0.130 2025-07-23 17:17:10,702 - INFO - Validated that VN ctest-vn-43223009 is not in any agent 2025-07-23 17:17:10,745 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43223009 info 2025-07-23 17:17:12,061 - 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 580, in create_vm
    image = self.get_image(image_name=image_name)
  File "/contrail-test/fixtures/nova_test.py", line 199, in get_image
    self._install_image(image_name=image_name)
  File "/contrail-test/fixtures/nova_test.py", line 339, in _install_image
    return self.copy_and_glance(build_path, image_name, params)
  File "/contrail-test/fixtures/nova_test.py", line 410, 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-23 17:17:12,083 - DEBUG - No XMPP flaps were noticed during the test 2025-07-23 17:17:12,083 - INFO - 2025-07-23 17:17:12,083 - INFO - END TEST : test_vif_statistics : FAILED[0:01:47] 2025-07-23 17:17:12,083 - INFO - -------------------------------------------------------------------------------- 2025-07-23 17:17:12,825 - INFO - Deleted project: ctest-TestvifStats-79913145, ID : b06279e4-5ca5-41d5-8b3e-ae11fab6b4f0