2025-06-20 06:47:18,335 - INFO - Domain Default found not creating 2025-06-20 06:47:18,502 - INFO - Project ctest-TestBasicPolicy-86591975 not found, creating it 2025-06-20 06:47:18,983 - INFO - Created Project:ctest-TestBasicPolicy-86591975, ID : 53a2a0af-9704-45d6-babf-e42b0b98add6 2025-06-20 06:47:20,418 - INFO - ================================================================================ 2025-06-20 06:47:20,418 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-20 06:47:20,418 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-06-20 06:47:20,690 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-06-20 06:47:20,690 - INFO - Initial checks done. Running the testcase now 2025-06-20 06:47:20,690 - INFO - 2025-06-20 06:47:21,281 - DEBUG - Response for create_network : {'network': {'id': '87a65c58-aa47-4403-92fc-32dcfec51f96', 'name': 'ctest-vn-01424756', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'project_id': '53a2a0af970445d6babfe42b0b98add6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-vn-01424756'], 'port_security_enabled': True, 'description': ''}} 2025-06-20 06:47:21,469 - DEBUG - Response for create_subnet : {'subnet': {'id': '75be0426-1d1e-4553-803e-60072c2b942d', 'name': '', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'network_id': '87a65c58-aa47-4403-92fc-32dcfec51f96', 'ip_version': 4, 'cidr': '46.101.127.192/26', 'allocation_pools': [{'start': '46.101.127.194', 'end': '46.101.127.254'}], 'gateway_ip': '46.101.127.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.101.127.194', 'tags': [], 'project_id': '53a2a0af970445d6babfe42b0b98add6'}} 2025-06-20 06:47:21,487 - INFO - Created VN ctest-vn-01424756 2025-06-20 06:47:21,540 - DEBUG - VN ctest-vn-01424756 UUID is 87a65c58-aa47-4403-92fc-32dcfec51f96 2025-06-20 06:47:21,837 - DEBUG - Response for create_network : {'network': {'id': '2499141c-2cf1-407a-8052-79c098ab8733', 'name': 'ctest-vn-14930553', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'project_id': '53a2a0af970445d6babfe42b0b98add6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-vn-14930553'], 'port_security_enabled': True, 'description': ''}} 2025-06-20 06:47:22,065 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a07ac4e-9bc3-4e24-b392-31b4fa0725c9', 'name': '', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'network_id': '2499141c-2cf1-407a-8052-79c098ab8733', 'ip_version': 4, 'cidr': '174.231.24.192/26', 'allocation_pools': [{'start': '174.231.24.194', 'end': '174.231.24.254'}], 'gateway_ip': '174.231.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.231.24.194', 'tags': [], 'project_id': '53a2a0af970445d6babfe42b0b98add6'}} 2025-06-20 06:47:22,084 - INFO - Created VN ctest-vn-14930553 2025-06-20 06:47:22,136 - DEBUG - VN ctest-vn-14930553 UUID is 2499141c-2cf1-407a-8052-79c098ab8733 2025-06-20 06:47:22,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756, 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-86591975:ctest-vn-14930553, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-06-20 06:47:22,587 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87a65c58-aa47-4403-92fc-32dcfec51f96', 'name': 'ctest-vn-01424756', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'project_id': '53a2a0af970445d6babfe42b0b98add6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75be0426-1d1e-4553-803e-60072c2b942d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-vn-01424756'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-policy-allow-all-58790445']], 'subnet_ipam': [{'subnet_cidr': '46.101.127.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-20 06:47:22,822 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2499141c-2cf1-407a-8052-79c098ab8733', 'name': 'ctest-vn-14930553', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'project_id': '53a2a0af970445d6babfe42b0b98add6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a07ac4e-9bc3-4e24-b392-31b4fa0725c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-vn-14930553'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-policy-allow-all-58790445']], 'subnet_ipam': [{'subnet_cidr': '174.231.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-20 06:47:22,980 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-20 06:47:23,272 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-20 06:47:23,301 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946 2025-06-20 06:47:23,316 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6 2025-06-20 06:47:23,397 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96 2025-06-20 06:47:23,408 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96 2025-06-20 06:47:23,418 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988 2025-06-20 06:47:23,426 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988 2025-06-20 06:47:23,433 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c8c5a730-2cda-40e2-a125-55103b03e8e4 2025-06-20 06:47:23,440 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-20 06:47:23,440 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96 2025-06-20 06:47:23,449 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988 2025-06-20 06:47:23,461 - INFO - Verified VN network id 9 for VN 87a65c58-aa47-4403-92fc-32dcfec51f96 2025-06-20 06:47:23,461 - INFO - Verifications in API Server for VN ctest-vn-01424756 passed 2025-06-20 06:47:23,461 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96 2025-06-20 06:47:23,538 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988 2025-06-20 06:47:23,546 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988 2025-06-20 06:47:23,555 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c8c5a730-2cda-40e2-a125-55103b03e8e4 2025-06-20 06:47:23,568 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86591975', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9774601577137914883', 'uuid-lslong': '10591396348417089430'}, 'enable': 'true', 'created': '2025-06-20T06:47:21', 'last-modified': '2025-06-20T06:47:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003012'} 2025-06-20 06:47:23,576 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-20 06:47:23,576 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01424756 passed 2025-06-20 06:47:23,576 - DEBUG - ====Verifying policy data for ctest-vn-01424756 in API_Server ====== 2025-06-20 06:47:23,576 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-20 06:47:23,583 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946 2025-06-20 06:47:23,596 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6 2025-06-20 06:47:23,677 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96 2025-06-20 06:47:23,688 - DEBUG - ==>Verifying data for policy with id: 83740b54-31f5-42e3-b84f-c4e1399a220c, fqn: ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-policy-allow-all-58790445'] 2025-06-20 06:47:23,688 - INFO - VN ctest-vn-01424756 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-20 06:47:23,688 - DEBUG - Verifying the vn in opserver 2025-06-20 06:47:23,688 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756 virtual network link through opserver 10.0.0.27 2025-06-20 06:47:23,689 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-06-20 06:47:23,984 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-06-20 06:47:24,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756?flat'} 2025-06-20 06:47:24,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756 is found in opserver 2025-06-20 06:47:24,053 - DEBUG - Do not have enough data to verify VN in agent 2025-06-20 06:47:24,058 - DEBUG - VRF ids for VN ctest-vn-01424756: {} 2025-06-20 06:47:24,058 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-20 06:47:24,064 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946 2025-06-20 06:47:24,076 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6 2025-06-20 06:47:24,151 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733 2025-06-20 06:47:24,164 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733 2025-06-20 06:47:24,174 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857 2025-06-20 06:47:24,182 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857 2025-06-20 06:47:24,191 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/96fd84b3-1d56-47c6-9036-25202c26c7e8 2025-06-20 06:47:24,202 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-20 06:47:24,202 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733 2025-06-20 06:47:24,213 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857 2025-06-20 06:47:24,231 - INFO - Verified VN network id 10 for VN 2499141c-2cf1-407a-8052-79c098ab8733 2025-06-20 06:47:24,231 - INFO - Verifications in API Server for VN ctest-vn-14930553 passed 2025-06-20 06:47:24,232 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733 2025-06-20 06:47:24,246 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857 2025-06-20 06:47:24,258 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857 2025-06-20 06:47:24,270 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/96fd84b3-1d56-47c6-9036-25202c26c7e8 2025-06-20 06:47:24,291 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86591975', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2637161168047784058', 'uuid-lslong': '9246586853047109427'}, 'enable': 'true', 'created': '2025-06-20T06:47:21', 'last-modified': '2025-06-20T06:47:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488262'} 2025-06-20 06:47:24,298 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-20 06:47:24,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14930553 passed 2025-06-20 06:47:24,298 - DEBUG - ====Verifying policy data for ctest-vn-14930553 in API_Server ====== 2025-06-20 06:47:24,298 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-20 06:47:24,305 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946 2025-06-20 06:47:24,319 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6 2025-06-20 06:47:24,410 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733 2025-06-20 06:47:24,421 - DEBUG - ==>Verifying data for policy with id: 83740b54-31f5-42e3-b84f-c4e1399a220c, fqn: ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-policy-allow-all-58790445'] 2025-06-20 06:47:24,422 - INFO - VN ctest-vn-14930553 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-20 06:47:24,422 - DEBUG - Verifying the vn in opserver 2025-06-20 06:47:24,422 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553 virtual network link through opserver 10.0.0.27 2025-06-20 06:47:24,422 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-06-20 06:47:24,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553?flat'} 2025-06-20 06:47:24,435 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553 is found in opserver 2025-06-20 06:47:24,446 - DEBUG - Do not have enough data to verify VN in agent 2025-06-20 06:47:24,451 - DEBUG - VRF ids for VN ctest-vn-14930553: {} 2025-06-20 06:47:24,512 - DEBUG - Services list from nova: [, , ] 2025-06-20 06:47:25,534 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3500-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3500-1) 2025-06-20 06:47:26,843 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3500-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3500-1) 2025-06-20 06:47:26,843 - INFO - Waiting for VM ctest-TestBasicPolicy-86591975-79618021 to be up.. 2025-06-20 06:47:26,935 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-20 06:47:32,027 - DEBUG - VM is in ACTIVE state now 2025-06-20 06:47:32,027 - INFO - VM name : ctest-TestBasicPolicy-86591975-79618021 2025-06-20 06:47:32,126 - DEBUG - VM ctest-TestBasicPolicy-86591975-79618021 ID is 2fb20395-fc62-4667-91ad-f29229eedc36 2025-06-20 06:47:32,148 - DEBUG - VM ctest-TestBasicPolicy-86591975-79618021 launched on Node cn-jenkins-deploy-platform-ansible-os-3500-1 2025-06-20 06:47:32,237 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/2fb20395-fc62-4667-91ad-f29229eedc36 2025-06-20 06:47:32,248 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/519c6f6d-3f22-4665-9639-ca470ada8aa9 2025-06-20 06:47:35,522 - 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 1028ms') 2025-06-20 06:47:35,522 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-86591975-79618021 failed! 2025-06-20 06:47:35,588 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756 is 46.101.127.193 and allocation pool is NOT set 2025-06-20 06:47:37,658 - 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=5.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.51 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.507/3.573/5.640/2.066 ms') 2025-06-20 06:47:37,658 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-86591975-79618021 passed 2025-06-20 06:47:37,812 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-20 06:47:37,812 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86591975-79618021, IP 46.101.127.195, Port 22 2025-06-20 06:47:37,979 - DEBUG - VM ctest-TestBasicPolicy-86591975-79618021 is ready for SSH connections 2025-06-20 06:47:37,979 - INFO - Waiting for VM ctest-TestBasicPolicy-86591975-22656999 to be up.. 2025-06-20 06:47:38,100 - DEBUG - VM is in ACTIVE state now 2025-06-20 06:47:38,100 - INFO - VM name : ctest-TestBasicPolicy-86591975-22656999 2025-06-20 06:47:38,197 - DEBUG - VM ctest-TestBasicPolicy-86591975-22656999 ID is 00ed6bd2-0ffe-4716-90d5-209d7b7b6de1 2025-06-20 06:47:38,197 - DEBUG - VM ctest-TestBasicPolicy-86591975-22656999 launched on Node cn-jenkins-deploy-platform-ansible-os-3500-1 2025-06-20 06:47:38,286 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/00ed6bd2-0ffe-4716-90d5-209d7b7b6de1 2025-06-20 06:47:38,297 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/226d08e9-c80f-4a63-8c1d-edaf6b358ee3 2025-06-20 06:47:39,543 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.02 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.021/2.572/4.124/1.551 ms') 2025-06-20 06:47:39,543 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-86591975-22656999 passed 2025-06-20 06:47:39,700 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-20 06:47:39,700 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86591975-22656999, IP 174.231.24.195, Port 22 2025-06-20 06:47:39,765 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-06-20 06:47:39,842 - DEBUG - VM ctest-TestBasicPolicy-86591975-22656999 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-20 06:47:44,843 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-20 06:47:44,843 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86591975-22656999, IP 174.231.24.195, Port 22 2025-06-20 06:47:45,003 - DEBUG - VM ctest-TestBasicPolicy-86591975-22656999 is ready for SSH connections 2025-06-20 06:47:45,004 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-20 06:47:45,004 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.231.24.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-06-20 06:47:45,004 - DEBUG - ping -s 56 -c 3 -W 1 174.231.24.195 2025-06-20 06:47:48,691 - DEBUG - PING 174.231.24.195 (174.231.24.195): 56 data bytes 64 bytes from 174.231.24.195: seq=0 ttl=63 time=5.078 ms 64 bytes from 174.231.24.195: seq=1 ttl=63 time=1.409 ms 64 bytes from 174.231.24.195: seq=2 ttl=63 time=0.909 ms --- 174.231.24.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.909/2.465/5.078 ms 2025-06-20 06:47:48,692 - INFO - Ping to IP 174.231.24.195 from VM ctest-TestBasicPolicy-86591975-79618021 passed 2025-06-20 06:47:48,896 - DEBUG - Policy Update Response {"network-policy": {"uuid": "83740b54-31f5-42e3-b84f-c4e1399a220c", "href": "http://10.0.0.27:8082/network-policy/83740b54-31f5-42e3-b84f-c4e1399a220c"}} 2025-06-20 06:47:48,896 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-20 06:47:48,896 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.231.24.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-06-20 06:47:48,896 - DEBUG - ping -s 56 -c 3 -W 1 174.231.24.195 2025-06-20 06:47:52,099 - DEBUG - PING 174.231.24.195 (174.231.24.195): 56 data bytes 64 bytes from 174.231.24.195: seq=0 ttl=63 time=1.611 ms --- 174.231.24.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.611/1.611/1.611 ms 2025-06-20 06:47:52,099 - WARNING - Ping to IP 174.231.24.195 from VM ctest-TestBasicPolicy-86591975-79618021 failed 2025-06-20 06:47:52,100 - INFO - Deleting VM ctest-TestBasicPolicy-86591975-22656999 2025-06-20 06:47:52,167 - INFO - Deleting VM ctest-TestBasicPolicy-86591975-79618021 2025-06-20 06:47:52,562 - INFO - Deleted policy ctest-policy-allow-all-58790445 2025-06-20 06:47:52,562 - INFO - Deleting VN ctest-vn-14930553 2025-06-20 06:47:52,600 - DEBUG - VN 2499141c-2cf1-407a-8052-79c098ab8733 still in use: Unable to complete operation on network 2499141c-2cf1-407a-8052-79c098ab8733. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3dd2a94f-088e-4301-a2ec-f9fe754e1c83'] 2025-06-20 06:47:52,600 - WARNING - Deleting VN ctest-vn-14930553 failed..Will retry 2025-06-20 06:47:54,714 - DEBUG - Response for deleting network () 2025-06-20 06:47:54,714 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857 2025-06-20 06:47:54,724 - DEBUG - Response Code: 404 2025-06-20 06:47:54,725 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-20 06:47:54,732 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946 2025-06-20 06:47:54,787 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6 2025-06-20 06:47:54,867 - INFO - Validated that VN ctest-vn-14930553 is not found in API Server 2025-06-20 06:47:54,881 - DEBUG - VN ctest-vn-14930553 is not present in Agent 10.0.0.27 2025-06-20 06:47:54,881 - INFO - Validated that VN ctest-vn-14930553 is not in any agent 2025-06-20 06:47:54,895 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14930553 info 2025-06-20 06:47:54,895 - INFO - Deleting VN ctest-vn-01424756 2025-06-20 06:47:55,020 - DEBUG - Response for deleting network () 2025-06-20 06:47:55,021 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988 2025-06-20 06:47:55,030 - DEBUG - Response Code: 404 2025-06-20 06:47:55,030 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-20 06:47:55,036 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946 2025-06-20 06:47:55,094 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6 2025-06-20 06:47:55,165 - INFO - Validated that VN ctest-vn-01424756 is not found in API Server 2025-06-20 06:47:55,175 - DEBUG - VN ctest-vn-01424756 is not present in Agent 10.0.0.27 2025-06-20 06:47:55,175 - INFO - Validated that VN ctest-vn-01424756 is not in any agent 2025-06-20 06:47:55,191 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01424756 info 2025-06-20 06:47:55,450 - DEBUG - No XMPP flaps were noticed during the test
2025-06-20 06:47:55,450 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-06-20 06:47:55,450 - INFO - -------------------------------------------------------------------------------- 2025-06-20 06:47:56,202 - INFO - Deleted project: ctest-TestBasicPolicy-86591975, ID : 53a2a0af-9704-45d6-babf-e42b0b98add6