2025-09-03 12:02:45,274 - INFO - Domain Default found not creating 2025-09-03 12:02:45,406 - INFO - Project ctest-TestBasicPolicy-34898839 not found, creating it 2025-09-03 12:02:45,840 - INFO - Created Project:ctest-TestBasicPolicy-34898839, ID : 47ef189d-60b1-4ee5-bbf4-544b28e2819c 2025-09-03 12:02:47,208 - INFO - ================================================================================ 2025-09-03 12:02:47,208 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-03 12:02:47,208 - 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-09-03 12:02:47,470 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-03 12:02:47,470 - INFO - Initial checks done. Running the testcase now 2025-09-03 12:02:47,470 - INFO - 2025-09-03 12:02:48,005 - DEBUG - Response for create_network : {'network': {'id': 'd0cc14fd-2f9b-48cc-ae98-7e0984b9fa85', 'name': 'ctest-vn-91521761', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'project_id': '47ef189d60b14ee5bbf4544b28e2819c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-vn-91521761'], 'port_security_enabled': True, 'description': ''}} 2025-09-03 12:02:48,213 - DEBUG - Response for create_subnet : {'subnet': {'id': '73a77bfb-8ff9-47ea-b0ca-79eb3878e3ad', 'name': '', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'network_id': 'd0cc14fd-2f9b-48cc-ae98-7e0984b9fa85', 'ip_version': 4, 'cidr': '81.13.52.64/26', 'allocation_pools': [{'start': '81.13.52.66', 'end': '81.13.52.126'}], 'gateway_ip': '81.13.52.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.13.52.66', 'tags': [], 'project_id': '47ef189d60b14ee5bbf4544b28e2819c'}} 2025-09-03 12:02:48,230 - INFO - Created VN ctest-vn-91521761 2025-09-03 12:02:48,282 - DEBUG - VN ctest-vn-91521761 UUID is d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85 2025-09-03 12:02:48,596 - DEBUG - Response for create_network : {'network': {'id': '874f654f-d45b-4ee3-9800-9ef6e9e7e648', 'name': 'ctest-vn-80662213', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'project_id': '47ef189d60b14ee5bbf4544b28e2819c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-vn-80662213'], 'port_security_enabled': True, 'description': ''}} 2025-09-03 12:02:48,811 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f5c78c1-4670-4936-b2f5-b89cdb6d86a0', 'name': '', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'network_id': '874f654f-d45b-4ee3-9800-9ef6e9e7e648', 'ip_version': 4, 'cidr': '110.28.75.128/26', 'allocation_pools': [{'start': '110.28.75.130', 'end': '110.28.75.190'}], 'gateway_ip': '110.28.75.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.28.75.130', 'tags': [], 'project_id': '47ef189d60b14ee5bbf4544b28e2819c'}} 2025-09-03 12:02:48,830 - INFO - Created VN ctest-vn-80662213 2025-09-03 12:02:48,882 - DEBUG - VN ctest-vn-80662213 UUID is 874f654f-d45b-4ee3-9800-9ef6e9e7e648 2025-09-03 12:02:49,013 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761, 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-34898839:ctest-vn-80662213, 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-09-03 12:02:49,311 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0cc14fd-2f9b-48cc-ae98-7e0984b9fa85', 'name': 'ctest-vn-91521761', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'project_id': '47ef189d60b14ee5bbf4544b28e2819c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73a77bfb-8ff9-47ea-b0ca-79eb3878e3ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-vn-91521761'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-policy-allow-all-37187285']], 'subnet_ipam': [{'subnet_cidr': '81.13.52.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-03 12:02:49,556 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '874f654f-d45b-4ee3-9800-9ef6e9e7e648', 'name': 'ctest-vn-80662213', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'project_id': '47ef189d60b14ee5bbf4544b28e2819c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f5c78c1-4670-4936-b2f5-b89cdb6d86a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-vn-80662213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-policy-allow-all-37187285']], 'subnet_ipam': [{'subnet_cidr': '110.28.75.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-03 12:02:49,714 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:50,025 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:50,054 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:02:50,067 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c 2025-09-03 12:02:50,137 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85 2025-09-03 12:02:50,146 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85 2025-09-03 12:02:50,155 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26 2025-09-03 12:02:50,161 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26 2025-09-03 12:02:50,167 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0d83c7b2-21cb-4071-98ae-bf8c7b1cec59 2025-09-03 12:02:50,172 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-03 12:02:50,172 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85 2025-09-03 12:02:50,180 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26 2025-09-03 12:02:50,193 - INFO - Verified VN network id 12 for VN d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85 2025-09-03 12:02:50,194 - INFO - Verifications in API Server for VN ctest-vn-91521761 passed 2025-09-03 12:02:50,194 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85 2025-09-03 12:02:50,202 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26 2025-09-03 12:02:50,208 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26 2025-09-03 12:02:50,214 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0d83c7b2-21cb-4071-98ae-bf8c7b1cec59 2025-09-03 12:02:50,225 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34898839', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15045423532795971788', 'uuid-lslong': '12580944138406066821'}, 'enable': 'true', 'created': '2025-09-03T12:02:47', 'last-modified': '2025-09-03T12:02:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934753'} 2025-09-03 12:02:50,230 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-03 12:02:50,230 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91521761 passed 2025-09-03 12:02:50,230 - DEBUG - ====Verifying policy data for ctest-vn-91521761 in API_Server ====== 2025-09-03 12:02:50,230 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:50,236 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:02:50,245 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c 2025-09-03 12:02:50,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85 2025-09-03 12:02:50,335 - DEBUG - ==>Verifying data for policy with id: 7802a328-ba24-4279-bcd9-78d9a2c0e811, fqn: ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-policy-allow-all-37187285'] 2025-09-03 12:02:50,335 - INFO - VN ctest-vn-91521761 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-03 12:02:50,335 - DEBUG - Verifying the vn in opserver 2025-09-03 12:02:50,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761 virtual network link through opserver 10.0.0.254 2025-09-03 12:02:50,335 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-03 12:02:50,626 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-03 12:02:50,678 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761?flat'} 2025-09-03 12:02:50,678 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761 is found in opserver 2025-09-03 12:02:50,687 - DEBUG - Do not have enough data to verify VN in agent 2025-09-03 12:02:50,691 - DEBUG - VRF ids for VN ctest-vn-91521761: {} 2025-09-03 12:02:50,691 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:50,696 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:02:50,707 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c 2025-09-03 12:02:50,783 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648 2025-09-03 12:02:50,793 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648 2025-09-03 12:02:50,810 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c 2025-09-03 12:02:50,820 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c 2025-09-03 12:02:50,827 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5ae54877-4664-4790-9c67-a4d31d8ee5f3 2025-09-03 12:02:50,834 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-03 12:02:50,834 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648 2025-09-03 12:02:50,842 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c 2025-09-03 12:02:50,854 - INFO - Verified VN network id 13 for VN 874f654f-d45b-4ee3-9800-9ef6e9e7e648 2025-09-03 12:02:50,854 - INFO - Verifications in API Server for VN ctest-vn-80662213 passed 2025-09-03 12:02:50,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648 2025-09-03 12:02:50,863 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c 2025-09-03 12:02:50,869 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c 2025-09-03 12:02:50,875 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5ae54877-4664-4790-9c67-a4d31d8ee5f3 2025-09-03 12:02:50,886 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34898839', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9750123111819988707', 'uuid-lslong': '10952929077088478792'}, 'enable': 'true', 'created': '2025-09-03T12:02:48', 'last-modified': '2025-09-03T12:02:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367941'} 2025-09-03 12:02:50,892 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-03 12:02:50,892 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80662213 passed 2025-09-03 12:02:50,892 - DEBUG - ====Verifying policy data for ctest-vn-80662213 in API_Server ====== 2025-09-03 12:02:50,892 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:50,898 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:02:50,908 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c 2025-09-03 12:02:50,984 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648 2025-09-03 12:02:50,994 - DEBUG - ==>Verifying data for policy with id: 7802a328-ba24-4279-bcd9-78d9a2c0e811, fqn: ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-policy-allow-all-37187285'] 2025-09-03 12:02:50,994 - INFO - VN ctest-vn-80662213 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-03 12:02:50,994 - DEBUG - Verifying the vn in opserver 2025-09-03 12:02:50,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213 virtual network link through opserver 10.0.0.254 2025-09-03 12:02:50,995 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-03 12:02:51,005 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213?flat'} 2025-09-03 12:02:51,005 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213 is found in opserver 2025-09-03 12:02:51,014 - DEBUG - Do not have enough data to verify VN in agent 2025-09-03 12:02:51,019 - DEBUG - VRF ids for VN ctest-vn-80662213: {} 2025-09-03 12:02:51,072 - DEBUG - Services list from nova: [, , ] 2025-09-03 12:02:52,053 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4005-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4005-1) 2025-09-03 12:02:53,142 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4005-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4005-1) 2025-09-03 12:02:53,142 - INFO - Waiting for VM ctest-TestBasicPolicy-34898839-00277535 to be up.. 2025-09-03 12:02:53,231 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-03 12:02:58,301 - DEBUG - VM is in ACTIVE state now 2025-09-03 12:02:58,301 - INFO - VM name : ctest-TestBasicPolicy-34898839-00277535 2025-09-03 12:02:58,374 - DEBUG - VM ctest-TestBasicPolicy-34898839-00277535 ID is 4f48c373-b954-4f82-8be3-1f2b901e7836 2025-09-03 12:02:58,391 - DEBUG - VM ctest-TestBasicPolicy-34898839-00277535 launched on Node cn-jenkins-deploy-platform-ansible-os-4005-1 2025-09-03 12:02:58,472 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/4f48c373-b954-4f82-8be3-1f2b901e7836 2025-09-03 12:02:58,482 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/8eb25aae-a317-4fd3-9520-d06b56366957 2025-09-03 12:03:01,738 - 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 1015ms') 2025-09-03 12:03:01,738 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34898839-00277535 failed! 2025-09-03 12:03:01,794 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761 is 81.13.52.65 and allocation pool is NOT set 2025-09-03 12:03:03,849 - 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=2.62 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.658 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 = 0.658/1.640/2.623/0.982 ms') 2025-09-03 12:03:03,849 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34898839-00277535 passed 2025-09-03 12:03:03,998 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-03 12:03:03,998 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34898839-00277535, IP 81.13.52.67, Port 22 2025-09-03 12:03:04,165 - DEBUG - VM ctest-TestBasicPolicy-34898839-00277535 is ready for SSH connections 2025-09-03 12:03:04,165 - INFO - Waiting for VM ctest-TestBasicPolicy-34898839-79207494 to be up.. 2025-09-03 12:03:04,232 - DEBUG - VM is in ACTIVE state now 2025-09-03 12:03:04,232 - INFO - VM name : ctest-TestBasicPolicy-34898839-79207494 2025-09-03 12:03:04,296 - DEBUG - VM ctest-TestBasicPolicy-34898839-79207494 ID is 43982466-f8a2-423f-9a50-5d10a78b1c4f 2025-09-03 12:03:04,297 - DEBUG - VM ctest-TestBasicPolicy-34898839-79207494 launched on Node cn-jenkins-deploy-platform-ansible-os-4005-1 2025-09-03 12:03:04,360 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/43982466-f8a2-423f-9a50-5d10a78b1c4f 2025-09-03 12:03:04,367 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/a0e9d2ab-a98e-4862-837b-c82630ef248e 2025-09-03 12:03:05,593 - 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=2.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.448 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.448/1.543/2.639/1.095 ms') 2025-09-03 12:03:05,593 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-34898839-79207494 passed 2025-09-03 12:03:05,762 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-03 12:03:05,762 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34898839-79207494, IP 110.28.75.131, Port 22 2025-09-03 12:03:05,921 - DEBUG - VM ctest-TestBasicPolicy-34898839-79207494 is ready for SSH connections 2025-09-03 12:03:05,921 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-03 12:03:05,921 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 110.28.75.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-09-03 12:03:05,921 - DEBUG - ping -s 56 -c 3 -W 1 110.28.75.131 2025-09-03 12:03:09,593 - DEBUG - PING 110.28.75.131 (110.28.75.131): 56 data bytes 64 bytes from 110.28.75.131: seq=0 ttl=63 time=3.401 ms 64 bytes from 110.28.75.131: seq=1 ttl=63 time=0.884 ms 64 bytes from 110.28.75.131: seq=2 ttl=63 time=1.022 ms --- 110.28.75.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.884/1.769/3.401 ms 2025-09-03 12:03:09,593 - INFO - Ping to IP 110.28.75.131 from VM ctest-TestBasicPolicy-34898839-00277535 passed 2025-09-03 12:03:09,773 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7802a328-ba24-4279-bcd9-78d9a2c0e811", "href": "http://10.0.0.254:8082/network-policy/7802a328-ba24-4279-bcd9-78d9a2c0e811"}} 2025-09-03 12:03:09,774 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-03 12:03:09,774 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 110.28.75.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-09-03 12:03:09,774 - DEBUG - ping -s 56 -c 3 -W 1 110.28.75.131 2025-09-03 12:03:13,015 - DEBUG - PING 110.28.75.131 (110.28.75.131): 56 data bytes --- 110.28.75.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-03 12:03:13,015 - WARNING - Ping to IP 110.28.75.131 from VM ctest-TestBasicPolicy-34898839-00277535 failed 2025-09-03 12:03:13,016 - INFO - Deleting VM ctest-TestBasicPolicy-34898839-79207494 2025-09-03 12:03:13,075 - INFO - Deleting VM ctest-TestBasicPolicy-34898839-00277535 2025-09-03 12:03:13,417 - INFO - Deleted policy ctest-policy-allow-all-37187285 2025-09-03 12:03:13,417 - INFO - Deleting VN ctest-vn-80662213 2025-09-03 12:03:13,450 - DEBUG - VN 874f654f-d45b-4ee3-9800-9ef6e9e7e648 still in use: Unable to complete operation on network 874f654f-d45b-4ee3-9800-9ef6e9e7e648. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fc926cfe-64cb-447d-a688-3c5dd605ba18'] 2025-09-03 12:03:13,450 - WARNING - Deleting VN ctest-vn-80662213 failed..Will retry 2025-09-03 12:03:15,548 - DEBUG - Response for deleting network () 2025-09-03 12:03:15,548 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c 2025-09-03 12:03:15,556 - DEBUG - Response Code: 404 2025-09-03 12:03:15,557 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:03:15,562 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:03:15,615 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c 2025-09-03 12:03:15,683 - INFO - Validated that VN ctest-vn-80662213 is not found in API Server 2025-09-03 12:03:15,693 - DEBUG - VN ctest-vn-80662213 is not present in Agent 10.0.0.254 2025-09-03 12:03:15,693 - INFO - Validated that VN ctest-vn-80662213 is not in any agent 2025-09-03 12:03:15,707 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80662213 info 2025-09-03 12:03:15,707 - INFO - Deleting VN ctest-vn-91521761 2025-09-03 12:03:15,803 - DEBUG - Response for deleting network () 2025-09-03 12:03:15,803 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26 2025-09-03 12:03:15,809 - DEBUG - Response Code: 404 2025-09-03 12:03:15,809 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:03:15,817 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:03:15,871 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c 2025-09-03 12:03:15,950 - INFO - Validated that VN ctest-vn-91521761 is not found in API Server 2025-09-03 12:03:15,961 - DEBUG - VN ctest-vn-91521761 is not present in Agent 10.0.0.254 2025-09-03 12:03:15,961 - INFO - Validated that VN ctest-vn-91521761 is not in any agent 2025-09-03 12:03:15,976 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91521761 info 2025-09-03 12:03:16,233 - DEBUG - No XMPP flaps were noticed during the test
2025-09-03 12:03:16,234 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-09-03 12:03:16,234 - INFO - -------------------------------------------------------------------------------- 2025-09-03 12:03:16,893 - INFO - Deleted project: ctest-TestBasicPolicy-34898839, ID : 47ef189d-60b1-4ee5-bbf4-544b28e2819c