2026-01-16 12:47:33,659 - INFO - Domain Default found not creating
2026-01-16 12:47:33,834 - INFO - Project ctest-TestBasicPolicy-65720372 not found, creating it
2026-01-16 12:47:34,312 - INFO - Created Project:ctest-TestBasicPolicy-65720372, ID : 7bacda43-6930-40b5-85bb-6ff8192ba86d
2026-01-16 12:47:35,849 - INFO - ================================================================================
2026-01-16 12:47:35,849 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-16 12:47:35,849 - 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-16 12:47:36,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.249': '0'}} with
2026-01-16 12:47:36,114 - INFO - Initial checks done. Running the testcase now
2026-01-16 12:47:36,114 - INFO -
2026-01-16 12:47:36,684 - DEBUG - Response for create_network : {'network': {'id': '894804b7-eeb5-4ae9-aaa0-ccc63632fd32', 'name': 'ctest-vn-70259990', 'tenant_id': '7bacda43693040b585bb6ff8192ba86d', 'project_id': '7bacda43693040b585bb6ff8192ba86d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65720372', 'ctest-vn-70259990'], 'port_security_enabled': True, 'description': ''}}
2026-01-16 12:47:36,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '9130cbb3-9259-46da-877b-8e45d91528c2', 'name': '', 'tenant_id': '7bacda43693040b585bb6ff8192ba86d', 'network_id': '894804b7-eeb5-4ae9-aaa0-ccc63632fd32', 'ip_version': 4, 'cidr': '96.63.167.64/26', 'allocation_pools': [{'start': '96.63.167.66', 'end': '96.63.167.126'}], 'gateway_ip': '96.63.167.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.63.167.66', 'tags': [], 'project_id': '7bacda43693040b585bb6ff8192ba86d'}}
2026-01-16 12:47:36,858 - INFO - Created VN ctest-vn-70259990
2026-01-16 12:47:36,908 - DEBUG - VN ctest-vn-70259990 UUID is 894804b7-eeb5-4ae9-aaa0-ccc63632fd32
2026-01-16 12:47:37,182 - DEBUG - Response for create_network : {'network': {'id': '232bf32c-1bc4-48ec-988b-bd4ff45f8b44', 'name': 'ctest-vn-40197645', 'tenant_id': '7bacda43693040b585bb6ff8192ba86d', 'project_id': '7bacda43693040b585bb6ff8192ba86d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65720372', 'ctest-vn-40197645'], 'port_security_enabled': True, 'description': ''}}
2026-01-16 12:47:37,337 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb782e40-ef2e-4885-b0a0-217dc0d8a791', 'name': '', 'tenant_id': '7bacda43693040b585bb6ff8192ba86d', 'network_id': '232bf32c-1bc4-48ec-988b-bd4ff45f8b44', 'ip_version': 4, 'cidr': '126.164.204.64/26', 'allocation_pools': [{'start': '126.164.204.66', 'end': '126.164.204.126'}], 'gateway_ip': '126.164.204.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.164.204.66', 'tags': [], 'project_id': '7bacda43693040b585bb6ff8192ba86d'}}
2026-01-16 12:47:37,355 - INFO - Created VN ctest-vn-40197645
2026-01-16 12:47:37,408 - DEBUG - VN ctest-vn-40197645 UUID is 232bf32c-1bc4-48ec-988b-bd4ff45f8b44
2026-01-16 12:47:37,522 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-70259990, 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-65720372:ctest-vn-40197645, 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-16 12:47:37,828 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '894804b7-eeb5-4ae9-aaa0-ccc63632fd32', 'name': 'ctest-vn-70259990', 'tenant_id': '7bacda43693040b585bb6ff8192ba86d', 'project_id': '7bacda43693040b585bb6ff8192ba86d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9130cbb3-9259-46da-877b-8e45d91528c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65720372', 'ctest-vn-70259990'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65720372', 'ctest-policy-allow-all-43628443']], 'subnet_ipam': [{'subnet_cidr': '96.63.167.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-16 12:47:38,052 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '232bf32c-1bc4-48ec-988b-bd4ff45f8b44', 'name': 'ctest-vn-40197645', 'tenant_id': '7bacda43693040b585bb6ff8192ba86d', 'project_id': '7bacda43693040b585bb6ff8192ba86d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb782e40-ef2e-4885-b0a0-217dc0d8a791'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65720372', 'ctest-vn-40197645'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65720372', 'ctest-policy-allow-all-43628443']], 'subnet_ipam': [{'subnet_cidr': '126.164.204.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-16 12:47:38,216 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-01-16 12:47:38,516 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-01-16 12:47:38,550 - DEBUG - Requesting: http://10.0.0.49:8082/domain/4750843a-6ad4-4a3e-a1e7-dd958d1665bc
2026-01-16 12:47:38,564 - DEBUG - Requesting: http://10.0.0.49:8082/project/7bacda43-6930-40b5-85bb-6ff8192ba86d
2026-01-16 12:47:38,636 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/894804b7-eeb5-4ae9-aaa0-ccc63632fd32
2026-01-16 12:47:38,646 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/894804b7-eeb5-4ae9-aaa0-ccc63632fd32
2026-01-16 12:47:38,654 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/869fb65f-cf1f-4d42-b476-a10583c08e1e
2026-01-16 12:47:38,662 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/869fb65f-cf1f-4d42-b476-a10583c08e1e
2026-01-16 12:47:38,669 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/19d5e57f-295e-4bca-83eb-b9eb5088e2d7
2026-01-16 12:47:38,679 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-16 12:47:38,679 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/894804b7-eeb5-4ae9-aaa0-ccc63632fd32
2026-01-16 12:47:38,694 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/869fb65f-cf1f-4d42-b476-a10583c08e1e
2026-01-16 12:47:38,709 - INFO - Verified VN network id 11 for VN 894804b7-eeb5-4ae9-aaa0-ccc63632fd32
2026-01-16 12:47:38,709 - INFO - Verifications in API Server for VN ctest-vn-70259990 passed
2026-01-16 12:47:38,709 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/894804b7-eeb5-4ae9-aaa0-ccc63632fd32
2026-01-16 12:47:38,718 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/869fb65f-cf1f-4d42-b476-a10583c08e1e
2026-01-16 12:47:38,726 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/869fb65f-cf1f-4d42-b476-a10583c08e1e
2026-01-16 12:47:38,736 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/19d5e57f-295e-4bca-83eb-b9eb5088e2d7
2026-01-16 12:47:38,749 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-70259990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65720372', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9892161769549679337', 'uuid-lslong': '12295052134406356274'}, 'enable': 'true', 'created': '2026-01-16T12:47:36', 'last-modified': '2026-01-16T12:47:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947178'}
2026-01-16 12:47:38,756 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-16 12:47:38,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70259990 passed
2026-01-16 12:47:38,756 - DEBUG - ====Verifying policy data for ctest-vn-70259990 in API_Server ======
2026-01-16 12:47:38,756 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-01-16 12:47:38,762 - DEBUG - Requesting: http://10.0.0.49:8082/domain/4750843a-6ad4-4a3e-a1e7-dd958d1665bc
2026-01-16 12:47:38,773 - DEBUG - Requesting: http://10.0.0.49:8082/project/7bacda43-6930-40b5-85bb-6ff8192ba86d
2026-01-16 12:47:38,843 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/894804b7-eeb5-4ae9-aaa0-ccc63632fd32
2026-01-16 12:47:38,851 - DEBUG - ==>Verifying data for policy with id: 1a808c65-b652-4001-84fb-584f2835a0c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-65720372', 'ctest-policy-allow-all-43628443']
2026-01-16 12:47:38,851 - INFO - VN ctest-vn-70259990 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-16 12:47:38,851 - DEBUG - Verifying the vn in opserver
2026-01-16 12:47:38,851 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-70259990 virtual network link through opserver 10.0.0.49
2026-01-16 12:47:38,851 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2026-01-16 12:47:39,147 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2026-01-16 12:47:39,214 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-70259990', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-70259990?flat'}
2026-01-16 12:47:39,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-70259990 is found in opserver
2026-01-16 12:47:39,224 - DEBUG - Do not have enough data to verify VN in agent
2026-01-16 12:47:39,229 - DEBUG - VRF ids for VN ctest-vn-70259990: {}
2026-01-16 12:47:39,229 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-01-16 12:47:39,235 - DEBUG - Requesting: http://10.0.0.49:8082/domain/4750843a-6ad4-4a3e-a1e7-dd958d1665bc
2026-01-16 12:47:39,246 - DEBUG - Requesting: http://10.0.0.49:8082/project/7bacda43-6930-40b5-85bb-6ff8192ba86d
2026-01-16 12:47:39,310 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/232bf32c-1bc4-48ec-988b-bd4ff45f8b44
2026-01-16 12:47:39,321 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/232bf32c-1bc4-48ec-988b-bd4ff45f8b44
2026-01-16 12:47:39,330 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/16570721-6bfc-436d-bcf8-6fbe8bd9cea5
2026-01-16 12:47:39,336 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/16570721-6bfc-436d-bcf8-6fbe8bd9cea5
2026-01-16 12:47:39,342 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/2a075f91-1061-46c0-bb43-066ab9b74058
2026-01-16 12:47:39,348 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-16 12:47:39,349 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/232bf32c-1bc4-48ec-988b-bd4ff45f8b44
2026-01-16 12:47:39,357 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/16570721-6bfc-436d-bcf8-6fbe8bd9cea5
2026-01-16 12:47:39,369 - INFO - Verified VN network id 12 for VN 232bf32c-1bc4-48ec-988b-bd4ff45f8b44
2026-01-16 12:47:39,370 - INFO - Verifications in API Server for VN ctest-vn-40197645 passed
2026-01-16 12:47:39,370 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/232bf32c-1bc4-48ec-988b-bd4ff45f8b44
2026-01-16 12:47:39,378 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/16570721-6bfc-436d-bcf8-6fbe8bd9cea5
2026-01-16 12:47:39,384 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/16570721-6bfc-436d-bcf8-6fbe8bd9cea5
2026-01-16 12:47:39,389 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/2a075f91-1061-46c0-bb43-066ab9b74058
2026-01-16 12:47:39,400 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-40197645', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65720372', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2534386586095995116', 'uuid-lslong': '10992087466627795780'}, 'enable': 'true', 'created': '2026-01-16T12:47:37', 'last-modified': '2026-01-16T12:47:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368604'}
2026-01-16 12:47:39,405 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-16 12:47:39,405 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40197645 passed
2026-01-16 12:47:39,405 - DEBUG - ====Verifying policy data for ctest-vn-40197645 in API_Server ======
2026-01-16 12:47:39,405 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-01-16 12:47:39,413 - DEBUG - Requesting: http://10.0.0.49:8082/domain/4750843a-6ad4-4a3e-a1e7-dd958d1665bc
2026-01-16 12:47:39,424 - DEBUG - Requesting: http://10.0.0.49:8082/project/7bacda43-6930-40b5-85bb-6ff8192ba86d
2026-01-16 12:47:39,495 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/232bf32c-1bc4-48ec-988b-bd4ff45f8b44
2026-01-16 12:47:39,506 - DEBUG - ==>Verifying data for policy with id: 1a808c65-b652-4001-84fb-584f2835a0c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-65720372', 'ctest-policy-allow-all-43628443']
2026-01-16 12:47:39,506 - INFO - VN ctest-vn-40197645 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-16 12:47:39,506 - DEBUG - Verifying the vn in opserver
2026-01-16 12:47:39,507 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-40197645 virtual network link through opserver 10.0.0.49
2026-01-16 12:47:39,507 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2026-01-16 12:47:39,517 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-40197645', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-40197645?flat'}
2026-01-16 12:47:39,517 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65720372:ctest-vn-40197645 is found in opserver
2026-01-16 12:47:39,528 - DEBUG - Do not have enough data to verify VN in agent
2026-01-16 12:47:39,532 - DEBUG - VRF ids for VN ctest-vn-40197645: {}
2026-01-16 12:47:39,592 - DEBUG - Services list from nova: [