2025-03-20 02:21:18,097 - INFO - Domain Default found not creating 2025-03-20 02:21:18,254 - INFO - Project ctest-TestBasicPolicy-77966589 not found, creating it 2025-03-20 02:21:18,690 - INFO - Created Project:ctest-TestBasicPolicy-77966589, ID : cc6ca59d-94f2-493a-9c46-a2b93ebd818a 2025-03-20 02:21:20,065 - INFO - ================================================================================ 2025-03-20 02:21:20,065 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-20 02:21:20,065 - 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-20 02:21:20,324 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.30': '0'}} with 2025-03-20 02:21:20,324 - INFO - Initial checks done. Running the testcase now 2025-03-20 02:21:20,324 - INFO - 2025-03-20 02:21:20,857 - DEBUG - Response for create_network : {'network': {'id': 'b60f4d81-1c28-4b15-92c7-fff4c96c256f', 'name': 'ctest-vn-99711706', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-vn-99711706'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:21:21,006 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6e23889-119b-4765-b3a6-e831054b6b1e', 'name': '', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'network_id': 'b60f4d81-1c28-4b15-92c7-fff4c96c256f', 'ip_version': 4, 'cidr': '111.98.67.0/26', 'allocation_pools': [{'start': '111.98.67.2', 'end': '111.98.67.62'}], 'gateway_ip': '111.98.67.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.98.67.2', 'tags': [], 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a'}} 2025-03-20 02:21:21,022 - INFO - Created VN ctest-vn-99711706 2025-03-20 02:21:21,073 - DEBUG - VN ctest-vn-99711706 UUID is b60f4d81-1c28-4b15-92c7-fff4c96c256f 2025-03-20 02:21:21,348 - DEBUG - Response for create_network : {'network': {'id': '871d9d4d-51e8-466a-90a3-2edbdbbc3223', 'name': 'ctest-vn-76141302', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-vn-76141302'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:21:21,575 - DEBUG - Response for create_subnet : {'subnet': {'id': '1209e2d7-174c-4e15-aac1-a63c41d694b7', 'name': '', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'network_id': '871d9d4d-51e8-466a-90a3-2edbdbbc3223', 'ip_version': 4, 'cidr': '12.222.218.64/26', 'allocation_pools': [{'start': '12.222.218.66', 'end': '12.222.218.126'}], 'gateway_ip': '12.222.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.222.218.66', 'tags': [], 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a'}} 2025-03-20 02:21:21,593 - INFO - Created VN ctest-vn-76141302 2025-03-20 02:21:21,645 - DEBUG - VN ctest-vn-76141302 UUID is 871d9d4d-51e8-466a-90a3-2edbdbbc3223 2025-03-20 02:21:21,793 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706, 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-77966589:ctest-vn-76141302, 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-20 02:21:22,100 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b60f4d81-1c28-4b15-92c7-fff4c96c256f', 'name': 'ctest-vn-99711706', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6e23889-119b-4765-b3a6-e831054b6b1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-vn-99711706'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-policy-allow-all-05273521']], 'subnet_ipam': [{'subnet_cidr': '111.98.67.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:21:22,328 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '871d9d4d-51e8-466a-90a3-2edbdbbc3223', 'name': 'ctest-vn-76141302', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1209e2d7-174c-4e15-aac1-a63c41d694b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-vn-76141302'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-policy-allow-all-05273521']], 'subnet_ipam': [{'subnet_cidr': '12.222.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:21:22,481 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-20 02:21:22,786 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-20 02:21:22,811 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663 2025-03-20 02:21:22,823 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a 2025-03-20 02:21:22,899 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f 2025-03-20 02:21:22,909 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f 2025-03-20 02:21:22,918 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a 2025-03-20 02:21:22,924 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a 2025-03-20 02:21:22,930 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4c20d516-47bf-4c9f-bafc-f37db73090f2 2025-03-20 02:21:22,936 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-20 02:21:22,936 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f 2025-03-20 02:21:22,945 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a 2025-03-20 02:21:22,960 - INFO - Verified VN network id 9 for VN b60f4d81-1c28-4b15-92c7-fff4c96c256f 2025-03-20 02:21:22,960 - INFO - Verifications in API Server for VN ctest-vn-99711706 passed 2025-03-20 02:21:22,960 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f 2025-03-20 02:21:22,970 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a 2025-03-20 02:21:22,977 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a 2025-03-20 02:21:22,985 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4c20d516-47bf-4c9f-bafc-f37db73090f2 2025-03-20 02:21:22,999 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77966589', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13118789456472066837', 'uuid-lslong': '10576703676719310191'}, 'enable': 'true', 'created': '2025-03-20T02:21:20', 'last-modified': '2025-03-20T02:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.925974'} 2025-03-20 02:21:23,006 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-20 02:21:23,006 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99711706 passed 2025-03-20 02:21:23,006 - DEBUG - ====Verifying policy data for ctest-vn-99711706 in API_Server ====== 2025-03-20 02:21:23,006 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-20 02:21:23,012 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663 2025-03-20 02:21:23,026 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a 2025-03-20 02:21:23,095 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f 2025-03-20 02:21:23,104 - DEBUG - ==>Verifying data for policy with id: 9d4a68b2-ac7f-40a6-b74a-2a1606b5ad23, fqn: ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-policy-allow-all-05273521'] 2025-03-20 02:21:23,105 - INFO - VN ctest-vn-99711706 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-20 02:21:23,105 - DEBUG - Verifying the vn in opserver 2025-03-20 02:21:23,105 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706 virtual network link through opserver 10.0.0.33 2025-03-20 02:21:23,105 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-20 02:21:23,398 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-20 02:21:23,445 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706?flat'} 2025-03-20 02:21:23,446 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706 is found in opserver 2025-03-20 02:21:23,456 - DEBUG - Do not have enough data to verify VN in agent 2025-03-20 02:21:23,460 - DEBUG - VRF ids for VN ctest-vn-99711706: {} 2025-03-20 02:21:23,461 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-20 02:21:23,466 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663 2025-03-20 02:21:23,477 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a 2025-03-20 02:21:23,547 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223 2025-03-20 02:21:23,561 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223 2025-03-20 02:21:23,572 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22 2025-03-20 02:21:23,579 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22 2025-03-20 02:21:23,585 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7415e541-92da-492a-adaf-030350787d15 2025-03-20 02:21:23,590 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 02:21:23,590 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223 2025-03-20 02:21:23,599 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22 2025-03-20 02:21:23,610 - INFO - Verified VN network id 10 for VN 871d9d4d-51e8-466a-90a3-2edbdbbc3223 2025-03-20 02:21:23,611 - INFO - Verifications in API Server for VN ctest-vn-76141302 passed 2025-03-20 02:21:23,611 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223 2025-03-20 02:21:23,620 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22 2025-03-20 02:21:23,626 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22 2025-03-20 02:21:23,632 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7415e541-92da-492a-adaf-030350787d15 2025-03-20 02:21:23,643 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77966589', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9736110924857099882', 'uuid-lslong': '10422225484484719139'}, 'enable': 'true', 'created': '2025-03-20T02:21:21', 'last-modified': '2025-03-20T02:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333850'} 2025-03-20 02:21:23,649 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 02:21:23,650 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76141302 passed 2025-03-20 02:21:23,650 - DEBUG - ====Verifying policy data for ctest-vn-76141302 in API_Server ====== 2025-03-20 02:21:23,650 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-20 02:21:23,655 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663 2025-03-20 02:21:23,666 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a 2025-03-20 02:21:23,735 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223 2025-03-20 02:21:23,745 - DEBUG - ==>Verifying data for policy with id: 9d4a68b2-ac7f-40a6-b74a-2a1606b5ad23, fqn: ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-policy-allow-all-05273521'] 2025-03-20 02:21:23,745 - INFO - VN ctest-vn-76141302 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-20 02:21:23,745 - DEBUG - Verifying the vn in opserver 2025-03-20 02:21:23,745 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302 virtual network link through opserver 10.0.0.33 2025-03-20 02:21:23,745 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-20 02:21:23,755 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302?flat'} 2025-03-20 02:21:23,755 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302 is found in opserver 2025-03-20 02:21:23,765 - DEBUG - Do not have enough data to verify VN in agent 2025-03-20 02:21:23,770 - DEBUG - VRF ids for VN ctest-vn-76141302: {} 2025-03-20 02:21:23,822 - DEBUG - Services list from nova: [, , ] 2025-03-20 02:21:24,817 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2926-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2926-1) 2025-03-20 02:21:25,959 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2926-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2926-1) 2025-03-20 02:21:25,959 - INFO - Waiting for VM ctest-TestBasicPolicy-77966589-91970709 to be up.. 2025-03-20 02:21:26,028 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-20 02:21:31,101 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:21:31,101 - INFO - VM name : ctest-TestBasicPolicy-77966589-91970709 2025-03-20 02:21:31,176 - DEBUG - VM ctest-TestBasicPolicy-77966589-91970709 ID is 85917d2a-3e61-4805-8b04-054b25f2a4b5 2025-03-20 02:21:31,195 - DEBUG - VM ctest-TestBasicPolicy-77966589-91970709 launched on Node cn-jenkins-deploy-platform-ansible-os-2926-1 2025-03-20 02:21:31,263 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/85917d2a-3e61-4805-8b04-054b25f2a4b5 2025-03-20 02:21:31,271 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/06bbffca-5441-4f09-af51-9135743e2888 2025-03-20 02:21:34,540 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1028ms') 2025-03-20 02:21:34,540 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77966589-91970709 failed! 2025-03-20 02:21:34,593 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706 is 111.98.67.1 and allocation pool is NOT set 2025-03-20 02:21:36,656 - 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=4.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.684 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.684/2.512/4.340/1.828 ms') 2025-03-20 02:21:36,656 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77966589-91970709 passed 2025-03-20 02:21:36,805 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:36,805 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77966589-91970709, IP 111.98.67.3, Port 22 2025-03-20 02:21:36,956 - DEBUG - VM ctest-TestBasicPolicy-77966589-91970709 is ready for SSH connections 2025-03-20 02:21:36,956 - INFO - Waiting for VM ctest-TestBasicPolicy-77966589-86246730 to be up.. 2025-03-20 02:21:37,025 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:21:37,025 - INFO - VM name : ctest-TestBasicPolicy-77966589-86246730 2025-03-20 02:21:37,089 - DEBUG - VM ctest-TestBasicPolicy-77966589-86246730 ID is 55c5bb1e-4c02-4faa-8b69-4cc9c60d1d63 2025-03-20 02:21:37,089 - DEBUG - VM ctest-TestBasicPolicy-77966589-86246730 launched on Node cn-jenkins-deploy-platform-ansible-os-2926-1 2025-03-20 02:21:37,157 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/55c5bb1e-4c02-4faa-8b69-4cc9c60d1d63 2025-03-20 02:21:37,166 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/24d1a7d5-e132-4515-98a2-c802ac6b41ca 2025-03-20 02:21:38,393 - 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=2.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.344 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.344/1.561/2.778/1.217 ms') 2025-03-20 02:21:38,393 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-77966589-86246730 passed 2025-03-20 02:21:38,541 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:38,541 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77966589-86246730, IP 12.222.218.67, Port 22 2025-03-20 02:21:38,692 - DEBUG - VM ctest-TestBasicPolicy-77966589-86246730 is ready for SSH connections 2025-03-20 02:21:38,692 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:38,692 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.222.218.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-20 02:21:38,692 - DEBUG - ping -s 56 -c 3 -W 1 12.222.218.67 2025-03-20 02:21:42,629 - DEBUG - PING 12.222.218.67 (12.222.218.67): 56 data bytes 64 bytes from 12.222.218.67: seq=0 ttl=63 time=3.176 ms 64 bytes from 12.222.218.67: seq=1 ttl=63 time=0.710 ms 64 bytes from 12.222.218.67: seq=2 ttl=63 time=0.721 ms --- 12.222.218.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.710/1.535/3.176 ms 2025-03-20 02:21:42,629 - INFO - Ping to IP 12.222.218.67 from VM ctest-TestBasicPolicy-77966589-91970709 passed 2025-03-20 02:21:42,809 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9d4a68b2-ac7f-40a6-b74a-2a1606b5ad23", "href": "http://10.0.0.33:8082/network-policy/9d4a68b2-ac7f-40a6-b74a-2a1606b5ad23"}} 2025-03-20 02:21:42,809 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:42,809 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.222.218.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-20 02:21:42,809 - DEBUG - ping -s 56 -c 3 -W 1 12.222.218.67 2025-03-20 02:21:46,017 - DEBUG - PING 12.222.218.67 (12.222.218.67): 56 data bytes --- 12.222.218.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-20 02:21:46,018 - WARNING - Ping to IP 12.222.218.67 from VM ctest-TestBasicPolicy-77966589-91970709 failed 2025-03-20 02:21:46,018 - INFO - Deleting VM ctest-TestBasicPolicy-77966589-86246730 2025-03-20 02:21:46,079 - INFO - Deleting VM ctest-TestBasicPolicy-77966589-91970709 2025-03-20 02:21:46,433 - INFO - Deleted policy ctest-policy-allow-all-05273521 2025-03-20 02:21:46,434 - INFO - Deleting VN ctest-vn-76141302 2025-03-20 02:21:46,468 - DEBUG - VN 871d9d4d-51e8-466a-90a3-2edbdbbc3223 still in use: Unable to complete operation on network 871d9d4d-51e8-466a-90a3-2edbdbbc3223. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c310dae0-6405-4cc2-b578-d9217c035fcc'] 2025-03-20 02:21:46,468 - WARNING - Deleting VN ctest-vn-76141302 failed..Will retry 2025-03-20 02:21:48,590 - DEBUG - Response for deleting network () 2025-03-20 02:21:48,590 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22 2025-03-20 02:21:48,598 - DEBUG - Response Code: 404 2025-03-20 02:21:48,598 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-20 02:21:48,604 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663 2025-03-20 02:21:48,659 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a 2025-03-20 02:21:48,732 - INFO - Validated that VN ctest-vn-76141302 is not found in API Server 2025-03-20 02:21:48,743 - DEBUG - VN ctest-vn-76141302 is not present in Agent 10.0.0.33 2025-03-20 02:21:48,743 - INFO - Validated that VN ctest-vn-76141302 is not in any agent 2025-03-20 02:21:48,757 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76141302 info 2025-03-20 02:21:48,757 - INFO - Deleting VN ctest-vn-99711706 2025-03-20 02:21:48,874 - DEBUG - Response for deleting network () 2025-03-20 02:21:48,874 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a 2025-03-20 02:21:48,879 - DEBUG - Response Code: 404 2025-03-20 02:21:48,879 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-20 02:21:48,884 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663 2025-03-20 02:21:48,939 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a 2025-03-20 02:21:49,019 - INFO - Validated that VN ctest-vn-99711706 is not found in API Server 2025-03-20 02:21:49,031 - DEBUG - VN ctest-vn-99711706 is not present in Agent 10.0.0.33 2025-03-20 02:21:49,032 - INFO - Validated that VN ctest-vn-99711706 is not in any agent 2025-03-20 02:21:49,048 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99711706 info 2025-03-20 02:21:49,302 - DEBUG - No XMPP flaps were noticed during the test
2025-03-20 02:21:49,303 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-03-20 02:21:49,303 - INFO - -------------------------------------------------------------------------------- 2025-03-20 02:21:49,977 - INFO - Deleted project: ctest-TestBasicPolicy-77966589, ID : cc6ca59d-94f2-493a-9c46-a2b93ebd818a