2025-04-23 14:27:19,642 - INFO - Domain Default found not creating 2025-04-23 14:27:19,794 - INFO - Project ctest-TestBasicPolicy-05502571 not found, creating it 2025-04-23 14:27:20,279 - INFO - Created Project:ctest-TestBasicPolicy-05502571, ID : e845d617-225b-4ce9-add8-2d432c104bdd 2025-04-23 14:27:21,857 - INFO - ================================================================================ 2025-04-23 14:27:21,857 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-23 14:27:21,857 - 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-23 14:27:22,117 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2025-04-23 14:27:22,117 - INFO - Initial checks done. Running the testcase now 2025-04-23 14:27:22,117 - INFO - 2025-04-23 14:27:22,700 - DEBUG - Response for create_network : {'network': {'id': '0181054c-c5a4-4281-a970-f8cf0c3b105b', 'name': 'ctest-vn-20252796', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'project_id': 'e845d617225b4ce9add82d432c104bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-vn-20252796'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 14:27:22,873 - DEBUG - Response for create_subnet : {'subnet': {'id': '95593e54-e42d-48d7-8e15-b806c2511ed4', 'name': '', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'network_id': '0181054c-c5a4-4281-a970-f8cf0c3b105b', 'ip_version': 4, 'cidr': '134.56.43.128/26', 'allocation_pools': [{'start': '134.56.43.130', 'end': '134.56.43.190'}], 'gateway_ip': '134.56.43.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.56.43.130', 'tags': [], 'project_id': 'e845d617225b4ce9add82d432c104bdd'}} 2025-04-23 14:27:22,893 - INFO - Created VN ctest-vn-20252796 2025-04-23 14:27:22,951 - DEBUG - VN ctest-vn-20252796 UUID is 0181054c-c5a4-4281-a970-f8cf0c3b105b 2025-04-23 14:27:23,305 - DEBUG - Response for create_network : {'network': {'id': '83d090ad-d935-4688-bd51-cbdeeea9791f', 'name': 'ctest-vn-43382912', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'project_id': 'e845d617225b4ce9add82d432c104bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-vn-43382912'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 14:27:23,458 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5f3c1d6-65a8-458c-b513-ddca2556b7f6', 'name': '', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'network_id': '83d090ad-d935-4688-bd51-cbdeeea9791f', 'ip_version': 4, 'cidr': '145.143.87.0/26', 'allocation_pools': [{'start': '145.143.87.2', 'end': '145.143.87.62'}], 'gateway_ip': '145.143.87.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.143.87.2', 'tags': [], 'project_id': 'e845d617225b4ce9add82d432c104bdd'}} 2025-04-23 14:27:23,477 - INFO - Created VN ctest-vn-43382912 2025-04-23 14:27:23,531 - DEBUG - VN ctest-vn-43382912 UUID is 83d090ad-d935-4688-bd51-cbdeeea9791f 2025-04-23 14:27:23,683 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796, 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-05502571:ctest-vn-43382912, 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-23 14:27:23,985 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0181054c-c5a4-4281-a970-f8cf0c3b105b', 'name': 'ctest-vn-20252796', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'project_id': 'e845d617225b4ce9add82d432c104bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95593e54-e42d-48d7-8e15-b806c2511ed4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-vn-20252796'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-policy-allow-all-46236540']], 'subnet_ipam': [{'subnet_cidr': '134.56.43.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-23 14:27:24,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83d090ad-d935-4688-bd51-cbdeeea9791f', 'name': 'ctest-vn-43382912', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'project_id': 'e845d617225b4ce9add82d432c104bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5f3c1d6-65a8-458c-b513-ddca2556b7f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-vn-43382912'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-policy-allow-all-46236540']], 'subnet_ipam': [{'subnet_cidr': '145.143.87.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-23 14:27:24,423 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-23 14:27:24,765 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-23 14:27:24,795 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4 2025-04-23 14:27:24,809 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd 2025-04-23 14:27:24,888 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b 2025-04-23 14:27:24,902 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b 2025-04-23 14:27:24,914 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b 2025-04-23 14:27:24,924 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b 2025-04-23 14:27:24,933 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/b55b3a23-0538-46fe-8f62-ccca08c29581 2025-04-23 14:27:24,941 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-23 14:27:24,941 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b 2025-04-23 14:27:24,952 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b 2025-04-23 14:27:24,968 - INFO - Verified VN network id 9 for VN 0181054c-c5a4-4281-a970-f8cf0c3b105b 2025-04-23 14:27:24,968 - INFO - Verifications in API Server for VN ctest-vn-20252796 passed 2025-04-23 14:27:24,968 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b 2025-04-23 14:27:24,979 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b 2025-04-23 14:27:24,986 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b 2025-04-23 14:27:24,994 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/b55b3a23-0538-46fe-8f62-ccca08c29581 2025-04-23 14:27:25,008 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05502571', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '108373693325132417', 'uuid-lslong': '12209532157948530779'}, 'enable': 'true', 'created': '2025-04-23T14:27:22', 'last-modified': '2025-04-23T14:27:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.050292'} 2025-04-23 14:27:25,015 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-23 14:27:25,015 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20252796 passed 2025-04-23 14:27:25,015 - DEBUG - ====Verifying policy data for ctest-vn-20252796 in API_Server ====== 2025-04-23 14:27:25,015 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-23 14:27:25,022 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4 2025-04-23 14:27:25,034 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd 2025-04-23 14:27:25,109 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b 2025-04-23 14:27:25,121 - DEBUG - ==>Verifying data for policy with id: 7d6b4560-64bf-46f6-9f3a-4542aa310e00, fqn: ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-policy-allow-all-46236540'] 2025-04-23 14:27:25,121 - INFO - VN ctest-vn-20252796 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-23 14:27:25,121 - DEBUG - Verifying the vn in opserver 2025-04-23 14:27:25,121 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796 virtual network link through opserver 10.0.0.129 2025-04-23 14:27:25,121 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-04-23 14:27:25,463 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-04-23 14:27:25,522 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796?flat'} 2025-04-23 14:27:25,522 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796 is found in opserver 2025-04-23 14:27:25,534 - DEBUG - Do not have enough data to verify VN in agent 2025-04-23 14:27:25,540 - DEBUG - VRF ids for VN ctest-vn-20252796: {} 2025-04-23 14:27:25,540 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-23 14:27:25,546 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4 2025-04-23 14:27:25,559 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd 2025-04-23 14:27:25,628 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f 2025-04-23 14:27:25,640 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f 2025-04-23 14:27:25,650 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a 2025-04-23 14:27:25,659 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a 2025-04-23 14:27:25,666 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/334bfb99-5a48-49f1-87bc-541ea8e8a6b2 2025-04-23 14:27:25,673 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-23 14:27:25,673 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f 2025-04-23 14:27:25,685 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a 2025-04-23 14:27:25,699 - INFO - Verified VN network id 10 for VN 83d090ad-d935-4688-bd51-cbdeeea9791f 2025-04-23 14:27:25,699 - INFO - Verifications in API Server for VN ctest-vn-43382912 passed 2025-04-23 14:27:25,699 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f 2025-04-23 14:27:25,708 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a 2025-04-23 14:27:25,715 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a 2025-04-23 14:27:25,722 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/334bfb99-5a48-49f1-87bc-541ea8e8a6b2 2025-04-23 14:27:25,734 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05502571', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9498250690472265352', 'uuid-lslong': '13641908904629205279'}, 'enable': 'true', 'created': '2025-04-23T14:27:23', 'last-modified': '2025-04-23T14:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.539565'} 2025-04-23 14:27:25,740 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-23 14:27:25,741 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43382912 passed 2025-04-23 14:27:25,741 - DEBUG - ====Verifying policy data for ctest-vn-43382912 in API_Server ====== 2025-04-23 14:27:25,741 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-23 14:27:25,746 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4 2025-04-23 14:27:25,758 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd 2025-04-23 14:27:25,829 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f 2025-04-23 14:27:25,839 - DEBUG - ==>Verifying data for policy with id: 7d6b4560-64bf-46f6-9f3a-4542aa310e00, fqn: ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-policy-allow-all-46236540'] 2025-04-23 14:27:25,840 - INFO - VN ctest-vn-43382912 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-23 14:27:25,840 - DEBUG - Verifying the vn in opserver 2025-04-23 14:27:25,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912 virtual network link through opserver 10.0.0.129 2025-04-23 14:27:25,840 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-04-23 14:27:25,850 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912?flat'} 2025-04-23 14:27:25,851 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912 is found in opserver 2025-04-23 14:27:25,862 - DEBUG - Do not have enough data to verify VN in agent 2025-04-23 14:27:25,867 - DEBUG - VRF ids for VN ctest-vn-43382912: {} 2025-04-23 14:27:25,923 - DEBUG - Services list from nova: [, , ] 2025-04-23 14:27:27,021 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3186-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3186-1) 2025-04-23 14:27:28,364 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3186-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3186-1) 2025-04-23 14:27:28,364 - INFO - Waiting for VM ctest-TestBasicPolicy-05502571-07773627 to be up.. 2025-04-23 14:27:28,450 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-23 14:27:33,529 - DEBUG - VM is in ACTIVE state now 2025-04-23 14:27:33,530 - INFO - VM name : ctest-TestBasicPolicy-05502571-07773627 2025-04-23 14:27:33,605 - DEBUG - VM ctest-TestBasicPolicy-05502571-07773627 ID is ee07e5f1-ce32-46d2-9ff7-39164d2edcaf 2025-04-23 14:27:33,626 - DEBUG - VM ctest-TestBasicPolicy-05502571-07773627 launched on Node cn-jenkins-deploy-platform-ansible-os-3186-1 2025-04-23 14:27:33,711 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/ee07e5f1-ce32-46d2-9ff7-39164d2edcaf 2025-04-23 14:27:33,720 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/a62f5f01-f6d6-41cd-916d-900cbd452ddd 2025-04-23 14:27:36,998 - 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-04-23 14:27:36,998 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05502571-07773627 failed! 2025-04-23 14:27:37,055 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796 is 134.56.43.129 and allocation pool is NOT set 2025-04-23 14:27:39,117 - 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=7.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.409 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.409/4.166/7.923/3.757 ms') 2025-04-23 14:27:39,117 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05502571-07773627 passed 2025-04-23 14:27:39,271 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 14:27:39,271 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05502571-07773627, IP 134.56.43.131, Port 22 2025-04-23 14:27:39,426 - DEBUG - VM ctest-TestBasicPolicy-05502571-07773627 is ready for SSH connections 2025-04-23 14:27:39,426 - INFO - Waiting for VM ctest-TestBasicPolicy-05502571-89799927 to be up.. 2025-04-23 14:27:39,508 - DEBUG - VM is in ACTIVE state now 2025-04-23 14:27:39,508 - INFO - VM name : ctest-TestBasicPolicy-05502571-89799927 2025-04-23 14:27:39,586 - DEBUG - VM ctest-TestBasicPolicy-05502571-89799927 ID is 8f3c7c62-8eb6-42d1-8b14-cd2c5abb9b06 2025-04-23 14:27:39,586 - DEBUG - VM ctest-TestBasicPolicy-05502571-89799927 launched on Node cn-jenkins-deploy-platform-ansible-os-3186-1 2025-04-23 14:27:39,665 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/8f3c7c62-8eb6-42d1-8b14-cd2c5abb9b06 2025-04-23 14:27:39,674 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/4b65dba0-1302-42a9-8a62-69100743d1fb 2025-04-23 14:27:40,921 - 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=3.43 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.568 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.568/1.998/3.428/1.430 ms') 2025-04-23 14:27:40,921 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-05502571-89799927 passed 2025-04-23 14:27:41,079 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 14:27:41,079 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05502571-89799927, IP 145.143.87.3, Port 22 2025-04-23 14:27:41,235 - DEBUG - VM ctest-TestBasicPolicy-05502571-89799927 is ready for SSH connections 2025-04-23 14:27:41,235 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 14:27:41,235 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 145.143.87.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-04-23 14:27:41,235 - DEBUG - ping -s 56 -c 3 -W 1 145.143.87.3 2025-04-23 14:27:45,297 - DEBUG - PING 145.143.87.3 (145.143.87.3): 56 data bytes 64 bytes from 145.143.87.3: seq=0 ttl=63 time=3.722 ms 64 bytes from 145.143.87.3: seq=1 ttl=63 time=0.854 ms 64 bytes from 145.143.87.3: seq=2 ttl=63 time=0.840 ms --- 145.143.87.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.840/1.805/3.722 ms 2025-04-23 14:27:45,298 - INFO - Ping to IP 145.143.87.3 from VM ctest-TestBasicPolicy-05502571-07773627 passed 2025-04-23 14:27:45,495 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7d6b4560-64bf-46f6-9f3a-4542aa310e00", "href": "http://10.0.0.129:8082/network-policy/7d6b4560-64bf-46f6-9f3a-4542aa310e00"}} 2025-04-23 14:27:45,495 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 14:27:45,495 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 145.143.87.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-04-23 14:27:45,495 - DEBUG - ping -s 56 -c 3 -W 1 145.143.87.3 2025-04-23 14:27:48,720 - DEBUG - PING 145.143.87.3 (145.143.87.3): 56 data bytes 64 bytes from 145.143.87.3: seq=0 ttl=63 time=1.647 ms --- 145.143.87.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.647/1.647/1.647 ms 2025-04-23 14:27:48,720 - WARNING - Ping to IP 145.143.87.3 from VM ctest-TestBasicPolicy-05502571-07773627 failed 2025-04-23 14:27:48,720 - INFO - Deleting VM ctest-TestBasicPolicy-05502571-89799927 2025-04-23 14:27:48,791 - INFO - Deleting VM ctest-TestBasicPolicy-05502571-07773627 2025-04-23 14:27:49,216 - INFO - Deleted policy ctest-policy-allow-all-46236540 2025-04-23 14:27:49,217 - INFO - Deleting VN ctest-vn-43382912 2025-04-23 14:27:49,254 - DEBUG - VN 83d090ad-d935-4688-bd51-cbdeeea9791f still in use: Unable to complete operation on network 83d090ad-d935-4688-bd51-cbdeeea9791f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7bc9b71a-5d2e-4ce2-b0c3-0e41b285c57e'] 2025-04-23 14:27:49,254 - WARNING - Deleting VN ctest-vn-43382912 failed..Will retry 2025-04-23 14:27:51,365 - DEBUG - Response for deleting network () 2025-04-23 14:27:51,365 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a 2025-04-23 14:27:51,371 - DEBUG - Response Code: 404 2025-04-23 14:27:51,371 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-23 14:27:51,386 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4 2025-04-23 14:27:51,442 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd 2025-04-23 14:27:51,514 - INFO - Validated that VN ctest-vn-43382912 is not found in API Server 2025-04-23 14:27:51,528 - DEBUG - VN ctest-vn-43382912 is not present in Agent 10.0.0.129 2025-04-23 14:27:51,528 - INFO - Validated that VN ctest-vn-43382912 is not in any agent 2025-04-23 14:27:51,546 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43382912 info 2025-04-23 14:27:51,546 - INFO - Deleting VN ctest-vn-20252796 2025-04-23 14:27:51,648 - DEBUG - Response for deleting network () 2025-04-23 14:27:51,648 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b 2025-04-23 14:27:51,658 - DEBUG - Response Code: 404 2025-04-23 14:27:51,658 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-23 14:27:51,664 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4 2025-04-23 14:27:51,724 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd 2025-04-23 14:27:51,804 - INFO - Validated that VN ctest-vn-20252796 is not found in API Server 2025-04-23 14:27:51,816 - DEBUG - VN ctest-vn-20252796 is not present in Agent 10.0.0.129 2025-04-23 14:27:51,816 - INFO - Validated that VN ctest-vn-20252796 is not in any agent 2025-04-23 14:27:51,833 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20252796 info 2025-04-23 14:27:52,094 - DEBUG - No XMPP flaps were noticed during the test 2025-04-23 14:27:52,094 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2025-04-23 14:27:52,095 - INFO - -------------------------------------------------------------------------------- 2025-04-23 14:27:52,798 - INFO - Deleted project: ctest-TestBasicPolicy-05502571, ID : e845d617-225b-4ce9-add8-2d432c104bdd