2025-11-03 17:56:30,374 - INFO - Domain Default found not creating
2025-11-03 17:56:30,550 - INFO - Project ctest-TestBasicPolicy-06019857 not found, creating it
2025-11-03 17:56:31,020 - INFO - Created Project:ctest-TestBasicPolicy-06019857, ID : 8155a71e-d92f-4d68-99e0-12b3f6d3b761
2025-11-03 17:56:32,524 - INFO - ================================================================================
2025-11-03 17:56:32,525 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 17:56:32,525 - 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-11-03 17:56:32,780 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-11-03 17:56:32,780 - INFO - Initial checks done. Running the testcase now
2025-11-03 17:56:32,780 - INFO -
2025-11-03 17:56:33,336 - DEBUG - Response for create_network : {'network': {'id': '1c6bc0cc-9996-420c-b830-bb1d8a17fdd4', 'name': 'ctest-vn-42809466', 'tenant_id': '8155a71ed92f4d6899e012b3f6d3b761', 'project_id': '8155a71ed92f4d6899e012b3f6d3b761', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06019857', 'ctest-vn-42809466'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 17:56:33,570 - DEBUG - Response for create_subnet : {'subnet': {'id': '511f4153-f129-4736-b579-044d9678614d', 'name': '', 'tenant_id': '8155a71ed92f4d6899e012b3f6d3b761', 'network_id': '1c6bc0cc-9996-420c-b830-bb1d8a17fdd4', 'ip_version': 4, 'cidr': '155.237.98.0/26', 'allocation_pools': [{'start': '155.237.98.2', 'end': '155.237.98.62'}], 'gateway_ip': '155.237.98.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.237.98.2', 'tags': [], 'project_id': '8155a71ed92f4d6899e012b3f6d3b761'}}
2025-11-03 17:56:33,591 - INFO - Created VN ctest-vn-42809466
2025-11-03 17:56:33,642 - DEBUG - VN ctest-vn-42809466 UUID is 1c6bc0cc-9996-420c-b830-bb1d8a17fdd4
2025-11-03 17:56:33,944 - DEBUG - Response for create_network : {'network': {'id': '9f55e2fc-ac89-4cf5-b600-6471db7e0bb3', 'name': 'ctest-vn-74250841', 'tenant_id': '8155a71ed92f4d6899e012b3f6d3b761', 'project_id': '8155a71ed92f4d6899e012b3f6d3b761', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06019857', 'ctest-vn-74250841'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 17:56:34,093 - DEBUG - Response for create_subnet : {'subnet': {'id': '505ca12e-5999-40b6-8858-1da504182d67', 'name': '', 'tenant_id': '8155a71ed92f4d6899e012b3f6d3b761', 'network_id': '9f55e2fc-ac89-4cf5-b600-6471db7e0bb3', 'ip_version': 4, 'cidr': '105.137.26.192/26', 'allocation_pools': [{'start': '105.137.26.194', 'end': '105.137.26.254'}], 'gateway_ip': '105.137.26.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.137.26.194', 'tags': [], 'project_id': '8155a71ed92f4d6899e012b3f6d3b761'}}
2025-11-03 17:56:34,113 - INFO - Created VN ctest-vn-74250841
2025-11-03 17:56:34,166 - DEBUG - VN ctest-vn-74250841 UUID is 9f55e2fc-ac89-4cf5-b600-6471db7e0bb3
2025-11-03 17:56:34,286 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-42809466, 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-06019857:ctest-vn-74250841, 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-11-03 17:56:34,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c6bc0cc-9996-420c-b830-bb1d8a17fdd4', 'name': 'ctest-vn-42809466', 'tenant_id': '8155a71ed92f4d6899e012b3f6d3b761', 'project_id': '8155a71ed92f4d6899e012b3f6d3b761', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['511f4153-f129-4736-b579-044d9678614d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06019857', 'ctest-vn-42809466'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06019857', 'ctest-policy-allow-all-72444706']], 'subnet_ipam': [{'subnet_cidr': '155.237.98.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 17:56:34,875 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f55e2fc-ac89-4cf5-b600-6471db7e0bb3', 'name': 'ctest-vn-74250841', 'tenant_id': '8155a71ed92f4d6899e012b3f6d3b761', 'project_id': '8155a71ed92f4d6899e012b3f6d3b761', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['505ca12e-5999-40b6-8858-1da504182d67'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06019857', 'ctest-vn-74250841'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06019857', 'ctest-policy-allow-all-72444706']], 'subnet_ipam': [{'subnet_cidr': '105.137.26.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 17:56:35,018 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-03 17:56:35,319 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-03 17:56:35,350 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f4a7a9-0448-4f59-b582-413a395f4304
2025-11-03 17:56:35,364 - DEBUG - Requesting: http://10.0.0.33:8082/project/8155a71e-d92f-4d68-99e0-12b3f6d3b761
2025-11-03 17:56:35,439 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1c6bc0cc-9996-420c-b830-bb1d8a17fdd4
2025-11-03 17:56:35,449 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1c6bc0cc-9996-420c-b830-bb1d8a17fdd4
2025-11-03 17:56:35,457 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c78487d6-73a1-4ad6-9f85-42d1cb057589
2025-11-03 17:56:35,464 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c78487d6-73a1-4ad6-9f85-42d1cb057589
2025-11-03 17:56:35,470 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/52622694-773b-4fa7-b57c-9f146ffab048
2025-11-03 17:56:35,476 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 17:56:35,476 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1c6bc0cc-9996-420c-b830-bb1d8a17fdd4
2025-11-03 17:56:35,484 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c78487d6-73a1-4ad6-9f85-42d1cb057589
2025-11-03 17:56:35,499 - INFO - Verified VN network id 11 for VN 1c6bc0cc-9996-420c-b830-bb1d8a17fdd4
2025-11-03 17:56:35,499 - INFO - Verifications in API Server for VN ctest-vn-42809466 passed
2025-11-03 17:56:35,499 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1c6bc0cc-9996-420c-b830-bb1d8a17fdd4
2025-11-03 17:56:35,508 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c78487d6-73a1-4ad6-9f85-42d1cb057589
2025-11-03 17:56:35,515 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c78487d6-73a1-4ad6-9f85-42d1cb057589
2025-11-03 17:56:35,521 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/52622694-773b-4fa7-b57c-9f146ffab048
2025-11-03 17:56:35,533 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-42809466', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06019857', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2047942440552645132', 'uuid-lslong': '13272313837406125524'}, 'enable': 'true', 'created': '2025-11-03T17:56:33', 'last-modified': '2025-11-03T17:56:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971958'}
2025-11-03 17:56:35,538 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 17:56:35,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42809466 passed
2025-11-03 17:56:35,539 - DEBUG - ====Verifying policy data for ctest-vn-42809466 in API_Server ======
2025-11-03 17:56:35,539 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-03 17:56:35,544 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f4a7a9-0448-4f59-b582-413a395f4304
2025-11-03 17:56:35,559 - DEBUG - Requesting: http://10.0.0.33:8082/project/8155a71e-d92f-4d68-99e0-12b3f6d3b761
2025-11-03 17:56:35,634 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1c6bc0cc-9996-420c-b830-bb1d8a17fdd4
2025-11-03 17:56:35,644 - DEBUG - ==>Verifying data for policy with id: d15b975c-6aca-4369-83fa-b1bee5689e24, fqn: ['default-domain', 'ctest-TestBasicPolicy-06019857', 'ctest-policy-allow-all-72444706']
2025-11-03 17:56:35,644 - INFO - VN ctest-vn-42809466 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 17:56:35,644 - DEBUG - Verifying the vn in opserver
2025-11-03 17:56:35,644 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-42809466 virtual network link through opserver 10.0.0.33
2025-11-03 17:56:35,644 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-03 17:56:35,941 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-03 17:56:36,005 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-42809466', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-42809466?flat'}
2025-11-03 17:56:36,005 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-42809466 is found in opserver
2025-11-03 17:56:36,015 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 17:56:36,019 - DEBUG - VRF ids for VN ctest-vn-42809466: {}
2025-11-03 17:56:36,020 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-03 17:56:36,025 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f4a7a9-0448-4f59-b582-413a395f4304
2025-11-03 17:56:36,036 - DEBUG - Requesting: http://10.0.0.33:8082/project/8155a71e-d92f-4d68-99e0-12b3f6d3b761
2025-11-03 17:56:36,108 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9f55e2fc-ac89-4cf5-b600-6471db7e0bb3
2025-11-03 17:56:36,119 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9f55e2fc-ac89-4cf5-b600-6471db7e0bb3
2025-11-03 17:56:36,127 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dff27897-d1fe-43e7-b6aa-2d046492a615
2025-11-03 17:56:36,133 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dff27897-d1fe-43e7-b6aa-2d046492a615
2025-11-03 17:56:36,139 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0f9f64bf-fa4a-405a-b53a-4fcc8a4763f5
2025-11-03 17:56:36,145 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 17:56:36,145 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9f55e2fc-ac89-4cf5-b600-6471db7e0bb3
2025-11-03 17:56:36,153 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dff27897-d1fe-43e7-b6aa-2d046492a615
2025-11-03 17:56:36,167 - INFO - Verified VN network id 12 for VN 9f55e2fc-ac89-4cf5-b600-6471db7e0bb3
2025-11-03 17:56:36,167 - INFO - Verifications in API Server for VN ctest-vn-74250841 passed
2025-11-03 17:56:36,167 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9f55e2fc-ac89-4cf5-b600-6471db7e0bb3
2025-11-03 17:56:36,178 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dff27897-d1fe-43e7-b6aa-2d046492a615
2025-11-03 17:56:36,186 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dff27897-d1fe-43e7-b6aa-2d046492a615
2025-11-03 17:56:36,193 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0f9f64bf-fa4a-405a-b53a-4fcc8a4763f5
2025-11-03 17:56:36,204 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-74250841', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06019857', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11481332399905262837', 'uuid-lslong': '13114592555079437235'}, 'enable': 'true', 'created': '2025-11-03T17:56:33', 'last-modified': '2025-11-03T17:56:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405135'}
2025-11-03 17:56:36,210 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 17:56:36,210 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74250841 passed
2025-11-03 17:56:36,210 - DEBUG - ====Verifying policy data for ctest-vn-74250841 in API_Server ======
2025-11-03 17:56:36,210 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-03 17:56:36,216 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f4a7a9-0448-4f59-b582-413a395f4304
2025-11-03 17:56:36,226 - DEBUG - Requesting: http://10.0.0.33:8082/project/8155a71e-d92f-4d68-99e0-12b3f6d3b761
2025-11-03 17:56:36,297 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9f55e2fc-ac89-4cf5-b600-6471db7e0bb3
2025-11-03 17:56:36,307 - DEBUG - ==>Verifying data for policy with id: d15b975c-6aca-4369-83fa-b1bee5689e24, fqn: ['default-domain', 'ctest-TestBasicPolicy-06019857', 'ctest-policy-allow-all-72444706']
2025-11-03 17:56:36,307 - INFO - VN ctest-vn-74250841 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 17:56:36,307 - DEBUG - Verifying the vn in opserver
2025-11-03 17:56:36,307 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-74250841 virtual network link through opserver 10.0.0.33
2025-11-03 17:56:36,307 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-03 17:56:36,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-74250841', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-74250841?flat'}
2025-11-03 17:56:36,317 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06019857:ctest-vn-74250841 is found in opserver
2025-11-03 17:56:36,327 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 17:56:36,334 - DEBUG - VRF ids for VN ctest-vn-74250841: {}
2025-11-03 17:56:36,397 - DEBUG - Services list from nova: [