2025-06-19 08:27:20,406 - INFO - Domain Default found not creating 2025-06-19 08:27:20,573 - INFO - Project ctest-TestBasicPolicy-11437314 not found, creating it 2025-06-19 08:27:21,087 - INFO - Created Project:ctest-TestBasicPolicy-11437314, ID : 3ab96054-1e7f-404a-9fb4-74343de8d3a1 2025-06-19 08:27:22,644 - INFO - ================================================================================ 2025-06-19 08:27:22,644 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-19 08:27:22,644 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-06-19 08:27:22,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-06-19 08:27:22,905 - INFO - Initial checks done. Running the testcase now 2025-06-19 08:27:22,906 - INFO - 2025-06-19 08:27:23,594 - DEBUG - Response for create_network : {'network': {'id': '451370a4-8e76-48cf-bf80-51d6234c9e13', 'name': 'ctest-vn-92201058', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'project_id': '3ab960541e7f404a9fb474343de8d3a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-vn-92201058'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 08:27:23,777 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8141f53-56f6-4742-9739-4ece758e47d6', 'name': '', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'network_id': '451370a4-8e76-48cf-bf80-51d6234c9e13', 'ip_version': 4, 'cidr': '119.89.253.192/26', 'allocation_pools': [{'start': '119.89.253.194', 'end': '119.89.253.254'}], 'gateway_ip': '119.89.253.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.89.253.194', 'tags': [], 'project_id': '3ab960541e7f404a9fb474343de8d3a1'}} 2025-06-19 08:27:23,796 - INFO - Created VN ctest-vn-92201058 2025-06-19 08:27:23,850 - DEBUG - VN ctest-vn-92201058 UUID is 451370a4-8e76-48cf-bf80-51d6234c9e13 2025-06-19 08:27:24,159 - DEBUG - Response for create_network : {'network': {'id': '739614bd-68a8-483e-bffa-046ff676e80e', 'name': 'ctest-vn-82758749', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'project_id': '3ab960541e7f404a9fb474343de8d3a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-vn-82758749'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 08:27:24,378 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a69456cc-266d-461c-a5c6-f2fe6ac2f8c2', 'name': '', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'network_id': '739614bd-68a8-483e-bffa-046ff676e80e', 'ip_version': 4, 'cidr': '92.225.224.64/26', 'allocation_pools': [{'start': '92.225.224.66', 'end': '92.225.224.126'}], 'gateway_ip': '92.225.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.225.224.66', 'tags': [], 'project_id': '3ab960541e7f404a9fb474343de8d3a1'}} 2025-06-19 08:27:24,397 - INFO - Created VN ctest-vn-82758749 2025-06-19 08:27:24,449 - DEBUG - VN ctest-vn-82758749 UUID is 739614bd-68a8-483e-bffa-046ff676e80e 2025-06-19 08:27:24,578 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-06-19 08:27:24,907 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '451370a4-8e76-48cf-bf80-51d6234c9e13', 'name': 'ctest-vn-92201058', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'project_id': '3ab960541e7f404a9fb474343de8d3a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8141f53-56f6-4742-9739-4ece758e47d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-vn-92201058'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-policy-allow-all-78023560']], 'subnet_ipam': [{'subnet_cidr': '119.89.253.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-19 08:27:25,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '739614bd-68a8-483e-bffa-046ff676e80e', 'name': 'ctest-vn-82758749', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'project_id': '3ab960541e7f404a9fb474343de8d3a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a69456cc-266d-461c-a5c6-f2fe6ac2f8c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-vn-82758749'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-policy-allow-all-78023560']], 'subnet_ipam': [{'subnet_cidr': '92.225.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-19 08:27:25,366 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-06-19 08:27:25,687 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-06-19 08:27:25,722 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0 2025-06-19 08:27:25,738 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1 2025-06-19 08:27:25,819 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13 2025-06-19 08:27:25,833 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13 2025-06-19 08:27:25,844 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027 2025-06-19 08:27:25,852 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027 2025-06-19 08:27:25,861 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5d07b3eb-58e6-42c7-853f-2f4c0256eda4 2025-06-19 08:27:25,871 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-19 08:27:25,871 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13 2025-06-19 08:27:25,884 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027 2025-06-19 08:27:25,907 - INFO - Verified VN network id 9 for VN 451370a4-8e76-48cf-bf80-51d6234c9e13 2025-06-19 08:27:25,908 - INFO - Verifications in API Server for VN ctest-vn-92201058 passed 2025-06-19 08:27:25,908 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13 2025-06-19 08:27:25,921 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027 2025-06-19 08:27:25,930 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027 2025-06-19 08:27:25,938 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5d07b3eb-58e6-42c7-853f-2f4c0256eda4 2025-06-19 08:27:25,950 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11437314', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4977445865241594063', 'uuid-lslong': '13799119238420274707'}, 'enable': 'true', 'created': '2025-06-19T08:27:23', 'last-modified': '2025-06-19T08:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.079838'} 2025-06-19 08:27:25,957 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-19 08:27:25,957 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92201058 passed 2025-06-19 08:27:25,957 - DEBUG - ====Verifying policy data for ctest-vn-92201058 in API_Server ====== 2025-06-19 08:27:25,958 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-06-19 08:27:25,964 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0 2025-06-19 08:27:25,976 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1 2025-06-19 08:27:26,056 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13 2025-06-19 08:27:26,067 - DEBUG - ==>Verifying data for policy with id: de57af9f-c763-4bf4-ab15-00a57cd99ae1, fqn: ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-policy-allow-all-78023560'] 2025-06-19 08:27:26,067 - INFO - VN ctest-vn-92201058 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-19 08:27:26,067 - DEBUG - Verifying the vn in opserver 2025-06-19 08:27:26,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058 virtual network link through opserver 10.0.0.249 2025-06-19 08:27:26,067 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-06-19 08:27:26,372 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-06-19 08:27:26,443 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058?flat'} 2025-06-19 08:27:26,443 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058 is found in opserver 2025-06-19 08:27:26,455 - DEBUG - Do not have enough data to verify VN in agent 2025-06-19 08:27:26,464 - DEBUG - VRF ids for VN ctest-vn-92201058: {} 2025-06-19 08:27:26,464 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-06-19 08:27:26,470 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0 2025-06-19 08:27:26,484 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1 2025-06-19 08:27:26,622 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e 2025-06-19 08:27:26,638 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e 2025-06-19 08:27:26,649 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054 2025-06-19 08:27:26,658 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054 2025-06-19 08:27:26,665 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1e38d2e8-856d-46bd-9b85-2abd6bf6582f 2025-06-19 08:27:26,672 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-19 08:27:26,673 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e 2025-06-19 08:27:26,683 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054 2025-06-19 08:27:26,699 - INFO - Verified VN network id 10 for VN 739614bd-68a8-483e-bffa-046ff676e80e 2025-06-19 08:27:26,700 - INFO - Verifications in API Server for VN ctest-vn-82758749 passed 2025-06-19 08:27:26,700 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e 2025-06-19 08:27:26,710 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054 2025-06-19 08:27:26,719 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054 2025-06-19 08:27:26,729 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1e38d2e8-856d-46bd-9b85-2abd6bf6582f 2025-06-19 08:27:26,744 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11437314', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8328867364605544510', 'uuid-lslong': '13833374084344768526'}, 'enable': 'true', 'created': '2025-06-19T08:27:24', 'last-modified': '2025-06-19T08:27:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.610578'} 2025-06-19 08:27:26,752 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-19 08:27:26,752 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82758749 passed 2025-06-19 08:27:26,752 - DEBUG - ====Verifying policy data for ctest-vn-82758749 in API_Server ====== 2025-06-19 08:27:26,753 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-06-19 08:27:26,759 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0 2025-06-19 08:27:26,774 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1 2025-06-19 08:27:26,860 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e 2025-06-19 08:27:26,876 - DEBUG - ==>Verifying data for policy with id: de57af9f-c763-4bf4-ab15-00a57cd99ae1, fqn: ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-policy-allow-all-78023560'] 2025-06-19 08:27:26,876 - INFO - VN ctest-vn-82758749 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-19 08:27:26,876 - DEBUG - Verifying the vn in opserver 2025-06-19 08:27:26,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749 virtual network link through opserver 10.0.0.249 2025-06-19 08:27:26,876 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-06-19 08:27:26,888 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749?flat'} 2025-06-19 08:27:26,888 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749 is found in opserver 2025-06-19 08:27:26,901 - DEBUG - Do not have enough data to verify VN in agent 2025-06-19 08:27:26,907 - DEBUG - VRF ids for VN ctest-vn-82758749: {} 2025-06-19 08:27:26,980 - DEBUG - Services list from nova: [, , ] 2025-06-19 08:27:28,166 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3486-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3486-1) 2025-06-19 08:27:29,309 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3486-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3486-1) 2025-06-19 08:27:29,309 - INFO - Waiting for VM ctest-TestBasicPolicy-11437314-97517169 to be up.. 2025-06-19 08:27:29,394 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-19 08:27:34,497 - DEBUG - VM is in ACTIVE state now 2025-06-19 08:27:34,497 - INFO - VM name : ctest-TestBasicPolicy-11437314-97517169 2025-06-19 08:27:34,590 - DEBUG - VM ctest-TestBasicPolicy-11437314-97517169 ID is c23024ab-7ed1-413e-a016-a88c9483dd3d 2025-06-19 08:27:34,614 - DEBUG - VM ctest-TestBasicPolicy-11437314-97517169 launched on Node cn-jenkins-deploy-platform-ansible-os-3486-1 2025-06-19 08:27:34,704 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/c23024ab-7ed1-413e-a016-a88c9483dd3d 2025-06-19 08:27:34,713 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/c1dce6e6-bbcc-411b-89b4-af9da0fb818c 2025-06-19 08:27:37,984 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1022ms') 2025-06-19 08:27:37,984 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11437314-97517169 failed! 2025-06-19 08:27:38,042 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058 is 119.89.253.193 and allocation pool is NOT set 2025-06-19 08:27:40,109 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=9.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.38 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.384/5.599/9.815/4.215 ms') 2025-06-19 08:27:40,109 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11437314-97517169 passed 2025-06-19 08:27:40,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 08:27:40,270 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11437314-97517169, IP 119.89.253.195, Port 22 2025-06-19 08:27:40,433 - DEBUG - VM ctest-TestBasicPolicy-11437314-97517169 is ready for SSH connections 2025-06-19 08:27:40,433 - INFO - Waiting for VM ctest-TestBasicPolicy-11437314-67526394 to be up.. 2025-06-19 08:27:40,520 - DEBUG - VM is in ACTIVE state now 2025-06-19 08:27:40,520 - INFO - VM name : ctest-TestBasicPolicy-11437314-67526394 2025-06-19 08:27:40,614 - DEBUG - VM ctest-TestBasicPolicy-11437314-67526394 ID is 60e53ceb-884f-49f5-8648-1045d1715aab 2025-06-19 08:27:40,614 - DEBUG - VM ctest-TestBasicPolicy-11437314-67526394 launched on Node cn-jenkins-deploy-platform-ansible-os-3486-1 2025-06-19 08:27:40,697 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/60e53ceb-884f-49f5-8648-1045d1715aab 2025-06-19 08:27:40,706 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/1d0d0be4-9993-453b-927d-51cf65ff955a 2025-06-19 08:27:41,954 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.12 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.124/2.631/4.138/1.507 ms') 2025-06-19 08:27:41,954 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-11437314-67526394 passed 2025-06-19 08:27:42,110 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 08:27:42,110 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11437314-67526394, IP 92.225.224.67, Port 22 2025-06-19 08:27:42,184 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-06-19 08:27:42,286 - DEBUG - VM ctest-TestBasicPolicy-11437314-67526394 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-19 08:27:47,287 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 08:27:47,287 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11437314-67526394, IP 92.225.224.67, Port 22 2025-06-19 08:27:47,446 - DEBUG - VM ctest-TestBasicPolicy-11437314-67526394 is ready for SSH connections 2025-06-19 08:27:47,446 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 08:27:47,446 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.225.224.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-06-19 08:27:47,446 - DEBUG - ping -s 56 -c 3 -W 1 92.225.224.67 2025-06-19 08:27:51,170 - DEBUG - PING 92.225.224.67 (92.225.224.67): 56 data bytes 64 bytes from 92.225.224.67: seq=0 ttl=63 time=4.168 ms 64 bytes from 92.225.224.67: seq=1 ttl=63 time=1.032 ms 64 bytes from 92.225.224.67: seq=2 ttl=63 time=1.069 ms --- 92.225.224.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.032/2.089/4.168 ms 2025-06-19 08:27:51,170 - INFO - Ping to IP 92.225.224.67 from VM ctest-TestBasicPolicy-11437314-97517169 passed 2025-06-19 08:27:51,365 - DEBUG - Policy Update Response {"network-policy": {"uuid": "de57af9f-c763-4bf4-ab15-00a57cd99ae1", "href": "http://10.0.0.249:8082/network-policy/de57af9f-c763-4bf4-ab15-00a57cd99ae1"}} 2025-06-19 08:27:51,365 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 08:27:51,366 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.225.224.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-06-19 08:27:51,366 - DEBUG - ping -s 56 -c 3 -W 1 92.225.224.67 2025-06-19 08:27:54,586 - DEBUG - PING 92.225.224.67 (92.225.224.67): 56 data bytes 64 bytes from 92.225.224.67: seq=0 ttl=63 time=1.571 ms --- 92.225.224.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.571/1.571/1.571 ms 2025-06-19 08:27:54,587 - WARNING - Ping to IP 92.225.224.67 from VM ctest-TestBasicPolicy-11437314-97517169 failed 2025-06-19 08:27:54,587 - INFO - Deleting VM ctest-TestBasicPolicy-11437314-67526394 2025-06-19 08:27:54,665 - INFO - Deleting VM ctest-TestBasicPolicy-11437314-97517169 2025-06-19 08:27:55,095 - INFO - Deleted policy ctest-policy-allow-all-78023560 2025-06-19 08:27:55,095 - INFO - Deleting VN ctest-vn-82758749 2025-06-19 08:27:55,134 - DEBUG - VN 739614bd-68a8-483e-bffa-046ff676e80e still in use: Unable to complete operation on network 739614bd-68a8-483e-bffa-046ff676e80e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-55600ebb-9fbd-4b3e-a695-0b853722c3e5'] 2025-06-19 08:27:55,135 - WARNING - Deleting VN ctest-vn-82758749 failed..Will retry 2025-06-19 08:27:57,270 - DEBUG - Response for deleting network () 2025-06-19 08:27:57,270 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054 2025-06-19 08:27:57,276 - DEBUG - Response Code: 404 2025-06-19 08:27:57,276 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-06-19 08:27:57,282 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0 2025-06-19 08:27:57,341 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1 2025-06-19 08:27:57,421 - INFO - Validated that VN ctest-vn-82758749 is not found in API Server 2025-06-19 08:27:57,433 - DEBUG - VN ctest-vn-82758749 is not present in Agent 10.0.0.249 2025-06-19 08:27:57,433 - INFO - Validated that VN ctest-vn-82758749 is not in any agent 2025-06-19 08:27:57,452 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82758749 info 2025-06-19 08:27:57,452 - INFO - Deleting VN ctest-vn-92201058 2025-06-19 08:27:57,579 - DEBUG - Response for deleting network () 2025-06-19 08:27:57,579 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027 2025-06-19 08:27:57,586 - DEBUG - Response Code: 404 2025-06-19 08:27:57,586 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-06-19 08:27:57,597 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0 2025-06-19 08:27:57,651 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1 2025-06-19 08:27:57,723 - INFO - Validated that VN ctest-vn-92201058 is not found in API Server 2025-06-19 08:27:57,736 - DEBUG - VN ctest-vn-92201058 is not present in Agent 10.0.0.249 2025-06-19 08:27:57,736 - INFO - Validated that VN ctest-vn-92201058 is not in any agent 2025-06-19 08:27:57,756 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92201058 info 2025-06-19 08:27:58,025 - DEBUG - No XMPP flaps were noticed during the test
2025-06-19 08:27:58,025 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-19 08:27:58,026 - INFO - -------------------------------------------------------------------------------- 2025-06-19 08:27:58,747 - INFO - Deleted project: ctest-TestBasicPolicy-11437314, ID : 3ab96054-1e7f-404a-9fb4-74343de8d3a1