2025-03-24 11:18:21,865 - INFO - Domain Default found not creating 2025-03-24 11:18:22,023 - INFO - Project ctest-TestBasicPolicy-40265485 not found, creating it 2025-03-24 11:18:22,486 - INFO - Created Project:ctest-TestBasicPolicy-40265485, ID : c4e588dc-f3bd-4676-ba58-004b96e602ca 2025-03-24 11:18:23,993 - INFO - ================================================================================ 2025-03-24 11:18:23,993 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-24 11:18:23,993 - 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-03-24 11:18:24,250 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.8': '0'}} with 2025-03-24 11:18:24,250 - INFO - Initial checks done. Running the testcase now 2025-03-24 11:18:24,250 - INFO - 2025-03-24 11:18:24,808 - DEBUG - Response for create_network : {'network': {'id': '9e1b715b-452c-4f47-baa6-a669b86ce818', 'name': 'ctest-vn-93225631', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-vn-93225631'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 11:18:24,984 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e98fd383-11a7-40dc-ae35-ebcd4f9436cd', 'name': '', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'network_id': '9e1b715b-452c-4f47-baa6-a669b86ce818', 'ip_version': 4, 'cidr': '107.250.172.128/26', 'allocation_pools': [{'start': '107.250.172.130', 'end': '107.250.172.190'}], 'gateway_ip': '107.250.172.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.250.172.130', 'tags': [], 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca'}} 2025-03-24 11:18:25,004 - INFO - Created VN ctest-vn-93225631 2025-03-24 11:18:25,055 - DEBUG - VN ctest-vn-93225631 UUID is 9e1b715b-452c-4f47-baa6-a669b86ce818 2025-03-24 11:18:25,341 - DEBUG - Response for create_network : {'network': {'id': '50f582c4-2e8c-4514-9b8a-1a422e27fa3a', 'name': 'ctest-vn-13178689', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-vn-13178689'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 11:18:25,540 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e19f6cc-c22f-44d9-ae58-08dd9a04091a', 'name': '', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'network_id': '50f582c4-2e8c-4514-9b8a-1a422e27fa3a', 'ip_version': 4, 'cidr': '142.211.152.192/26', 'allocation_pools': [{'start': '142.211.152.194', 'end': '142.211.152.254'}], 'gateway_ip': '142.211.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.211.152.194', 'tags': [], 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca'}} 2025-03-24 11:18:25,559 - INFO - Created VN ctest-vn-13178689 2025-03-24 11:18:25,619 - DEBUG - VN ctest-vn-13178689 UUID is 50f582c4-2e8c-4514-9b8a-1a422e27fa3a 2025-03-24 11:18:25,739 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631, 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-40265485:ctest-vn-13178689, 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-03-24 11:18:26,050 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e1b715b-452c-4f47-baa6-a669b86ce818', 'name': 'ctest-vn-93225631', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e98fd383-11a7-40dc-ae35-ebcd4f9436cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-vn-93225631'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-policy-allow-all-60509365']], 'subnet_ipam': [{'subnet_cidr': '107.250.172.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-24 11:18:26,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50f582c4-2e8c-4514-9b8a-1a422e27fa3a', 'name': 'ctest-vn-13178689', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e19f6cc-c22f-44d9-ae58-08dd9a04091a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-vn-13178689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-policy-allow-all-60509365']], 'subnet_ipam': [{'subnet_cidr': '142.211.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-24 11:18:26,467 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-03-24 11:18:26,764 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-03-24 11:18:26,793 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f 2025-03-24 11:18:26,810 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca 2025-03-24 11:18:26,896 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818 2025-03-24 11:18:26,909 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818 2025-03-24 11:18:26,920 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d 2025-03-24 11:18:26,930 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d 2025-03-24 11:18:26,938 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/68cba6a7-c822-4d0a-a1c3-546f974084a6 2025-03-24 11:18:26,946 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-24 11:18:26,946 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818 2025-03-24 11:18:26,956 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d 2025-03-24 11:18:26,973 - INFO - Verified VN network id 8 for VN 9e1b715b-452c-4f47-baa6-a669b86ce818 2025-03-24 11:18:26,973 - INFO - Verifications in API Server for VN ctest-vn-93225631 passed 2025-03-24 11:18:26,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818 2025-03-24 11:18:26,984 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d 2025-03-24 11:18:26,993 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d 2025-03-24 11:18:27,002 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/68cba6a7-c822-4d0a-a1c3-546f974084a6 2025-03-24 11:18:27,017 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40265485', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11392824319180296007', 'uuid-lslong': '13449620310184486936'}, 'enable': 'true', 'created': '2025-03-24T11:18:24', 'last-modified': '2025-03-24T11:18:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.991291'} 2025-03-24 11:18:27,024 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-24 11:18:27,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93225631 passed 2025-03-24 11:18:27,024 - DEBUG - ====Verifying policy data for ctest-vn-93225631 in API_Server ====== 2025-03-24 11:18:27,024 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-03-24 11:18:27,030 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f 2025-03-24 11:18:27,044 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca 2025-03-24 11:18:27,132 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818 2025-03-24 11:18:27,145 - DEBUG - ==>Verifying data for policy with id: e567fd75-93ad-4465-bce9-bfea3862a52c, fqn: ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-policy-allow-all-60509365'] 2025-03-24 11:18:27,145 - INFO - VN ctest-vn-93225631 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-24 11:18:27,145 - DEBUG - Verifying the vn in opserver 2025-03-24 11:18:27,145 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631 virtual network link through opserver 10.0.0.38 2025-03-24 11:18:27,145 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-03-24 11:18:27,447 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-03-24 11:18:27,514 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631?flat'} 2025-03-24 11:18:27,514 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631 is found in opserver 2025-03-24 11:18:27,531 - DEBUG - Do not have enough data to verify VN in agent 2025-03-24 11:18:27,536 - DEBUG - VRF ids for VN ctest-vn-93225631: {} 2025-03-24 11:18:27,536 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-03-24 11:18:27,543 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f 2025-03-24 11:18:27,559 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca 2025-03-24 11:18:27,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a 2025-03-24 11:18:27,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a 2025-03-24 11:18:27,684 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7 2025-03-24 11:18:27,695 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7 2025-03-24 11:18:27,710 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4ddbdb0-9a18-420a-84cb-65b67ead685b 2025-03-24 11:18:27,719 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-24 11:18:27,719 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a 2025-03-24 11:18:27,732 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7 2025-03-24 11:18:27,751 - INFO - Verified VN network id 9 for VN 50f582c4-2e8c-4514-9b8a-1a422e27fa3a 2025-03-24 11:18:27,751 - INFO - Verifications in API Server for VN ctest-vn-13178689 passed 2025-03-24 11:18:27,751 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a 2025-03-24 11:18:27,764 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7 2025-03-24 11:18:27,772 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7 2025-03-24 11:18:27,782 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4ddbdb0-9a18-420a-84cb-65b67ead685b 2025-03-24 11:18:27,797 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40265485', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5833712671434491156', 'uuid-lslong': '11207799494209436218'}, 'enable': 'true', 'created': '2025-03-24T11:18:25', 'last-modified': '2025-03-24T11:18:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.521417'} 2025-03-24 11:18:27,804 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-24 11:18:27,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13178689 passed 2025-03-24 11:18:27,805 - DEBUG - ====Verifying policy data for ctest-vn-13178689 in API_Server ====== 2025-03-24 11:18:27,805 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-03-24 11:18:27,812 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f 2025-03-24 11:18:27,829 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca 2025-03-24 11:18:27,925 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a 2025-03-24 11:18:27,940 - DEBUG - ==>Verifying data for policy with id: e567fd75-93ad-4465-bce9-bfea3862a52c, fqn: ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-policy-allow-all-60509365'] 2025-03-24 11:18:27,940 - INFO - VN ctest-vn-13178689 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-24 11:18:27,940 - DEBUG - Verifying the vn in opserver 2025-03-24 11:18:27,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689 virtual network link through opserver 10.0.0.38 2025-03-24 11:18:27,941 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-03-24 11:18:27,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689?flat'} 2025-03-24 11:18:27,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689 is found in opserver 2025-03-24 11:18:27,968 - DEBUG - Do not have enough data to verify VN in agent 2025-03-24 11:18:27,973 - DEBUG - VRF ids for VN ctest-vn-13178689: {} 2025-03-24 11:18:28,037 - DEBUG - Services list from nova: [, , ] 2025-03-24 11:18:29,140 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2942-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2942-1) 2025-03-24 11:18:30,447 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2942-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2942-1) 2025-03-24 11:18:30,447 - INFO - Waiting for VM ctest-TestBasicPolicy-40265485-22280715 to be up.. 2025-03-24 11:18:30,548 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-24 11:18:35,636 - DEBUG - VM is in ACTIVE state now 2025-03-24 11:18:35,636 - INFO - VM name : ctest-TestBasicPolicy-40265485-22280715 2025-03-24 11:18:35,723 - DEBUG - VM ctest-TestBasicPolicy-40265485-22280715 ID is 09b9d124-a37b-4a0b-ba4d-e8ec7297e588 2025-03-24 11:18:35,750 - DEBUG - VM ctest-TestBasicPolicy-40265485-22280715 launched on Node cn-jenkins-deploy-platform-ansible-os-2942-1 2025-03-24 11:18:35,858 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/09b9d124-a37b-4a0b-ba4d-e8ec7297e588 2025-03-24 11:18:35,872 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/23cf5105-30d6-4b28-8b5d-057fe47d5ef4 2025-03-24 11:18:39,126 - 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 1003ms') 2025-03-24 11:18:39,126 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40265485-22280715 failed! 2025-03-24 11:18:39,187 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631 is 107.250.172.129 and allocation pool is NOT set 2025-03-24 11:18:41,252 - 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.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.536 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.536/4.120/7.704/3.584 ms') 2025-03-24 11:18:41,252 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40265485-22280715 passed 2025-03-24 11:18:41,407 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 11:18:41,407 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40265485-22280715, IP 107.250.172.131, Port 22 2025-03-24 11:18:41,562 - DEBUG - VM ctest-TestBasicPolicy-40265485-22280715 is ready for SSH connections 2025-03-24 11:18:41,563 - INFO - Waiting for VM ctest-TestBasicPolicy-40265485-95671626 to be up.. 2025-03-24 11:18:41,655 - DEBUG - VM is in ACTIVE state now 2025-03-24 11:18:41,655 - INFO - VM name : ctest-TestBasicPolicy-40265485-95671626 2025-03-24 11:18:41,741 - DEBUG - VM ctest-TestBasicPolicy-40265485-95671626 ID is c024dcb3-f3a6-4876-80d4-159c9d6f8c42 2025-03-24 11:18:41,741 - DEBUG - VM ctest-TestBasicPolicy-40265485-95671626 launched on Node cn-jenkins-deploy-platform-ansible-os-2942-1 2025-03-24 11:18:41,830 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c024dcb3-f3a6-4876-80d4-159c9d6f8c42 2025-03-24 11:18:41,841 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/e0dba870-5bf4-4f85-b966-69a3cdad6ff2 2025-03-24 11:18:43,097 - 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.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.463 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.463/1.706/2.949/1.243 ms') 2025-03-24 11:18:43,097 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-40265485-95671626 passed 2025-03-24 11:18:43,251 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 11:18:43,251 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40265485-95671626, IP 142.211.152.195, Port 22 2025-03-24 11:18:43,407 - DEBUG - VM ctest-TestBasicPolicy-40265485-95671626 is ready for SSH connections 2025-03-24 11:18:43,407 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 11:18:43,407 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.211.152.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-03-24 11:18:43,407 - DEBUG - ping -s 56 -c 3 -W 1 142.211.152.195 2025-03-24 11:18:47,431 - DEBUG - PING 142.211.152.195 (142.211.152.195): 56 data bytes 64 bytes from 142.211.152.195: seq=0 ttl=63 time=3.630 ms 64 bytes from 142.211.152.195: seq=1 ttl=63 time=0.952 ms 64 bytes from 142.211.152.195: seq=2 ttl=63 time=1.076 ms --- 142.211.152.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.952/1.886/3.630 ms 2025-03-24 11:18:47,431 - INFO - Ping to IP 142.211.152.195 from VM ctest-TestBasicPolicy-40265485-22280715 passed 2025-03-24 11:18:47,619 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e567fd75-93ad-4465-bce9-bfea3862a52c", "href": "http://10.0.0.38:8082/network-policy/e567fd75-93ad-4465-bce9-bfea3862a52c"}} 2025-03-24 11:18:47,619 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 11:18:47,619 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.211.152.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-03-24 11:18:47,619 - DEBUG - ping -s 56 -c 3 -W 1 142.211.152.195 2025-03-24 11:18:50,825 - DEBUG - PING 142.211.152.195 (142.211.152.195): 56 data bytes 64 bytes from 142.211.152.195: seq=0 ttl=63 time=1.738 ms --- 142.211.152.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.738/1.738/1.738 ms 2025-03-24 11:18:50,825 - WARNING - Ping to IP 142.211.152.195 from VM ctest-TestBasicPolicy-40265485-22280715 failed 2025-03-24 11:18:50,825 - INFO - Deleting VM ctest-TestBasicPolicy-40265485-95671626 2025-03-24 11:18:50,908 - INFO - Deleting VM ctest-TestBasicPolicy-40265485-22280715 2025-03-24 11:18:51,345 - INFO - Deleted policy ctest-policy-allow-all-60509365 2025-03-24 11:18:51,345 - INFO - Deleting VN ctest-vn-13178689 2025-03-24 11:18:51,386 - DEBUG - VN 50f582c4-2e8c-4514-9b8a-1a422e27fa3a still in use: Unable to complete operation on network 50f582c4-2e8c-4514-9b8a-1a422e27fa3a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-485d1af9-a2be-4a02-9361-f9007a74729d'] 2025-03-24 11:18:51,386 - WARNING - Deleting VN ctest-vn-13178689 failed..Will retry 2025-03-24 11:18:53,530 - DEBUG - Response for deleting network () 2025-03-24 11:18:53,530 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7 2025-03-24 11:18:53,536 - DEBUG - Response Code: 404 2025-03-24 11:18:53,536 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-03-24 11:18:53,542 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f 2025-03-24 11:18:53,601 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca 2025-03-24 11:18:53,679 - INFO - Validated that VN ctest-vn-13178689 is not found in API Server 2025-03-24 11:18:53,692 - DEBUG - VN ctest-vn-13178689 is not present in Agent 10.0.0.38 2025-03-24 11:18:53,692 - INFO - Validated that VN ctest-vn-13178689 is not in any agent 2025-03-24 11:18:53,709 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13178689 info 2025-03-24 11:18:53,709 - INFO - Deleting VN ctest-vn-93225631 2025-03-24 11:18:53,816 - DEBUG - Response for deleting network () 2025-03-24 11:18:53,816 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d 2025-03-24 11:18:53,825 - DEBUG - Response Code: 404 2025-03-24 11:18:53,825 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-03-24 11:18:53,831 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f 2025-03-24 11:18:53,893 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca 2025-03-24 11:18:53,966 - INFO - Validated that VN ctest-vn-93225631 is not found in API Server 2025-03-24 11:18:53,977 - DEBUG - VN ctest-vn-93225631 is not present in Agent 10.0.0.38 2025-03-24 11:18:53,977 - INFO - Validated that VN ctest-vn-93225631 is not in any agent 2025-03-24 11:18:53,995 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93225631 info 2025-03-24 11:18:54,253 - DEBUG - No XMPP flaps were noticed during the test 2025-03-24 11:18:54,253 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2025-03-24 11:18:54,253 - INFO - -------------------------------------------------------------------------------- 2025-03-24 11:18:54,963 - INFO - Deleted project: ctest-TestBasicPolicy-40265485, ID : c4e588dc-f3bd-4676-ba58-004b96e602ca