2025-05-15 11:24:54,150 - INFO - Domain Default found not creating 2025-05-15 11:24:54,329 - INFO - Project ctest-TestBasicPolicy-56924845 not found, creating it 2025-05-15 11:24:54,841 - INFO - Created Project:ctest-TestBasicPolicy-56924845, ID : e42f9875-7703-4682-8081-7b751ff7a76f 2025-05-15 11:24:56,562 - INFO - ================================================================================ 2025-05-15 11:24:56,562 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-15 11:24:56,562 - 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-05-15 11:24:56,823 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-05-15 11:24:56,823 - INFO - Initial checks done. Running the testcase now 2025-05-15 11:24:56,824 - INFO - 2025-05-15 11:24:57,490 - DEBUG - Response for create_network : {'network': {'id': '3ed658d1-d222-4633-8e53-82b35a3a853f', 'name': 'ctest-vn-31236683', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'project_id': 'e42f98757703468280817b751ff7a76f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-vn-31236683'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 11:24:57,681 - DEBUG - Response for create_subnet : {'subnet': {'id': '75dc8266-97b3-4cce-9097-957b3bf7e1e6', 'name': '', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'network_id': '3ed658d1-d222-4633-8e53-82b35a3a853f', 'ip_version': 4, 'cidr': '12.147.116.0/26', 'allocation_pools': [{'start': '12.147.116.2', 'end': '12.147.116.62'}], 'gateway_ip': '12.147.116.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.147.116.2', 'tags': [], 'project_id': 'e42f98757703468280817b751ff7a76f'}} 2025-05-15 11:24:57,704 - INFO - Created VN ctest-vn-31236683 2025-05-15 11:24:57,763 - DEBUG - VN ctest-vn-31236683 UUID is 3ed658d1-d222-4633-8e53-82b35a3a853f 2025-05-15 11:24:58,118 - DEBUG - Response for create_network : {'network': {'id': 'de89cd30-d184-4124-b488-e282c655b847', 'name': 'ctest-vn-26270913', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'project_id': 'e42f98757703468280817b751ff7a76f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-vn-26270913'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 11:24:58,310 - DEBUG - Response for create_subnet : {'subnet': {'id': '652d3cb7-4f15-4704-8684-9750137ec867', 'name': '', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'network_id': 'de89cd30-d184-4124-b488-e282c655b847', 'ip_version': 4, 'cidr': '92.175.31.0/26', 'allocation_pools': [{'start': '92.175.31.2', 'end': '92.175.31.62'}], 'gateway_ip': '92.175.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.175.31.2', 'tags': [], 'project_id': 'e42f98757703468280817b751ff7a76f'}} 2025-05-15 11:24:58,342 - INFO - Created VN ctest-vn-26270913 2025-05-15 11:24:58,399 - DEBUG - VN ctest-vn-26270913 UUID is de89cd30-d184-4124-b488-e282c655b847 2025-05-15 11:24:58,536 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683, 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-56924845:ctest-vn-26270913, 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-05-15 11:24:58,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ed658d1-d222-4633-8e53-82b35a3a853f', 'name': 'ctest-vn-31236683', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'project_id': 'e42f98757703468280817b751ff7a76f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75dc8266-97b3-4cce-9097-957b3bf7e1e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-vn-31236683'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-policy-allow-all-29609472']], 'subnet_ipam': [{'subnet_cidr': '12.147.116.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-15 11:24:59,128 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de89cd30-d184-4124-b488-e282c655b847', 'name': 'ctest-vn-26270913', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'project_id': 'e42f98757703468280817b751ff7a76f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['652d3cb7-4f15-4704-8684-9750137ec867'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-vn-26270913'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-policy-allow-all-29609472']], 'subnet_ipam': [{'subnet_cidr': '92.175.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-15 11:24:59,311 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 11:24:59,665 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 11:24:59,701 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23 2025-05-15 11:24:59,720 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f 2025-05-15 11:24:59,810 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f 2025-05-15 11:24:59,824 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f 2025-05-15 11:24:59,836 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220 2025-05-15 11:24:59,847 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220 2025-05-15 11:24:59,857 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1d5b847d-a8fe-4910-a2fa-1ea287143a76 2025-05-15 11:24:59,869 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-15 11:24:59,869 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f 2025-05-15 11:24:59,882 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220 2025-05-15 11:24:59,900 - INFO - Verified VN network id 8 for VN 3ed658d1-d222-4633-8e53-82b35a3a853f 2025-05-15 11:24:59,901 - INFO - Verifications in API Server for VN ctest-vn-31236683 passed 2025-05-15 11:24:59,901 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f 2025-05-15 11:24:59,914 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220 2025-05-15 11:24:59,924 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220 2025-05-15 11:24:59,933 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1d5b847d-a8fe-4910-a2fa-1ea287143a76 2025-05-15 11:24:59,949 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56924845', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4527904133564483123', 'uuid-lslong': '10255684483277292863'}, 'enable': 'true', 'created': '2025-05-15T11:24:57', 'last-modified': '2025-05-15T11:24:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110193'} 2025-05-15 11:24:59,957 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-15 11:24:59,957 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31236683 passed 2025-05-15 11:24:59,958 - DEBUG - ====Verifying policy data for ctest-vn-31236683 in API_Server ====== 2025-05-15 11:24:59,958 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 11:24:59,965 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23 2025-05-15 11:24:59,979 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f 2025-05-15 11:25:00,064 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f 2025-05-15 11:25:00,077 - DEBUG - ==>Verifying data for policy with id: a3f35577-a266-4385-93ec-7983822b3d6a, fqn: ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-policy-allow-all-29609472'] 2025-05-15 11:25:00,077 - INFO - VN ctest-vn-31236683 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-15 11:25:00,077 - DEBUG - Verifying the vn in opserver 2025-05-15 11:25:00,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683 virtual network link through opserver 10.0.0.50 2025-05-15 11:25:00,077 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-15 11:25:00,422 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-15 11:25:00,487 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683?flat'} 2025-05-15 11:25:00,487 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683 is found in opserver 2025-05-15 11:25:00,500 - DEBUG - Do not have enough data to verify VN in agent 2025-05-15 11:25:00,506 - DEBUG - VRF ids for VN ctest-vn-31236683: {} 2025-05-15 11:25:00,506 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 11:25:00,514 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23 2025-05-15 11:25:00,529 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f 2025-05-15 11:25:00,622 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847 2025-05-15 11:25:00,639 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847 2025-05-15 11:25:00,654 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f 2025-05-15 11:25:00,667 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f 2025-05-15 11:25:00,676 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dae7836c-4f2f-4ff2-81ec-00c70bfb02cc 2025-05-15 11:25:00,684 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-15 11:25:00,684 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847 2025-05-15 11:25:00,694 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f 2025-05-15 11:25:00,710 - INFO - Verified VN network id 9 for VN de89cd30-d184-4124-b488-e282c655b847 2025-05-15 11:25:00,710 - INFO - Verifications in API Server for VN ctest-vn-26270913 passed 2025-05-15 11:25:00,711 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847 2025-05-15 11:25:00,722 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f 2025-05-15 11:25:00,731 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f 2025-05-15 11:25:00,739 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dae7836c-4f2f-4ff2-81ec-00c70bfb02cc 2025-05-15 11:25:00,754 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56924845', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16035573557786591524', 'uuid-lslong': '13008896574960810055'}, 'enable': 'true', 'created': '2025-05-15T11:24:58', 'last-modified': '2025-05-15T11:24:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.652317'} 2025-05-15 11:25:00,762 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-15 11:25:00,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26270913 passed 2025-05-15 11:25:00,762 - DEBUG - ====Verifying policy data for ctest-vn-26270913 in API_Server ====== 2025-05-15 11:25:00,762 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 11:25:00,770 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23 2025-05-15 11:25:00,785 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f 2025-05-15 11:25:00,880 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847 2025-05-15 11:25:00,893 - DEBUG - ==>Verifying data for policy with id: a3f35577-a266-4385-93ec-7983822b3d6a, fqn: ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-policy-allow-all-29609472'] 2025-05-15 11:25:00,893 - INFO - VN ctest-vn-26270913 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-15 11:25:00,893 - DEBUG - Verifying the vn in opserver 2025-05-15 11:25:00,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913 virtual network link through opserver 10.0.0.50 2025-05-15 11:25:00,893 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-15 11:25:00,907 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913?flat'} 2025-05-15 11:25:00,907 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913 is found in opserver 2025-05-15 11:25:00,920 - DEBUG - Do not have enough data to verify VN in agent 2025-05-15 11:25:00,926 - DEBUG - VRF ids for VN ctest-vn-26270913: {} 2025-05-15 11:25:01,018 - DEBUG - Services list from nova: [, , ] 2025-05-15 11:25:02,286 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3316-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3316-1) 2025-05-15 11:25:03,902 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3316-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3316-1) 2025-05-15 11:25:03,903 - INFO - Waiting for VM ctest-TestBasicPolicy-56924845-15370730 to be up.. 2025-05-15 11:25:04,023 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-15 11:25:09,121 - DEBUG - VM is in ACTIVE state now 2025-05-15 11:25:09,121 - INFO - VM name : ctest-TestBasicPolicy-56924845-15370730 2025-05-15 11:25:09,221 - DEBUG - VM ctest-TestBasicPolicy-56924845-15370730 ID is 01b75ca3-7b7c-40a4-835e-f33c4b22849b 2025-05-15 11:25:09,249 - DEBUG - VM ctest-TestBasicPolicy-56924845-15370730 launched on Node cn-jenkins-deploy-platform-ansible-os-3316-1 2025-05-15 11:25:09,340 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/01b75ca3-7b7c-40a4-835e-f33c4b22849b 2025-05-15 11:25:09,351 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/1526734e-520e-4eeb-bd40-b134168ab73e 2025-05-15 11:25:12,564 - 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 1009ms') 2025-05-15 11:25:12,565 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56924845-15370730 failed! 2025-05-15 11:25:12,623 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683 is 12.147.116.1 and allocation pool is NOT set 2025-05-15 11:25:14,701 - 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=9.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.71 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 = 3.707/6.536/9.366/2.829 ms') 2025-05-15 11:25:14,701 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56924845-15370730 passed 2025-05-15 11:25:14,859 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 11:25:14,859 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56924845-15370730, IP 12.147.116.3, Port 22 2025-05-15 11:25:15,033 - DEBUG - VM ctest-TestBasicPolicy-56924845-15370730 is ready for SSH connections 2025-05-15 11:25:15,033 - INFO - Waiting for VM ctest-TestBasicPolicy-56924845-10156859 to be up.. 2025-05-15 11:25:15,150 - DEBUG - VM is in ACTIVE state now 2025-05-15 11:25:15,150 - INFO - VM name : ctest-TestBasicPolicy-56924845-10156859 2025-05-15 11:25:15,254 - DEBUG - VM ctest-TestBasicPolicy-56924845-10156859 ID is b52d0a90-e66b-4679-b0d3-a0709b9e679d 2025-05-15 11:25:15,254 - DEBUG - VM ctest-TestBasicPolicy-56924845-10156859 launched on Node cn-jenkins-deploy-platform-ansible-os-3316-1 2025-05-15 11:25:15,373 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/b52d0a90-e66b-4679-b0d3-a0709b9e679d 2025-05-15 11:25:15,385 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/10a135ce-d0c8-496d-ba8c-1e3a53f0a94f 2025-05-15 11:25:16,660 - 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.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.62 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 = 2.624/3.066/3.508/0.442 ms') 2025-05-15 11:25:16,661 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-56924845-10156859 passed 2025-05-15 11:25:16,819 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 11:25:16,819 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56924845-10156859, IP 92.175.31.3, Port 22 2025-05-15 11:25:16,885 - 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-05-15 11:25:16,987 - DEBUG - VM ctest-TestBasicPolicy-56924845-10156859 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-15 11:25:21,988 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 11:25:21,988 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56924845-10156859, IP 92.175.31.3, Port 22 2025-05-15 11:25:22,162 - DEBUG - VM ctest-TestBasicPolicy-56924845-10156859 is ready for SSH connections 2025-05-15 11:25:22,162 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 11:25:22,162 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.175.31.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-15 11:25:22,162 - DEBUG - ping -s 56 -c 3 -W 1 92.175.31.3 2025-05-15 11:25:26,334 - DEBUG - PING 92.175.31.3 (92.175.31.3): 56 data bytes 64 bytes from 92.175.31.3: seq=0 ttl=63 time=4.315 ms 64 bytes from 92.175.31.3: seq=1 ttl=63 time=1.435 ms 64 bytes from 92.175.31.3: seq=2 ttl=63 time=1.318 ms --- 92.175.31.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.318/2.356/4.315 ms 2025-05-15 11:25:26,334 - INFO - Ping to IP 92.175.31.3 from VM ctest-TestBasicPolicy-56924845-15370730 passed 2025-05-15 11:25:26,542 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a3f35577-a266-4385-93ec-7983822b3d6a", "href": "http://10.0.0.50:8082/network-policy/a3f35577-a266-4385-93ec-7983822b3d6a"}} 2025-05-15 11:25:26,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 11:25:26,543 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.175.31.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-15 11:25:26,543 - DEBUG - ping -s 56 -c 3 -W 1 92.175.31.3 2025-05-15 11:25:29,791 - DEBUG - PING 92.175.31.3 (92.175.31.3): 56 data bytes 64 bytes from 92.175.31.3: seq=0 ttl=63 time=1.913 ms --- 92.175.31.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.913/1.913/1.913 ms 2025-05-15 11:25:29,791 - WARNING - Ping to IP 92.175.31.3 from VM ctest-TestBasicPolicy-56924845-15370730 failed 2025-05-15 11:25:29,791 - INFO - Deleting VM ctest-TestBasicPolicy-56924845-10156859 2025-05-15 11:25:29,868 - INFO - Deleting VM ctest-TestBasicPolicy-56924845-15370730 2025-05-15 11:25:30,393 - INFO - Deleted policy ctest-policy-allow-all-29609472 2025-05-15 11:25:30,394 - INFO - Deleting VN ctest-vn-26270913 2025-05-15 11:25:30,453 - DEBUG - VN de89cd30-d184-4124-b488-e282c655b847 still in use: Unable to complete operation on network de89cd30-d184-4124-b488-e282c655b847. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8ead66bc-64c0-48e6-b9c3-21cc2bd0f362'] 2025-05-15 11:25:30,453 - WARNING - Deleting VN ctest-vn-26270913 failed..Will retry 2025-05-15 11:25:32,598 - DEBUG - Response for deleting network () 2025-05-15 11:25:32,598 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f 2025-05-15 11:25:32,607 - DEBUG - Response Code: 404 2025-05-15 11:25:32,607 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 11:25:32,614 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23 2025-05-15 11:25:32,675 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f 2025-05-15 11:25:32,755 - INFO - Validated that VN ctest-vn-26270913 is not found in API Server 2025-05-15 11:25:32,769 - DEBUG - VN ctest-vn-26270913 is not present in Agent 10.0.0.50 2025-05-15 11:25:32,769 - INFO - Validated that VN ctest-vn-26270913 is not in any agent 2025-05-15 11:25:32,788 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26270913 info 2025-05-15 11:25:32,788 - INFO - Deleting VN ctest-vn-31236683 2025-05-15 11:25:32,927 - DEBUG - Response for deleting network () 2025-05-15 11:25:32,928 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220 2025-05-15 11:25:32,939 - DEBUG - Response Code: 404 2025-05-15 11:25:32,939 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 11:25:32,945 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23 2025-05-15 11:25:33,001 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f 2025-05-15 11:25:33,096 - INFO - Validated that VN ctest-vn-31236683 is not found in API Server 2025-05-15 11:25:33,112 - DEBUG - VN ctest-vn-31236683 is not present in Agent 10.0.0.50 2025-05-15 11:25:33,112 - INFO - Validated that VN ctest-vn-31236683 is not in any agent 2025-05-15 11:25:33,132 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31236683 info 2025-05-15 11:25:33,409 - DEBUG - No XMPP flaps were noticed during the test 2025-05-15 11:25:33,409 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2025-05-15 11:25:33,409 - INFO - -------------------------------------------------------------------------------- 2025-05-15 11:25:34,476 - INFO - Deleted project: ctest-TestBasicPolicy-56924845, ID : e42f9875-7703-4682-8081-7b751ff7a76f