2025-11-05 17:33:00,396 - INFO - Domain Default found not creating 2025-11-05 17:33:00,560 - INFO - Project ctest-TestBasicPolicy-62897345 not found, creating it 2025-11-05 17:33:01,039 - INFO - Created Project:ctest-TestBasicPolicy-62897345, ID : d9c0331f-f90c-487a-abc8-413ff4e71805 2025-11-05 17:33:02,648 - INFO - ================================================================================ 2025-11-05 17:33:02,648 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-05 17:33:02,648 - 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-11-05 17:33:02,911 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with 2025-11-05 17:33:02,911 - INFO - Initial checks done. Running the testcase now 2025-11-05 17:33:02,911 - INFO - 2025-11-05 17:33:03,550 - DEBUG - Response for create_network : {'network': {'id': 'd94606b7-22ac-411f-9b2b-940c9eadc2fd', 'name': 'ctest-vn-76894079', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'project_id': 'd9c0331ff90c487aabc8413ff4e71805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-vn-76894079'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 17:33:03,771 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aca29cbf-7e7a-4ef6-b36b-a2609f68f959', 'name': '', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'network_id': 'd94606b7-22ac-411f-9b2b-940c9eadc2fd', 'ip_version': 4, 'cidr': '50.39.102.128/26', 'allocation_pools': [{'start': '50.39.102.130', 'end': '50.39.102.190'}], 'gateway_ip': '50.39.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.39.102.130', 'tags': [], 'project_id': 'd9c0331ff90c487aabc8413ff4e71805'}} 2025-11-05 17:33:03,793 - INFO - Created VN ctest-vn-76894079 2025-11-05 17:33:03,848 - DEBUG - VN ctest-vn-76894079 UUID is d94606b7-22ac-411f-9b2b-940c9eadc2fd 2025-11-05 17:33:04,193 - DEBUG - Response for create_network : {'network': {'id': 'bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f', 'name': 'ctest-vn-11900758', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'project_id': 'd9c0331ff90c487aabc8413ff4e71805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-vn-11900758'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 17:33:04,426 - DEBUG - Response for create_subnet : {'subnet': {'id': '2097da5e-ae48-4e89-867f-5975c6417b18', 'name': '', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'network_id': 'bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f', 'ip_version': 4, 'cidr': '101.118.81.64/26', 'allocation_pools': [{'start': '101.118.81.66', 'end': '101.118.81.126'}], 'gateway_ip': '101.118.81.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.118.81.66', 'tags': [], 'project_id': 'd9c0331ff90c487aabc8413ff4e71805'}} 2025-11-05 17:33:04,446 - INFO - Created VN ctest-vn-11900758 2025-11-05 17:33:04,499 - DEBUG - VN ctest-vn-11900758 UUID is bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f 2025-11-05 17:33:04,636 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079, 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-62897345:ctest-vn-11900758, 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-11-05 17:33:04,947 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd94606b7-22ac-411f-9b2b-940c9eadc2fd', 'name': 'ctest-vn-76894079', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'project_id': 'd9c0331ff90c487aabc8413ff4e71805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aca29cbf-7e7a-4ef6-b36b-a2609f68f959'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-vn-76894079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-policy-allow-all-93467664']], 'subnet_ipam': [{'subnet_cidr': '50.39.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 17:33:05,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f', 'name': 'ctest-vn-11900758', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'project_id': 'd9c0331ff90c487aabc8413ff4e71805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2097da5e-ae48-4e89-867f-5975c6417b18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-vn-11900758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-policy-allow-all-93467664']], 'subnet_ipam': [{'subnet_cidr': '101.118.81.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 17:33:05,384 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:33:05,690 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:33:05,721 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:33:05,733 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805 2025-11-05 17:33:05,811 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd 2025-11-05 17:33:05,822 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd 2025-11-05 17:33:05,842 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400 2025-11-05 17:33:05,854 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400 2025-11-05 17:33:05,862 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ca26f84b-4c4d-4cdf-9cac-24fd4c2bc5d9 2025-11-05 17:33:05,869 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 17:33:05,869 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd 2025-11-05 17:33:05,880 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400 2025-11-05 17:33:05,896 - INFO - Verified VN network id 9 for VN d94606b7-22ac-411f-9b2b-940c9eadc2fd 2025-11-05 17:33:05,896 - INFO - Verifications in API Server for VN ctest-vn-76894079 passed 2025-11-05 17:33:05,896 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd 2025-11-05 17:33:05,908 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400 2025-11-05 17:33:05,915 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400 2025-11-05 17:33:05,923 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ca26f84b-4c4d-4cdf-9cac-24fd4c2bc5d9 2025-11-05 17:33:05,935 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62897345', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15656208538230604063', 'uuid-lslong': '11181193281800094461'}, 'enable': 'true', 'created': '2025-11-05T17:33:03', 'last-modified': '2025-11-05T17:33:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013439'} 2025-11-05 17:33:05,942 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 17:33:05,942 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76894079 passed 2025-11-05 17:33:05,942 - DEBUG - ====Verifying policy data for ctest-vn-76894079 in API_Server ====== 2025-11-05 17:33:05,942 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:33:05,948 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:33:05,961 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805 2025-11-05 17:33:06,033 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd 2025-11-05 17:33:06,043 - DEBUG - ==>Verifying data for policy with id: e42b3282-1f02-4961-8598-cf145d11a586, fqn: ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-policy-allow-all-93467664'] 2025-11-05 17:33:06,043 - INFO - VN ctest-vn-76894079 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 17:33:06,043 - DEBUG - Verifying the vn in opserver 2025-11-05 17:33:06,043 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079 virtual network link through opserver 10.0.0.50 2025-11-05 17:33:06,043 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 17:33:06,345 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 17:33:06,424 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079?flat'} 2025-11-05 17:33:06,424 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079 is found in opserver 2025-11-05 17:33:06,443 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 17:33:06,455 - DEBUG - VRF ids for VN ctest-vn-76894079: {} 2025-11-05 17:33:06,455 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:33:06,463 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:33:06,479 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805 2025-11-05 17:33:06,567 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f 2025-11-05 17:33:06,580 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f 2025-11-05 17:33:06,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428 2025-11-05 17:33:06,602 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428 2025-11-05 17:33:06,610 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef35e3a0-6775-4624-9957-98b544f1ccca 2025-11-05 17:33:06,619 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-05 17:33:06,619 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f 2025-11-05 17:33:06,633 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428 2025-11-05 17:33:06,651 - INFO - Verified VN network id 10 for VN bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f 2025-11-05 17:33:06,652 - INFO - Verifications in API Server for VN ctest-vn-11900758 passed 2025-11-05 17:33:06,652 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f 2025-11-05 17:33:06,665 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428 2025-11-05 17:33:06,674 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428 2025-11-05 17:33:06,684 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef35e3a0-6775-4624-9957-98b544f1ccca 2025-11-05 17:33:06,704 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62897345', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13745245617182165819', 'uuid-lslong': '10533192190694555247'}, 'enable': 'true', 'created': '2025-11-05T17:33:04', 'last-modified': '2025-11-05T17:33:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.548517'} 2025-11-05 17:33:06,713 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-05 17:33:06,713 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11900758 passed 2025-11-05 17:33:06,713 - DEBUG - ====Verifying policy data for ctest-vn-11900758 in API_Server ====== 2025-11-05 17:33:06,714 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:33:06,721 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:33:06,734 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805 2025-11-05 17:33:06,817 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f 2025-11-05 17:33:06,829 - DEBUG - ==>Verifying data for policy with id: e42b3282-1f02-4961-8598-cf145d11a586, fqn: ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-policy-allow-all-93467664'] 2025-11-05 17:33:06,829 - INFO - VN ctest-vn-11900758 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 17:33:06,829 - DEBUG - Verifying the vn in opserver 2025-11-05 17:33:06,829 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758 virtual network link through opserver 10.0.0.50 2025-11-05 17:33:06,829 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 17:33:06,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758?flat'} 2025-11-05 17:33:06,840 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758 is found in opserver 2025-11-05 17:33:06,853 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 17:33:06,859 - DEBUG - VRF ids for VN ctest-vn-11900758: {} 2025-11-05 17:33:06,951 - DEBUG - Services list from nova: [, , ] 2025-11-05 17:33:08,234 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4652-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4652-1) 2025-11-05 17:33:09,520 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4652-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4652-1) 2025-11-05 17:33:09,521 - INFO - Waiting for VM ctest-TestBasicPolicy-62897345-92954610 to be up.. 2025-11-05 17:33:09,601 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 17:33:14,710 - DEBUG - VM is in ACTIVE state now 2025-11-05 17:33:14,711 - INFO - VM name : ctest-TestBasicPolicy-62897345-92954610 2025-11-05 17:33:14,793 - DEBUG - VM ctest-TestBasicPolicy-62897345-92954610 ID is 1478d546-c74b-48cd-98dd-384d6db29947 2025-11-05 17:33:14,814 - DEBUG - VM ctest-TestBasicPolicy-62897345-92954610 launched on Node cn-jenkins-deploy-platform-ansible-os-4652-1 2025-11-05 17:33:14,909 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/1478d546-c74b-48cd-98dd-384d6db29947 2025-11-05 17:33:14,919 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/bae9e371-eb9a-4a8d-a4f5-99c76450e4e7 2025-11-05 17:33:18,186 - 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 1011ms') 2025-11-05 17:33:18,187 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62897345-92954610 failed! 2025-11-05 17:33:18,248 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079 is 50.39.102.129 and allocation pool is NOT set 2025-11-05 17:33:20,318 - 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=8.94 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.680 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.680/4.808/8.937/4.128 ms') 2025-11-05 17:33:20,318 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62897345-92954610 passed 2025-11-05 17:33:20,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 17:33:20,489 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62897345-92954610, IP 50.39.102.131, Port 22 2025-11-05 17:33:20,558 - 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-11-05 17:33:20,655 - DEBUG - VM ctest-TestBasicPolicy-62897345-92954610 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 17:33:25,656 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 17:33:25,656 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62897345-92954610, IP 50.39.102.131, Port 22 2025-11-05 17:33:25,812 - DEBUG - VM ctest-TestBasicPolicy-62897345-92954610 is ready for SSH connections 2025-11-05 17:33:25,812 - INFO - Waiting for VM ctest-TestBasicPolicy-62897345-79200189 to be up.. 2025-11-05 17:33:25,914 - DEBUG - VM is in ACTIVE state now 2025-11-05 17:33:25,914 - INFO - VM name : ctest-TestBasicPolicy-62897345-79200189 2025-11-05 17:33:25,992 - DEBUG - VM ctest-TestBasicPolicy-62897345-79200189 ID is 13f19665-c4aa-41ab-b53e-8ea8c12b4456 2025-11-05 17:33:25,992 - DEBUG - VM ctest-TestBasicPolicy-62897345-79200189 launched on Node cn-jenkins-deploy-platform-ansible-os-4652-1 2025-11-05 17:33:26,076 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/13f19665-c4aa-41ab-b53e-8ea8c12b4456 2025-11-05 17:33:26,086 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/5c46ceae-34a6-417a-b3d1-8807435451a8 2025-11-05 17:33:27,349 - 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=5.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.955 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.955/3.021/5.088/2.066 ms') 2025-11-05 17:33:27,349 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-62897345-79200189 passed 2025-11-05 17:33:27,504 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 17:33:27,504 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62897345-79200189, IP 101.118.81.67, Port 22 2025-11-05 17:33:27,678 - DEBUG - VM ctest-TestBasicPolicy-62897345-79200189 is ready for SSH connections 2025-11-05 17:33:27,678 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 17:33:27,678 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 101.118.81.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-05 17:33:27,678 - DEBUG - ping -s 56 -c 3 -W 1 101.118.81.67 2025-11-05 17:33:31,895 - DEBUG - PING 101.118.81.67 (101.118.81.67): 56 data bytes 64 bytes from 101.118.81.67: seq=0 ttl=63 time=6.293 ms 64 bytes from 101.118.81.67: seq=1 ttl=63 time=0.979 ms 64 bytes from 101.118.81.67: seq=2 ttl=63 time=2.141 ms --- 101.118.81.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.979/3.137/6.293 ms 2025-11-05 17:33:31,895 - INFO - Ping to IP 101.118.81.67 from VM ctest-TestBasicPolicy-62897345-92954610 passed 2025-11-05 17:33:32,087 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e42b3282-1f02-4961-8598-cf145d11a586", "href": "http://10.0.0.50:8082/network-policy/e42b3282-1f02-4961-8598-cf145d11a586"}} 2025-11-05 17:33:32,088 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 17:33:32,088 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 101.118.81.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-05 17:33:32,088 - DEBUG - ping -s 56 -c 3 -W 1 101.118.81.67 2025-11-05 17:33:35,340 - DEBUG - PING 101.118.81.67 (101.118.81.67): 56 data bytes --- 101.118.81.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-05 17:33:35,340 - WARNING - Ping to IP 101.118.81.67 from VM ctest-TestBasicPolicy-62897345-92954610 failed 2025-11-05 17:33:35,340 - INFO - Deleting VM ctest-TestBasicPolicy-62897345-79200189 2025-11-05 17:33:35,436 - INFO - Deleting VM ctest-TestBasicPolicy-62897345-92954610 2025-11-05 17:33:36,004 - INFO - Deleted policy ctest-policy-allow-all-93467664 2025-11-05 17:33:36,005 - INFO - Deleting VN ctest-vn-11900758 2025-11-05 17:33:36,054 - DEBUG - VN bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f still in use: Unable to complete operation on network bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-21c6bd3d-4e2f-423d-8c2c-1a2fb072c698'] 2025-11-05 17:33:36,054 - WARNING - Deleting VN ctest-vn-11900758 failed..Will retry 2025-11-05 17:33:38,253 - DEBUG - Response for deleting network () 2025-11-05 17:33:38,253 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428 2025-11-05 17:33:38,260 - DEBUG - Response Code: 404 2025-11-05 17:33:38,260 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:33:38,267 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:33:38,320 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805 2025-11-05 17:33:38,402 - INFO - Validated that VN ctest-vn-11900758 is not found in API Server 2025-11-05 17:33:38,414 - DEBUG - VN ctest-vn-11900758 is not present in Agent 10.0.0.50 2025-11-05 17:33:38,414 - INFO - Validated that VN ctest-vn-11900758 is not in any agent 2025-11-05 17:33:38,435 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11900758 info 2025-11-05 17:33:38,435 - INFO - Deleting VN ctest-vn-76894079 2025-11-05 17:33:38,557 - DEBUG - Response for deleting network () 2025-11-05 17:33:38,557 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400 2025-11-05 17:33:38,563 - DEBUG - Response Code: 404 2025-11-05 17:33:38,564 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:33:38,569 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:33:38,621 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805 2025-11-05 17:33:38,708 - INFO - Validated that VN ctest-vn-76894079 is not found in API Server 2025-11-05 17:33:38,724 - DEBUG - VN ctest-vn-76894079 is not present in Agent 10.0.0.50 2025-11-05 17:33:38,724 - INFO - Validated that VN ctest-vn-76894079 is not in any agent 2025-11-05 17:33:38,743 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76894079 info 2025-11-05 17:33:39,029 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 17:33:39,029 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-11-05 17:33:39,029 - INFO - -------------------------------------------------------------------------------- 2025-11-05 17:33:39,803 - INFO - Deleted project: ctest-TestBasicPolicy-62897345, ID : d9c0331f-f90c-487a-abc8-413ff4e71805