2025-12-18 10:21:48,520 - INFO - Domain Default found not creating
2025-12-18 10:21:48,681 - INFO - Project ctest-TestBasicPolicy-43663958 not found, creating it
2025-12-18 10:21:49,132 - INFO - Created Project:ctest-TestBasicPolicy-43663958, ID : ce8f26f9-4153-4a94-9246-6c0cbe173862
2025-12-18 10:21:50,619 - INFO - ================================================================================
2025-12-18 10:21:50,620 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-18 10:21:50,620 - 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-12-18 10:21:50,874 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-12-18 10:21:50,874 - INFO - Initial checks done. Running the testcase now
2025-12-18 10:21:50,874 - INFO -
2025-12-18 10:21:51,446 - DEBUG - Response for create_network : {'network': {'id': 'fac0047e-d0b0-4d08-afb6-0febc765b3df', 'name': 'ctest-vn-46375695', 'tenant_id': 'ce8f26f941534a9492466c0cbe173862', 'project_id': 'ce8f26f941534a9492466c0cbe173862', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43663958', 'ctest-vn-46375695'], 'port_security_enabled': True, 'description': ''}}
2025-12-18 10:21:51,592 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a810386a-8744-47ca-935d-3a33c4bc85b2', 'name': '', 'tenant_id': 'ce8f26f941534a9492466c0cbe173862', 'network_id': 'fac0047e-d0b0-4d08-afb6-0febc765b3df', 'ip_version': 4, 'cidr': '126.213.65.192/26', 'allocation_pools': [{'start': '126.213.65.194', 'end': '126.213.65.254'}], 'gateway_ip': '126.213.65.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.213.65.194', 'tags': [], 'project_id': 'ce8f26f941534a9492466c0cbe173862'}}
2025-12-18 10:21:51,608 - INFO - Created VN ctest-vn-46375695
2025-12-18 10:21:51,659 - DEBUG - VN ctest-vn-46375695 UUID is fac0047e-d0b0-4d08-afb6-0febc765b3df
2025-12-18 10:21:51,998 - DEBUG - Response for create_network : {'network': {'id': '3a3a51cd-da38-4372-a5ec-d74f18f0f7be', 'name': 'ctest-vn-47019974', 'tenant_id': 'ce8f26f941534a9492466c0cbe173862', 'project_id': 'ce8f26f941534a9492466c0cbe173862', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43663958', 'ctest-vn-47019974'], 'port_security_enabled': True, 'description': ''}}
2025-12-18 10:21:52,168 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc4fb731-b5f7-4d2f-9746-6de10cbf2dc5', 'name': '', 'tenant_id': 'ce8f26f941534a9492466c0cbe173862', 'network_id': '3a3a51cd-da38-4372-a5ec-d74f18f0f7be', 'ip_version': 4, 'cidr': '219.143.35.192/26', 'allocation_pools': [{'start': '219.143.35.194', 'end': '219.143.35.254'}], 'gateway_ip': '219.143.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.143.35.194', 'tags': [], 'project_id': 'ce8f26f941534a9492466c0cbe173862'}}
2025-12-18 10:21:52,184 - INFO - Created VN ctest-vn-47019974
2025-12-18 10:21:52,235 - DEBUG - VN ctest-vn-47019974 UUID is 3a3a51cd-da38-4372-a5ec-d74f18f0f7be
2025-12-18 10:21:52,391 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-46375695, 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-43663958:ctest-vn-47019974, 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-12-18 10:21:52,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fac0047e-d0b0-4d08-afb6-0febc765b3df', 'name': 'ctest-vn-46375695', 'tenant_id': 'ce8f26f941534a9492466c0cbe173862', 'project_id': 'ce8f26f941534a9492466c0cbe173862', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a810386a-8744-47ca-935d-3a33c4bc85b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43663958', 'ctest-vn-46375695'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43663958', 'ctest-policy-allow-all-27875764']], 'subnet_ipam': [{'subnet_cidr': '126.213.65.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-18 10:21:52,896 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a3a51cd-da38-4372-a5ec-d74f18f0f7be', 'name': 'ctest-vn-47019974', 'tenant_id': 'ce8f26f941534a9492466c0cbe173862', 'project_id': 'ce8f26f941534a9492466c0cbe173862', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc4fb731-b5f7-4d2f-9746-6de10cbf2dc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43663958', 'ctest-vn-47019974'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43663958', 'ctest-policy-allow-all-27875764']], 'subnet_ipam': [{'subnet_cidr': '219.143.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-18 10:21:53,063 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-18 10:21:53,358 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-18 10:21:53,387 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3cde6b1b-7af9-4596-8f35-efafcb4d5542
2025-12-18 10:21:53,400 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce8f26f9-4153-4a94-9246-6c0cbe173862
2025-12-18 10:21:53,468 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fac0047e-d0b0-4d08-afb6-0febc765b3df
2025-12-18 10:21:53,476 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fac0047e-d0b0-4d08-afb6-0febc765b3df
2025-12-18 10:21:53,485 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a34ed7e-b820-4912-97b2-e88fb45eff5e
2025-12-18 10:21:53,490 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a34ed7e-b820-4912-97b2-e88fb45eff5e
2025-12-18 10:21:53,495 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b87a5ebc-39bf-4b3b-88ed-4b6a4a9a8d3d
2025-12-18 10:21:53,501 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-18 10:21:53,501 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fac0047e-d0b0-4d08-afb6-0febc765b3df
2025-12-18 10:21:53,509 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a34ed7e-b820-4912-97b2-e88fb45eff5e
2025-12-18 10:21:53,521 - INFO - Verified VN network id 11 for VN fac0047e-d0b0-4d08-afb6-0febc765b3df
2025-12-18 10:21:53,521 - INFO - Verifications in API Server for VN ctest-vn-46375695 passed
2025-12-18 10:21:53,521 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fac0047e-d0b0-4d08-afb6-0febc765b3df
2025-12-18 10:21:53,530 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a34ed7e-b820-4912-97b2-e88fb45eff5e
2025-12-18 10:21:53,536 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a34ed7e-b820-4912-97b2-e88fb45eff5e
2025-12-18 10:21:53,542 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b87a5ebc-39bf-4b3b-88ed-4b6a4a9a8d3d
2025-12-18 10:21:53,553 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-46375695', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43663958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18068446647724035336', 'uuid-lslong': '12661324907735790559'}, 'enable': 'true', 'created': '2025-12-18T10:21:51', 'last-modified': '2025-12-18T10:21:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.901188'}
2025-12-18 10:21:53,558 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-18 10:21:53,558 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46375695 passed
2025-12-18 10:21:53,558 - DEBUG - ====Verifying policy data for ctest-vn-46375695 in API_Server ======
2025-12-18 10:21:53,559 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-18 10:21:53,564 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3cde6b1b-7af9-4596-8f35-efafcb4d5542
2025-12-18 10:21:53,574 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce8f26f9-4153-4a94-9246-6c0cbe173862
2025-12-18 10:21:53,641 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fac0047e-d0b0-4d08-afb6-0febc765b3df
2025-12-18 10:21:53,649 - DEBUG - ==>Verifying data for policy with id: 88fc4181-ac56-41d7-abe8-60c1b504d859, fqn: ['default-domain', 'ctest-TestBasicPolicy-43663958', 'ctest-policy-allow-all-27875764']
2025-12-18 10:21:53,649 - INFO - VN ctest-vn-46375695 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-18 10:21:53,649 - DEBUG - Verifying the vn in opserver
2025-12-18 10:21:53,649 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-46375695 virtual network link through opserver 10.0.0.50
2025-12-18 10:21:53,650 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-18 10:21:53,944 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-18 10:21:54,001 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-46375695', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-46375695?flat'}
2025-12-18 10:21:54,001 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-46375695 is found in opserver
2025-12-18 10:21:54,010 - DEBUG - Do not have enough data to verify VN in agent
2025-12-18 10:21:54,014 - DEBUG - VRF ids for VN ctest-vn-46375695: {}
2025-12-18 10:21:54,014 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-18 10:21:54,019 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3cde6b1b-7af9-4596-8f35-efafcb4d5542
2025-12-18 10:21:54,028 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce8f26f9-4153-4a94-9246-6c0cbe173862
2025-12-18 10:21:54,095 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3a3a51cd-da38-4372-a5ec-d74f18f0f7be
2025-12-18 10:21:54,105 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3a3a51cd-da38-4372-a5ec-d74f18f0f7be
2025-12-18 10:21:54,113 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba4d33cb-ab46-4549-a4d4-5181224d7fbe
2025-12-18 10:21:54,119 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba4d33cb-ab46-4549-a4d4-5181224d7fbe
2025-12-18 10:21:54,129 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b9f2f93-8240-4d20-9d61-a43d90a25ee1
2025-12-18 10:21:54,136 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-18 10:21:54,136 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3a3a51cd-da38-4372-a5ec-d74f18f0f7be
2025-12-18 10:21:54,146 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba4d33cb-ab46-4549-a4d4-5181224d7fbe
2025-12-18 10:21:54,161 - INFO - Verified VN network id 12 for VN 3a3a51cd-da38-4372-a5ec-d74f18f0f7be
2025-12-18 10:21:54,161 - INFO - Verifications in API Server for VN ctest-vn-47019974 passed
2025-12-18 10:21:54,161 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3a3a51cd-da38-4372-a5ec-d74f18f0f7be
2025-12-18 10:21:54,172 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba4d33cb-ab46-4549-a4d4-5181224d7fbe
2025-12-18 10:21:54,186 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba4d33cb-ab46-4549-a4d4-5181224d7fbe
2025-12-18 10:21:54,194 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b9f2f93-8240-4d20-9d61-a43d90a25ee1
2025-12-18 10:21:54,206 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-47019974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43663958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4195755947420304242', 'uuid-lslong': '11956167845482657726'}, 'enable': 'true', 'created': '2025-12-18T10:21:51', 'last-modified': '2025-12-18T10:21:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333563'}
2025-12-18 10:21:54,213 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-18 10:21:54,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47019974 passed
2025-12-18 10:21:54,214 - DEBUG - ====Verifying policy data for ctest-vn-47019974 in API_Server ======
2025-12-18 10:21:54,214 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-18 10:21:54,219 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3cde6b1b-7af9-4596-8f35-efafcb4d5542
2025-12-18 10:21:54,229 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce8f26f9-4153-4a94-9246-6c0cbe173862
2025-12-18 10:21:54,301 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3a3a51cd-da38-4372-a5ec-d74f18f0f7be
2025-12-18 10:21:54,311 - DEBUG - ==>Verifying data for policy with id: 88fc4181-ac56-41d7-abe8-60c1b504d859, fqn: ['default-domain', 'ctest-TestBasicPolicy-43663958', 'ctest-policy-allow-all-27875764']
2025-12-18 10:21:54,311 - INFO - VN ctest-vn-47019974 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-18 10:21:54,311 - DEBUG - Verifying the vn in opserver
2025-12-18 10:21:54,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-47019974 virtual network link through opserver 10.0.0.50
2025-12-18 10:21:54,312 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-18 10:21:54,320 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-47019974', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-47019974?flat'}
2025-12-18 10:21:54,320 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43663958:ctest-vn-47019974 is found in opserver
2025-12-18 10:21:54,330 - DEBUG - Do not have enough data to verify VN in agent
2025-12-18 10:21:54,335 - DEBUG - VRF ids for VN ctest-vn-47019974: {}
2025-12-18 10:21:54,389 - DEBUG - Services list from nova: [