2025-07-24 05:02:41,978 - INFO - Domain Default found not creating 2025-07-24 05:02:42,162 - INFO - Project ctest-TestvifStats-04732011 not found, creating it 2025-07-24 05:02:42,797 - INFO - Created Project:ctest-TestvifStats-04732011, ID : 941ad8fe-4b7f-4ba2-9aa4-75e6c5497dba 2025-07-24 05:02:44,818 - INFO - ================================================================================ 2025-07-24 05:02:44,818 - INFO - STARTING TEST : test_vif_statistics 2025-07-24 05:02:44,818 - 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-24 05:02:46,149 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0', '10.20.0.129': '0'}, '10.0.0.23': {'10.20.0.129': '0', '10.20.0.17': '0'}} with 2025-07-24 05:02:46,150 - INFO - Initial checks done. Running the testcase now 2025-07-24 05:02:46,150 - INFO - 2025-07-24 05:02:46,866 - DEBUG - Response for create_network : {'network': {'id': '22a03a75-c607-402b-80ec-3de7c2b5b1a1', 'name': 'ctest-vn-62057231', 'tenant_id': '941ad8fe4b7f4ba29aa475e6c5497dba', 'project_id': '941ad8fe4b7f4ba29aa475e6c5497dba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvifStats-04732011', 'ctest-vn-62057231'], 'port_security_enabled': True, 'description': ''}} 2025-07-24 05:02:47,156 - DEBUG - Response for create_subnet : {'subnet': {'id': '94c4a8b2-4c39-44ad-b193-4bf4f40679e9', 'name': '', 'tenant_id': '941ad8fe4b7f4ba29aa475e6c5497dba', 'network_id': '22a03a75-c607-402b-80ec-3de7c2b5b1a1', 'ip_version': 4, 'cidr': '95.157.174.192/26', 'allocation_pools': [{'start': '95.157.174.194', 'end': '95.157.174.254'}], 'gateway_ip': '95.157.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.157.174.194', 'tags': [], 'project_id': '941ad8fe4b7f4ba29aa475e6c5497dba'}} 2025-07-24 05:02:47,190 - INFO - Created VN ctest-vn-62057231 2025-07-24 05:02:47,211 - DEBUG - VN ctest-vn-62057231 UUID is 22a03a75-c607-402b-80ec-3de7c2b5b1a1 2025-07-24 05:02:47,302 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-24 05:02:47,643 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-24 05:02:47,685 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ef05d1d9-2fbc-48d4-8924-0cbd930e68f2 2025-07-24 05:02:47,710 - DEBUG - Requesting: http://10.0.0.19:8082/project/941ad8fe-4b7f-4ba2-9aa4-75e6c5497dba 2025-07-24 05:02:47,819 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/22a03a75-c607-402b-80ec-3de7c2b5b1a1 2025-07-24 05:02:47,836 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/22a03a75-c607-402b-80ec-3de7c2b5b1a1 2025-07-24 05:02:47,853 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f0b8a579-43ed-406b-81a3-a61047912f7e 2025-07-24 05:02:47,865 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f0b8a579-43ed-406b-81a3-a61047912f7e 2025-07-24 05:02:47,876 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f5ae6e64-8e0d-4fb2-b035-1c16f29204f2 2025-07-24 05:02:47,886 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 05:02:47,886 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/22a03a75-c607-402b-80ec-3de7c2b5b1a1 2025-07-24 05:02:47,900 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f0b8a579-43ed-406b-81a3-a61047912f7e 2025-07-24 05:02:47,930 - INFO - Verified VN network id 11 for VN 22a03a75-c607-402b-80ec-3de7c2b5b1a1 2025-07-24 05:02:47,930 - INFO - Verifications in API Server for VN ctest-vn-62057231 passed 2025-07-24 05:02:47,930 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/22a03a75-c607-402b-80ec-3de7c2b5b1a1 2025-07-24 05:02:47,946 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f0b8a579-43ed-406b-81a3-a61047912f7e 2025-07-24 05:02:47,959 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f0b8a579-43ed-406b-81a3-a61047912f7e 2025-07-24 05:02:47,973 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f5ae6e64-8e0d-4fb2-b035-1c16f29204f2 2025-07-24 05:02:47,991 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-04732011', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2495058471071203371', 'uuid-lslong': '9289868196971917729'}, 'enable': 'true', 'created': '2025-07-24T05:02:46', 'last-modified': '2025-07-24T05:02:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919180'} 2025-07-24 05:02:47,998 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 05:02:48,008 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-04732011', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2495058471071203371', 'uuid-lslong': '9289868196971917729'}, 'enable': 'true', 'created': '2025-07-24T05:02:46', 'last-modified': '2025-07-24T05:02:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940132'} 2025-07-24 05:02:48,015 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 05:02:48,026 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestvifStats-04732011', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2495058471071203371', 'uuid-lslong': '9289868196971917729'}, 'enable': 'true', 'created': '2025-07-24T05:02:46', 'last-modified': '2025-07-24T05:02:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952442'} 2025-07-24 05:02:48,037 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 05:02:48,037 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62057231 passed 2025-07-24 05:02:48,038 - DEBUG - ====Verifying policy data for ctest-vn-62057231 in API_Server ====== 2025-07-24 05:02:48,038 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-24 05:02:48,047 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ef05d1d9-2fbc-48d4-8924-0cbd930e68f2 2025-07-24 05:02:48,065 - DEBUG - Requesting: http://10.0.0.19:8082/project/941ad8fe-4b7f-4ba2-9aa4-75e6c5497dba 2025-07-24 05:02:48,174 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/22a03a75-c607-402b-80ec-3de7c2b5b1a1 2025-07-24 05:02:48,186 - DEBUG - =>VN ctest-vn-62057231 has no policy to be verified 2025-07-24 05:02:48,186 - DEBUG - Verifying the vn in opserver 2025-07-24 05:02:48,186 - DEBUG - Verifying the default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231 virtual network link through opserver 10.0.0.19 2025-07-24 05:02:48,186 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-24 05:02:48,500 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-24 05:02:48,569 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231?flat'} 2025-07-24 05:02:48,569 - DEBUG - Verifying the default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231 virtual network link through opserver 10.0.0.38 2025-07-24 05:02:48,569 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-24 05:02:48,901 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-24 05:02:48,990 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231?flat'} 2025-07-24 05:02:48,990 - DEBUG - Verifying the default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231 virtual network link through opserver 10.0.0.41 2025-07-24 05:02:48,990 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-07-24 05:02:49,304 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-07-24 05:02:49,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231?flat'} 2025-07-24 05:02:49,388 - INFO - Validated that VN default-domain:ctest-TestvifStats-04732011:ctest-vn-62057231 is found in opserver 2025-07-24 05:02:49,419 - DEBUG - Do not have enough data to verify VN in agent 2025-07-24 05:02:49,434 - DEBUG - VRF ids for VN ctest-vn-62057231: {} 2025-07-24 05:02:49,460 - DEBUG - Services list from nova: [, , , ] 2025-07-24 05:02:49,460 - DEBUG - Hosts: {'nova': ['an-jenkins-deploy-platform-ansible-os-3712-1', 'an-jenkins-deploy-platform-ansible-os-3712-2']} 2025-07-24 05:02:49,460 - DEBUG - Hosts: {'nova': ['an-jenkins-deploy-platform-ansible-os-3712-1', 'an-jenkins-deploy-platform-ansible-os-3712-2']} 2025-07-24 05:04:29,962 - DEBUG - Installing image ubuntu 2025-07-24 05:04:29,962 - 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-24 05:04:29,963 - DEBUG - Image build path file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-24 05:04:29,963 - DEBUG - Download image from local file file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-24 05:04:29,963 - DEBUG - Unzip image 2025-07-24 05:04:29,963 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: gunzip -f /contrail-test/images/ubuntu.vmdk.gz 2025-07-24 05:04:29,986 - DEBUG - Try to create image in user context 2025-07-24 05:04:30,075 - INFO - Deleting VN ctest-vn-62057231 2025-07-24 05:04:30,258 - DEBUG - Response for deleting network () 2025-07-24 05:04:30,258 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f0b8a579-43ed-406b-81a3-a61047912f7e 2025-07-24 05:04:30,267 - DEBUG - Response Code: 404 2025-07-24 05:04:30,267 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-24 05:04:30,290 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ef05d1d9-2fbc-48d4-8924-0cbd930e68f2 2025-07-24 05:04:30,316 - DEBUG - Requesting: http://10.0.0.19:8082/project/941ad8fe-4b7f-4ba2-9aa4-75e6c5497dba 2025-07-24 05:04:30,429 - INFO - Validated that VN ctest-vn-62057231 is not found in API Server 2025-07-24 05:04:30,446 - DEBUG - VN ctest-vn-62057231 is not present in Agent 10.0.0.57 2025-07-24 05:04:30,461 - DEBUG - VN ctest-vn-62057231 is not present in Agent 10.0.0.23 2025-07-24 05:04:30,461 - INFO - Validated that VN ctest-vn-62057231 is not in any agent 2025-07-24 05:04:30,510 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-62057231 info 2025-07-24 05:04:31,823 - 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-24 05:04:31,841 - DEBUG - No XMPP flaps were noticed during the test 2025-07-24 05:04:31,841 - INFO -
2025-07-24 05:04:31,841 - INFO - END TEST : test_vif_statistics : FAILED[0:01:47]
2025-07-24 05:04:31,842 - INFO - -------------------------------------------------------------------------------- 2025-07-24 05:04:32,705 - INFO - Deleted project: ctest-TestvifStats-04732011, ID : 941ad8fe-4b7f-4ba2-9aa4-75e6c5497dba