2025-10-09 21:05:53,405 - INFO - Domain Default found not creating
2025-10-09 21:05:53,572 - INFO - Project ctest-TestBasicPolicy-53005256 not found, creating it
2025-10-09 21:05:54,043 - INFO - Created Project:ctest-TestBasicPolicy-53005256, ID : 8ada7d6d-a59e-477e-9bc0-e4bd4f95bfc1
2025-10-09 21:05:55,646 - INFO - ================================================================================
2025-10-09 21:05:55,647 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 21:05:55,647 - 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-10-09 21:05:55,908 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.209': '0'}} with
2025-10-09 21:05:55,908 - INFO - Initial checks done. Running the testcase now
2025-10-09 21:05:55,908 - INFO -
2025-10-09 21:05:56,513 - DEBUG - Response for create_network : {'network': {'id': '6e482739-7b23-43d8-a56b-bebc362522ed', 'name': 'ctest-vn-29130249', 'tenant_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'project_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53005256', 'ctest-vn-29130249'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 21:05:56,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '11afe982-63c3-453a-b73b-55a3b5f2e37b', 'name': '', 'tenant_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'network_id': '6e482739-7b23-43d8-a56b-bebc362522ed', 'ip_version': 4, 'cidr': '174.152.195.64/26', 'allocation_pools': [{'start': '174.152.195.66', 'end': '174.152.195.126'}], 'gateway_ip': '174.152.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.152.195.66', 'tags': [], 'project_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1'}}
2025-10-09 21:05:56,705 - INFO - Created VN ctest-vn-29130249
2025-10-09 21:05:56,757 - DEBUG - VN ctest-vn-29130249 UUID is 6e482739-7b23-43d8-a56b-bebc362522ed
2025-10-09 21:05:57,062 - DEBUG - Response for create_network : {'network': {'id': 'ace3a055-21e9-4968-ada2-7f8438200b23', 'name': 'ctest-vn-89940293', 'tenant_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'project_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53005256', 'ctest-vn-89940293'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 21:05:57,231 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5a3d9ed-8089-4ad9-8e0c-f9020350df0c', 'name': '', 'tenant_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'network_id': 'ace3a055-21e9-4968-ada2-7f8438200b23', 'ip_version': 4, 'cidr': '107.19.65.0/26', 'allocation_pools': [{'start': '107.19.65.2', 'end': '107.19.65.62'}], 'gateway_ip': '107.19.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.19.65.2', 'tags': [], 'project_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1'}}
2025-10-09 21:05:57,249 - INFO - Created VN ctest-vn-89940293
2025-10-09 21:05:57,301 - DEBUG - VN ctest-vn-89940293 UUID is ace3a055-21e9-4968-ada2-7f8438200b23
2025-10-09 21:05:57,418 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-29130249, 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-53005256:ctest-vn-89940293, 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-10-09 21:05:57,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e482739-7b23-43d8-a56b-bebc362522ed', 'name': 'ctest-vn-29130249', 'tenant_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'project_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11afe982-63c3-453a-b73b-55a3b5f2e37b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53005256', 'ctest-vn-29130249'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53005256', 'ctest-policy-allow-all-51654156']], 'subnet_ipam': [{'subnet_cidr': '174.152.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 21:05:57,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ace3a055-21e9-4968-ada2-7f8438200b23', 'name': 'ctest-vn-89940293', 'tenant_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'project_id': '8ada7d6da59e477e9bc0e4bd4f95bfc1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5a3d9ed-8089-4ad9-8e0c-f9020350df0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53005256', 'ctest-vn-89940293'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53005256', 'ctest-policy-allow-all-51654156']], 'subnet_ipam': [{'subnet_cidr': '107.19.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 21:05:58,137 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 21:05:58,482 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 21:05:58,512 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0952912c-19c0-4d73-b6ef-89bdd231f150
2025-10-09 21:05:58,524 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ada7d6d-a59e-477e-9bc0-e4bd4f95bfc1
2025-10-09 21:05:58,596 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6e482739-7b23-43d8-a56b-bebc362522ed
2025-10-09 21:05:58,606 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6e482739-7b23-43d8-a56b-bebc362522ed
2025-10-09 21:05:58,615 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d0593ad-6e4e-4425-bc00-255f6f6dcec8
2025-10-09 21:05:58,621 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d0593ad-6e4e-4425-bc00-255f6f6dcec8
2025-10-09 21:05:58,627 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/94b0ae27-df26-4b7d-9eb8-c3ac9750e6af
2025-10-09 21:05:58,633 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 21:05:58,633 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6e482739-7b23-43d8-a56b-bebc362522ed
2025-10-09 21:05:58,641 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d0593ad-6e4e-4425-bc00-255f6f6dcec8
2025-10-09 21:05:58,654 - INFO - Verified VN network id 11 for VN 6e482739-7b23-43d8-a56b-bebc362522ed
2025-10-09 21:05:58,654 - INFO - Verifications in API Server for VN ctest-vn-29130249 passed
2025-10-09 21:05:58,654 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6e482739-7b23-43d8-a56b-bebc362522ed
2025-10-09 21:05:58,662 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d0593ad-6e4e-4425-bc00-255f6f6dcec8
2025-10-09 21:05:58,668 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d0593ad-6e4e-4425-bc00-255f6f6dcec8
2025-10-09 21:05:58,673 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/94b0ae27-df26-4b7d-9eb8-c3ac9750e6af
2025-10-09 21:05:58,683 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-29130249', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53005256', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7946644670327768024', 'uuid-lslong': '11919830554337682157'}, 'enable': 'true', 'created': '2025-10-09T21:05:56', 'last-modified': '2025-10-09T21:05:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987597'}
2025-10-09 21:05:58,688 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 21:05:58,688 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29130249 passed
2025-10-09 21:05:58,688 - DEBUG - ====Verifying policy data for ctest-vn-29130249 in API_Server ======
2025-10-09 21:05:58,689 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 21:05:58,693 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0952912c-19c0-4d73-b6ef-89bdd231f150
2025-10-09 21:05:58,704 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ada7d6d-a59e-477e-9bc0-e4bd4f95bfc1
2025-10-09 21:05:58,777 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6e482739-7b23-43d8-a56b-bebc362522ed
2025-10-09 21:05:58,786 - DEBUG - ==>Verifying data for policy with id: 278b6597-abb6-4a09-9f72-22f8c479b223, fqn: ['default-domain', 'ctest-TestBasicPolicy-53005256', 'ctest-policy-allow-all-51654156']
2025-10-09 21:05:58,786 - INFO - VN ctest-vn-29130249 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 21:05:58,786 - DEBUG - Verifying the vn in opserver
2025-10-09 21:05:58,786 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-29130249 virtual network link through opserver 10.0.0.33
2025-10-09 21:05:58,787 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 21:05:59,120 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 21:05:59,179 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-29130249', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-29130249?flat'}
2025-10-09 21:05:59,179 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-29130249 is found in opserver
2025-10-09 21:05:59,189 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 21:05:59,193 - DEBUG - VRF ids for VN ctest-vn-29130249: {}
2025-10-09 21:05:59,193 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 21:05:59,198 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0952912c-19c0-4d73-b6ef-89bdd231f150
2025-10-09 21:05:59,210 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ada7d6d-a59e-477e-9bc0-e4bd4f95bfc1
2025-10-09 21:05:59,280 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ace3a055-21e9-4968-ada2-7f8438200b23
2025-10-09 21:05:59,292 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ace3a055-21e9-4968-ada2-7f8438200b23
2025-10-09 21:05:59,301 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77d4e5c8-de76-454e-8643-2de7e1e4f271
2025-10-09 21:05:59,309 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77d4e5c8-de76-454e-8643-2de7e1e4f271
2025-10-09 21:05:59,316 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1eb60ef6-ea94-4e19-8c03-3d1fa2584a09
2025-10-09 21:05:59,323 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 21:05:59,323 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ace3a055-21e9-4968-ada2-7f8438200b23
2025-10-09 21:05:59,332 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77d4e5c8-de76-454e-8643-2de7e1e4f271
2025-10-09 21:05:59,347 - INFO - Verified VN network id 12 for VN ace3a055-21e9-4968-ada2-7f8438200b23
2025-10-09 21:05:59,347 - INFO - Verifications in API Server for VN ctest-vn-89940293 passed
2025-10-09 21:05:59,347 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ace3a055-21e9-4968-ada2-7f8438200b23
2025-10-09 21:05:59,357 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77d4e5c8-de76-454e-8643-2de7e1e4f271
2025-10-09 21:05:59,365 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77d4e5c8-de76-454e-8643-2de7e1e4f271
2025-10-09 21:05:59,372 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1eb60ef6-ea94-4e19-8c03-3d1fa2584a09
2025-10-09 21:05:59,386 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-89940293', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53005256', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12457977281738525032', 'uuid-lslong': '12511702920642693923'}, 'enable': 'true', 'created': '2025-10-09T21:05:57', 'last-modified': '2025-10-09T21:05:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.462224'}
2025-10-09 21:05:59,392 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 21:05:59,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89940293 passed
2025-10-09 21:05:59,392 - DEBUG - ====Verifying policy data for ctest-vn-89940293 in API_Server ======
2025-10-09 21:05:59,392 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 21:05:59,398 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0952912c-19c0-4d73-b6ef-89bdd231f150
2025-10-09 21:05:59,409 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ada7d6d-a59e-477e-9bc0-e4bd4f95bfc1
2025-10-09 21:05:59,479 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ace3a055-21e9-4968-ada2-7f8438200b23
2025-10-09 21:05:59,488 - DEBUG - ==>Verifying data for policy with id: 278b6597-abb6-4a09-9f72-22f8c479b223, fqn: ['default-domain', 'ctest-TestBasicPolicy-53005256', 'ctest-policy-allow-all-51654156']
2025-10-09 21:05:59,488 - INFO - VN ctest-vn-89940293 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 21:05:59,488 - DEBUG - Verifying the vn in opserver
2025-10-09 21:05:59,488 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-89940293 virtual network link through opserver 10.0.0.33
2025-10-09 21:05:59,488 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 21:05:59,498 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-89940293', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-89940293?flat'}
2025-10-09 21:05:59,498 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53005256:ctest-vn-89940293 is found in opserver
2025-10-09 21:05:59,508 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 21:05:59,512 - DEBUG - VRF ids for VN ctest-vn-89940293: {}
2025-10-09 21:05:59,570 - DEBUG - Services list from nova: [