2026-07-06 15:41:24,126 - INFO - Domain Default found not creating 2026-07-06 15:41:24,381 - INFO - Project ctest-TestBasicPolicy-46241390 not found, creating it 2026-07-06 15:41:24,932 - INFO - Created Project:ctest-TestBasicPolicy-46241390, ID : a4aae709-767c-49b8-a02e-7bb25dea3e24 2026-07-06 15:41:26,375 - INFO - ================================================================================ 2026-07-06 15:41:26,375 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-07-06 15:41:26,375 - 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 2026-07-06 15:41:27,655 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.57': {'10.20.0.193': '0', '10.20.0.254': '0'}} with 2026-07-06 15:41:27,655 - INFO - Initial checks done. Running the testcase now 2026-07-06 15:41:27,655 - INFO - 2026-07-06 15:41:28,491 - DEBUG - Response for create_network : {'network': {'id': '70953899-86e2-4002-af2e-ba32be18e1e0', 'name': 'ctest-vn-54758198', 'tenant_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'project_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46241390', 'ctest-vn-54758198'], 'port_security_enabled': True, 'description': ''}} 2026-07-06 15:41:28,974 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed34f679-0814-4ed3-b3a5-127750fa69bb', 'name': '', 'tenant_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'network_id': '70953899-86e2-4002-af2e-ba32be18e1e0', 'ip_version': 4, 'cidr': '106.180.57.0/26', 'allocation_pools': [{'start': '106.180.57.2', 'end': '106.180.57.62'}], 'gateway_ip': '106.180.57.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.180.57.2', 'tags': [], 'project_id': 'a4aae709767c49b8a02e7bb25dea3e24'}} 2026-07-06 15:41:28,995 - INFO - Created VN ctest-vn-54758198 2026-07-06 15:41:29,012 - DEBUG - VN ctest-vn-54758198 UUID is 70953899-86e2-4002-af2e-ba32be18e1e0 2026-07-06 15:41:29,365 - DEBUG - Response for create_network : {'network': {'id': '512d2316-15ed-44b3-aeae-f5fed88c7839', 'name': 'ctest-vn-64716801', 'tenant_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'project_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46241390', 'ctest-vn-64716801'], 'port_security_enabled': True, 'description': ''}} 2026-07-06 15:41:29,599 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a002114-4aa0-42b2-9c5d-159ebde816d8', 'name': '', 'tenant_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'network_id': '512d2316-15ed-44b3-aeae-f5fed88c7839', 'ip_version': 4, 'cidr': '157.78.129.64/26', 'allocation_pools': [{'start': '157.78.129.66', 'end': '157.78.129.126'}], 'gateway_ip': '157.78.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.78.129.66', 'tags': [], 'project_id': 'a4aae709767c49b8a02e7bb25dea3e24'}} 2026-07-06 15:41:29,629 - INFO - Created VN ctest-vn-64716801 2026-07-06 15:41:29,643 - DEBUG - VN ctest-vn-64716801 UUID is 512d2316-15ed-44b3-aeae-f5fed88c7839 2026-07-06 15:41:29,748 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198, 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-46241390:ctest-vn-64716801, 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] 2026-07-06 15:41:30,067 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70953899-86e2-4002-af2e-ba32be18e1e0', 'name': 'ctest-vn-54758198', 'tenant_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'project_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed34f679-0814-4ed3-b3a5-127750fa69bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46241390', 'ctest-vn-54758198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46241390', 'ctest-policy-allow-all-90450203']], 'subnet_ipam': [{'subnet_cidr': '106.180.57.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-06 15:41:30,277 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '512d2316-15ed-44b3-aeae-f5fed88c7839', 'name': 'ctest-vn-64716801', 'tenant_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'project_id': 'a4aae709767c49b8a02e7bb25dea3e24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a002114-4aa0-42b2-9c5d-159ebde816d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46241390', 'ctest-vn-64716801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46241390', 'ctest-policy-allow-all-90450203']], 'subnet_ipam': [{'subnet_cidr': '157.78.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-06 15:41:30,391 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-06 15:41:30,728 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-06 15:41:30,752 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29c8bf4f-7bd3-4d89-9c75-5ea756ba884d 2026-07-06 15:41:30,773 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4aae709-767c-49b8-a02e-7bb25dea3e24 2026-07-06 15:41:30,873 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70953899-86e2-4002-af2e-ba32be18e1e0 2026-07-06 15:41:30,894 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70953899-86e2-4002-af2e-ba32be18e1e0 2026-07-06 15:41:30,908 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a45ed0-ad08-4b6a-96b0-ab5a6f0b9cef 2026-07-06 15:41:30,916 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a45ed0-ad08-4b6a-96b0-ab5a6f0b9cef 2026-07-06 15:41:30,925 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/77a36b96-c628-4584-b26b-36e047498826 2026-07-06 15:41:30,932 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 15:41:30,932 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70953899-86e2-4002-af2e-ba32be18e1e0 2026-07-06 15:41:30,944 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a45ed0-ad08-4b6a-96b0-ab5a6f0b9cef 2026-07-06 15:41:30,961 - INFO - Verified VN network id 13 for VN 70953899-86e2-4002-af2e-ba32be18e1e0 2026-07-06 15:41:30,961 - INFO - Verifications in API Server for VN ctest-vn-54758198 passed 2026-07-06 15:41:30,961 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70953899-86e2-4002-af2e-ba32be18e1e0 2026-07-06 15:41:30,976 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a45ed0-ad08-4b6a-96b0-ab5a6f0b9cef 2026-07-06 15:41:30,984 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a45ed0-ad08-4b6a-96b0-ab5a6f0b9cef 2026-07-06 15:41:30,995 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/77a36b96-c628-4584-b26b-36e047498826 2026-07-06 15:41:31,013 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46241390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8112452535821942786', 'uuid-lslong': '12623231532666511840'}, 'enable': 'true', 'created': '2026-07-06T15:41:28', 'last-modified': '2026-07-06T15:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978447'} 2026-07-06 15:41:31,021 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 15:41:31,027 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46241390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8112452535821942786', 'uuid-lslong': '12623231532666511840'}, 'enable': 'true', 'created': '2026-07-06T15:41:28', 'last-modified': '2026-07-06T15:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988180'} 2026-07-06 15:41:31,033 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 15:41:31,039 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46241390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8112452535821942786', 'uuid-lslong': '12623231532666511840'}, 'enable': 'true', 'created': '2026-07-06T15:41:28', 'last-modified': '2026-07-06T15:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005132'} 2026-07-06 15:41:31,046 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 15:41:31,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54758198 passed 2026-07-06 15:41:31,047 - DEBUG - ====Verifying policy data for ctest-vn-54758198 in API_Server ====== 2026-07-06 15:41:31,047 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-06 15:41:31,053 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29c8bf4f-7bd3-4d89-9c75-5ea756ba884d 2026-07-06 15:41:31,068 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4aae709-767c-49b8-a02e-7bb25dea3e24 2026-07-06 15:41:31,171 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70953899-86e2-4002-af2e-ba32be18e1e0 2026-07-06 15:41:31,186 - DEBUG - ==>Verifying data for policy with id: 18774cb4-02b9-444e-955a-815858c1f146, fqn: ['default-domain', 'ctest-TestBasicPolicy-46241390', 'ctest-policy-allow-all-90450203'] 2026-07-06 15:41:31,186 - INFO - VN ctest-vn-54758198 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-06 15:41:31,186 - DEBUG - Verifying the vn in opserver 2026-07-06 15:41:31,186 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 virtual network link through opserver 10.0.0.50 2026-07-06 15:41:31,186 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-06 15:41:31,555 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-06 15:41:31,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198?flat'} 2026-07-06 15:41:31,661 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 virtual network link through opserver 10.0.0.242 2026-07-06 15:41:31,661 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-07-06 15:41:31,996 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-07-06 15:41:32,056 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198?flat'} 2026-07-06 15:41:32,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 virtual network link through opserver 10.0.0.33 2026-07-06 15:41:32,057 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-07-06 15:41:32,398 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-07-06 15:41:32,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198?flat'} 2026-07-06 15:41:32,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 is found in opserver 2026-07-06 15:41:32,497 - DEBUG - Do not have enough data to verify VN in agent 2026-07-06 15:41:32,509 - DEBUG - VRF ids for VN ctest-vn-54758198: {} 2026-07-06 15:41:32,509 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-06 15:41:32,515 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29c8bf4f-7bd3-4d89-9c75-5ea756ba884d 2026-07-06 15:41:32,527 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4aae709-767c-49b8-a02e-7bb25dea3e24 2026-07-06 15:41:32,619 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/512d2316-15ed-44b3-aeae-f5fed88c7839 2026-07-06 15:41:32,632 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/512d2316-15ed-44b3-aeae-f5fed88c7839 2026-07-06 15:41:32,644 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0028ee7b-07b6-44ed-8b99-dbece0b88115 2026-07-06 15:41:32,652 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0028ee7b-07b6-44ed-8b99-dbece0b88115 2026-07-06 15:41:32,660 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef25b267-6914-4de0-9c68-c4283737d085 2026-07-06 15:41:32,666 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-07-06 15:41:32,666 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/512d2316-15ed-44b3-aeae-f5fed88c7839 2026-07-06 15:41:32,677 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0028ee7b-07b6-44ed-8b99-dbece0b88115 2026-07-06 15:41:32,698 - INFO - Verified VN network id 14 for VN 512d2316-15ed-44b3-aeae-f5fed88c7839 2026-07-06 15:41:32,698 - INFO - Verifications in API Server for VN ctest-vn-64716801 passed 2026-07-06 15:41:32,698 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/512d2316-15ed-44b3-aeae-f5fed88c7839 2026-07-06 15:41:32,709 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0028ee7b-07b6-44ed-8b99-dbece0b88115 2026-07-06 15:41:32,716 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0028ee7b-07b6-44ed-8b99-dbece0b88115 2026-07-06 15:41:32,724 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef25b267-6914-4de0-9c68-c4283737d085 2026-07-06 15:41:32,735 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46241390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5849370068788266163', 'uuid-lslong': '12587268483450697785'}, 'enable': 'true', 'created': '2026-07-06T15:41:29', 'last-modified': '2026-07-06T15:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.492256'} 2026-07-06 15:41:32,741 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-07-06 15:41:32,747 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46241390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5849370068788266163', 'uuid-lslong': '12587268483450697785'}, 'enable': 'true', 'created': '2026-07-06T15:41:29', 'last-modified': '2026-07-06T15:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.509188'} 2026-07-06 15:41:32,752 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-07-06 15:41:32,758 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46241390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5849370068788266163', 'uuid-lslong': '12587268483450697785'}, 'enable': 'true', 'created': '2026-07-06T15:41:29', 'last-modified': '2026-07-06T15:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.514480'} 2026-07-06 15:41:32,764 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-07-06 15:41:32,765 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64716801 passed 2026-07-06 15:41:32,765 - DEBUG - ====Verifying policy data for ctest-vn-64716801 in API_Server ====== 2026-07-06 15:41:32,765 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-06 15:41:32,771 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29c8bf4f-7bd3-4d89-9c75-5ea756ba884d 2026-07-06 15:41:32,782 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4aae709-767c-49b8-a02e-7bb25dea3e24 2026-07-06 15:41:32,880 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/512d2316-15ed-44b3-aeae-f5fed88c7839 2026-07-06 15:41:32,897 - DEBUG - ==>Verifying data for policy with id: 18774cb4-02b9-444e-955a-815858c1f146, fqn: ['default-domain', 'ctest-TestBasicPolicy-46241390', 'ctest-policy-allow-all-90450203'] 2026-07-06 15:41:32,897 - INFO - VN ctest-vn-64716801 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-06 15:41:32,897 - DEBUG - Verifying the vn in opserver 2026-07-06 15:41:32,897 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801 virtual network link through opserver 10.0.0.50 2026-07-06 15:41:32,897 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-06 15:41:32,953 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801?flat'} 2026-07-06 15:41:32,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801 virtual network link through opserver 10.0.0.242 2026-07-06 15:41:32,953 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-07-06 15:41:33,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801?flat'} 2026-07-06 15:41:33,012 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801 virtual network link through opserver 10.0.0.33 2026-07-06 15:41:33,012 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-07-06 15:41:33,057 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801?flat'} 2026-07-06 15:41:33,057 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-64716801 is found in opserver 2026-07-06 15:41:33,081 - DEBUG - Do not have enough data to verify VN in agent 2026-07-06 15:41:33,094 - DEBUG - VRF ids for VN ctest-vn-64716801: {} 2026-07-06 15:41:33,156 - DEBUG - Services list from nova: [, , , ] 2026-07-06 15:41:33,690 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-6083-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-6083-1) 2026-07-06 15:41:34,283 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-6083-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-6083-2) 2026-07-06 15:41:34,283 - INFO - Waiting for VM ctest-TestBasicPolicy-46241390-03738543 to be up.. 2026-07-06 15:41:34,352 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-07-06 15:41:39,436 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-07-06 15:41:44,553 - DEBUG - VM is in ACTIVE state now 2026-07-06 15:41:44,553 - INFO - VM name : ctest-TestBasicPolicy-46241390-03738543 2026-07-06 15:41:44,660 - DEBUG - VM ctest-TestBasicPolicy-46241390-03738543 ID is d9f3ec88-bb8e-4699-a298-9adf762c2a67 2026-07-06 15:41:44,699 - DEBUG - VM ctest-TestBasicPolicy-46241390-03738543 launched on Node an-jenkins-deploy-platform-ansible-os-6083-1 2026-07-06 15:41:44,830 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d9f3ec88-bb8e-4699-a298-9adf762c2a67 2026-07-06 15:41:45,187 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d9f3ec88-bb8e-4699-a298-9adf762c2a67 2026-07-06 15:41:45,232 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/6201e727-81c7-4636-84bf-92ac0db7289d 2026-07-06 15:41:48,433 - 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 1025ms') 2026-07-06 15:41:48,433 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-03738543 failed! 2026-07-06 15:41:48,452 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 is 106.180.57.1 and allocation pool is NOT set 2026-07-06 15:41:52,538 - 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 1020ms') 2026-07-06 15:41:52,538 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-03738543 failed! 2026-07-06 15:41:52,556 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 is 106.180.57.1 and allocation pool is NOT set 2026-07-06 15:41:56,635 - 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 1008ms') 2026-07-06 15:41:56,635 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-03738543 failed! 2026-07-06 15:41:56,654 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 is 106.180.57.1 and allocation pool is NOT set 2026-07-06 15:42:00,730 - 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 1010ms') 2026-07-06 15:42:00,730 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-03738543 failed! 2026-07-06 15:42:00,746 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 is 106.180.57.1 and allocation pool is NOT set 2026-07-06 15:42:04,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 1011ms') 2026-07-06 15:42:04,828 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-03738543 failed! 2026-07-06 15:42:04,848 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 is 106.180.57.1 and allocation pool is NOT set 2026-07-06 15:42:08,920 - 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 1003ms') 2026-07-06 15:42:08,920 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-03738543 failed! 2026-07-06 15:42:08,937 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 is 106.180.57.1 and allocation pool is NOT set 2026-07-06 15:42:13,014 - 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 1012ms') 2026-07-06 15:42:13,014 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-03738543 failed! 2026-07-06 15:42:13,029 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 is 106.180.57.1 and allocation pool is NOT set 2026-07-06 15:42:17,112 - 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 1016ms') 2026-07-06 15:42:17,112 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-03738543 failed! 2026-07-06 15:42:17,128 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46241390:ctest-vn-54758198 is 106.180.57.1 and allocation pool is NOT set 2026-07-06 15:42:19,200 - 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=10.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.68 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 = 4.681/7.537/10.393/2.856 ms') 2026-07-06 15:42:19,200 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-03738543 passed 2026-07-06 15:42:19,276 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-07-06 15:42:19,276 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46241390-03738543, IP 106.180.57.3, Port 22 2026-07-06 15:42:19,343 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-07-06 15:42:19,443 - DEBUG - VM ctest-TestBasicPolicy-46241390-03738543 is NOT ready for SSH connections, VM status: ACTIVE 2026-07-06 15:42:24,443 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-07-06 15:42:24,443 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46241390-03738543, IP 106.180.57.3, Port 22 2026-07-06 15:42:24,511 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-07-06 15:42:24,631 - DEBUG - VM ctest-TestBasicPolicy-46241390-03738543 is NOT ready for SSH connections, VM status: ACTIVE 2026-07-06 15:42:29,632 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-07-06 15:42:29,633 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46241390-03738543, IP 106.180.57.3, Port 22 2026-07-06 15:42:29,702 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-07-06 15:42:29,800 - DEBUG - VM ctest-TestBasicPolicy-46241390-03738543 is NOT ready for SSH connections, VM status: ACTIVE 2026-07-06 15:42:34,801 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-07-06 15:42:34,801 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46241390-03738543, IP 106.180.57.3, Port 22 2026-07-06 15:42:34,979 - DEBUG - VM ctest-TestBasicPolicy-46241390-03738543 is ready for SSH connections 2026-07-06 15:42:34,979 - INFO - Waiting for VM ctest-TestBasicPolicy-46241390-73068064 to be up.. 2026-07-06 15:42:35,068 - DEBUG - VM is in ACTIVE state now 2026-07-06 15:42:35,068 - INFO - VM name : ctest-TestBasicPolicy-46241390-73068064 2026-07-06 15:42:35,151 - DEBUG - VM ctest-TestBasicPolicy-46241390-73068064 ID is 9c7b3cc7-c9a4-4ab6-a7cd-3f08ac02d771 2026-07-06 15:42:35,152 - DEBUG - VM ctest-TestBasicPolicy-46241390-73068064 launched on Node an-jenkins-deploy-platform-ansible-os-6083-2 2026-07-06 15:42:35,231 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/9c7b3cc7-c9a4-4ab6-a7cd-3f08ac02d771 2026-07-06 15:42:35,242 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/9f9527cf-9498-410f-9274-7e0338eef81a 2026-07-06 15:42:36,421 - 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=5.21 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.59 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 = 3.589/4.401/5.214/0.812 ms') 2026-07-06 15:42:36,421 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46241390-73068064 passed 2026-07-06 15:42:36,498 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-07-06 15:42:36,498 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46241390-73068064, IP 157.78.129.67, Port 22 2026-07-06 15:42:36,684 - DEBUG - VM ctest-TestBasicPolicy-46241390-73068064 is ready for SSH connections 2026-07-06 15:42:36,684 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-07-06 15:42:36,684 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.78.129.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2026-07-06 15:42:36,684 - DEBUG - ping -s 56 -c 3 -W 1 157.78.129.67 2026-07-06 15:42:47,533 - DEBUG - PING 157.78.129.67 (157.78.129.67) 56(84) bytes of data. 64 bytes from 157.78.129.67: icmp_req=1 ttl=63 time=7.23 ms 64 bytes from 157.78.129.67: icmp_req=2 ttl=63 time=3.57 ms 64 bytes from 157.78.129.67: icmp_req=3 ttl=63 time=1.91 ms --- 157.78.129.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2006ms rtt min/avg/max/mdev = 1.918/4.242/7.237/2.222 ms 2026-07-06 15:42:47,533 - INFO - Ping to IP 157.78.129.67 from VM ctest-TestBasicPolicy-46241390-03738543 passed 2026-07-06 15:42:47,767 - DEBUG - Policy Update Response {"network-policy": {"uuid": "18774cb4-02b9-444e-955a-815858c1f146", "href": "http://10.0.0.33:8082/network-policy/18774cb4-02b9-444e-955a-815858c1f146"}} 2026-07-06 15:42:47,767 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-07-06 15:42:47,767 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.78.129.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2026-07-06 15:42:47,767 - DEBUG - ping -s 56 -c 3 -W 1 157.78.129.67 2026-07-06 15:42:51,232 - DEBUG - PING 157.78.129.67 (157.78.129.67) 56(84) bytes of data. 64 bytes from 157.78.129.67: icmp_req=1 ttl=63 time=3.50 ms --- 157.78.129.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2010ms rtt min/avg/max/mdev = 3.501/3.501/3.501/0.000 ms 2026-07-06 15:42:51,233 - WARNING - Ping to IP 157.78.129.67 from VM ctest-TestBasicPolicy-46241390-03738543 failed 2026-07-06 15:42:51,233 - INFO - Deleting VM ctest-TestBasicPolicy-46241390-73068064 2026-07-06 15:42:51,307 - INFO - Deleting VM ctest-TestBasicPolicy-46241390-03738543 2026-07-06 15:42:51,714 - INFO - Deleted policy ctest-policy-allow-all-90450203 2026-07-06 15:42:51,714 - INFO - Deleting VN ctest-vn-64716801 2026-07-06 15:42:51,754 - DEBUG - VN 512d2316-15ed-44b3-aeae-f5fed88c7839 still in use: Unable to complete operation on network 512d2316-15ed-44b3-aeae-f5fed88c7839. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d60373bc-92e1-4685-8181-375b47a41504'] 2026-07-06 15:42:51,754 - WARNING - Deleting VN ctest-vn-64716801 failed..Will retry 2026-07-06 15:42:53,923 - DEBUG - Response for deleting network () 2026-07-06 15:42:53,923 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0028ee7b-07b6-44ed-8b99-dbece0b88115 2026-07-06 15:42:53,929 - DEBUG - Response Code: 404 2026-07-06 15:42:53,929 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-06 15:42:53,939 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29c8bf4f-7bd3-4d89-9c75-5ea756ba884d 2026-07-06 15:42:53,954 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4aae709-767c-49b8-a02e-7bb25dea3e24 2026-07-06 15:42:54,057 - INFO - Validated that VN ctest-vn-64716801 is not found in API Server 2026-07-06 15:42:54,071 - DEBUG - VN ctest-vn-64716801 is not present in Agent 10.0.0.19 2026-07-06 15:42:54,082 - DEBUG - VN ctest-vn-64716801 is not present in Agent 10.0.0.57 2026-07-06 15:42:54,082 - INFO - Validated that VN ctest-vn-64716801 is not in any agent 2026-07-06 15:42:54,116 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64716801 info 2026-07-06 15:42:54,116 - INFO - Deleting VN ctest-vn-54758198 2026-07-06 15:42:54,292 - DEBUG - Response for deleting network () 2026-07-06 15:42:54,292 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a45ed0-ad08-4b6a-96b0-ab5a6f0b9cef 2026-07-06 15:42:54,299 - DEBUG - Response Code: 404 2026-07-06 15:42:54,299 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-06 15:42:54,312 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29c8bf4f-7bd3-4d89-9c75-5ea756ba884d 2026-07-06 15:42:54,323 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4aae709-767c-49b8-a02e-7bb25dea3e24 2026-07-06 15:42:54,410 - INFO - Validated that VN ctest-vn-54758198 is not found in API Server 2026-07-06 15:42:54,422 - DEBUG - VN ctest-vn-54758198 is not present in Agent 10.0.0.19 2026-07-06 15:42:54,434 - DEBUG - VN ctest-vn-54758198 is not present in Agent 10.0.0.57 2026-07-06 15:42:54,434 - INFO - Validated that VN ctest-vn-54758198 is not in any agent 2026-07-06 15:42:54,468 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54758198 info 2026-07-06 15:42:55,752 - DEBUG - No XMPP flaps were noticed during the test
2026-07-06 15:42:55,752 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:29]
2026-07-06 15:42:55,752 - INFO - -------------------------------------------------------------------------------- 2026-07-06 15:42:56,560 - INFO - Deleted project: ctest-TestBasicPolicy-46241390, ID : a4aae709-767c-49b8-a02e-7bb25dea3e24