2025-04-24 11:39:11,724 - INFO - Domain Default found not creating 2025-04-24 11:39:11,844 - INFO - Project ctest-TestBasicPolicy-70575691 not found, creating it 2025-04-24 11:39:12,267 - INFO - Created Project:ctest-TestBasicPolicy-70575691, ID : e71449da-4ff2-4409-91c6-e53225b37597 2025-04-24 11:39:13,595 - INFO - ================================================================================ 2025-04-24 11:39:13,595 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-24 11:39:13,595 - 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-04-24 11:39:13,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-04-24 11:39:13,844 - INFO - Initial checks done. Running the testcase now 2025-04-24 11:39:13,844 - INFO - 2025-04-24 11:39:14,640 - DEBUG - Response for create_network : {'network': {'id': 'c9de802a-181d-4c61-9f26-916119d5e1c6', 'name': 'ctest-vn-91097785', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'project_id': 'e71449da4ff2440991c6e53225b37597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-vn-91097785'], 'port_security_enabled': True, 'description': ''}} 2025-04-24 11:39:14,927 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcc10faa-a16c-464d-8e43-5bf691c9de97', 'name': '', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'network_id': 'c9de802a-181d-4c61-9f26-916119d5e1c6', 'ip_version': 4, 'cidr': '171.156.233.128/26', 'allocation_pools': [{'start': '171.156.233.130', 'end': '171.156.233.190'}], 'gateway_ip': '171.156.233.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.156.233.130', 'tags': [], 'project_id': 'e71449da4ff2440991c6e53225b37597'}} 2025-04-24 11:39:14,949 - INFO - Created VN ctest-vn-91097785 2025-04-24 11:39:15,010 - DEBUG - VN ctest-vn-91097785 UUID is c9de802a-181d-4c61-9f26-916119d5e1c6 2025-04-24 11:39:15,310 - DEBUG - Response for create_network : {'network': {'id': 'b4ee2ed3-0dd5-4c9f-8787-47846015d6a6', 'name': 'ctest-vn-86964771', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'project_id': 'e71449da4ff2440991c6e53225b37597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-vn-86964771'], 'port_security_enabled': True, 'description': ''}} 2025-04-24 11:39:15,510 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ac79733-abf1-4b41-a319-f5fc04aa3415', 'name': '', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'network_id': 'b4ee2ed3-0dd5-4c9f-8787-47846015d6a6', 'ip_version': 4, 'cidr': '203.196.252.0/26', 'allocation_pools': [{'start': '203.196.252.2', 'end': '203.196.252.62'}], 'gateway_ip': '203.196.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.196.252.2', 'tags': [], 'project_id': 'e71449da4ff2440991c6e53225b37597'}} 2025-04-24 11:39:15,526 - INFO - Created VN ctest-vn-86964771 2025-04-24 11:39:15,582 - DEBUG - VN ctest-vn-86964771 UUID is b4ee2ed3-0dd5-4c9f-8787-47846015d6a6 2025-04-24 11:39:15,726 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785, 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-70575691:ctest-vn-86964771, 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-04-24 11:39:15,992 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9de802a-181d-4c61-9f26-916119d5e1c6', 'name': 'ctest-vn-91097785', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'project_id': 'e71449da4ff2440991c6e53225b37597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcc10faa-a16c-464d-8e43-5bf691c9de97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-vn-91097785'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-policy-allow-all-10161798']], 'subnet_ipam': [{'subnet_cidr': '171.156.233.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-24 11:39:16,223 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4ee2ed3-0dd5-4c9f-8787-47846015d6a6', 'name': 'ctest-vn-86964771', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'project_id': 'e71449da4ff2440991c6e53225b37597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ac79733-abf1-4b41-a319-f5fc04aa3415'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-vn-86964771'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-policy-allow-all-10161798']], 'subnet_ipam': [{'subnet_cidr': '203.196.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-24 11:39:16,378 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-24 11:39:16,675 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-24 11:39:16,699 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9 2025-04-24 11:39:16,711 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597 2025-04-24 11:39:16,780 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6 2025-04-24 11:39:16,792 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6 2025-04-24 11:39:16,801 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820 2025-04-24 11:39:16,807 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820 2025-04-24 11:39:16,814 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/30c12955-424d-4e7e-b7c5-2f8c6b1f3142 2025-04-24 11:39:16,819 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-24 11:39:16,819 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6 2025-04-24 11:39:16,828 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820 2025-04-24 11:39:16,840 - INFO - Verified VN network id 9 for VN c9de802a-181d-4c61-9f26-916119d5e1c6 2025-04-24 11:39:16,840 - INFO - Verifications in API Server for VN ctest-vn-91097785 passed 2025-04-24 11:39:16,841 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6 2025-04-24 11:39:16,849 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820 2025-04-24 11:39:16,854 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820 2025-04-24 11:39:16,860 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/30c12955-424d-4e7e-b7c5-2f8c6b1f3142 2025-04-24 11:39:16,871 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70575691', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14546204764734835809', 'uuid-lslong': '11468013347376849350'}, 'enable': 'true', 'created': '2025-04-24T11:39:14', 'last-modified': '2025-04-24T11:39:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.867875'} 2025-04-24 11:39:16,877 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-24 11:39:16,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91097785 passed 2025-04-24 11:39:16,877 - DEBUG - ====Verifying policy data for ctest-vn-91097785 in API_Server ====== 2025-04-24 11:39:16,877 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-24 11:39:16,882 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9 2025-04-24 11:39:16,891 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597 2025-04-24 11:39:16,962 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6 2025-04-24 11:39:16,972 - DEBUG - ==>Verifying data for policy with id: 5795de2c-ba38-4550-b158-fa830f3f232c, fqn: ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-policy-allow-all-10161798'] 2025-04-24 11:39:16,972 - INFO - VN ctest-vn-91097785 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-24 11:39:16,972 - DEBUG - Verifying the vn in opserver 2025-04-24 11:39:16,972 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785 virtual network link through opserver 10.0.0.50 2025-04-24 11:39:16,972 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-24 11:39:17,259 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-24 11:39:17,304 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785?flat'} 2025-04-24 11:39:17,304 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785 is found in opserver 2025-04-24 11:39:17,313 - DEBUG - Do not have enough data to verify VN in agent 2025-04-24 11:39:17,318 - DEBUG - VRF ids for VN ctest-vn-91097785: {} 2025-04-24 11:39:17,318 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-24 11:39:17,323 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9 2025-04-24 11:39:17,332 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597 2025-04-24 11:39:17,405 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6 2025-04-24 11:39:17,416 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6 2025-04-24 11:39:17,424 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f 2025-04-24 11:39:17,430 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f 2025-04-24 11:39:17,436 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3ae1bfaa-621f-4b1c-abc3-162aaa76bdc2 2025-04-24 11:39:17,441 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-24 11:39:17,441 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6 2025-04-24 11:39:17,449 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f 2025-04-24 11:39:17,461 - INFO - Verified VN network id 10 for VN b4ee2ed3-0dd5-4c9f-8787-47846015d6a6 2025-04-24 11:39:17,461 - INFO - Verifications in API Server for VN ctest-vn-86964771 passed 2025-04-24 11:39:17,461 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6 2025-04-24 11:39:17,469 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f 2025-04-24 11:39:17,474 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f 2025-04-24 11:39:17,480 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3ae1bfaa-621f-4b1c-abc3-162aaa76bdc2 2025-04-24 11:39:17,491 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70575691', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13037409455289224351', 'uuid-lslong': '9765852950849509030'}, 'enable': 'true', 'created': '2025-04-24T11:39:15', 'last-modified': '2025-04-24T11:39:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.330846'} 2025-04-24 11:39:17,496 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-24 11:39:17,496 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86964771 passed 2025-04-24 11:39:17,496 - DEBUG - ====Verifying policy data for ctest-vn-86964771 in API_Server ====== 2025-04-24 11:39:17,496 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-24 11:39:17,501 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9 2025-04-24 11:39:17,510 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597 2025-04-24 11:39:17,582 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6 2025-04-24 11:39:17,592 - DEBUG - ==>Verifying data for policy with id: 5795de2c-ba38-4550-b158-fa830f3f232c, fqn: ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-policy-allow-all-10161798'] 2025-04-24 11:39:17,592 - INFO - VN ctest-vn-86964771 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-24 11:39:17,592 - DEBUG - Verifying the vn in opserver 2025-04-24 11:39:17,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771 virtual network link through opserver 10.0.0.50 2025-04-24 11:39:17,592 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-24 11:39:17,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771?flat'} 2025-04-24 11:39:17,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771 is found in opserver 2025-04-24 11:39:17,610 - DEBUG - Do not have enough data to verify VN in agent 2025-04-24 11:39:17,614 - DEBUG - VRF ids for VN ctest-vn-86964771: {} 2025-04-24 11:39:17,661 - DEBUG - Services list from nova: [, , ] 2025-04-24 11:39:18,589 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3203-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3203-1) 2025-04-24 11:39:19,724 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3203-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3203-1) 2025-04-24 11:39:19,724 - INFO - Waiting for VM ctest-TestBasicPolicy-70575691-49993326 to be up.. 2025-04-24 11:39:19,793 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-24 11:39:24,861 - DEBUG - VM is in ACTIVE state now 2025-04-24 11:39:24,861 - INFO - VM name : ctest-TestBasicPolicy-70575691-49993326 2025-04-24 11:39:24,929 - DEBUG - VM ctest-TestBasicPolicy-70575691-49993326 ID is 908f34b8-44c5-4e0a-867d-418935a090de 2025-04-24 11:39:24,946 - DEBUG - VM ctest-TestBasicPolicy-70575691-49993326 launched on Node cn-jenkins-deploy-platform-ansible-os-3203-1 2025-04-24 11:39:25,023 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/908f34b8-44c5-4e0a-867d-418935a090de 2025-04-24 11:39:25,035 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/e3c8e6d6-5711-441d-9b96-b5e2bef1e49b 2025-04-24 11:39:28,275 - 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 1001ms') 2025-04-24 11:39:28,275 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70575691-49993326 failed! 2025-04-24 11:39:28,347 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785 is 171.156.233.129 and allocation pool is NOT set 2025-04-24 11:39:30,403 - 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.65 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.395 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.395/1.523/2.652/1.128 ms') 2025-04-24 11:39:30,403 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70575691-49993326 passed 2025-04-24 11:39:30,554 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 11:39:30,554 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70575691-49993326, IP 171.156.233.131, Port 22 2025-04-24 11:39:30,706 - DEBUG - VM ctest-TestBasicPolicy-70575691-49993326 is ready for SSH connections 2025-04-24 11:39:30,706 - INFO - Waiting for VM ctest-TestBasicPolicy-70575691-01429137 to be up.. 2025-04-24 11:39:30,784 - DEBUG - VM is in ACTIVE state now 2025-04-24 11:39:30,785 - INFO - VM name : ctest-TestBasicPolicy-70575691-01429137 2025-04-24 11:39:30,851 - DEBUG - VM ctest-TestBasicPolicy-70575691-01429137 ID is 2cf686c4-ba54-49aa-9bea-0667e2fe493e 2025-04-24 11:39:30,852 - DEBUG - VM ctest-TestBasicPolicy-70575691-01429137 launched on Node cn-jenkins-deploy-platform-ansible-os-3203-1 2025-04-24 11:39:30,919 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/2cf686c4-ba54-49aa-9bea-0667e2fe493e 2025-04-24 11:39:30,927 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/2a37f3de-f0b6-4d97-b84b-7788059247e9 2025-04-24 11:39:32,159 - 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.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.354 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 = 0.354/1.443/2.533/1.089 ms') 2025-04-24 11:39:32,159 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-70575691-01429137 passed 2025-04-24 11:39:32,311 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 11:39:32,311 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70575691-01429137, IP 203.196.252.3, Port 22 2025-04-24 11:39:32,466 - DEBUG - VM ctest-TestBasicPolicy-70575691-01429137 is ready for SSH connections 2025-04-24 11:39:32,466 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 11:39:32,467 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 203.196.252.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-24 11:39:32,467 - DEBUG - ping -s 56 -c 3 -W 1 203.196.252.3 2025-04-24 11:39:36,452 - DEBUG - PING 203.196.252.3 (203.196.252.3): 56 data bytes 64 bytes from 203.196.252.3: seq=0 ttl=63 time=3.540 ms 64 bytes from 203.196.252.3: seq=1 ttl=63 time=0.655 ms 64 bytes from 203.196.252.3: seq=2 ttl=63 time=0.821 ms --- 203.196.252.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.655/1.672/3.540 ms 2025-04-24 11:39:36,452 - INFO - Ping to IP 203.196.252.3 from VM ctest-TestBasicPolicy-70575691-49993326 passed 2025-04-24 11:39:36,626 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5795de2c-ba38-4550-b158-fa830f3f232c", "href": "http://10.0.0.50:8082/network-policy/5795de2c-ba38-4550-b158-fa830f3f232c"}} 2025-04-24 11:39:36,626 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 11:39:36,626 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 203.196.252.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-24 11:39:36,627 - DEBUG - ping -s 56 -c 3 -W 1 203.196.252.3 2025-04-24 11:39:39,813 - DEBUG - PING 203.196.252.3 (203.196.252.3): 56 data bytes --- 203.196.252.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-24 11:39:39,814 - WARNING - Ping to IP 203.196.252.3 from VM ctest-TestBasicPolicy-70575691-49993326 failed 2025-04-24 11:39:39,814 - INFO - Deleting VM ctest-TestBasicPolicy-70575691-01429137 2025-04-24 11:39:39,871 - INFO - Deleting VM ctest-TestBasicPolicy-70575691-49993326 2025-04-24 11:39:40,251 - INFO - Deleted policy ctest-policy-allow-all-10161798 2025-04-24 11:39:40,251 - INFO - Deleting VN ctest-vn-86964771 2025-04-24 11:39:40,290 - DEBUG - VN b4ee2ed3-0dd5-4c9f-8787-47846015d6a6 still in use: Unable to complete operation on network b4ee2ed3-0dd5-4c9f-8787-47846015d6a6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-01457705-230b-4687-954e-3ec1dd8e0071'] 2025-04-24 11:39:40,290 - WARNING - Deleting VN ctest-vn-86964771 failed..Will retry 2025-04-24 11:39:42,394 - DEBUG - Response for deleting network () 2025-04-24 11:39:42,394 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f 2025-04-24 11:39:42,400 - DEBUG - Response Code: 404 2025-04-24 11:39:42,400 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-24 11:39:42,405 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9 2025-04-24 11:39:42,459 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597 2025-04-24 11:39:42,532 - INFO - Validated that VN ctest-vn-86964771 is not found in API Server 2025-04-24 11:39:42,542 - DEBUG - VN ctest-vn-86964771 is not present in Agent 10.0.0.50 2025-04-24 11:39:42,542 - INFO - Validated that VN ctest-vn-86964771 is not in any agent 2025-04-24 11:39:42,558 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86964771 info 2025-04-24 11:39:42,559 - INFO - Deleting VN ctest-vn-91097785 2025-04-24 11:39:42,649 - DEBUG - Response for deleting network () 2025-04-24 11:39:42,649 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820 2025-04-24 11:39:42,654 - DEBUG - Response Code: 404 2025-04-24 11:39:42,654 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-24 11:39:42,659 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9 2025-04-24 11:39:42,712 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597 2025-04-24 11:39:42,786 - INFO - Validated that VN ctest-vn-91097785 is not found in API Server 2025-04-24 11:39:42,796 - DEBUG - VN ctest-vn-91097785 is not present in Agent 10.0.0.50 2025-04-24 11:39:42,796 - INFO - Validated that VN ctest-vn-91097785 is not in any agent 2025-04-24 11:39:42,810 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91097785 info 2025-04-24 11:39:43,065 - DEBUG - No XMPP flaps were noticed during the test
2025-04-24 11:39:43,065 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-24 11:39:43,065 - INFO - -------------------------------------------------------------------------------- 2025-04-24 11:39:43,722 - INFO - Deleted project: ctest-TestBasicPolicy-70575691, ID : e71449da-4ff2-4409-91c6-e53225b37597