2026-06-22 02:09:16,295 - INFO - Domain Default found not creating
2026-06-22 02:09:16,453 - INFO - Project ctest-TestBasicPolicy-51780998 not found, creating it
2026-06-22 02:09:16,901 - INFO - Created Project:ctest-TestBasicPolicy-51780998, ID : 96aacc8d-4793-4f92-b67b-8ed4b31bad84
2026-06-22 02:09:18,337 - INFO - ================================================================================
2026-06-22 02:09:18,338 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-22 02:09:18,338 - 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-06-22 02:09:18,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-06-22 02:09:18,599 - INFO - Initial checks done. Running the testcase now
2026-06-22 02:09:18,599 - INFO -
2026-06-22 02:09:19,168 - DEBUG - Response for create_network : {'network': {'id': 'a8355d83-c3c0-4b63-a53a-03156ab89d07', 'name': 'ctest-vn-21149182', 'tenant_id': '96aacc8d47934f92b67b8ed4b31bad84', 'project_id': '96aacc8d47934f92b67b8ed4b31bad84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51780998', 'ctest-vn-21149182'], 'port_security_enabled': True, 'description': ''}}
2026-06-22 02:09:19,386 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c155a1b4-3ea4-4c88-8b02-fd304cdf0ddf', 'name': '', 'tenant_id': '96aacc8d47934f92b67b8ed4b31bad84', 'network_id': 'a8355d83-c3c0-4b63-a53a-03156ab89d07', 'ip_version': 4, 'cidr': '100.134.55.192/26', 'allocation_pools': [{'start': '100.134.55.194', 'end': '100.134.55.254'}], 'gateway_ip': '100.134.55.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.134.55.194', 'tags': [], 'project_id': '96aacc8d47934f92b67b8ed4b31bad84'}}
2026-06-22 02:09:19,403 - INFO - Created VN ctest-vn-21149182
2026-06-22 02:09:19,454 - DEBUG - VN ctest-vn-21149182 UUID is a8355d83-c3c0-4b63-a53a-03156ab89d07
2026-06-22 02:09:19,758 - DEBUG - Response for create_network : {'network': {'id': '0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd', 'name': 'ctest-vn-53409841', 'tenant_id': '96aacc8d47934f92b67b8ed4b31bad84', 'project_id': '96aacc8d47934f92b67b8ed4b31bad84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51780998', 'ctest-vn-53409841'], 'port_security_enabled': True, 'description': ''}}
2026-06-22 02:09:19,933 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca597963-1b90-4a41-a77c-bda38f75fdd0', 'name': '', 'tenant_id': '96aacc8d47934f92b67b8ed4b31bad84', 'network_id': '0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd', 'ip_version': 4, 'cidr': '138.119.3.64/26', 'allocation_pools': [{'start': '138.119.3.66', 'end': '138.119.3.126'}], 'gateway_ip': '138.119.3.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.119.3.66', 'tags': [], 'project_id': '96aacc8d47934f92b67b8ed4b31bad84'}}
2026-06-22 02:09:19,947 - INFO - Created VN ctest-vn-53409841
2026-06-22 02:09:19,998 - DEBUG - VN ctest-vn-53409841 UUID is 0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd
2026-06-22 02:09:20,154 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-21149182, 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-51780998:ctest-vn-53409841, 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-06-22 02:09:20,446 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8355d83-c3c0-4b63-a53a-03156ab89d07', 'name': 'ctest-vn-21149182', 'tenant_id': '96aacc8d47934f92b67b8ed4b31bad84', 'project_id': '96aacc8d47934f92b67b8ed4b31bad84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c155a1b4-3ea4-4c88-8b02-fd304cdf0ddf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51780998', 'ctest-vn-21149182'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51780998', 'ctest-policy-allow-all-17811267']], 'subnet_ipam': [{'subnet_cidr': '100.134.55.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-22 02:09:20,674 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd', 'name': 'ctest-vn-53409841', 'tenant_id': '96aacc8d47934f92b67b8ed4b31bad84', 'project_id': '96aacc8d47934f92b67b8ed4b31bad84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca597963-1b90-4a41-a77c-bda38f75fdd0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51780998', 'ctest-vn-53409841'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51780998', 'ctest-policy-allow-all-17811267']], 'subnet_ipam': [{'subnet_cidr': '138.119.3.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-22 02:09:20,838 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-22 02:09:21,159 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-22 02:09:21,181 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8fd5757-49ec-4513-adc1-5c67b2382f46
2026-06-22 02:09:21,192 - DEBUG - Requesting: http://10.0.0.38:8082/project/96aacc8d-4793-4f92-b67b-8ed4b31bad84
2026-06-22 02:09:21,263 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8355d83-c3c0-4b63-a53a-03156ab89d07
2026-06-22 02:09:21,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8355d83-c3c0-4b63-a53a-03156ab89d07
2026-06-22 02:09:21,281 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c751665-7a29-42ca-b10f-c60587e02a44
2026-06-22 02:09:21,287 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c751665-7a29-42ca-b10f-c60587e02a44
2026-06-22 02:09:21,293 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5d586f7-b8f3-4f97-bd93-160cbd419661
2026-06-22 02:09:21,299 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-22 02:09:21,299 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8355d83-c3c0-4b63-a53a-03156ab89d07
2026-06-22 02:09:21,306 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c751665-7a29-42ca-b10f-c60587e02a44
2026-06-22 02:09:21,317 - INFO - Verified VN network id 11 for VN a8355d83-c3c0-4b63-a53a-03156ab89d07
2026-06-22 02:09:21,318 - INFO - Verifications in API Server for VN ctest-vn-21149182 passed
2026-06-22 02:09:21,318 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8355d83-c3c0-4b63-a53a-03156ab89d07
2026-06-22 02:09:21,325 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c751665-7a29-42ca-b10f-c60587e02a44
2026-06-22 02:09:21,330 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c751665-7a29-42ca-b10f-c60587e02a44
2026-06-22 02:09:21,336 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5d586f7-b8f3-4f97-bd93-160cbd419661
2026-06-22 02:09:21,346 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-21149182', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51780998', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12120696792643816291', 'uuid-lslong': '11905831955427007751'}, 'enable': 'true', 'created': '2026-06-22T02:09:19', 'last-modified': '2026-06-22T02:09:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922343'}
2026-06-22 02:09:21,352 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-22 02:09:21,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21149182 passed
2026-06-22 02:09:21,352 - DEBUG - ====Verifying policy data for ctest-vn-21149182 in API_Server ======
2026-06-22 02:09:21,352 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-22 02:09:21,358 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8fd5757-49ec-4513-adc1-5c67b2382f46
2026-06-22 02:09:21,367 - DEBUG - Requesting: http://10.0.0.38:8082/project/96aacc8d-4793-4f92-b67b-8ed4b31bad84
2026-06-22 02:09:21,436 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8355d83-c3c0-4b63-a53a-03156ab89d07
2026-06-22 02:09:21,444 - DEBUG - ==>Verifying data for policy with id: 0bdee958-4f50-41cf-83c0-a59a503966f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-51780998', 'ctest-policy-allow-all-17811267']
2026-06-22 02:09:21,444 - INFO - VN ctest-vn-21149182 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-22 02:09:21,444 - DEBUG - Verifying the vn in opserver
2026-06-22 02:09:21,444 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-21149182 virtual network link through opserver 10.0.0.38
2026-06-22 02:09:21,445 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-22 02:09:21,766 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-22 02:09:21,816 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-21149182', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-21149182?flat'}
2026-06-22 02:09:21,816 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-21149182 is found in opserver
2026-06-22 02:09:21,824 - DEBUG - Do not have enough data to verify VN in agent
2026-06-22 02:09:21,830 - DEBUG - VRF ids for VN ctest-vn-21149182: {}
2026-06-22 02:09:21,830 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-22 02:09:21,835 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8fd5757-49ec-4513-adc1-5c67b2382f46
2026-06-22 02:09:21,844 - DEBUG - Requesting: http://10.0.0.38:8082/project/96aacc8d-4793-4f92-b67b-8ed4b31bad84
2026-06-22 02:09:21,909 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd
2026-06-22 02:09:21,919 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd
2026-06-22 02:09:21,927 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7292648b-60c1-4085-9ab4-44f8882c3812
2026-06-22 02:09:21,932 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7292648b-60c1-4085-9ab4-44f8882c3812
2026-06-22 02:09:21,937 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4848fc3f-0ee4-4b8a-a1fe-222b56612497
2026-06-22 02:09:21,942 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-22 02:09:21,942 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd
2026-06-22 02:09:21,949 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7292648b-60c1-4085-9ab4-44f8882c3812
2026-06-22 02:09:21,960 - INFO - Verified VN network id 12 for VN 0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd
2026-06-22 02:09:21,960 - INFO - Verifications in API Server for VN ctest-vn-53409841 passed
2026-06-22 02:09:21,960 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd
2026-06-22 02:09:21,968 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7292648b-60c1-4085-9ab4-44f8882c3812
2026-06-22 02:09:21,973 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7292648b-60c1-4085-9ab4-44f8882c3812
2026-06-22 02:09:21,979 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4848fc3f-0ee4-4b8a-a1fe-222b56612497
2026-06-22 02:09:21,988 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-53409841', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51780998', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1115454414478265555', 'uuid-lslong': '10756382291910169053'}, 'enable': 'true', 'created': '2026-06-22T02:09:19', 'last-modified': '2026-06-22T02:09:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333596'}
2026-06-22 02:09:21,994 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-22 02:09:21,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53409841 passed
2026-06-22 02:09:21,994 - DEBUG - ====Verifying policy data for ctest-vn-53409841 in API_Server ======
2026-06-22 02:09:21,994 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-22 02:09:22,000 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8fd5757-49ec-4513-adc1-5c67b2382f46
2026-06-22 02:09:22,008 - DEBUG - Requesting: http://10.0.0.38:8082/project/96aacc8d-4793-4f92-b67b-8ed4b31bad84
2026-06-22 02:09:22,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7ae3e1-4a1e-4cd3-9546-58b4699b91dd
2026-06-22 02:09:22,082 - DEBUG - ==>Verifying data for policy with id: 0bdee958-4f50-41cf-83c0-a59a503966f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-51780998', 'ctest-policy-allow-all-17811267']
2026-06-22 02:09:22,082 - INFO - VN ctest-vn-53409841 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-22 02:09:22,082 - DEBUG - Verifying the vn in opserver
2026-06-22 02:09:22,082 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-53409841 virtual network link through opserver 10.0.0.38
2026-06-22 02:09:22,082 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-22 02:09:22,090 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-53409841', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-53409841?flat'}
2026-06-22 02:09:22,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51780998:ctest-vn-53409841 is found in opserver
2026-06-22 02:09:22,098 - DEBUG - Do not have enough data to verify VN in agent
2026-06-22 02:09:22,101 - DEBUG - VRF ids for VN ctest-vn-53409841: {}
2026-06-22 02:09:22,151 - DEBUG - Services list from nova: [