2026-01-29 19:21:55,288 - INFO - Domain Default found not creating
2026-01-29 19:21:55,433 - INFO - Project ctest-TestBasicPolicy-43953531 not found, creating it
2026-01-29 19:21:55,863 - INFO - Created Project:ctest-TestBasicPolicy-43953531, ID : 6cc67350-aa63-4d46-8905-04a7c4c7fb6e
2026-01-29 19:21:57,265 - INFO - ================================================================================
2026-01-29 19:21:57,265 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-29 19:21:57,265 - 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
2026-01-29 19:21:57,519 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-01-29 19:21:57,519 - INFO - Initial checks done. Running the testcase now
2026-01-29 19:21:57,519 - INFO -
2026-01-29 19:21:58,040 - DEBUG - Response for create_network : {'network': {'id': '324eab2d-edfc-4eab-918f-82b4c4fd689b', 'name': 'ctest-vn-46971272', 'tenant_id': '6cc67350aa634d46890504a7c4c7fb6e', 'project_id': '6cc67350aa634d46890504a7c4c7fb6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43953531', 'ctest-vn-46971272'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 19:21:58,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b09472a-a053-4e26-acb3-97173aa31ff1', 'name': '', 'tenant_id': '6cc67350aa634d46890504a7c4c7fb6e', 'network_id': '324eab2d-edfc-4eab-918f-82b4c4fd689b', 'ip_version': 4, 'cidr': '22.22.51.192/26', 'allocation_pools': [{'start': '22.22.51.194', 'end': '22.22.51.254'}], 'gateway_ip': '22.22.51.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.22.51.194', 'tags': [], 'project_id': '6cc67350aa634d46890504a7c4c7fb6e'}}
2026-01-29 19:21:58,225 - INFO - Created VN ctest-vn-46971272
2026-01-29 19:21:58,273 - DEBUG - VN ctest-vn-46971272 UUID is 324eab2d-edfc-4eab-918f-82b4c4fd689b
2026-01-29 19:21:58,583 - DEBUG - Response for create_network : {'network': {'id': '3202c97a-e310-468f-9475-cc44cef676d8', 'name': 'ctest-vn-61287556', 'tenant_id': '6cc67350aa634d46890504a7c4c7fb6e', 'project_id': '6cc67350aa634d46890504a7c4c7fb6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43953531', 'ctest-vn-61287556'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 19:21:58,775 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af3cdd44-19a7-4539-b9f0-ded27c24c7f9', 'name': '', 'tenant_id': '6cc67350aa634d46890504a7c4c7fb6e', 'network_id': '3202c97a-e310-468f-9475-cc44cef676d8', 'ip_version': 4, 'cidr': '54.84.3.0/26', 'allocation_pools': [{'start': '54.84.3.2', 'end': '54.84.3.62'}], 'gateway_ip': '54.84.3.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.84.3.2', 'tags': [], 'project_id': '6cc67350aa634d46890504a7c4c7fb6e'}}
2026-01-29 19:21:58,791 - INFO - Created VN ctest-vn-61287556
2026-01-29 19:21:58,841 - DEBUG - VN ctest-vn-61287556 UUID is 3202c97a-e310-468f-9475-cc44cef676d8
2026-01-29 19:21:58,989 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-46971272, 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-43953531:ctest-vn-61287556, 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]
2026-01-29 19:21:59,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '324eab2d-edfc-4eab-918f-82b4c4fd689b', 'name': 'ctest-vn-46971272', 'tenant_id': '6cc67350aa634d46890504a7c4c7fb6e', 'project_id': '6cc67350aa634d46890504a7c4c7fb6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b09472a-a053-4e26-acb3-97173aa31ff1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43953531', 'ctest-vn-46971272'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43953531', 'ctest-policy-allow-all-59693953']], 'subnet_ipam': [{'subnet_cidr': '22.22.51.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 19:21:59,474 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3202c97a-e310-468f-9475-cc44cef676d8', 'name': 'ctest-vn-61287556', 'tenant_id': '6cc67350aa634d46890504a7c4c7fb6e', 'project_id': '6cc67350aa634d46890504a7c4c7fb6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af3cdd44-19a7-4539-b9f0-ded27c24c7f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43953531', 'ctest-vn-61287556'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43953531', 'ctest-policy-allow-all-59693953']], 'subnet_ipam': [{'subnet_cidr': '54.84.3.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 19:21:59,629 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 19:21:59,919 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 19:21:59,947 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9bde6b3e-04a0-4a43-a397-2518df866609
2026-01-29 19:21:59,958 - DEBUG - Requesting: http://10.0.0.22:8082/project/6cc67350-aa63-4d46-8905-04a7c4c7fb6e
2026-01-29 19:22:00,025 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/324eab2d-edfc-4eab-918f-82b4c4fd689b
2026-01-29 19:22:00,033 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/324eab2d-edfc-4eab-918f-82b4c4fd689b
2026-01-29 19:22:00,040 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec6e673f-64b2-44a1-b52b-736dba3d2451
2026-01-29 19:22:00,045 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec6e673f-64b2-44a1-b52b-736dba3d2451
2026-01-29 19:22:00,051 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/768d3a2a-5b33-4100-9349-a2c9b2908fe5
2026-01-29 19:22:00,055 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 19:22:00,055 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/324eab2d-edfc-4eab-918f-82b4c4fd689b
2026-01-29 19:22:00,062 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec6e673f-64b2-44a1-b52b-736dba3d2451
2026-01-29 19:22:00,075 - INFO - Verified VN network id 12 for VN 324eab2d-edfc-4eab-918f-82b4c4fd689b
2026-01-29 19:22:00,075 - INFO - Verifications in API Server for VN ctest-vn-46971272 passed
2026-01-29 19:22:00,075 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/324eab2d-edfc-4eab-918f-82b4c4fd689b
2026-01-29 19:22:00,082 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec6e673f-64b2-44a1-b52b-736dba3d2451
2026-01-29 19:22:00,087 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec6e673f-64b2-44a1-b52b-736dba3d2451
2026-01-29 19:22:00,092 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/768d3a2a-5b33-4100-9349-a2c9b2908fe5
2026-01-29 19:22:00,101 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-46971272', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43953531', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3625022963834441387', 'uuid-lslong': '10488745770079840411'}, 'enable': 'true', 'created': '2026-01-29T19:21:58', 'last-modified': '2026-01-29T19:21:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.856297'}
2026-01-29 19:22:00,106 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 19:22:00,106 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46971272 passed
2026-01-29 19:22:00,107 - DEBUG - ====Verifying policy data for ctest-vn-46971272 in API_Server ======
2026-01-29 19:22:00,107 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 19:22:00,110 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9bde6b3e-04a0-4a43-a397-2518df866609
2026-01-29 19:22:00,118 - DEBUG - Requesting: http://10.0.0.22:8082/project/6cc67350-aa63-4d46-8905-04a7c4c7fb6e
2026-01-29 19:22:00,185 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/324eab2d-edfc-4eab-918f-82b4c4fd689b
2026-01-29 19:22:00,192 - DEBUG - ==>Verifying data for policy with id: b130d3f0-9641-4df0-9d30-8ca3c16683f3, fqn: ['default-domain', 'ctest-TestBasicPolicy-43953531', 'ctest-policy-allow-all-59693953']
2026-01-29 19:22:00,193 - INFO - VN ctest-vn-46971272 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 19:22:00,193 - DEBUG - Verifying the vn in opserver
2026-01-29 19:22:00,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-46971272 virtual network link through opserver 10.0.0.22
2026-01-29 19:22:00,193 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-29 19:22:00,485 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-29 19:22:00,542 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-46971272', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-46971272?flat'}
2026-01-29 19:22:00,542 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-46971272 is found in opserver
2026-01-29 19:22:00,550 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 19:22:00,554 - DEBUG - VRF ids for VN ctest-vn-46971272: {}
2026-01-29 19:22:00,554 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 19:22:00,559 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9bde6b3e-04a0-4a43-a397-2518df866609
2026-01-29 19:22:00,567 - DEBUG - Requesting: http://10.0.0.22:8082/project/6cc67350-aa63-4d46-8905-04a7c4c7fb6e
2026-01-29 19:22:00,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3202c97a-e310-468f-9475-cc44cef676d8
2026-01-29 19:22:00,642 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3202c97a-e310-468f-9475-cc44cef676d8
2026-01-29 19:22:00,649 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcd3704d-c24a-4e0f-a1ca-e59cc9ac8f07
2026-01-29 19:22:00,655 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcd3704d-c24a-4e0f-a1ca-e59cc9ac8f07
2026-01-29 19:22:00,664 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/32971c43-fb38-4284-b75f-62b6b8624fe2
2026-01-29 19:22:00,669 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 19:22:00,669 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3202c97a-e310-468f-9475-cc44cef676d8
2026-01-29 19:22:00,677 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcd3704d-c24a-4e0f-a1ca-e59cc9ac8f07
2026-01-29 19:22:00,688 - INFO - Verified VN network id 13 for VN 3202c97a-e310-468f-9475-cc44cef676d8
2026-01-29 19:22:00,688 - INFO - Verifications in API Server for VN ctest-vn-61287556 passed
2026-01-29 19:22:00,689 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3202c97a-e310-468f-9475-cc44cef676d8
2026-01-29 19:22:00,696 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcd3704d-c24a-4e0f-a1ca-e59cc9ac8f07
2026-01-29 19:22:00,702 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcd3704d-c24a-4e0f-a1ca-e59cc9ac8f07
2026-01-29 19:22:00,708 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/32971c43-fb38-4284-b75f-62b6b8624fe2
2026-01-29 19:22:00,717 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-61287556', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43953531', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3603664181482505871', 'uuid-lslong': '10697681085790582488'}, 'enable': 'true', 'created': '2026-01-29T19:21:58', 'last-modified': '2026-01-29T19:21:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.263500'}
2026-01-29 19:22:00,722 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 19:22:00,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61287556 passed
2026-01-29 19:22:00,723 - DEBUG - ====Verifying policy data for ctest-vn-61287556 in API_Server ======
2026-01-29 19:22:00,723 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 19:22:00,727 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9bde6b3e-04a0-4a43-a397-2518df866609
2026-01-29 19:22:00,736 - DEBUG - Requesting: http://10.0.0.22:8082/project/6cc67350-aa63-4d46-8905-04a7c4c7fb6e
2026-01-29 19:22:00,806 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3202c97a-e310-468f-9475-cc44cef676d8
2026-01-29 19:22:00,813 - DEBUG - ==>Verifying data for policy with id: b130d3f0-9641-4df0-9d30-8ca3c16683f3, fqn: ['default-domain', 'ctest-TestBasicPolicy-43953531', 'ctest-policy-allow-all-59693953']
2026-01-29 19:22:00,813 - INFO - VN ctest-vn-61287556 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 19:22:00,814 - DEBUG - Verifying the vn in opserver
2026-01-29 19:22:00,814 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-61287556 virtual network link through opserver 10.0.0.22
2026-01-29 19:22:00,814 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-29 19:22:00,821 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-61287556', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-61287556?flat'}
2026-01-29 19:22:00,821 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43953531:ctest-vn-61287556 is found in opserver
2026-01-29 19:22:00,830 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 19:22:00,835 - DEBUG - VRF ids for VN ctest-vn-61287556: {}
2026-01-29 19:22:00,903 - DEBUG - Services list from nova: [