2026-05-05 11:20:30,542 - INFO - Domain Default found not creating
2026-05-05 11:20:30,723 - INFO - Project ctest-TestBasicPolicy-77626367 not found, creating it
2026-05-05 11:20:31,214 - INFO - Created Project:ctest-TestBasicPolicy-77626367, ID : f2bcca68-7605-4a4d-9a06-2812a2079ccd
2026-05-05 11:20:32,711 - INFO - ================================================================================
2026-05-05 11:20:32,711 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-05 11:20:32,711 - 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-05-05 11:20:32,965 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-05-05 11:20:32,965 - INFO - Initial checks done. Running the testcase now
2026-05-05 11:20:32,965 - INFO -
2026-05-05 11:20:33,562 - DEBUG - Response for create_network : {'network': {'id': '4043b675-45d1-4b91-8279-8df2f81b9577', 'name': 'ctest-vn-64848203', 'tenant_id': 'f2bcca6876054a4d9a062812a2079ccd', 'project_id': 'f2bcca6876054a4d9a062812a2079ccd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77626367', 'ctest-vn-64848203'], 'port_security_enabled': True, 'description': ''}}
2026-05-05 11:20:33,751 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d080a81-a8e0-4bd6-99b7-84e14cd1fdad', 'name': '', 'tenant_id': 'f2bcca6876054a4d9a062812a2079ccd', 'network_id': '4043b675-45d1-4b91-8279-8df2f81b9577', 'ip_version': 4, 'cidr': '156.74.222.64/26', 'allocation_pools': [{'start': '156.74.222.66', 'end': '156.74.222.126'}], 'gateway_ip': '156.74.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.74.222.66', 'tags': [], 'project_id': 'f2bcca6876054a4d9a062812a2079ccd'}}
2026-05-05 11:20:33,769 - INFO - Created VN ctest-vn-64848203
2026-05-05 11:20:33,823 - DEBUG - VN ctest-vn-64848203 UUID is 4043b675-45d1-4b91-8279-8df2f81b9577
2026-05-05 11:20:34,126 - DEBUG - Response for create_network : {'network': {'id': '023c4a93-53d7-49d8-834d-e9045b60c7d7', 'name': 'ctest-vn-07852231', 'tenant_id': 'f2bcca6876054a4d9a062812a2079ccd', 'project_id': 'f2bcca6876054a4d9a062812a2079ccd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77626367', 'ctest-vn-07852231'], 'port_security_enabled': True, 'description': ''}}
2026-05-05 11:20:34,292 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5380619-5fee-4729-b330-0c160f04950e', 'name': '', 'tenant_id': 'f2bcca6876054a4d9a062812a2079ccd', 'network_id': '023c4a93-53d7-49d8-834d-e9045b60c7d7', 'ip_version': 4, 'cidr': '164.6.64.0/26', 'allocation_pools': [{'start': '164.6.64.2', 'end': '164.6.64.62'}], 'gateway_ip': '164.6.64.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.6.64.2', 'tags': [], 'project_id': 'f2bcca6876054a4d9a062812a2079ccd'}}
2026-05-05 11:20:34,311 - INFO - Created VN ctest-vn-07852231
2026-05-05 11:20:34,363 - DEBUG - VN ctest-vn-07852231 UUID is 023c4a93-53d7-49d8-834d-e9045b60c7d7
2026-05-05 11:20:34,482 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-64848203, 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-77626367:ctest-vn-07852231, 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-05-05 11:20:34,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4043b675-45d1-4b91-8279-8df2f81b9577', 'name': 'ctest-vn-64848203', 'tenant_id': 'f2bcca6876054a4d9a062812a2079ccd', 'project_id': 'f2bcca6876054a4d9a062812a2079ccd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d080a81-a8e0-4bd6-99b7-84e14cd1fdad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77626367', 'ctest-vn-64848203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77626367', 'ctest-policy-allow-all-16283015']], 'subnet_ipam': [{'subnet_cidr': '156.74.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-05 11:20:35,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '023c4a93-53d7-49d8-834d-e9045b60c7d7', 'name': 'ctest-vn-07852231', 'tenant_id': 'f2bcca6876054a4d9a062812a2079ccd', 'project_id': 'f2bcca6876054a4d9a062812a2079ccd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a5380619-5fee-4729-b330-0c160f04950e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77626367', 'ctest-vn-07852231'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77626367', 'ctest-policy-allow-all-16283015']], 'subnet_ipam': [{'subnet_cidr': '164.6.64.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-05 11:20:35,191 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 11:20:35,486 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 11:20:35,519 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5e05166-0929-4b8c-b37c-e184f4a91b0c
2026-05-05 11:20:35,534 - DEBUG - Requesting: http://10.0.0.50:8082/project/f2bcca68-7605-4a4d-9a06-2812a2079ccd
2026-05-05 11:20:35,612 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4043b675-45d1-4b91-8279-8df2f81b9577
2026-05-05 11:20:35,626 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4043b675-45d1-4b91-8279-8df2f81b9577
2026-05-05 11:20:35,637 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/527042a9-5114-45c3-9c4d-62784f1cf0fc
2026-05-05 11:20:35,645 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/527042a9-5114-45c3-9c4d-62784f1cf0fc
2026-05-05 11:20:35,652 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cde366a9-246f-483b-a7b4-62df95513f19
2026-05-05 11:20:35,658 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-05 11:20:35,659 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4043b675-45d1-4b91-8279-8df2f81b9577
2026-05-05 11:20:35,669 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/527042a9-5114-45c3-9c4d-62784f1cf0fc
2026-05-05 11:20:35,684 - INFO - Verified VN network id 11 for VN 4043b675-45d1-4b91-8279-8df2f81b9577
2026-05-05 11:20:35,684 - INFO - Verifications in API Server for VN ctest-vn-64848203 passed
2026-05-05 11:20:35,684 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4043b675-45d1-4b91-8279-8df2f81b9577
2026-05-05 11:20:35,695 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/527042a9-5114-45c3-9c4d-62784f1cf0fc
2026-05-05 11:20:35,703 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/527042a9-5114-45c3-9c4d-62784f1cf0fc
2026-05-05 11:20:35,710 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cde366a9-246f-483b-a7b4-62df95513f19
2026-05-05 11:20:35,722 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-64848203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77626367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4630745456665774993', 'uuid-lslong': '9401701771796780407'}, 'enable': 'true', 'created': '2026-05-05T11:20:33', 'last-modified': '2026-05-05T11:20:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950084'}
2026-05-05 11:20:35,727 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-05 11:20:35,727 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64848203 passed
2026-05-05 11:20:35,727 - DEBUG - ====Verifying policy data for ctest-vn-64848203 in API_Server ======
2026-05-05 11:20:35,727 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 11:20:35,733 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5e05166-0929-4b8c-b37c-e184f4a91b0c
2026-05-05 11:20:35,746 - DEBUG - Requesting: http://10.0.0.50:8082/project/f2bcca68-7605-4a4d-9a06-2812a2079ccd
2026-05-05 11:20:35,820 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4043b675-45d1-4b91-8279-8df2f81b9577
2026-05-05 11:20:35,830 - DEBUG - ==>Verifying data for policy with id: ea7db0ea-1f57-40a0-875b-991b705f195b, fqn: ['default-domain', 'ctest-TestBasicPolicy-77626367', 'ctest-policy-allow-all-16283015']
2026-05-05 11:20:35,830 - INFO - VN ctest-vn-64848203 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-05 11:20:35,830 - DEBUG - Verifying the vn in opserver
2026-05-05 11:20:35,830 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-64848203 virtual network link through opserver 10.0.0.50
2026-05-05 11:20:35,830 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-05 11:20:36,122 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-05 11:20:36,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-64848203', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-64848203?flat'}
2026-05-05 11:20:36,189 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-64848203 is found in opserver
2026-05-05 11:20:36,201 - DEBUG - Do not have enough data to verify VN in agent
2026-05-05 11:20:36,207 - DEBUG - VRF ids for VN ctest-vn-64848203: {}
2026-05-05 11:20:36,207 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 11:20:36,213 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5e05166-0929-4b8c-b37c-e184f4a91b0c
2026-05-05 11:20:36,226 - DEBUG - Requesting: http://10.0.0.50:8082/project/f2bcca68-7605-4a4d-9a06-2812a2079ccd
2026-05-05 11:20:36,302 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/023c4a93-53d7-49d8-834d-e9045b60c7d7
2026-05-05 11:20:36,315 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/023c4a93-53d7-49d8-834d-e9045b60c7d7
2026-05-05 11:20:36,325 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2dfb18a8-732c-484c-b803-0b74816f0114
2026-05-05 11:20:36,334 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2dfb18a8-732c-484c-b803-0b74816f0114
2026-05-05 11:20:36,343 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/075ee65f-2bdd-47f1-b9d2-3d93d811a653
2026-05-05 11:20:36,351 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-05 11:20:36,351 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/023c4a93-53d7-49d8-834d-e9045b60c7d7
2026-05-05 11:20:36,362 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2dfb18a8-732c-484c-b803-0b74816f0114
2026-05-05 11:20:36,380 - INFO - Verified VN network id 12 for VN 023c4a93-53d7-49d8-834d-e9045b60c7d7
2026-05-05 11:20:36,380 - INFO - Verifications in API Server for VN ctest-vn-07852231 passed
2026-05-05 11:20:36,380 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/023c4a93-53d7-49d8-834d-e9045b60c7d7
2026-05-05 11:20:36,392 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2dfb18a8-732c-484c-b803-0b74816f0114
2026-05-05 11:20:36,401 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2dfb18a8-732c-484c-b803-0b74816f0114
2026-05-05 11:20:36,409 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/075ee65f-2bdd-47f1-b9d2-3d93d811a653
2026-05-05 11:20:36,422 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-07852231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77626367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '161085683305761240', 'uuid-lslong': '9461474597097490391'}, 'enable': 'true', 'created': '2026-05-05T11:20:34', 'last-modified': '2026-05-05T11:20:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.431593'}
2026-05-05 11:20:36,428 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-05 11:20:36,428 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07852231 passed
2026-05-05 11:20:36,429 - DEBUG - ====Verifying policy data for ctest-vn-07852231 in API_Server ======
2026-05-05 11:20:36,429 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 11:20:36,436 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5e05166-0929-4b8c-b37c-e184f4a91b0c
2026-05-05 11:20:36,451 - DEBUG - Requesting: http://10.0.0.50:8082/project/f2bcca68-7605-4a4d-9a06-2812a2079ccd
2026-05-05 11:20:36,524 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/023c4a93-53d7-49d8-834d-e9045b60c7d7
2026-05-05 11:20:36,534 - DEBUG - ==>Verifying data for policy with id: ea7db0ea-1f57-40a0-875b-991b705f195b, fqn: ['default-domain', 'ctest-TestBasicPolicy-77626367', 'ctest-policy-allow-all-16283015']
2026-05-05 11:20:36,534 - INFO - VN ctest-vn-07852231 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-05 11:20:36,534 - DEBUG - Verifying the vn in opserver
2026-05-05 11:20:36,534 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-07852231 virtual network link through opserver 10.0.0.50
2026-05-05 11:20:36,534 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-05 11:20:36,545 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-07852231', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-07852231?flat'}
2026-05-05 11:20:36,545 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77626367:ctest-vn-07852231 is found in opserver
2026-05-05 11:20:36,556 - DEBUG - Do not have enough data to verify VN in agent
2026-05-05 11:20:36,561 - DEBUG - VRF ids for VN ctest-vn-07852231: {}
2026-05-05 11:20:36,636 - DEBUG - Services list from nova: [