2025-09-13 23:17:55,774 - INFO - Domain Default found not creating 2025-09-13 23:17:55,927 - INFO - Project ctest-TestBasicPolicy-23062338 not found, creating it 2025-09-13 23:17:56,417 - INFO - Created Project:ctest-TestBasicPolicy-23062338, ID : 2ec86055-b4a3-4f0a-99ee-bb9260e33dd2 2025-09-13 23:17:57,907 - INFO - ================================================================================ 2025-09-13 23:17:57,907 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-13 23:17:57,907 - 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-09-13 23:17:58,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-13 23:17:58,160 - INFO - Initial checks done. Running the testcase now 2025-09-13 23:17:58,160 - INFO - 2025-09-13 23:17:58,707 - DEBUG - Response for create_network : {'network': {'id': '7f4ade06-1382-4e48-a349-ece5bb320f05', 'name': 'ctest-vn-60293095', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-vn-60293095'], 'port_security_enabled': True, 'description': ''}} 2025-09-13 23:17:58,898 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e12119e-9d3f-4734-806d-9504ad2ab9d6', 'name': '', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'network_id': '7f4ade06-1382-4e48-a349-ece5bb320f05', 'ip_version': 4, 'cidr': '134.81.163.64/26', 'allocation_pools': [{'start': '134.81.163.66', 'end': '134.81.163.126'}], 'gateway_ip': '134.81.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.81.163.66', 'tags': [], 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2'}} 2025-09-13 23:17:58,916 - INFO - Created VN ctest-vn-60293095 2025-09-13 23:17:58,967 - DEBUG - VN ctest-vn-60293095 UUID is 7f4ade06-1382-4e48-a349-ece5bb320f05 2025-09-13 23:17:59,242 - DEBUG - Response for create_network : {'network': {'id': '7d704fe0-8750-4afb-ad10-5e3a17604f93', 'name': 'ctest-vn-50171174', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-vn-50171174'], 'port_security_enabled': True, 'description': ''}} 2025-09-13 23:17:59,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4b23daf-8055-4e32-b2db-aecee6edaea3', 'name': '', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'network_id': '7d704fe0-8750-4afb-ad10-5e3a17604f93', 'ip_version': 4, 'cidr': '111.126.24.0/26', 'allocation_pools': [{'start': '111.126.24.2', 'end': '111.126.24.62'}], 'gateway_ip': '111.126.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.126.24.2', 'tags': [], 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2'}} 2025-09-13 23:17:59,471 - INFO - Created VN ctest-vn-50171174 2025-09-13 23:17:59,523 - DEBUG - VN ctest-vn-50171174 UUID is 7d704fe0-8750-4afb-ad10-5e3a17604f93 2025-09-13 23:17:59,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095, 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-23062338:ctest-vn-50171174, 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-09-13 23:17:59,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f4ade06-1382-4e48-a349-ece5bb320f05', 'name': 'ctest-vn-60293095', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e12119e-9d3f-4734-806d-9504ad2ab9d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-vn-60293095'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-policy-allow-all-45335632']], 'subnet_ipam': [{'subnet_cidr': '134.81.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-13 23:18:00,217 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d704fe0-8750-4afb-ad10-5e3a17604f93', 'name': 'ctest-vn-50171174', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4b23daf-8055-4e32-b2db-aecee6edaea3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-vn-50171174'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-policy-allow-all-45335632']], 'subnet_ipam': [{'subnet_cidr': '111.126.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-13 23:18:00,375 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:18:00,688 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:18:00,720 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:18:00,733 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2 2025-09-13 23:18:00,810 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05 2025-09-13 23:18:00,821 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05 2025-09-13 23:18:00,830 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a 2025-09-13 23:18:00,839 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a 2025-09-13 23:18:00,848 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bff77ee-2b6e-4945-9355-82ff76fadd15 2025-09-13 23:18:00,854 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 23:18:00,855 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05 2025-09-13 23:18:00,869 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a 2025-09-13 23:18:00,885 - INFO - Verified VN network id 11 for VN 7f4ade06-1382-4e48-a349-ece5bb320f05 2025-09-13 23:18:00,885 - INFO - Verifications in API Server for VN ctest-vn-60293095 passed 2025-09-13 23:18:00,885 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05 2025-09-13 23:18:00,896 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a 2025-09-13 23:18:00,903 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a 2025-09-13 23:18:00,913 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bff77ee-2b6e-4945-9355-82ff76fadd15 2025-09-13 23:18:00,926 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23062338', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9172387708771913288', 'uuid-lslong': '11766195972914417413'}, 'enable': 'true', 'created': '2025-09-13T23:17:58', 'last-modified': '2025-09-13T23:17:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977291'} 2025-09-13 23:18:00,933 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 23:18:00,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60293095 passed 2025-09-13 23:18:00,933 - DEBUG - ====Verifying policy data for ctest-vn-60293095 in API_Server ====== 2025-09-13 23:18:00,933 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:18:00,939 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:18:00,950 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2 2025-09-13 23:18:01,036 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05 2025-09-13 23:18:01,047 - DEBUG - ==>Verifying data for policy with id: 811a2447-d10e-4fe2-9471-f67534a9e541, fqn: ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-policy-allow-all-45335632'] 2025-09-13 23:18:01,047 - INFO - VN ctest-vn-60293095 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-13 23:18:01,047 - DEBUG - Verifying the vn in opserver 2025-09-13 23:18:01,047 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095 virtual network link through opserver 10.0.0.22 2025-09-13 23:18:01,047 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 23:18:01,357 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 23:18:01,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095?flat'} 2025-09-13 23:18:01,424 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095 is found in opserver 2025-09-13 23:18:01,435 - DEBUG - Do not have enough data to verify VN in agent 2025-09-13 23:18:01,440 - DEBUG - VRF ids for VN ctest-vn-60293095: {} 2025-09-13 23:18:01,440 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:18:01,446 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:18:01,459 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2 2025-09-13 23:18:01,540 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93 2025-09-13 23:18:01,555 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93 2025-09-13 23:18:01,567 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358 2025-09-13 23:18:01,577 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358 2025-09-13 23:18:01,585 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bad890b-5b10-4c5f-83ae-ba0c3a97b3c9 2025-09-13 23:18:01,594 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-13 23:18:01,594 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93 2025-09-13 23:18:01,604 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358 2025-09-13 23:18:01,621 - INFO - Verified VN network id 12 for VN 7d704fe0-8750-4afb-ad10-5e3a17604f93 2025-09-13 23:18:01,621 - INFO - Verifications in API Server for VN ctest-vn-50171174 passed 2025-09-13 23:18:01,621 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93 2025-09-13 23:18:01,632 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358 2025-09-13 23:18:01,642 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358 2025-09-13 23:18:01,649 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bad890b-5b10-4c5f-83ae-ba0c3a97b3c9 2025-09-13 23:18:01,661 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23062338', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9038812277894040315', 'uuid-lslong': '12470570971782205331'}, 'enable': 'true', 'created': '2025-09-13T23:17:59', 'last-modified': '2025-09-13T23:18:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.459506'} 2025-09-13 23:18:01,668 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-13 23:18:01,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50171174 passed 2025-09-13 23:18:01,668 - DEBUG - ====Verifying policy data for ctest-vn-50171174 in API_Server ====== 2025-09-13 23:18:01,668 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:18:01,674 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:18:01,686 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2 2025-09-13 23:18:01,761 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93 2025-09-13 23:18:01,772 - DEBUG - ==>Verifying data for policy with id: 811a2447-d10e-4fe2-9471-f67534a9e541, fqn: ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-policy-allow-all-45335632'] 2025-09-13 23:18:01,772 - INFO - VN ctest-vn-50171174 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-13 23:18:01,772 - DEBUG - Verifying the vn in opserver 2025-09-13 23:18:01,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174 virtual network link through opserver 10.0.0.22 2025-09-13 23:18:01,772 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 23:18:01,783 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174?flat'} 2025-09-13 23:18:01,783 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174 is found in opserver 2025-09-13 23:18:01,793 - DEBUG - Do not have enough data to verify VN in agent 2025-09-13 23:18:01,798 - DEBUG - VRF ids for VN ctest-vn-50171174: {} 2025-09-13 23:18:01,864 - DEBUG - Services list from nova: [, , ] 2025-09-13 23:18:02,913 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4105-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4105-1) 2025-09-13 23:18:04,086 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4105-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4105-1) 2025-09-13 23:18:04,086 - INFO - Waiting for VM ctest-TestBasicPolicy-23062338-01616217 to be up.. 2025-09-13 23:18:04,162 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-13 23:18:09,238 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-13 23:18:14,311 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-13 23:18:19,395 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-13 23:18:24,471 - DEBUG - VM is in ACTIVE state now 2025-09-13 23:18:24,471 - INFO - VM name : ctest-TestBasicPolicy-23062338-01616217 2025-09-13 23:18:24,546 - DEBUG - VM ctest-TestBasicPolicy-23062338-01616217 ID is 69a613c6-2ac8-4a20-88d0-16d201a0e5a0 2025-09-13 23:18:24,579 - DEBUG - VM ctest-TestBasicPolicy-23062338-01616217 launched on Node cn-jenkins-deploy-platform-ansible-os-4105-1 2025-09-13 23:18:24,662 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/69a613c6-2ac8-4a20-88d0-16d201a0e5a0 2025-09-13 23:18:24,670 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/8a98c34d-0e56-449b-8a4e-4def3429590a 2025-09-13 23:18:27,919 - 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 1006ms') 2025-09-13 23:18:27,919 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23062338-01616217 failed! 2025-09-13 23:18:27,975 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095 is 134.81.163.65 and allocation pool is NOT set 2025-09-13 23:18:30,040 - 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.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.643 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.643/3.301/5.960/2.658 ms') 2025-09-13 23:18:30,040 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23062338-01616217 passed 2025-09-13 23:18:30,195 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 23:18:30,195 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23062338-01616217, IP 134.81.163.67, Port 22 2025-09-13 23:18:30,350 - DEBUG - VM ctest-TestBasicPolicy-23062338-01616217 is ready for SSH connections 2025-09-13 23:18:30,350 - INFO - Waiting for VM ctest-TestBasicPolicy-23062338-01083795 to be up.. 2025-09-13 23:18:30,430 - DEBUG - VM is in ACTIVE state now 2025-09-13 23:18:30,430 - INFO - VM name : ctest-TestBasicPolicy-23062338-01083795 2025-09-13 23:18:30,506 - DEBUG - VM ctest-TestBasicPolicy-23062338-01083795 ID is 81e7cdd3-ddfd-46b6-ad7c-81c2dbdbc853 2025-09-13 23:18:30,507 - DEBUG - VM ctest-TestBasicPolicy-23062338-01083795 launched on Node cn-jenkins-deploy-platform-ansible-os-4105-1 2025-09-13 23:18:30,593 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/81e7cdd3-ddfd-46b6-ad7c-81c2dbdbc853 2025-09-13 23:18:30,602 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/09bac396-ecac-4f22-8636-c6cf88b06ed1 2025-09-13 23:18:31,847 - 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=8.41 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.40 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 = 1.402/4.906/8.411/3.504 ms') 2025-09-13 23:18:31,848 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-23062338-01083795 passed 2025-09-13 23:18:31,999 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 23:18:31,999 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23062338-01083795, IP 111.126.24.3, Port 22 2025-09-13 23:18:32,064 - 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-09-13 23:18:32,138 - DEBUG - VM ctest-TestBasicPolicy-23062338-01083795 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-13 23:18:37,138 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 23:18:37,139 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23062338-01083795, IP 111.126.24.3, Port 22 2025-09-13 23:18:37,305 - DEBUG - VM ctest-TestBasicPolicy-23062338-01083795 is ready for SSH connections 2025-09-13 23:18:37,305 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 23:18:37,305 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 111.126.24.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-13 23:18:37,305 - DEBUG - ping -s 56 -c 3 -W 1 111.126.24.3 2025-09-13 23:18:41,311 - DEBUG - PING 111.126.24.3 (111.126.24.3): 56 data bytes 64 bytes from 111.126.24.3: seq=0 ttl=63 time=5.190 ms 64 bytes from 111.126.24.3: seq=1 ttl=63 time=1.055 ms 64 bytes from 111.126.24.3: seq=2 ttl=63 time=1.214 ms --- 111.126.24.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.055/2.486/5.190 ms 2025-09-13 23:18:41,311 - INFO - Ping to IP 111.126.24.3 from VM ctest-TestBasicPolicy-23062338-01616217 passed 2025-09-13 23:18:41,491 - DEBUG - Policy Update Response {"network-policy": {"uuid": "811a2447-d10e-4fe2-9471-f67534a9e541", "href": "http://10.0.0.22:8082/network-policy/811a2447-d10e-4fe2-9471-f67534a9e541"}} 2025-09-13 23:18:41,491 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 23:18:41,491 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 111.126.24.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-13 23:18:41,491 - DEBUG - ping -s 56 -c 3 -W 1 111.126.24.3 2025-09-13 23:18:44,705 - DEBUG - PING 111.126.24.3 (111.126.24.3): 56 data bytes --- 111.126.24.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-13 23:18:44,705 - WARNING - Ping to IP 111.126.24.3 from VM ctest-TestBasicPolicy-23062338-01616217 failed 2025-09-13 23:18:44,706 - INFO - Deleting VM ctest-TestBasicPolicy-23062338-01083795 2025-09-13 23:18:44,771 - INFO - Deleting VM ctest-TestBasicPolicy-23062338-01616217 2025-09-13 23:18:45,162 - INFO - Deleted policy ctest-policy-allow-all-45335632 2025-09-13 23:18:45,163 - INFO - Deleting VN ctest-vn-50171174 2025-09-13 23:18:45,195 - DEBUG - VN 7d704fe0-8750-4afb-ad10-5e3a17604f93 still in use: Unable to complete operation on network 7d704fe0-8750-4afb-ad10-5e3a17604f93. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bd29d8c0-047b-4d26-a72b-1a41fe140d0d'] 2025-09-13 23:18:45,195 - WARNING - Deleting VN ctest-vn-50171174 failed..Will retry 2025-09-13 23:18:47,296 - DEBUG - Response for deleting network () 2025-09-13 23:18:47,296 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358 2025-09-13 23:18:47,303 - DEBUG - Response Code: 404 2025-09-13 23:18:47,303 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:18:47,309 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:18:47,367 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2 2025-09-13 23:18:47,446 - INFO - Validated that VN ctest-vn-50171174 is not found in API Server 2025-09-13 23:18:47,456 - DEBUG - VN ctest-vn-50171174 is not present in Agent 10.0.0.22 2025-09-13 23:18:47,456 - INFO - Validated that VN ctest-vn-50171174 is not in any agent 2025-09-13 23:18:47,471 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50171174 info 2025-09-13 23:18:47,471 - INFO - Deleting VN ctest-vn-60293095 2025-09-13 23:18:47,580 - DEBUG - Response for deleting network () 2025-09-13 23:18:47,580 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a 2025-09-13 23:18:47,591 - DEBUG - Response Code: 404 2025-09-13 23:18:47,591 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:18:47,596 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:18:47,648 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2 2025-09-13 23:18:47,718 - INFO - Validated that VN ctest-vn-60293095 is not found in API Server 2025-09-13 23:18:47,727 - DEBUG - VN ctest-vn-60293095 is not present in Agent 10.0.0.22 2025-09-13 23:18:47,727 - INFO - Validated that VN ctest-vn-60293095 is not in any agent 2025-09-13 23:18:47,740 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60293095 info 2025-09-13 23:18:47,999 - DEBUG - No XMPP flaps were noticed during the test
2025-09-13 23:18:47,999 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:50]
2025-09-13 23:18:47,999 - INFO - -------------------------------------------------------------------------------- 2025-09-13 23:18:48,726 - INFO - Deleted project: ctest-TestBasicPolicy-23062338, ID : 2ec86055-b4a3-4f0a-99ee-bb9260e33dd2