2025-10-27 11:52:18,736 - INFO - Domain Default found not creating
2025-10-27 11:52:18,913 - INFO - Project ctest-TestBasicPolicy-98534566 not found, creating it
2025-10-27 11:52:19,419 - INFO - Created Project:ctest-TestBasicPolicy-98534566, ID : 2e89e047-ed6f-4608-8335-d54d959575bf
2025-10-27 11:52:21,037 - INFO - ================================================================================
2025-10-27 11:52:21,037 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 11:52:21,037 - 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-27 11:52:21,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.25': '0'}} with
2025-10-27 11:52:21,297 - INFO - Initial checks done. Running the testcase now
2025-10-27 11:52:21,297 - INFO -
2025-10-27 11:52:21,908 - DEBUG - Response for create_network : {'network': {'id': 'c4dcfd81-b342-49dd-9a5d-f04336862be3', 'name': 'ctest-vn-84913228', 'tenant_id': '2e89e047ed6f46088335d54d959575bf', 'project_id': '2e89e047ed6f46088335d54d959575bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98534566', 'ctest-vn-84913228'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:52:22,076 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b443b179-92f1-4ddf-841b-d65fe5d9eba8', 'name': '', 'tenant_id': '2e89e047ed6f46088335d54d959575bf', 'network_id': 'c4dcfd81-b342-49dd-9a5d-f04336862be3', 'ip_version': 4, 'cidr': '94.250.91.128/26', 'allocation_pools': [{'start': '94.250.91.130', 'end': '94.250.91.190'}], 'gateway_ip': '94.250.91.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.250.91.130', 'tags': [], 'project_id': '2e89e047ed6f46088335d54d959575bf'}}
2025-10-27 11:52:22,096 - INFO - Created VN ctest-vn-84913228
2025-10-27 11:52:22,150 - DEBUG - VN ctest-vn-84913228 UUID is c4dcfd81-b342-49dd-9a5d-f04336862be3
2025-10-27 11:52:22,443 - DEBUG - Response for create_network : {'network': {'id': '8576a770-76e8-40f3-95b1-7ae4e3b86222', 'name': 'ctest-vn-13115045', 'tenant_id': '2e89e047ed6f46088335d54d959575bf', 'project_id': '2e89e047ed6f46088335d54d959575bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98534566', 'ctest-vn-13115045'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:52:22,605 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f29c7d8-1ffa-4e18-8bd8-54169341cf2d', 'name': '', 'tenant_id': '2e89e047ed6f46088335d54d959575bf', 'network_id': '8576a770-76e8-40f3-95b1-7ae4e3b86222', 'ip_version': 4, 'cidr': '68.185.4.128/26', 'allocation_pools': [{'start': '68.185.4.130', 'end': '68.185.4.190'}], 'gateway_ip': '68.185.4.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.185.4.130', 'tags': [], 'project_id': '2e89e047ed6f46088335d54d959575bf'}}
2025-10-27 11:52:22,625 - INFO - Created VN ctest-vn-13115045
2025-10-27 11:52:22,678 - DEBUG - VN ctest-vn-13115045 UUID is 8576a770-76e8-40f3-95b1-7ae4e3b86222
2025-10-27 11:52:22,791 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-84913228, 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-98534566:ctest-vn-13115045, 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-27 11:52:23,139 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4dcfd81-b342-49dd-9a5d-f04336862be3', 'name': 'ctest-vn-84913228', 'tenant_id': '2e89e047ed6f46088335d54d959575bf', 'project_id': '2e89e047ed6f46088335d54d959575bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b443b179-92f1-4ddf-841b-d65fe5d9eba8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98534566', 'ctest-vn-84913228'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98534566', 'ctest-policy-allow-all-83292291']], 'subnet_ipam': [{'subnet_cidr': '94.250.91.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:52:23,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8576a770-76e8-40f3-95b1-7ae4e3b86222', 'name': 'ctest-vn-13115045', 'tenant_id': '2e89e047ed6f46088335d54d959575bf', 'project_id': '2e89e047ed6f46088335d54d959575bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f29c7d8-1ffa-4e18-8bd8-54169341cf2d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98534566', 'ctest-vn-13115045'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98534566', 'ctest-policy-allow-all-83292291']], 'subnet_ipam': [{'subnet_cidr': '68.185.4.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:52:23,598 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-27 11:52:23,933 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-27 11:52:23,965 - DEBUG - Requesting: http://10.0.0.137:8082/domain/1ea78248-9bd3-42b0-af0d-f53f0f89b3b6
2025-10-27 11:52:23,978 - DEBUG - Requesting: http://10.0.0.137:8082/project/2e89e047-ed6f-4608-8335-d54d959575bf
2025-10-27 11:52:24,051 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/c4dcfd81-b342-49dd-9a5d-f04336862be3
2025-10-27 11:52:24,062 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/c4dcfd81-b342-49dd-9a5d-f04336862be3
2025-10-27 11:52:24,071 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/3a0ad62a-0a3a-4cc7-a7a0-cce24ebc5b37
2025-10-27 11:52:24,078 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/3a0ad62a-0a3a-4cc7-a7a0-cce24ebc5b37
2025-10-27 11:52:24,085 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/3de02dd4-0b02-43dd-a0fe-2806f13ead6d
2025-10-27 11:52:24,091 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 11:52:24,091 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/c4dcfd81-b342-49dd-9a5d-f04336862be3
2025-10-27 11:52:24,100 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/3a0ad62a-0a3a-4cc7-a7a0-cce24ebc5b37
2025-10-27 11:52:24,114 - INFO - Verified VN network id 11 for VN c4dcfd81-b342-49dd-9a5d-f04336862be3
2025-10-27 11:52:24,114 - INFO - Verifications in API Server for VN ctest-vn-84913228 passed
2025-10-27 11:52:24,114 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/c4dcfd81-b342-49dd-9a5d-f04336862be3
2025-10-27 11:52:24,123 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/3a0ad62a-0a3a-4cc7-a7a0-cce24ebc5b37
2025-10-27 11:52:24,130 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/3a0ad62a-0a3a-4cc7-a7a0-cce24ebc5b37
2025-10-27 11:52:24,138 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/3de02dd4-0b02-43dd-a0fe-2806f13ead6d
2025-10-27 11:52:24,152 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-84913228', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98534566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14185491659810294237', 'uuid-lslong': '11123310826143230947'}, 'enable': 'true', 'created': '2025-10-27T11:52:21', 'last-modified': '2025-10-27T11:52:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066012'}
2025-10-27 11:52:24,159 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 11:52:24,159 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84913228 passed
2025-10-27 11:52:24,159 - DEBUG - ====Verifying policy data for ctest-vn-84913228 in API_Server ======
2025-10-27 11:52:24,159 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-27 11:52:24,166 - DEBUG - Requesting: http://10.0.0.137:8082/domain/1ea78248-9bd3-42b0-af0d-f53f0f89b3b6
2025-10-27 11:52:24,181 - DEBUG - Requesting: http://10.0.0.137:8082/project/2e89e047-ed6f-4608-8335-d54d959575bf
2025-10-27 11:52:24,256 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/c4dcfd81-b342-49dd-9a5d-f04336862be3
2025-10-27 11:52:24,265 - DEBUG - ==>Verifying data for policy with id: 46368eef-d602-415f-a7b0-aabf0cbc8eb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-98534566', 'ctest-policy-allow-all-83292291']
2025-10-27 11:52:24,265 - INFO - VN ctest-vn-84913228 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 11:52:24,265 - DEBUG - Verifying the vn in opserver
2025-10-27 11:52:24,265 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-84913228 virtual network link through opserver 10.0.0.137
2025-10-27 11:52:24,265 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-27 11:52:24,605 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-27 11:52:24,671 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-84913228', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-84913228?flat'}
2025-10-27 11:52:24,671 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-84913228 is found in opserver
2025-10-27 11:52:24,683 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 11:52:24,688 - DEBUG - VRF ids for VN ctest-vn-84913228: {}
2025-10-27 11:52:24,688 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-27 11:52:24,693 - DEBUG - Requesting: http://10.0.0.137:8082/domain/1ea78248-9bd3-42b0-af0d-f53f0f89b3b6
2025-10-27 11:52:24,704 - DEBUG - Requesting: http://10.0.0.137:8082/project/2e89e047-ed6f-4608-8335-d54d959575bf
2025-10-27 11:52:24,776 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8576a770-76e8-40f3-95b1-7ae4e3b86222
2025-10-27 11:52:24,788 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8576a770-76e8-40f3-95b1-7ae4e3b86222
2025-10-27 11:52:24,798 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a8fe12f1-682c-4ee8-914d-331107b38469
2025-10-27 11:52:24,806 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a8fe12f1-682c-4ee8-914d-331107b38469
2025-10-27 11:52:24,812 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/c4977454-572c-4e17-87bd-8082bbcda478
2025-10-27 11:52:24,821 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 11:52:24,821 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8576a770-76e8-40f3-95b1-7ae4e3b86222
2025-10-27 11:52:24,830 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a8fe12f1-682c-4ee8-914d-331107b38469
2025-10-27 11:52:24,845 - INFO - Verified VN network id 12 for VN 8576a770-76e8-40f3-95b1-7ae4e3b86222
2025-10-27 11:52:24,845 - INFO - Verifications in API Server for VN ctest-vn-13115045 passed
2025-10-27 11:52:24,845 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8576a770-76e8-40f3-95b1-7ae4e3b86222
2025-10-27 11:52:24,854 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a8fe12f1-682c-4ee8-914d-331107b38469
2025-10-27 11:52:24,861 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a8fe12f1-682c-4ee8-914d-331107b38469
2025-10-27 11:52:24,868 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/c4977454-572c-4e17-87bd-8082bbcda478
2025-10-27 11:52:24,883 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-13115045', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98534566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9617058155769381107', 'uuid-lslong': '10786537706020692514'}, 'enable': 'true', 'created': '2025-10-27T11:52:22', 'last-modified': '2025-10-27T11:52:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.513861'}
2025-10-27 11:52:24,889 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 11:52:24,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13115045 passed
2025-10-27 11:52:24,890 - DEBUG - ====Verifying policy data for ctest-vn-13115045 in API_Server ======
2025-10-27 11:52:24,890 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-27 11:52:24,896 - DEBUG - Requesting: http://10.0.0.137:8082/domain/1ea78248-9bd3-42b0-af0d-f53f0f89b3b6
2025-10-27 11:52:24,907 - DEBUG - Requesting: http://10.0.0.137:8082/project/2e89e047-ed6f-4608-8335-d54d959575bf
2025-10-27 11:52:24,979 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8576a770-76e8-40f3-95b1-7ae4e3b86222
2025-10-27 11:52:24,991 - DEBUG - ==>Verifying data for policy with id: 46368eef-d602-415f-a7b0-aabf0cbc8eb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-98534566', 'ctest-policy-allow-all-83292291']
2025-10-27 11:52:24,991 - INFO - VN ctest-vn-13115045 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 11:52:24,991 - DEBUG - Verifying the vn in opserver
2025-10-27 11:52:24,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-13115045 virtual network link through opserver 10.0.0.137
2025-10-27 11:52:24,991 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-27 11:52:25,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-13115045', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-13115045?flat'}
2025-10-27 11:52:25,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98534566:ctest-vn-13115045 is found in opserver
2025-10-27 11:52:25,013 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 11:52:25,019 - DEBUG - VRF ids for VN ctest-vn-13115045: {}
2025-10-27 11:52:25,080 - DEBUG - Services list from nova: [