2026-04-20 16:53:47,307 - INFO - Domain Default found not creating
2026-04-20 16:53:47,479 - INFO - Project ctest-TestBasicPolicy-23056158 not found, creating it
2026-04-20 16:53:47,961 - INFO - Created Project:ctest-TestBasicPolicy-23056158, ID : e9a8cd6e-c19c-4c6d-8d6a-93e371df8619
2026-04-20 16:53:49,479 - INFO - ================================================================================
2026-04-20 16:53:49,479 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-20 16:53:49,479 - 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-04-20 16:53:49,750 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.201': '0'}} with
2026-04-20 16:53:49,750 - INFO - Initial checks done. Running the testcase now
2026-04-20 16:53:49,750 - INFO -
2026-04-20 16:53:50,322 - DEBUG - Response for create_network : {'network': {'id': '69d6c685-e14b-4e93-8336-830124068b81', 'name': 'ctest-vn-23716500', 'tenant_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'project_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23056158', 'ctest-vn-23716500'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:53:50,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e6e2575-a717-4d00-9eae-e945aea5e43e', 'name': '', 'tenant_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'network_id': '69d6c685-e14b-4e93-8336-830124068b81', 'ip_version': 4, 'cidr': '87.234.211.64/26', 'allocation_pools': [{'start': '87.234.211.66', 'end': '87.234.211.126'}], 'gateway_ip': '87.234.211.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.234.211.66', 'tags': [], 'project_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619'}}
2026-04-20 16:53:50,497 - INFO - Created VN ctest-vn-23716500
2026-04-20 16:53:50,549 - DEBUG - VN ctest-vn-23716500 UUID is 69d6c685-e14b-4e93-8336-830124068b81
2026-04-20 16:53:50,878 - DEBUG - Response for create_network : {'network': {'id': '86dc7f72-3f32-48bc-a24d-42cae9f18b63', 'name': 'ctest-vn-64056599', 'tenant_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'project_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23056158', 'ctest-vn-64056599'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:53:51,084 - DEBUG - Response for create_subnet : {'subnet': {'id': '629873aa-5fd9-409b-9b94-fb2d34451d1c', 'name': '', 'tenant_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'network_id': '86dc7f72-3f32-48bc-a24d-42cae9f18b63', 'ip_version': 4, 'cidr': '45.70.11.192/26', 'allocation_pools': [{'start': '45.70.11.194', 'end': '45.70.11.254'}], 'gateway_ip': '45.70.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.70.11.194', 'tags': [], 'project_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619'}}
2026-04-20 16:53:51,101 - INFO - Created VN ctest-vn-64056599
2026-04-20 16:53:51,153 - DEBUG - VN ctest-vn-64056599 UUID is 86dc7f72-3f32-48bc-a24d-42cae9f18b63
2026-04-20 16:53:51,264 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-23716500, 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-23056158:ctest-vn-64056599, 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-04-20 16:53:51,561 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69d6c685-e14b-4e93-8336-830124068b81', 'name': 'ctest-vn-23716500', 'tenant_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'project_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e6e2575-a717-4d00-9eae-e945aea5e43e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23056158', 'ctest-vn-23716500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23056158', 'ctest-policy-allow-all-77969291']], 'subnet_ipam': [{'subnet_cidr': '87.234.211.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:53:51,794 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86dc7f72-3f32-48bc-a24d-42cae9f18b63', 'name': 'ctest-vn-64056599', 'tenant_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'project_id': 'e9a8cd6ec19c4c6d8d6a93e371df8619', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['629873aa-5fd9-409b-9b94-fb2d34451d1c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23056158', 'ctest-vn-64056599'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23056158', 'ctest-policy-allow-all-77969291']], 'subnet_ipam': [{'subnet_cidr': '45.70.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:53:51,965 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-20 16:53:52,264 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-20 16:53:52,298 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b4efae88-ad19-42dd-8d19-9ce1d0065f07
2026-04-20 16:53:52,310 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9a8cd6e-c19c-4c6d-8d6a-93e371df8619
2026-04-20 16:53:52,385 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69d6c685-e14b-4e93-8336-830124068b81
2026-04-20 16:53:52,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69d6c685-e14b-4e93-8336-830124068b81
2026-04-20 16:53:52,404 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41edb2d3-e88f-49a6-b338-a80e3067d15b
2026-04-20 16:53:52,411 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41edb2d3-e88f-49a6-b338-a80e3067d15b
2026-04-20 16:53:52,417 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/864476af-5cc0-4f62-9cf3-35de143c804e
2026-04-20 16:53:52,424 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 16:53:52,425 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69d6c685-e14b-4e93-8336-830124068b81
2026-04-20 16:53:52,434 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41edb2d3-e88f-49a6-b338-a80e3067d15b
2026-04-20 16:53:52,448 - INFO - Verified VN network id 11 for VN 69d6c685-e14b-4e93-8336-830124068b81
2026-04-20 16:53:52,448 - INFO - Verifications in API Server for VN ctest-vn-23716500 passed
2026-04-20 16:53:52,448 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69d6c685-e14b-4e93-8336-830124068b81
2026-04-20 16:53:52,456 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41edb2d3-e88f-49a6-b338-a80e3067d15b
2026-04-20 16:53:52,463 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41edb2d3-e88f-49a6-b338-a80e3067d15b
2026-04-20 16:53:52,470 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/864476af-5cc0-4f62-9cf3-35de143c804e
2026-04-20 16:53:52,484 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-23716500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23056158', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7626501297311272595', 'uuid-lslong': '9454888508633549697'}, 'enable': 'true', 'created': '2026-04-20T16:53:50', 'last-modified': '2026-04-20T16:53:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946994'}
2026-04-20 16:53:52,491 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 16:53:52,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23716500 passed
2026-04-20 16:53:52,492 - DEBUG - ====Verifying policy data for ctest-vn-23716500 in API_Server ======
2026-04-20 16:53:52,492 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-20 16:53:52,498 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b4efae88-ad19-42dd-8d19-9ce1d0065f07
2026-04-20 16:53:52,511 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9a8cd6e-c19c-4c6d-8d6a-93e371df8619
2026-04-20 16:53:52,580 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69d6c685-e14b-4e93-8336-830124068b81
2026-04-20 16:53:52,589 - DEBUG - ==>Verifying data for policy with id: 9c95b4e7-80ec-4e18-8e25-9da42c4d9209, fqn: ['default-domain', 'ctest-TestBasicPolicy-23056158', 'ctest-policy-allow-all-77969291']
2026-04-20 16:53:52,590 - INFO - VN ctest-vn-23716500 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 16:53:52,590 - DEBUG - Verifying the vn in opserver
2026-04-20 16:53:52,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-23716500 virtual network link through opserver 10.0.0.38
2026-04-20 16:53:52,590 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-20 16:53:52,883 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-20 16:53:52,943 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-23716500', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-23716500?flat'}
2026-04-20 16:53:52,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-23716500 is found in opserver
2026-04-20 16:53:52,953 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 16:53:52,957 - DEBUG - VRF ids for VN ctest-vn-23716500: {}
2026-04-20 16:53:52,957 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-20 16:53:52,962 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b4efae88-ad19-42dd-8d19-9ce1d0065f07
2026-04-20 16:53:52,973 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9a8cd6e-c19c-4c6d-8d6a-93e371df8619
2026-04-20 16:53:53,045 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86dc7f72-3f32-48bc-a24d-42cae9f18b63
2026-04-20 16:53:53,054 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86dc7f72-3f32-48bc-a24d-42cae9f18b63
2026-04-20 16:53:53,062 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1d4a5-8089-4b6e-aafc-22b73f7c16cd
2026-04-20 16:53:53,068 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1d4a5-8089-4b6e-aafc-22b73f7c16cd
2026-04-20 16:53:53,074 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f7a3efcc-de05-458e-a9f3-47404386ada9
2026-04-20 16:53:53,080 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 16:53:53,080 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86dc7f72-3f32-48bc-a24d-42cae9f18b63
2026-04-20 16:53:53,088 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1d4a5-8089-4b6e-aafc-22b73f7c16cd
2026-04-20 16:53:53,101 - INFO - Verified VN network id 12 for VN 86dc7f72-3f32-48bc-a24d-42cae9f18b63
2026-04-20 16:53:53,101 - INFO - Verifications in API Server for VN ctest-vn-64056599 passed
2026-04-20 16:53:53,101 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86dc7f72-3f32-48bc-a24d-42cae9f18b63
2026-04-20 16:53:53,109 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1d4a5-8089-4b6e-aafc-22b73f7c16cd
2026-04-20 16:53:53,116 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1d4a5-8089-4b6e-aafc-22b73f7c16cd
2026-04-20 16:53:53,123 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f7a3efcc-de05-458e-a9f3-47404386ada9
2026-04-20 16:53:53,134 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-64056599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23056158', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9717782224621947068', 'uuid-lslong': '11695077246626794339'}, 'enable': 'true', 'created': '2026-04-20T16:53:50', 'last-modified': '2026-04-20T16:53:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.364775'}
2026-04-20 16:53:53,140 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 16:53:53,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64056599 passed
2026-04-20 16:53:53,140 - DEBUG - ====Verifying policy data for ctest-vn-64056599 in API_Server ======
2026-04-20 16:53:53,140 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-20 16:53:53,146 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b4efae88-ad19-42dd-8d19-9ce1d0065f07
2026-04-20 16:53:53,158 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9a8cd6e-c19c-4c6d-8d6a-93e371df8619
2026-04-20 16:53:53,239 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86dc7f72-3f32-48bc-a24d-42cae9f18b63
2026-04-20 16:53:53,249 - DEBUG - ==>Verifying data for policy with id: 9c95b4e7-80ec-4e18-8e25-9da42c4d9209, fqn: ['default-domain', 'ctest-TestBasicPolicy-23056158', 'ctest-policy-allow-all-77969291']
2026-04-20 16:53:53,249 - INFO - VN ctest-vn-64056599 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 16:53:53,249 - DEBUG - Verifying the vn in opserver
2026-04-20 16:53:53,249 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-64056599 virtual network link through opserver 10.0.0.38
2026-04-20 16:53:53,249 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-20 16:53:53,260 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-64056599', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-64056599?flat'}
2026-04-20 16:53:53,260 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23056158:ctest-vn-64056599 is found in opserver
2026-04-20 16:53:53,269 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 16:53:53,274 - DEBUG - VRF ids for VN ctest-vn-64056599: {}
2026-04-20 16:53:53,328 - DEBUG - Services list from nova: [