2025-10-30 09:46:31,513 - INFO - Domain Default found not creating
2025-10-30 09:46:31,655 - INFO - Project ctest-TestBasicPolicy-19661635 not found, creating it
2025-10-30 09:46:32,087 - INFO - Created Project:ctest-TestBasicPolicy-19661635, ID : e22b45af-f872-4b92-a586-3619997aa3d3
2025-10-30 09:46:33,468 - INFO - ================================================================================
2025-10-30 09:46:33,468 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 09:46:33,469 - 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-30 09:46:33,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.5': '0'}} with
2025-10-30 09:46:33,721 - INFO - Initial checks done. Running the testcase now
2025-10-30 09:46:33,721 - INFO -
2025-10-30 09:46:34,251 - DEBUG - Response for create_network : {'network': {'id': '27ceee21-d44c-4fc9-bb59-35c20e63d709', 'name': 'ctest-vn-08522907', 'tenant_id': 'e22b45aff8724b92a5863619997aa3d3', 'project_id': 'e22b45aff8724b92a5863619997aa3d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19661635', 'ctest-vn-08522907'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 09:46:34,392 - DEBUG - Response for create_subnet : {'subnet': {'id': '20c3b0fc-be02-44d6-b887-d6847f1bf6d6', 'name': '', 'tenant_id': 'e22b45aff8724b92a5863619997aa3d3', 'network_id': '27ceee21-d44c-4fc9-bb59-35c20e63d709', 'ip_version': 4, 'cidr': '200.207.122.0/26', 'allocation_pools': [{'start': '200.207.122.2', 'end': '200.207.122.62'}], 'gateway_ip': '200.207.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.207.122.2', 'tags': [], 'project_id': 'e22b45aff8724b92a5863619997aa3d3'}}
2025-10-30 09:46:34,408 - INFO - Created VN ctest-vn-08522907
2025-10-30 09:46:34,461 - DEBUG - VN ctest-vn-08522907 UUID is 27ceee21-d44c-4fc9-bb59-35c20e63d709
2025-10-30 09:46:35,047 - DEBUG - Response for create_network : {'network': {'id': 'c6221c43-3271-4724-b0ec-53bf678db04d', 'name': 'ctest-vn-88119040', 'tenant_id': 'e22b45aff8724b92a5863619997aa3d3', 'project_id': 'e22b45aff8724b92a5863619997aa3d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19661635', 'ctest-vn-88119040'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 09:46:35,198 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2babd1e-3538-4bd8-a91f-71c1e2e7f814', 'name': '', 'tenant_id': 'e22b45aff8724b92a5863619997aa3d3', 'network_id': 'c6221c43-3271-4724-b0ec-53bf678db04d', 'ip_version': 4, 'cidr': '50.31.96.0/26', 'allocation_pools': [{'start': '50.31.96.2', 'end': '50.31.96.62'}], 'gateway_ip': '50.31.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.31.96.2', 'tags': [], 'project_id': 'e22b45aff8724b92a5863619997aa3d3'}}
2025-10-30 09:46:35,217 - INFO - Created VN ctest-vn-88119040
2025-10-30 09:46:35,273 - DEBUG - VN ctest-vn-88119040 UUID is c6221c43-3271-4724-b0ec-53bf678db04d
2025-10-30 09:46:35,417 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-08522907, 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-19661635:ctest-vn-88119040, 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-30 09:46:35,715 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27ceee21-d44c-4fc9-bb59-35c20e63d709', 'name': 'ctest-vn-08522907', 'tenant_id': 'e22b45aff8724b92a5863619997aa3d3', 'project_id': 'e22b45aff8724b92a5863619997aa3d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20c3b0fc-be02-44d6-b887-d6847f1bf6d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19661635', 'ctest-vn-08522907'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19661635', 'ctest-policy-allow-all-60287565']], 'subnet_ipam': [{'subnet_cidr': '200.207.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 09:46:35,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6221c43-3271-4724-b0ec-53bf678db04d', 'name': 'ctest-vn-88119040', 'tenant_id': 'e22b45aff8724b92a5863619997aa3d3', 'project_id': 'e22b45aff8724b92a5863619997aa3d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2babd1e-3538-4bd8-a91f-71c1e2e7f814'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19661635', 'ctest-vn-88119040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19661635', 'ctest-policy-allow-all-60287565']], 'subnet_ipam': [{'subnet_cidr': '50.31.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 09:46:36,137 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 09:46:36,439 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 09:46:36,465 - DEBUG - Requesting: http://10.0.0.242:8082/domain/604772ea-63e8-432b-8e76-1ba839bd0071
2025-10-30 09:46:36,476 - DEBUG - Requesting: http://10.0.0.242:8082/project/e22b45af-f872-4b92-a586-3619997aa3d3
2025-10-30 09:46:36,545 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27ceee21-d44c-4fc9-bb59-35c20e63d709
2025-10-30 09:46:36,554 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27ceee21-d44c-4fc9-bb59-35c20e63d709
2025-10-30 09:46:36,562 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e9173b3a-9442-4a56-8add-afb84b4e0317
2025-10-30 09:46:36,568 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e9173b3a-9442-4a56-8add-afb84b4e0317
2025-10-30 09:46:36,573 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9d34d044-7737-46eb-b0fd-81ef2b4aaf10
2025-10-30 09:46:36,578 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 09:46:36,578 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27ceee21-d44c-4fc9-bb59-35c20e63d709
2025-10-30 09:46:36,585 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e9173b3a-9442-4a56-8add-afb84b4e0317
2025-10-30 09:46:36,596 - INFO - Verified VN network id 10 for VN 27ceee21-d44c-4fc9-bb59-35c20e63d709
2025-10-30 09:46:36,596 - INFO - Verifications in API Server for VN ctest-vn-08522907 passed
2025-10-30 09:46:36,596 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27ceee21-d44c-4fc9-bb59-35c20e63d709
2025-10-30 09:46:36,603 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e9173b3a-9442-4a56-8add-afb84b4e0317
2025-10-30 09:46:36,608 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e9173b3a-9442-4a56-8add-afb84b4e0317
2025-10-30 09:46:36,613 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9d34d044-7737-46eb-b0fd-81ef2b4aaf10
2025-10-30 09:46:36,623 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-08522907', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19661635', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2868491841744687049', 'uuid-lslong': '13499880465601124105'}, 'enable': 'true', 'created': '2025-10-30T09:46:34', 'last-modified': '2025-10-30T09:46:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930254'}
2025-10-30 09:46:36,628 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 09:46:36,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08522907 passed
2025-10-30 09:46:36,628 - DEBUG - ====Verifying policy data for ctest-vn-08522907 in API_Server ======
2025-10-30 09:46:36,628 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 09:46:36,632 - DEBUG - Requesting: http://10.0.0.242:8082/domain/604772ea-63e8-432b-8e76-1ba839bd0071
2025-10-30 09:46:36,640 - DEBUG - Requesting: http://10.0.0.242:8082/project/e22b45af-f872-4b92-a586-3619997aa3d3
2025-10-30 09:46:36,715 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27ceee21-d44c-4fc9-bb59-35c20e63d709
2025-10-30 09:46:36,723 - DEBUG - ==>Verifying data for policy with id: f1cb2567-f949-4bae-b542-441c08e2d3fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-19661635', 'ctest-policy-allow-all-60287565']
2025-10-30 09:46:36,723 - INFO - VN ctest-vn-08522907 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 09:46:36,723 - DEBUG - Verifying the vn in opserver
2025-10-30 09:46:36,724 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-08522907 virtual network link through opserver 10.0.0.242
2025-10-30 09:46:36,724 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-30 09:46:37,018 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-30 09:46:37,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-08522907', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-08522907?flat'}
2025-10-30 09:46:37,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-08522907 is found in opserver
2025-10-30 09:46:37,083 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 09:46:37,087 - DEBUG - VRF ids for VN ctest-vn-08522907: {}
2025-10-30 09:46:37,087 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 09:46:37,091 - DEBUG - Requesting: http://10.0.0.242:8082/domain/604772ea-63e8-432b-8e76-1ba839bd0071
2025-10-30 09:46:37,101 - DEBUG - Requesting: http://10.0.0.242:8082/project/e22b45af-f872-4b92-a586-3619997aa3d3
2025-10-30 09:46:37,173 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c6221c43-3271-4724-b0ec-53bf678db04d
2025-10-30 09:46:37,184 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c6221c43-3271-4724-b0ec-53bf678db04d
2025-10-30 09:46:37,194 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b1a00c56-204e-4b94-9ba3-11da09649495
2025-10-30 09:46:37,201 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b1a00c56-204e-4b94-9ba3-11da09649495
2025-10-30 09:46:37,210 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/cbe9edda-6b9c-49b0-ac2b-f0fa7c6a8dcd
2025-10-30 09:46:37,219 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 09:46:37,219 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c6221c43-3271-4724-b0ec-53bf678db04d
2025-10-30 09:46:37,228 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b1a00c56-204e-4b94-9ba3-11da09649495
2025-10-30 09:46:37,240 - INFO - Verified VN network id 11 for VN c6221c43-3271-4724-b0ec-53bf678db04d
2025-10-30 09:46:37,240 - INFO - Verifications in API Server for VN ctest-vn-88119040 passed
2025-10-30 09:46:37,240 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c6221c43-3271-4724-b0ec-53bf678db04d
2025-10-30 09:46:37,249 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b1a00c56-204e-4b94-9ba3-11da09649495
2025-10-30 09:46:37,256 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b1a00c56-204e-4b94-9ba3-11da09649495
2025-10-30 09:46:37,262 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/cbe9edda-6b9c-49b0-ac2b-f0fa7c6a8dcd
2025-10-30 09:46:37,273 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-88119040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19661635', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14277004843652564772', 'uuid-lslong': '12748656726720229453'}, 'enable': 'true', 'created': '2025-10-30T09:46:34', 'last-modified': '2025-10-30T09:46:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351026'}
2025-10-30 09:46:37,278 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 09:46:37,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88119040 passed
2025-10-30 09:46:37,278 - DEBUG - ====Verifying policy data for ctest-vn-88119040 in API_Server ======
2025-10-30 09:46:37,278 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 09:46:37,283 - DEBUG - Requesting: http://10.0.0.242:8082/domain/604772ea-63e8-432b-8e76-1ba839bd0071
2025-10-30 09:46:37,292 - DEBUG - Requesting: http://10.0.0.242:8082/project/e22b45af-f872-4b92-a586-3619997aa3d3
2025-10-30 09:46:37,359 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c6221c43-3271-4724-b0ec-53bf678db04d
2025-10-30 09:46:37,369 - DEBUG - ==>Verifying data for policy with id: f1cb2567-f949-4bae-b542-441c08e2d3fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-19661635', 'ctest-policy-allow-all-60287565']
2025-10-30 09:46:37,369 - INFO - VN ctest-vn-88119040 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 09:46:37,369 - DEBUG - Verifying the vn in opserver
2025-10-30 09:46:37,369 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-88119040 virtual network link through opserver 10.0.0.242
2025-10-30 09:46:37,369 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-30 09:46:37,377 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-88119040', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-88119040?flat'}
2025-10-30 09:46:37,377 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19661635:ctest-vn-88119040 is found in opserver
2025-10-30 09:46:37,387 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 09:46:37,391 - DEBUG - VRF ids for VN ctest-vn-88119040: {}
2025-10-30 09:46:37,449 - DEBUG - Services list from nova: [