2025-06-26 02:12:23,654 - INFO - Domain Default found not creating 2025-06-26 02:12:23,966 - INFO - Project ctest-TestBasicPolicy-72765774 not found, creating it 2025-06-26 02:12:24,546 - INFO - Created Project:ctest-TestBasicPolicy-72765774, ID : e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24 2025-06-26 02:12:26,129 - INFO - ================================================================================ 2025-06-26 02:12:26,130 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-26 02:12:26,130 - 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-26 02:12:26,387 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-06-26 02:12:26,387 - INFO - Initial checks done. Running the testcase now 2025-06-26 02:12:26,387 - INFO - 2025-06-26 02:12:26,971 - DEBUG - Response for create_network : {'network': {'id': '7fec79af-8e0a-410b-93f0-32813989895e', 'name': 'ctest-vn-32363696', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-vn-32363696'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 02:12:27,169 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fe26c78-ddef-4de2-8ce3-4c867cc287ce', 'name': '', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'network_id': '7fec79af-8e0a-410b-93f0-32813989895e', 'ip_version': 4, 'cidr': '125.228.79.192/26', 'allocation_pools': [{'start': '125.228.79.194', 'end': '125.228.79.254'}], 'gateway_ip': '125.228.79.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.228.79.194', 'tags': [], 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24'}} 2025-06-26 02:12:27,193 - INFO - Created VN ctest-vn-32363696 2025-06-26 02:12:27,251 - DEBUG - VN ctest-vn-32363696 UUID is 7fec79af-8e0a-410b-93f0-32813989895e 2025-06-26 02:12:27,562 - DEBUG - Response for create_network : {'network': {'id': '750168ba-5b90-4366-9f00-1488a7eabcce', 'name': 'ctest-vn-24143503', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-vn-24143503'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 02:12:27,762 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b593d35f-f5f3-42c5-be2b-839e541abab8', 'name': '', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'network_id': '750168ba-5b90-4366-9f00-1488a7eabcce', 'ip_version': 4, 'cidr': '25.70.238.128/26', 'allocation_pools': [{'start': '25.70.238.130', 'end': '25.70.238.190'}], 'gateway_ip': '25.70.238.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.70.238.130', 'tags': [], 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24'}} 2025-06-26 02:12:27,788 - INFO - Created VN ctest-vn-24143503 2025-06-26 02:12:27,847 - DEBUG - VN ctest-vn-24143503 UUID is 750168ba-5b90-4366-9f00-1488a7eabcce 2025-06-26 02:12:27,995 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696, 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-72765774:ctest-vn-24143503, 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-26 02:12:28,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7fec79af-8e0a-410b-93f0-32813989895e', 'name': 'ctest-vn-32363696', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1fe26c78-ddef-4de2-8ce3-4c867cc287ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-vn-32363696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-policy-allow-all-61837932']], 'subnet_ipam': [{'subnet_cidr': '125.228.79.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-26 02:12:28,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '750168ba-5b90-4366-9f00-1488a7eabcce', 'name': 'ctest-vn-24143503', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b593d35f-f5f3-42c5-be2b-839e541abab8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-vn-24143503'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-policy-allow-all-61837932']], 'subnet_ipam': [{'subnet_cidr': '25.70.238.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-26 02:12:28,787 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-26 02:12:29,097 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-26 02:12:29,138 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520 2025-06-26 02:12:29,153 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24 2025-06-26 02:12:29,243 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e 2025-06-26 02:12:29,257 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e 2025-06-26 02:12:29,273 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe 2025-06-26 02:12:29,284 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe 2025-06-26 02:12:29,294 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4c4ff489-22f9-43d5-b47f-a0f5deae380a 2025-06-26 02:12:29,301 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-26 02:12:29,302 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e 2025-06-26 02:12:29,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe 2025-06-26 02:12:29,329 - INFO - Verified VN network id 8 for VN 7fec79af-8e0a-410b-93f0-32813989895e 2025-06-26 02:12:29,329 - INFO - Verifications in API Server for VN ctest-vn-32363696 passed 2025-06-26 02:12:29,329 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e 2025-06-26 02:12:29,340 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe 2025-06-26 02:12:29,349 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe 2025-06-26 02:12:29,358 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4c4ff489-22f9-43d5-b47f-a0f5deae380a 2025-06-26 02:12:29,374 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72765774', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9217876332229837067', 'uuid-lslong': '10660075848583448926'}, 'enable': 'true', 'created': '2025-06-26T02:12:26', 'last-modified': '2025-06-26T02:12:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087446'} 2025-06-26 02:12:29,383 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-26 02:12:29,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32363696 passed 2025-06-26 02:12:29,384 - DEBUG - ====Verifying policy data for ctest-vn-32363696 in API_Server ====== 2025-06-26 02:12:29,384 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-26 02:12:29,391 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520 2025-06-26 02:12:29,406 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24 2025-06-26 02:12:29,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e 2025-06-26 02:12:29,504 - DEBUG - ==>Verifying data for policy with id: 46c6502b-a42b-44c5-ad46-a527ec43d06e, fqn: ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-policy-allow-all-61837932'] 2025-06-26 02:12:29,504 - INFO - VN ctest-vn-32363696 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-26 02:12:29,504 - DEBUG - Verifying the vn in opserver 2025-06-26 02:12:29,504 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696 virtual network link through opserver 10.0.0.50 2025-06-26 02:12:29,504 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-06-26 02:12:29,806 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-06-26 02:12:29,872 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696?flat'} 2025-06-26 02:12:29,872 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696 is found in opserver 2025-06-26 02:12:29,887 - DEBUG - Do not have enough data to verify VN in agent 2025-06-26 02:12:29,893 - DEBUG - VRF ids for VN ctest-vn-32363696: {} 2025-06-26 02:12:29,894 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-26 02:12:29,900 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520 2025-06-26 02:12:29,914 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24 2025-06-26 02:12:29,993 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce 2025-06-26 02:12:30,009 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce 2025-06-26 02:12:30,023 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9 2025-06-26 02:12:30,033 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9 2025-06-26 02:12:30,044 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22262f95-4936-468f-a5f3-aade8df4e89f 2025-06-26 02:12:30,054 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-26 02:12:30,054 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce 2025-06-26 02:12:30,067 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9 2025-06-26 02:12:30,089 - INFO - Verified VN network id 9 for VN 750168ba-5b90-4366-9f00-1488a7eabcce 2025-06-26 02:12:30,089 - INFO - Verifications in API Server for VN ctest-vn-24143503 passed 2025-06-26 02:12:30,089 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce 2025-06-26 02:12:30,102 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9 2025-06-26 02:12:30,112 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9 2025-06-26 02:12:30,122 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22262f95-4936-468f-a5f3-aade8df4e89f 2025-06-26 02:12:30,139 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72765774', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8431135127023666022', 'uuid-lslong': '11457180029195828430'}, 'enable': 'true', 'created': '2025-06-26T02:12:27', 'last-modified': '2025-06-26T02:12:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.585369'} 2025-06-26 02:12:30,149 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-26 02:12:30,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24143503 passed 2025-06-26 02:12:30,150 - DEBUG - ====Verifying policy data for ctest-vn-24143503 in API_Server ====== 2025-06-26 02:12:30,150 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-26 02:12:30,159 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520 2025-06-26 02:12:30,179 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24 2025-06-26 02:12:30,266 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce 2025-06-26 02:12:30,282 - DEBUG - ==>Verifying data for policy with id: 46c6502b-a42b-44c5-ad46-a527ec43d06e, fqn: ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-policy-allow-all-61837932'] 2025-06-26 02:12:30,283 - INFO - VN ctest-vn-24143503 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-26 02:12:30,283 - DEBUG - Verifying the vn in opserver 2025-06-26 02:12:30,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503 virtual network link through opserver 10.0.0.50 2025-06-26 02:12:30,283 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-06-26 02:12:30,299 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503?flat'} 2025-06-26 02:12:30,299 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503 is found in opserver 2025-06-26 02:12:30,313 - DEBUG - Do not have enough data to verify VN in agent 2025-06-26 02:12:30,321 - DEBUG - VRF ids for VN ctest-vn-24143503: {} 2025-06-26 02:12:30,391 - DEBUG - Services list from nova: [, , ] 2025-06-26 02:12:31,480 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3554-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3554-1) 2025-06-26 02:12:32,862 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3554-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3554-1) 2025-06-26 02:12:32,862 - INFO - Waiting for VM ctest-TestBasicPolicy-72765774-00927996 to be up.. 2025-06-26 02:12:32,964 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-26 02:12:38,052 - DEBUG - VM is in ACTIVE state now 2025-06-26 02:12:38,053 - INFO - VM name : ctest-TestBasicPolicy-72765774-00927996 2025-06-26 02:12:38,135 - DEBUG - VM ctest-TestBasicPolicy-72765774-00927996 ID is 72f8f35c-d669-487b-9b07-1ffc1bb810a9 2025-06-26 02:12:38,154 - DEBUG - VM ctest-TestBasicPolicy-72765774-00927996 launched on Node cn-jenkins-deploy-platform-ansible-os-3554-1 2025-06-26 02:12:38,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/72f8f35c-d669-487b-9b07-1ffc1bb810a9 2025-06-26 02:12:38,241 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/d8c18b33-ba82-4f38-85a3-d081d361967b 2025-06-26 02:12:41,490 - 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 1007ms') 2025-06-26 02:12:41,490 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72765774-00927996 failed! 2025-06-26 02:12:41,547 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696 is 125.228.79.193 and allocation pool is NOT set 2025-06-26 02:12:43,609 - 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=6.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.65 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 = 2.653/4.760/6.867/2.107 ms') 2025-06-26 02:12:43,609 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72765774-00927996 passed 2025-06-26 02:12:43,763 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:12:43,763 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72765774-00927996, IP 125.228.79.195, Port 22 2025-06-26 02:12:43,819 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-06-26 02:12:43,901 - DEBUG - VM ctest-TestBasicPolicy-72765774-00927996 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-26 02:12:48,902 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:12:48,902 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72765774-00927996, IP 125.228.79.195, Port 22 2025-06-26 02:12:49,059 - DEBUG - VM ctest-TestBasicPolicy-72765774-00927996 is ready for SSH connections 2025-06-26 02:12:49,059 - INFO - Waiting for VM ctest-TestBasicPolicy-72765774-33663912 to be up.. 2025-06-26 02:12:49,149 - DEBUG - VM is in ACTIVE state now 2025-06-26 02:12:49,149 - INFO - VM name : ctest-TestBasicPolicy-72765774-33663912 2025-06-26 02:12:49,238 - DEBUG - VM ctest-TestBasicPolicy-72765774-33663912 ID is f0038b69-f12e-4682-8fd6-8726efb49345 2025-06-26 02:12:49,238 - DEBUG - VM ctest-TestBasicPolicy-72765774-33663912 launched on Node cn-jenkins-deploy-platform-ansible-os-3554-1 2025-06-26 02:12:49,316 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/f0038b69-f12e-4682-8fd6-8726efb49345 2025-06-26 02:12:49,326 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/30d9620d-3b88-4eb7-b3fb-5cc7d953fc7b 2025-06-26 02:12:50,570 - 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.57 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.422 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.422/1.996/3.570/1.574 ms') 2025-06-26 02:12:50,570 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-72765774-33663912 passed 2025-06-26 02:12:50,727 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:12:50,727 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72765774-33663912, IP 25.70.238.131, Port 22 2025-06-26 02:12:50,883 - DEBUG - VM ctest-TestBasicPolicy-72765774-33663912 is ready for SSH connections 2025-06-26 02:12:50,883 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:12:50,883 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.70.238.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-06-26 02:12:50,883 - DEBUG - ping -s 56 -c 3 -W 1 25.70.238.131 2025-06-26 02:12:54,648 - DEBUG - PING 25.70.238.131 (25.70.238.131): 56 data bytes 64 bytes from 25.70.238.131: seq=0 ttl=63 time=4.362 ms 64 bytes from 25.70.238.131: seq=1 ttl=63 time=1.235 ms 64 bytes from 25.70.238.131: seq=2 ttl=63 time=1.002 ms --- 25.70.238.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.002/2.199/4.362 ms 2025-06-26 02:12:54,648 - INFO - Ping to IP 25.70.238.131 from VM ctest-TestBasicPolicy-72765774-00927996 passed 2025-06-26 02:12:54,862 - DEBUG - Policy Update Response {"network-policy": {"uuid": "46c6502b-a42b-44c5-ad46-a527ec43d06e", "href": "http://10.0.0.50:8082/network-policy/46c6502b-a42b-44c5-ad46-a527ec43d06e"}} 2025-06-26 02:12:54,862 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:12:54,863 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.70.238.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-06-26 02:12:54,863 - DEBUG - ping -s 56 -c 3 -W 1 25.70.238.131 2025-06-26 02:12:58,084 - DEBUG - PING 25.70.238.131 (25.70.238.131): 56 data bytes 64 bytes from 25.70.238.131: seq=0 ttl=63 time=1.645 ms --- 25.70.238.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.645/1.645/1.645 ms 2025-06-26 02:12:58,084 - WARNING - Ping to IP 25.70.238.131 from VM ctest-TestBasicPolicy-72765774-00927996 failed 2025-06-26 02:12:58,084 - INFO - Deleting VM ctest-TestBasicPolicy-72765774-33663912 2025-06-26 02:12:58,166 - INFO - Deleting VM ctest-TestBasicPolicy-72765774-00927996 2025-06-26 02:12:58,603 - INFO - Deleted policy ctest-policy-allow-all-61837932 2025-06-26 02:12:58,605 - INFO - Deleting VN ctest-vn-24143503 2025-06-26 02:12:58,653 - DEBUG - VN 750168ba-5b90-4366-9f00-1488a7eabcce still in use: Unable to complete operation on network 750168ba-5b90-4366-9f00-1488a7eabcce. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ad1eecd4-6143-4a98-9160-5115cd4f3526'] 2025-06-26 02:12:58,653 - WARNING - Deleting VN ctest-vn-24143503 failed..Will retry 2025-06-26 02:13:00,792 - DEBUG - Response for deleting network () 2025-06-26 02:13:00,792 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9 2025-06-26 02:13:00,801 - DEBUG - Response Code: 404 2025-06-26 02:13:00,801 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-26 02:13:00,810 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520 2025-06-26 02:13:00,866 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24 2025-06-26 02:13:00,940 - INFO - Validated that VN ctest-vn-24143503 is not found in API Server 2025-06-26 02:13:00,953 - DEBUG - VN ctest-vn-24143503 is not present in Agent 10.0.0.50 2025-06-26 02:13:00,953 - INFO - Validated that VN ctest-vn-24143503 is not in any agent 2025-06-26 02:13:00,970 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24143503 info 2025-06-26 02:13:00,970 - INFO - Deleting VN ctest-vn-32363696 2025-06-26 02:13:01,090 - DEBUG - Response for deleting network () 2025-06-26 02:13:01,090 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe 2025-06-26 02:13:01,100 - DEBUG - Response Code: 404 2025-06-26 02:13:01,100 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-26 02:13:01,108 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520 2025-06-26 02:13:01,164 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24 2025-06-26 02:13:01,239 - INFO - Validated that VN ctest-vn-32363696 is not found in API Server 2025-06-26 02:13:01,251 - DEBUG - VN ctest-vn-32363696 is not present in Agent 10.0.0.50 2025-06-26 02:13:01,251 - INFO - Validated that VN ctest-vn-32363696 is not in any agent 2025-06-26 02:13:01,267 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32363696 info 2025-06-26 02:13:01,521 - DEBUG - No XMPP flaps were noticed during the test 2025-06-26 02:13:01,521 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-06-26 02:13:01,521 - INFO - -------------------------------------------------------------------------------- 2025-06-26 02:13:02,222 - INFO - Deleted project: ctest-TestBasicPolicy-72765774, ID : e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24