2025-04-03 02:23:13,690 - INFO - Domain Default found not creating 2025-04-03 02:23:13,860 - INFO - Project ctest-TestBasicPolicy-11680554 not found, creating it 2025-04-03 02:23:14,354 - INFO - Created Project:ctest-TestBasicPolicy-11680554, ID : 1d6596bc-e00e-436d-9a52-af8aa21c095f 2025-04-03 02:23:15,927 - INFO - ================================================================================ 2025-04-03 02:23:15,927 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-03 02:23:15,927 - 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-04-03 02:23:16,189 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.29': '0'}} with 2025-04-03 02:23:16,189 - INFO - Initial checks done. Running the testcase now 2025-04-03 02:23:16,189 - INFO - 2025-04-03 02:23:16,768 - DEBUG - Response for create_network : {'network': {'id': '5d4b935e-bda9-4253-a791-f36d43f343be', 'name': 'ctest-vn-59927995', 'tenant_id': '1d6596bce00e436d9a52af8aa21c095f', 'project_id': '1d6596bce00e436d9a52af8aa21c095f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11680554', 'ctest-vn-59927995'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 02:23:16,977 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8418e69-2e9c-461a-b17f-6bd693311123', 'name': '', 'tenant_id': '1d6596bce00e436d9a52af8aa21c095f', 'network_id': '5d4b935e-bda9-4253-a791-f36d43f343be', 'ip_version': 4, 'cidr': '90.219.109.0/26', 'allocation_pools': [{'start': '90.219.109.2', 'end': '90.219.109.62'}], 'gateway_ip': '90.219.109.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.219.109.2', 'tags': [], 'project_id': '1d6596bce00e436d9a52af8aa21c095f'}} 2025-04-03 02:23:16,997 - INFO - Created VN ctest-vn-59927995 2025-04-03 02:23:17,049 - DEBUG - VN ctest-vn-59927995 UUID is 5d4b935e-bda9-4253-a791-f36d43f343be 2025-04-03 02:23:17,361 - DEBUG - Response for create_network : {'network': {'id': '55038c06-8928-4c62-963b-ebbb48b0241b', 'name': 'ctest-vn-72664760', 'tenant_id': '1d6596bce00e436d9a52af8aa21c095f', 'project_id': '1d6596bce00e436d9a52af8aa21c095f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11680554', 'ctest-vn-72664760'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 02:23:17,543 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6a59eab-6725-4b0d-84c1-012755629095', 'name': '', 'tenant_id': '1d6596bce00e436d9a52af8aa21c095f', 'network_id': '55038c06-8928-4c62-963b-ebbb48b0241b', 'ip_version': 4, 'cidr': '15.96.160.192/26', 'allocation_pools': [{'start': '15.96.160.194', 'end': '15.96.160.254'}], 'gateway_ip': '15.96.160.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.96.160.194', 'tags': [], 'project_id': '1d6596bce00e436d9a52af8aa21c095f'}} 2025-04-03 02:23:17,561 - INFO - Created VN ctest-vn-72664760 2025-04-03 02:23:17,613 - DEBUG - VN ctest-vn-72664760 UUID is 55038c06-8928-4c62-963b-ebbb48b0241b 2025-04-03 02:23:17,743 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-59927995, 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-11680554:ctest-vn-72664760, 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-04-03 02:23:18,069 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5d4b935e-bda9-4253-a791-f36d43f343be', 'name': 'ctest-vn-59927995', 'tenant_id': '1d6596bce00e436d9a52af8aa21c095f', 'project_id': '1d6596bce00e436d9a52af8aa21c095f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8418e69-2e9c-461a-b17f-6bd693311123'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11680554', 'ctest-vn-59927995'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11680554', 'ctest-policy-allow-all-86685110']], 'subnet_ipam': [{'subnet_cidr': '90.219.109.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 02:23:18,340 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55038c06-8928-4c62-963b-ebbb48b0241b', 'name': 'ctest-vn-72664760', 'tenant_id': '1d6596bce00e436d9a52af8aa21c095f', 'project_id': '1d6596bce00e436d9a52af8aa21c095f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6a59eab-6725-4b0d-84c1-012755629095'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11680554', 'ctest-vn-72664760'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11680554', 'ctest-policy-allow-all-86685110']], 'subnet_ipam': [{'subnet_cidr': '15.96.160.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 02:23:18,513 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-04-03 02:23:18,814 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-04-03 02:23:18,846 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3a0fabbe-72cb-47e5-8ea4-d9341281ea07 2025-04-03 02:23:18,861 - DEBUG - Requesting: http://10.0.0.56:8082/project/1d6596bc-e00e-436d-9a52-af8aa21c095f 2025-04-03 02:23:18,949 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5d4b935e-bda9-4253-a791-f36d43f343be 2025-04-03 02:23:18,966 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5d4b935e-bda9-4253-a791-f36d43f343be 2025-04-03 02:23:18,981 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/aac15150-72bf-4c7b-9925-8077a0173a29 2025-04-03 02:23:18,991 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/aac15150-72bf-4c7b-9925-8077a0173a29 2025-04-03 02:23:19,001 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/dcb5f5d5-d6b5-482c-8f3e-7485cc5dfbe7 2025-04-03 02:23:19,015 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 02:23:19,015 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5d4b935e-bda9-4253-a791-f36d43f343be 2025-04-03 02:23:19,032 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/aac15150-72bf-4c7b-9925-8077a0173a29 2025-04-03 02:23:19,057 - INFO - Verified VN network id 8 for VN 5d4b935e-bda9-4253-a791-f36d43f343be 2025-04-03 02:23:19,057 - INFO - Verifications in API Server for VN ctest-vn-59927995 passed 2025-04-03 02:23:19,057 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5d4b935e-bda9-4253-a791-f36d43f343be 2025-04-03 02:23:19,074 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/aac15150-72bf-4c7b-9925-8077a0173a29 2025-04-03 02:23:19,084 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/aac15150-72bf-4c7b-9925-8077a0173a29 2025-04-03 02:23:19,096 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/dcb5f5d5-d6b5-482c-8f3e-7485cc5dfbe7 2025-04-03 02:23:19,116 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-59927995', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11680554', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6722628903898792531', 'uuid-lslong': '12074699726574011326'}, 'enable': 'true', 'created': '2025-04-03T02:23:16', 'last-modified': '2025-04-03T02:23:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074870'} 2025-04-03 02:23:19,126 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 02:23:19,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59927995 passed 2025-04-03 02:23:19,127 - DEBUG - ====Verifying policy data for ctest-vn-59927995 in API_Server ====== 2025-04-03 02:23:19,127 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-04-03 02:23:19,136 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3a0fabbe-72cb-47e5-8ea4-d9341281ea07 2025-04-03 02:23:19,160 - DEBUG - Requesting: http://10.0.0.56:8082/project/1d6596bc-e00e-436d-9a52-af8aa21c095f 2025-04-03 02:23:19,250 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5d4b935e-bda9-4253-a791-f36d43f343be 2025-04-03 02:23:19,264 - DEBUG - ==>Verifying data for policy with id: fda686e4-5c2f-454d-bfb8-6172f9d65caa, fqn: ['default-domain', 'ctest-TestBasicPolicy-11680554', 'ctest-policy-allow-all-86685110'] 2025-04-03 02:23:19,264 - INFO - VN ctest-vn-59927995 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 02:23:19,264 - DEBUG - Verifying the vn in opserver 2025-04-03 02:23:19,264 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-59927995 virtual network link through opserver 10.0.0.56 2025-04-03 02:23:19,264 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-04-03 02:23:19,564 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-04-03 02:23:19,632 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-59927995', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-59927995?flat'} 2025-04-03 02:23:19,632 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-59927995 is found in opserver 2025-04-03 02:23:19,646 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 02:23:19,652 - DEBUG - VRF ids for VN ctest-vn-59927995: {} 2025-04-03 02:23:19,653 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-04-03 02:23:19,660 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3a0fabbe-72cb-47e5-8ea4-d9341281ea07 2025-04-03 02:23:19,674 - DEBUG - Requesting: http://10.0.0.56:8082/project/1d6596bc-e00e-436d-9a52-af8aa21c095f 2025-04-03 02:23:19,753 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/55038c06-8928-4c62-963b-ebbb48b0241b 2025-04-03 02:23:19,768 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/55038c06-8928-4c62-963b-ebbb48b0241b 2025-04-03 02:23:19,781 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/760808c2-2110-40af-9738-d994a1cad5ff 2025-04-03 02:23:19,790 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/760808c2-2110-40af-9738-d994a1cad5ff 2025-04-03 02:23:19,798 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/039a755c-fff1-40e7-95c8-dacb26aa89ef 2025-04-03 02:23:19,806 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 02:23:19,806 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/55038c06-8928-4c62-963b-ebbb48b0241b 2025-04-03 02:23:19,818 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/760808c2-2110-40af-9738-d994a1cad5ff 2025-04-03 02:23:19,838 - INFO - Verified VN network id 9 for VN 55038c06-8928-4c62-963b-ebbb48b0241b 2025-04-03 02:23:19,838 - INFO - Verifications in API Server for VN ctest-vn-72664760 passed 2025-04-03 02:23:19,838 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/55038c06-8928-4c62-963b-ebbb48b0241b 2025-04-03 02:23:19,853 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/760808c2-2110-40af-9738-d994a1cad5ff 2025-04-03 02:23:19,862 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/760808c2-2110-40af-9738-d994a1cad5ff 2025-04-03 02:23:19,870 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/039a755c-fff1-40e7-95c8-dacb26aa89ef 2025-04-03 02:23:19,884 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-72664760', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11680554', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6125893877852818530', 'uuid-lslong': '10825505318926033947'}, 'enable': 'true', 'created': '2025-04-03T02:23:17', 'last-modified': '2025-04-03T02:23:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.582473'} 2025-04-03 02:23:19,891 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 02:23:19,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72664760 passed 2025-04-03 02:23:19,891 - DEBUG - ====Verifying policy data for ctest-vn-72664760 in API_Server ====== 2025-04-03 02:23:19,892 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-04-03 02:23:19,898 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3a0fabbe-72cb-47e5-8ea4-d9341281ea07 2025-04-03 02:23:19,913 - DEBUG - Requesting: http://10.0.0.56:8082/project/1d6596bc-e00e-436d-9a52-af8aa21c095f 2025-04-03 02:23:19,988 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/55038c06-8928-4c62-963b-ebbb48b0241b 2025-04-03 02:23:19,999 - DEBUG - ==>Verifying data for policy with id: fda686e4-5c2f-454d-bfb8-6172f9d65caa, fqn: ['default-domain', 'ctest-TestBasicPolicy-11680554', 'ctest-policy-allow-all-86685110'] 2025-04-03 02:23:19,999 - INFO - VN ctest-vn-72664760 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 02:23:19,999 - DEBUG - Verifying the vn in opserver 2025-04-03 02:23:19,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-72664760 virtual network link through opserver 10.0.0.56 2025-04-03 02:23:19,999 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-04-03 02:23:20,011 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-72664760', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-72664760?flat'} 2025-04-03 02:23:20,011 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-72664760 is found in opserver 2025-04-03 02:23:20,022 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 02:23:20,029 - DEBUG - VRF ids for VN ctest-vn-72664760: {} 2025-04-03 02:23:20,093 - DEBUG - Services list from nova: [, , ] 2025-04-03 02:23:21,162 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3023-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3023-1) 2025-04-03 02:23:22,464 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3023-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3023-1) 2025-04-03 02:23:22,464 - INFO - Waiting for VM ctest-TestBasicPolicy-11680554-73788153 to be up.. 2025-04-03 02:23:22,566 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-03 02:23:27,671 - DEBUG - VM is in ACTIVE state now 2025-04-03 02:23:27,671 - INFO - VM name : ctest-TestBasicPolicy-11680554-73788153 2025-04-03 02:23:27,779 - DEBUG - VM ctest-TestBasicPolicy-11680554-73788153 ID is 7b28fa00-d909-41fe-8b9f-f4f6fb47b6a2 2025-04-03 02:23:27,806 - DEBUG - VM ctest-TestBasicPolicy-11680554-73788153 launched on Node cn-jenkins-deploy-platform-ansible-os-3023-1 2025-04-03 02:23:27,908 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/7b28fa00-d909-41fe-8b9f-f4f6fb47b6a2 2025-04-03 02:23:27,920 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/b5ff05da-97a1-40ce-80e2-015cb17e3869 2025-04-03 02:23:31,127 - 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 1005ms') 2025-04-03 02:23:31,127 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11680554-73788153 failed! 2025-04-03 02:23:31,185 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11680554:ctest-vn-59927995 is 90.219.109.1 and allocation pool is NOT set 2025-04-03 02:23:33,248 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=6.36 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.71 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 = 2.708/4.535/6.363/1.827 ms') 2025-04-03 02:23:33,248 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11680554-73788153 passed 2025-04-03 02:23:33,405 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 02:23:33,406 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11680554-73788153, IP 90.219.109.3, Port 22 2025-04-03 02:23:33,472 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-04-03 02:23:33,560 - DEBUG - VM ctest-TestBasicPolicy-11680554-73788153 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-03 02:23:38,561 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 02:23:38,562 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11680554-73788153, IP 90.219.109.3, Port 22 2025-04-03 02:23:38,721 - DEBUG - VM ctest-TestBasicPolicy-11680554-73788153 is ready for SSH connections 2025-04-03 02:23:38,721 - INFO - Waiting for VM ctest-TestBasicPolicy-11680554-01813167 to be up.. 2025-04-03 02:23:38,812 - DEBUG - VM is in ACTIVE state now 2025-04-03 02:23:38,812 - INFO - VM name : ctest-TestBasicPolicy-11680554-01813167 2025-04-03 02:23:38,905 - DEBUG - VM ctest-TestBasicPolicy-11680554-01813167 ID is 6047af02-fed2-40d2-a628-583f39ae18ab 2025-04-03 02:23:38,905 - DEBUG - VM ctest-TestBasicPolicy-11680554-01813167 launched on Node cn-jenkins-deploy-platform-ansible-os-3023-1 2025-04-03 02:23:38,994 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/6047af02-fed2-40d2-a628-583f39ae18ab 2025-04-03 02:23:39,007 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/edf9cbbd-7d93-4b75-bedf-9724185d90b9 2025-04-03 02:23:40,293 - 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.84 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.452 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.452/2.144/3.837/1.692 ms') 2025-04-03 02:23:40,293 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-11680554-01813167 passed 2025-04-03 02:23:40,449 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 02:23:40,449 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11680554-01813167, IP 15.96.160.195, Port 22 2025-04-03 02:23:40,628 - DEBUG - VM ctest-TestBasicPolicy-11680554-01813167 is ready for SSH connections 2025-04-03 02:23:40,628 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 02:23:40,628 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.96.160.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-04-03 02:23:40,628 - DEBUG - ping -s 56 -c 3 -W 1 15.96.160.195 2025-04-03 02:23:44,715 - DEBUG - PING 15.96.160.195 (15.96.160.195): 56 data bytes 64 bytes from 15.96.160.195: seq=0 ttl=63 time=3.808 ms 64 bytes from 15.96.160.195: seq=1 ttl=63 time=1.132 ms 64 bytes from 15.96.160.195: seq=2 ttl=63 time=1.179 ms --- 15.96.160.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.132/2.039/3.808 ms 2025-04-03 02:23:44,715 - INFO - Ping to IP 15.96.160.195 from VM ctest-TestBasicPolicy-11680554-73788153 passed 2025-04-03 02:23:44,901 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fda686e4-5c2f-454d-bfb8-6172f9d65caa", "href": "http://10.0.0.56:8082/network-policy/fda686e4-5c2f-454d-bfb8-6172f9d65caa"}} 2025-04-03 02:23:44,901 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 02:23:44,902 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.96.160.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-04-03 02:23:44,902 - DEBUG - ping -s 56 -c 3 -W 1 15.96.160.195 2025-04-03 02:23:48,120 - DEBUG - PING 15.96.160.195 (15.96.160.195): 56 data bytes 64 bytes from 15.96.160.195: seq=0 ttl=63 time=1.822 ms --- 15.96.160.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.822/1.822/1.822 ms 2025-04-03 02:23:48,120 - WARNING - Ping to IP 15.96.160.195 from VM ctest-TestBasicPolicy-11680554-73788153 failed 2025-04-03 02:23:48,120 - INFO - Deleting VM ctest-TestBasicPolicy-11680554-01813167 2025-04-03 02:23:48,204 - INFO - Deleting VM ctest-TestBasicPolicy-11680554-73788153 2025-04-03 02:23:48,658 - INFO - Deleted policy ctest-policy-allow-all-86685110 2025-04-03 02:23:48,658 - INFO - Deleting VN ctest-vn-72664760 2025-04-03 02:23:48,707 - DEBUG - VN 55038c06-8928-4c62-963b-ebbb48b0241b still in use: Unable to complete operation on network 55038c06-8928-4c62-963b-ebbb48b0241b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f74c6f6f-b986-4afa-abce-2e33d0891d40'] 2025-04-03 02:23:48,707 - WARNING - Deleting VN ctest-vn-72664760 failed..Will retry 2025-04-03 02:23:50,823 - DEBUG - Response for deleting network () 2025-04-03 02:23:50,823 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/760808c2-2110-40af-9738-d994a1cad5ff 2025-04-03 02:23:50,830 - DEBUG - Response Code: 404 2025-04-03 02:23:50,830 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-04-03 02:23:50,843 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3a0fabbe-72cb-47e5-8ea4-d9341281ea07 2025-04-03 02:23:50,902 - DEBUG - Requesting: http://10.0.0.56:8082/project/1d6596bc-e00e-436d-9a52-af8aa21c095f 2025-04-03 02:23:50,976 - INFO - Validated that VN ctest-vn-72664760 is not found in API Server 2025-04-03 02:23:50,989 - DEBUG - VN ctest-vn-72664760 is not present in Agent 10.0.0.56 2025-04-03 02:23:50,989 - INFO - Validated that VN ctest-vn-72664760 is not in any agent 2025-04-03 02:23:51,007 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72664760 info 2025-04-03 02:23:51,008 - INFO - Deleting VN ctest-vn-59927995 2025-04-03 02:23:51,135 - DEBUG - Response for deleting network () 2025-04-03 02:23:51,135 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/aac15150-72bf-4c7b-9925-8077a0173a29 2025-04-03 02:23:51,141 - DEBUG - Response Code: 404 2025-04-03 02:23:51,141 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-04-03 02:23:51,148 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3a0fabbe-72cb-47e5-8ea4-d9341281ea07 2025-04-03 02:23:51,204 - DEBUG - Requesting: http://10.0.0.56:8082/project/1d6596bc-e00e-436d-9a52-af8aa21c095f 2025-04-03 02:23:51,294 - INFO - Validated that VN ctest-vn-59927995 is not found in API Server 2025-04-03 02:23:51,309 - DEBUG - VN ctest-vn-59927995 is not present in Agent 10.0.0.56 2025-04-03 02:23:51,309 - INFO - Validated that VN ctest-vn-59927995 is not in any agent 2025-04-03 02:23:51,331 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59927995 info 2025-04-03 02:23:51,606 - DEBUG - No XMPP flaps were noticed during the test
2025-04-03 02:23:51,607 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-04-03 02:23:51,607 - INFO - -------------------------------------------------------------------------------- 2025-04-03 02:23:52,409 - INFO - Deleted project: ctest-TestBasicPolicy-11680554, ID : 1d6596bc-e00e-436d-9a52-af8aa21c095f