2025-03-24 02:17:31,298 - INFO - Domain Default found not creating 2025-03-24 02:17:31,429 - INFO - Project ctest-TestBasicPolicy-42935498 not found, creating it 2025-03-24 02:17:31,867 - INFO - Created Project:ctest-TestBasicPolicy-42935498, ID : cb6be8dd-5a98-4bbe-b240-631f6d7cf858 2025-03-24 02:17:33,255 - INFO - ================================================================================ 2025-03-24 02:17:33,255 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-24 02:17:33,255 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-03-24 02:17:33,511 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.6': '0'}} with 2025-03-24 02:17:33,511 - INFO - Initial checks done. Running the testcase now 2025-03-24 02:17:33,511 - INFO - 2025-03-24 02:17:34,049 - DEBUG - Response for create_network : {'network': {'id': 'c0032af3-fe7f-403b-81a6-434bd95b2330', 'name': 'ctest-vn-64903796', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-vn-64903796'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 02:17:34,253 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb64b455-922e-4815-9bed-2d66e62fa43a', 'name': '', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'network_id': 'c0032af3-fe7f-403b-81a6-434bd95b2330', 'ip_version': 4, 'cidr': '111.253.234.128/26', 'allocation_pools': [{'start': '111.253.234.130', 'end': '111.253.234.190'}], 'gateway_ip': '111.253.234.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.253.234.130', 'tags': [], 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858'}} 2025-03-24 02:17:34,272 - INFO - Created VN ctest-vn-64903796 2025-03-24 02:17:34,325 - DEBUG - VN ctest-vn-64903796 UUID is c0032af3-fe7f-403b-81a6-434bd95b2330 2025-03-24 02:17:34,647 - DEBUG - Response for create_network : {'network': {'id': 'f1aa6038-10d2-4af1-9137-04773399a1bf', 'name': 'ctest-vn-52880648', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-vn-52880648'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 02:17:34,797 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d42aff8-30eb-4af9-950c-c859c8c5a9ef', 'name': '', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'network_id': 'f1aa6038-10d2-4af1-9137-04773399a1bf', 'ip_version': 4, 'cidr': '210.244.222.192/26', 'allocation_pools': [{'start': '210.244.222.194', 'end': '210.244.222.254'}], 'gateway_ip': '210.244.222.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.244.222.194', 'tags': [], 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858'}} 2025-03-24 02:17:34,814 - INFO - Created VN ctest-vn-52880648 2025-03-24 02:17:34,865 - DEBUG - VN ctest-vn-52880648 UUID is f1aa6038-10d2-4af1-9137-04773399a1bf 2025-03-24 02:17:35,013 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796, 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-42935498:ctest-vn-52880648, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-03-24 02:17:35,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0032af3-fe7f-403b-81a6-434bd95b2330', 'name': 'ctest-vn-64903796', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb64b455-922e-4815-9bed-2d66e62fa43a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-vn-64903796'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-policy-allow-all-20648036']], 'subnet_ipam': [{'subnet_cidr': '111.253.234.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-24 02:17:35,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1aa6038-10d2-4af1-9137-04773399a1bf', 'name': 'ctest-vn-52880648', 'tenant_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'project_id': 'cb6be8dd5a984bbeb240631f6d7cf858', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d42aff8-30eb-4af9-950c-c859c8c5a9ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-vn-52880648'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-policy-allow-all-20648036']], 'subnet_ipam': [{'subnet_cidr': '210.244.222.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-24 02:17:35,681 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-24 02:17:35,979 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-24 02:17:36,008 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9 2025-03-24 02:17:36,021 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858 2025-03-24 02:17:36,097 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330 2025-03-24 02:17:36,109 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330 2025-03-24 02:17:36,117 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383 2025-03-24 02:17:36,124 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383 2025-03-24 02:17:36,131 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/7801e1e1-8f1a-425b-9819-b7d8573ba6fb 2025-03-24 02:17:36,137 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-24 02:17:36,137 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330 2025-03-24 02:17:36,146 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383 2025-03-24 02:17:36,159 - INFO - Verified VN network id 8 for VN c0032af3-fe7f-403b-81a6-434bd95b2330 2025-03-24 02:17:36,159 - INFO - Verifications in API Server for VN ctest-vn-64903796 passed 2025-03-24 02:17:36,160 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330 2025-03-24 02:17:36,168 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383 2025-03-24 02:17:36,176 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383 2025-03-24 02:17:36,182 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/7801e1e1-8f1a-425b-9819-b7d8573ba6fb 2025-03-24 02:17:36,195 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42935498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13835949707647467579', 'uuid-lslong': '9342228470074909488'}, 'enable': 'true', 'created': '2025-03-24T02:17:34', 'last-modified': '2025-03-24T02:17:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913770'} 2025-03-24 02:17:36,201 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-24 02:17:36,201 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64903796 passed 2025-03-24 02:17:36,201 - DEBUG - ====Verifying policy data for ctest-vn-64903796 in API_Server ====== 2025-03-24 02:17:36,201 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-24 02:17:36,206 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9 2025-03-24 02:17:36,216 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858 2025-03-24 02:17:36,292 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c0032af3-fe7f-403b-81a6-434bd95b2330 2025-03-24 02:17:36,302 - DEBUG - ==>Verifying data for policy with id: 25c1a1a8-d500-429f-ac4a-a3f67f248304, fqn: ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-policy-allow-all-20648036'] 2025-03-24 02:17:36,302 - INFO - VN ctest-vn-64903796 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-24 02:17:36,302 - DEBUG - Verifying the vn in opserver 2025-03-24 02:17:36,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796 virtual network link through opserver 10.0.0.34 2025-03-24 02:17:36,302 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-03-24 02:17:36,602 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-03-24 02:17:36,655 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796?flat'} 2025-03-24 02:17:36,656 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796 is found in opserver 2025-03-24 02:17:36,666 - DEBUG - Do not have enough data to verify VN in agent 2025-03-24 02:17:36,670 - DEBUG - VRF ids for VN ctest-vn-64903796: {} 2025-03-24 02:17:36,670 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-24 02:17:36,676 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9 2025-03-24 02:17:36,687 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858 2025-03-24 02:17:36,761 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf 2025-03-24 02:17:36,772 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf 2025-03-24 02:17:36,782 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348 2025-03-24 02:17:36,789 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348 2025-03-24 02:17:36,796 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/68c69be0-e1aa-4b09-9976-a19f3b50b664 2025-03-24 02:17:36,802 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-24 02:17:36,802 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf 2025-03-24 02:17:36,812 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348 2025-03-24 02:17:36,827 - INFO - Verified VN network id 9 for VN f1aa6038-10d2-4af1-9137-04773399a1bf 2025-03-24 02:17:36,827 - INFO - Verifications in API Server for VN ctest-vn-52880648 passed 2025-03-24 02:17:36,827 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf 2025-03-24 02:17:36,839 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348 2025-03-24 02:17:36,847 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348 2025-03-24 02:17:36,854 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/68c69be0-e1aa-4b09-9976-a19f3b50b664 2025-03-24 02:17:36,865 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42935498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17413836703098096369', 'uuid-lslong': '10463837169231962559'}, 'enable': 'true', 'created': '2025-03-24T02:17:34', 'last-modified': '2025-03-24T02:17:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.360053'} 2025-03-24 02:17:36,872 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-24 02:17:36,872 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52880648 passed 2025-03-24 02:17:36,872 - DEBUG - ====Verifying policy data for ctest-vn-52880648 in API_Server ====== 2025-03-24 02:17:36,872 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-24 02:17:36,879 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9 2025-03-24 02:17:36,890 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858 2025-03-24 02:17:36,962 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f1aa6038-10d2-4af1-9137-04773399a1bf 2025-03-24 02:17:36,973 - DEBUG - ==>Verifying data for policy with id: 25c1a1a8-d500-429f-ac4a-a3f67f248304, fqn: ['default-domain', 'ctest-TestBasicPolicy-42935498', 'ctest-policy-allow-all-20648036'] 2025-03-24 02:17:36,973 - INFO - VN ctest-vn-52880648 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-24 02:17:36,973 - DEBUG - Verifying the vn in opserver 2025-03-24 02:17:36,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648 virtual network link through opserver 10.0.0.34 2025-03-24 02:17:36,973 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-03-24 02:17:36,983 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648?flat'} 2025-03-24 02:17:36,983 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-52880648 is found in opserver 2025-03-24 02:17:36,995 - DEBUG - Do not have enough data to verify VN in agent 2025-03-24 02:17:37,000 - DEBUG - VRF ids for VN ctest-vn-52880648: {} 2025-03-24 02:17:37,057 - DEBUG - Services list from nova: [, , ] 2025-03-24 02:17:38,129 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2941-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2941-1) 2025-03-24 02:17:39,228 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2941-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2941-1) 2025-03-24 02:17:39,228 - INFO - Waiting for VM ctest-TestBasicPolicy-42935498-13987607 to be up.. 2025-03-24 02:17:39,309 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-24 02:17:44,382 - DEBUG - VM is in ACTIVE state now 2025-03-24 02:17:44,382 - INFO - VM name : ctest-TestBasicPolicy-42935498-13987607 2025-03-24 02:17:44,458 - DEBUG - VM ctest-TestBasicPolicy-42935498-13987607 ID is 135d1c1b-9163-44d0-9554-aa52828c8ce4 2025-03-24 02:17:44,477 - DEBUG - VM ctest-TestBasicPolicy-42935498-13987607 launched on Node cn-jenkins-deploy-platform-ansible-os-2941-1 2025-03-24 02:17:44,544 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/135d1c1b-9163-44d0-9554-aa52828c8ce4 2025-03-24 02:17:44,552 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/6dfd965d-b11f-4c76-83de-d74bc86813da 2025-03-24 02:17:47,827 - 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 1034ms') 2025-03-24 02:17:47,827 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42935498-13987607 failed! 2025-03-24 02:17:47,881 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42935498:ctest-vn-64903796 is 111.253.234.129 and allocation pool is NOT set 2025-03-24 02:17:49,941 - 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=2.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.573 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.573/1.720/2.867/1.147 ms') 2025-03-24 02:17:49,941 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42935498-13987607 passed 2025-03-24 02:17:50,089 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 02:17:50,089 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42935498-13987607, IP 111.253.234.131, Port 22 2025-03-24 02:17:50,249 - DEBUG - VM ctest-TestBasicPolicy-42935498-13987607 is ready for SSH connections 2025-03-24 02:17:50,249 - INFO - Waiting for VM ctest-TestBasicPolicy-42935498-73336025 to be up.. 2025-03-24 02:17:50,319 - DEBUG - VM is in ACTIVE state now 2025-03-24 02:17:50,319 - INFO - VM name : ctest-TestBasicPolicy-42935498-73336025 2025-03-24 02:17:50,387 - DEBUG - VM ctest-TestBasicPolicy-42935498-73336025 ID is 3ef86fc1-5e65-4b81-896c-23b3731ad9f3 2025-03-24 02:17:50,387 - DEBUG - VM ctest-TestBasicPolicy-42935498-73336025 launched on Node cn-jenkins-deploy-platform-ansible-os-2941-1 2025-03-24 02:17:50,458 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/3ef86fc1-5e65-4b81-896c-23b3731ad9f3 2025-03-24 02:17:50,466 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/915b5ae8-2d40-4203-b1c0-8935838ce390 2025-03-24 02:17:51,703 - 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.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.642 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.642/2.078/3.515/1.436 ms') 2025-03-24 02:17:51,703 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-42935498-73336025 passed 2025-03-24 02:17:51,858 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 02:17:51,858 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42935498-73336025, IP 210.244.222.195, Port 22 2025-03-24 02:17:52,021 - DEBUG - VM ctest-TestBasicPolicy-42935498-73336025 is ready for SSH connections 2025-03-24 02:17:52,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 02:17:52,021 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 210.244.222.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-03-24 02:17:52,022 - DEBUG - ping -s 56 -c 3 -W 1 210.244.222.195 2025-03-24 02:17:55,704 - DEBUG - PING 210.244.222.195 (210.244.222.195): 56 data bytes 64 bytes from 210.244.222.195: seq=0 ttl=63 time=3.612 ms 64 bytes from 210.244.222.195: seq=1 ttl=63 time=1.118 ms 64 bytes from 210.244.222.195: seq=2 ttl=63 time=0.798 ms --- 210.244.222.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.798/1.842/3.612 ms 2025-03-24 02:17:55,705 - INFO - Ping to IP 210.244.222.195 from VM ctest-TestBasicPolicy-42935498-13987607 passed 2025-03-24 02:17:55,885 - DEBUG - Policy Update Response {"network-policy": {"uuid": "25c1a1a8-d500-429f-ac4a-a3f67f248304", "href": "http://10.0.0.34:8082/network-policy/25c1a1a8-d500-429f-ac4a-a3f67f248304"}} 2025-03-24 02:17:55,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 02:17:55,885 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 210.244.222.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-03-24 02:17:55,886 - DEBUG - ping -s 56 -c 3 -W 1 210.244.222.195 2025-03-24 02:17:59,089 - DEBUG - PING 210.244.222.195 (210.244.222.195): 56 data bytes --- 210.244.222.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-24 02:17:59,089 - WARNING - Ping to IP 210.244.222.195 from VM ctest-TestBasicPolicy-42935498-13987607 failed 2025-03-24 02:17:59,089 - INFO - Deleting VM ctest-TestBasicPolicy-42935498-73336025 2025-03-24 02:17:59,157 - INFO - Deleting VM ctest-TestBasicPolicy-42935498-13987607 2025-03-24 02:17:59,535 - INFO - Deleted policy ctest-policy-allow-all-20648036 2025-03-24 02:17:59,535 - INFO - Deleting VN ctest-vn-52880648 2025-03-24 02:17:59,569 - DEBUG - VN f1aa6038-10d2-4af1-9137-04773399a1bf still in use: Unable to complete operation on network f1aa6038-10d2-4af1-9137-04773399a1bf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-aebe5c43-96ab-4449-b021-83588ad06531'] 2025-03-24 02:17:59,569 - WARNING - Deleting VN ctest-vn-52880648 failed..Will retry 2025-03-24 02:18:01,675 - DEBUG - Response for deleting network () 2025-03-24 02:18:01,675 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/430e8a6a-e8cc-4e20-bdd7-82b366de4348 2025-03-24 02:18:01,683 - DEBUG - Response Code: 404 2025-03-24 02:18:01,683 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-24 02:18:01,691 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9 2025-03-24 02:18:01,748 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858 2025-03-24 02:18:01,823 - INFO - Validated that VN ctest-vn-52880648 is not found in API Server 2025-03-24 02:18:01,833 - DEBUG - VN ctest-vn-52880648 is not present in Agent 10.0.0.34 2025-03-24 02:18:01,833 - INFO - Validated that VN ctest-vn-52880648 is not in any agent 2025-03-24 02:18:01,851 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52880648 info 2025-03-24 02:18:01,851 - INFO - Deleting VN ctest-vn-64903796 2025-03-24 02:18:01,963 - DEBUG - Response for deleting network () 2025-03-24 02:18:01,963 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/9519f284-8a69-47aa-ad6d-f4482a535383 2025-03-24 02:18:01,971 - DEBUG - Response Code: 404 2025-03-24 02:18:01,972 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-24 02:18:01,978 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6fd2423e-7d6c-4b9d-9d59-98ad1ee790e9 2025-03-24 02:18:02,031 - DEBUG - Requesting: http://10.0.0.34:8082/project/cb6be8dd-5a98-4bbe-b240-631f6d7cf858 2025-03-24 02:18:02,105 - INFO - Validated that VN ctest-vn-64903796 is not found in API Server 2025-03-24 02:18:02,116 - DEBUG - VN ctest-vn-64903796 is not present in Agent 10.0.0.34 2025-03-24 02:18:02,116 - INFO - Validated that VN ctest-vn-64903796 is not in any agent 2025-03-24 02:18:02,131 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64903796 info 2025-03-24 02:18:02,383 - DEBUG - No XMPP flaps were noticed during the test
2025-03-24 02:18:02,383 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-03-24 02:18:02,384 - INFO - -------------------------------------------------------------------------------- 2025-03-24 02:18:03,049 - INFO - Deleted project: ctest-TestBasicPolicy-42935498, ID : cb6be8dd-5a98-4bbe-b240-631f6d7cf858