2025-10-09 18:03:20,210 - INFO - Domain Default found not creating
2025-10-09 18:03:20,344 - INFO - Project ctest-TestBasicPolicy-01772279 not found, creating it
2025-10-09 18:03:20,794 - INFO - Created Project:ctest-TestBasicPolicy-01772279, ID : 16981a61-64c0-4a32-a1a1-fb7970936e80
2025-10-09 18:03:22,287 - INFO - ================================================================================
2025-10-09 18:03:22,287 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 18:03:22,287 - 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 18:03:22,543 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-10-09 18:03:22,543 - INFO - Initial checks done. Running the testcase now
2025-10-09 18:03:22,543 - INFO -
2025-10-09 18:03:23,077 - DEBUG - Response for create_network : {'network': {'id': '3f050ccc-05fb-416e-9df8-fc6d1e845da1', 'name': 'ctest-vn-22954620', 'tenant_id': '16981a6164c04a32a1a1fb7970936e80', 'project_id': '16981a6164c04a32a1a1fb7970936e80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01772279', 'ctest-vn-22954620'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 18:03:23,243 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6f065f5-eaad-4a87-9e21-ea22b8d82b6d', 'name': '', 'tenant_id': '16981a6164c04a32a1a1fb7970936e80', 'network_id': '3f050ccc-05fb-416e-9df8-fc6d1e845da1', 'ip_version': 4, 'cidr': '192.39.254.192/26', 'allocation_pools': [{'start': '192.39.254.194', 'end': '192.39.254.254'}], 'gateway_ip': '192.39.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.39.254.194', 'tags': [], 'project_id': '16981a6164c04a32a1a1fb7970936e80'}}
2025-10-09 18:03:23,259 - INFO - Created VN ctest-vn-22954620
2025-10-09 18:03:23,310 - DEBUG - VN ctest-vn-22954620 UUID is 3f050ccc-05fb-416e-9df8-fc6d1e845da1
2025-10-09 18:03:23,620 - DEBUG - Response for create_network : {'network': {'id': 'f88e6c8d-436f-40bb-b19b-6eaebec75965', 'name': 'ctest-vn-74512811', 'tenant_id': '16981a6164c04a32a1a1fb7970936e80', 'project_id': '16981a6164c04a32a1a1fb7970936e80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01772279', 'ctest-vn-74512811'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 18:03:23,818 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c73f557-3fd3-4be7-b9e9-d9dd10aac32d', 'name': '', 'tenant_id': '16981a6164c04a32a1a1fb7970936e80', 'network_id': 'f88e6c8d-436f-40bb-b19b-6eaebec75965', 'ip_version': 4, 'cidr': '101.252.244.192/26', 'allocation_pools': [{'start': '101.252.244.194', 'end': '101.252.244.254'}], 'gateway_ip': '101.252.244.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.252.244.194', 'tags': [], 'project_id': '16981a6164c04a32a1a1fb7970936e80'}}
2025-10-09 18:03:23,834 - INFO - Created VN ctest-vn-74512811
2025-10-09 18:03:23,886 - DEBUG - VN ctest-vn-74512811 UUID is f88e6c8d-436f-40bb-b19b-6eaebec75965
2025-10-09 18:03:24,034 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-22954620, 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-01772279:ctest-vn-74512811, 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 18:03:24,328 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3f050ccc-05fb-416e-9df8-fc6d1e845da1', 'name': 'ctest-vn-22954620', 'tenant_id': '16981a6164c04a32a1a1fb7970936e80', 'project_id': '16981a6164c04a32a1a1fb7970936e80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6f065f5-eaad-4a87-9e21-ea22b8d82b6d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01772279', 'ctest-vn-22954620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01772279', 'ctest-policy-allow-all-19393737']], 'subnet_ipam': [{'subnet_cidr': '192.39.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 18:03:24,551 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f88e6c8d-436f-40bb-b19b-6eaebec75965', 'name': 'ctest-vn-74512811', 'tenant_id': '16981a6164c04a32a1a1fb7970936e80', 'project_id': '16981a6164c04a32a1a1fb7970936e80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c73f557-3fd3-4be7-b9e9-d9dd10aac32d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01772279', 'ctest-vn-74512811'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01772279', 'ctest-policy-allow-all-19393737']], 'subnet_ipam': [{'subnet_cidr': '101.252.244.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 18:03:24,710 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 18:03:25,003 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 18:03:25,028 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2d3cbc57-8e6d-4365-ae81-1c37ad15a8f1
2025-10-09 18:03:25,038 - DEBUG - Requesting: http://10.0.0.33:8082/project/16981a61-64c0-4a32-a1a1-fb7970936e80
2025-10-09 18:03:25,107 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f050ccc-05fb-416e-9df8-fc6d1e845da1
2025-10-09 18:03:25,116 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f050ccc-05fb-416e-9df8-fc6d1e845da1
2025-10-09 18:03:25,123 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7138c4a9-4908-4d0a-ad34-09a5d94b4b3b
2025-10-09 18:03:25,129 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7138c4a9-4908-4d0a-ad34-09a5d94b4b3b
2025-10-09 18:03:25,134 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1a4b95ee-b02e-43d5-8ede-f4a48cf42332
2025-10-09 18:03:25,139 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 18:03:25,139 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f050ccc-05fb-416e-9df8-fc6d1e845da1
2025-10-09 18:03:25,146 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7138c4a9-4908-4d0a-ad34-09a5d94b4b3b
2025-10-09 18:03:25,158 - INFO - Verified VN network id 9 for VN 3f050ccc-05fb-416e-9df8-fc6d1e845da1
2025-10-09 18:03:25,158 - INFO - Verifications in API Server for VN ctest-vn-22954620 passed
2025-10-09 18:03:25,158 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f050ccc-05fb-416e-9df8-fc6d1e845da1
2025-10-09 18:03:25,165 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7138c4a9-4908-4d0a-ad34-09a5d94b4b3b
2025-10-09 18:03:25,170 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7138c4a9-4908-4d0a-ad34-09a5d94b4b3b
2025-10-09 18:03:25,175 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1a4b95ee-b02e-43d5-8ede-f4a48cf42332
2025-10-09 18:03:25,184 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-22954620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01772279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4541049869686227310', 'uuid-lslong': '11383125603772554657'}, 'enable': 'true', 'created': '2025-10-09T18:03:23', 'last-modified': '2025-10-09T18:03:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.881058'}
2025-10-09 18:03:25,189 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 18:03:25,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22954620 passed
2025-10-09 18:03:25,189 - DEBUG - ====Verifying policy data for ctest-vn-22954620 in API_Server ======
2025-10-09 18:03:25,189 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 18:03:25,193 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2d3cbc57-8e6d-4365-ae81-1c37ad15a8f1
2025-10-09 18:03:25,202 - DEBUG - Requesting: http://10.0.0.33:8082/project/16981a61-64c0-4a32-a1a1-fb7970936e80
2025-10-09 18:03:25,268 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f050ccc-05fb-416e-9df8-fc6d1e845da1
2025-10-09 18:03:25,277 - DEBUG - ==>Verifying data for policy with id: 15e6fce5-f5cd-40c4-8fbd-bcda2280de15, fqn: ['default-domain', 'ctest-TestBasicPolicy-01772279', 'ctest-policy-allow-all-19393737']
2025-10-09 18:03:25,277 - INFO - VN ctest-vn-22954620 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 18:03:25,277 - DEBUG - Verifying the vn in opserver
2025-10-09 18:03:25,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-22954620 virtual network link through opserver 10.0.0.33
2025-10-09 18:03:25,277 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 18:03:25,565 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 18:03:25,617 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-22954620', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-22954620?flat'}
2025-10-09 18:03:25,617 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-22954620 is found in opserver
2025-10-09 18:03:25,628 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 18:03:25,632 - DEBUG - VRF ids for VN ctest-vn-22954620: {}
2025-10-09 18:03:25,632 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 18:03:25,637 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2d3cbc57-8e6d-4365-ae81-1c37ad15a8f1
2025-10-09 18:03:25,648 - DEBUG - Requesting: http://10.0.0.33:8082/project/16981a61-64c0-4a32-a1a1-fb7970936e80
2025-10-09 18:03:25,721 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f88e6c8d-436f-40bb-b19b-6eaebec75965
2025-10-09 18:03:25,733 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f88e6c8d-436f-40bb-b19b-6eaebec75965
2025-10-09 18:03:25,741 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75687a6e-67ca-4213-95c3-add61c083775
2025-10-09 18:03:25,748 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75687a6e-67ca-4213-95c3-add61c083775
2025-10-09 18:03:25,754 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ad22d8f4-64bb-4358-a6df-4d19bbcd6c43
2025-10-09 18:03:25,760 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 18:03:25,760 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f88e6c8d-436f-40bb-b19b-6eaebec75965
2025-10-09 18:03:25,768 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75687a6e-67ca-4213-95c3-add61c083775
2025-10-09 18:03:25,780 - INFO - Verified VN network id 10 for VN f88e6c8d-436f-40bb-b19b-6eaebec75965
2025-10-09 18:03:25,781 - INFO - Verifications in API Server for VN ctest-vn-74512811 passed
2025-10-09 18:03:25,781 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f88e6c8d-436f-40bb-b19b-6eaebec75965
2025-10-09 18:03:25,789 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75687a6e-67ca-4213-95c3-add61c083775
2025-10-09 18:03:25,795 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75687a6e-67ca-4213-95c3-add61c083775
2025-10-09 18:03:25,802 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ad22d8f4-64bb-4358-a6df-4d19bbcd6c43
2025-10-09 18:03:25,812 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-74512811', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01772279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17910372122076594363', 'uuid-lslong': '12797944462907496805'}, 'enable': 'true', 'created': '2025-10-09T18:03:23', 'last-modified': '2025-10-09T18:03:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.282699'}
2025-10-09 18:03:25,819 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 18:03:25,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74512811 passed
2025-10-09 18:03:25,819 - DEBUG - ====Verifying policy data for ctest-vn-74512811 in API_Server ======
2025-10-09 18:03:25,819 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 18:03:25,825 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2d3cbc57-8e6d-4365-ae81-1c37ad15a8f1
2025-10-09 18:03:25,834 - DEBUG - Requesting: http://10.0.0.33:8082/project/16981a61-64c0-4a32-a1a1-fb7970936e80
2025-10-09 18:03:25,915 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f88e6c8d-436f-40bb-b19b-6eaebec75965
2025-10-09 18:03:25,927 - DEBUG - ==>Verifying data for policy with id: 15e6fce5-f5cd-40c4-8fbd-bcda2280de15, fqn: ['default-domain', 'ctest-TestBasicPolicy-01772279', 'ctest-policy-allow-all-19393737']
2025-10-09 18:03:25,927 - INFO - VN ctest-vn-74512811 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 18:03:25,927 - DEBUG - Verifying the vn in opserver
2025-10-09 18:03:25,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-74512811 virtual network link through opserver 10.0.0.33
2025-10-09 18:03:25,927 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 18:03:25,936 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-74512811', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-74512811?flat'}
2025-10-09 18:03:25,936 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01772279:ctest-vn-74512811 is found in opserver
2025-10-09 18:03:25,944 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 18:03:25,949 - DEBUG - VRF ids for VN ctest-vn-74512811: {}
2025-10-09 18:03:26,001 - DEBUG - Services list from nova: [