2026-05-12 13:21:08,646 - INFO - Domain Default found not creating
2026-05-12 13:21:08,891 - INFO - Project ctest-TestBasicPolicy-33611964 not found, creating it
2026-05-12 13:21:09,393 - INFO - Created Project:ctest-TestBasicPolicy-33611964, ID : 4b86c690-6de6-4e36-bcd6-28a6b5f09375
2026-05-12 13:21:11,180 - INFO - ================================================================================
2026-05-12 13:21:11,181 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-12 13:21:11,181 - 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-12 13:21:11,456 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-05-12 13:21:11,457 - INFO - Initial checks done. Running the testcase now
2026-05-12 13:21:11,457 - INFO -
2026-05-12 13:21:12,433 - DEBUG - Response for create_network : {'network': {'id': '0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d', 'name': 'ctest-vn-76984502', 'tenant_id': '4b86c6906de64e36bcd628a6b5f09375', 'project_id': '4b86c6906de64e36bcd628a6b5f09375', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33611964', 'ctest-vn-76984502'], 'port_security_enabled': True, 'description': ''}}
2026-05-12 13:21:12,638 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bcb1466-4e7e-497e-bad2-5717b0cb9565', 'name': '', 'tenant_id': '4b86c6906de64e36bcd628a6b5f09375', 'network_id': '0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d', 'ip_version': 4, 'cidr': '99.31.15.0/26', 'allocation_pools': [{'start': '99.31.15.2', 'end': '99.31.15.62'}], 'gateway_ip': '99.31.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.31.15.2', 'tags': [], 'project_id': '4b86c6906de64e36bcd628a6b5f09375'}}
2026-05-12 13:21:12,662 - INFO - Created VN ctest-vn-76984502
2026-05-12 13:21:12,714 - DEBUG - VN ctest-vn-76984502 UUID is 0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d
2026-05-12 13:21:13,060 - DEBUG - Response for create_network : {'network': {'id': '3af274e5-aea2-4c08-a79f-c93402fcaa30', 'name': 'ctest-vn-97202185', 'tenant_id': '4b86c6906de64e36bcd628a6b5f09375', 'project_id': '4b86c6906de64e36bcd628a6b5f09375', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33611964', 'ctest-vn-97202185'], 'port_security_enabled': True, 'description': ''}}
2026-05-12 13:21:13,278 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd44e28ab-911e-45a6-9f33-b558f68c248b', 'name': '', 'tenant_id': '4b86c6906de64e36bcd628a6b5f09375', 'network_id': '3af274e5-aea2-4c08-a79f-c93402fcaa30', 'ip_version': 4, 'cidr': '198.252.55.0/26', 'allocation_pools': [{'start': '198.252.55.2', 'end': '198.252.55.62'}], 'gateway_ip': '198.252.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.252.55.2', 'tags': [], 'project_id': '4b86c6906de64e36bcd628a6b5f09375'}}
2026-05-12 13:21:13,302 - INFO - Created VN ctest-vn-97202185
2026-05-12 13:21:13,358 - DEBUG - VN ctest-vn-97202185 UUID is 3af274e5-aea2-4c08-a79f-c93402fcaa30
2026-05-12 13:21:13,490 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-76984502, 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-33611964:ctest-vn-97202185, 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-12 13:21:13,839 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d', 'name': 'ctest-vn-76984502', 'tenant_id': '4b86c6906de64e36bcd628a6b5f09375', 'project_id': '4b86c6906de64e36bcd628a6b5f09375', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2bcb1466-4e7e-497e-bad2-5717b0cb9565'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33611964', 'ctest-vn-76984502'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33611964', 'ctest-policy-allow-all-95816604']], 'subnet_ipam': [{'subnet_cidr': '99.31.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-12 13:21:14,134 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3af274e5-aea2-4c08-a79f-c93402fcaa30', 'name': 'ctest-vn-97202185', 'tenant_id': '4b86c6906de64e36bcd628a6b5f09375', 'project_id': '4b86c6906de64e36bcd628a6b5f09375', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d44e28ab-911e-45a6-9f33-b558f68c248b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33611964', 'ctest-vn-97202185'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33611964', 'ctest-policy-allow-all-95816604']], 'subnet_ipam': [{'subnet_cidr': '198.252.55.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-12 13:21:14,318 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 13:21:14,636 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 13:21:14,683 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a645f060-b705-4e79-b438-276cfc593347
2026-05-12 13:21:14,700 - DEBUG - Requesting: http://10.0.0.22:8082/project/4b86c690-6de6-4e36-bcd6-28a6b5f09375
2026-05-12 13:21:14,784 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d
2026-05-12 13:21:14,800 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d
2026-05-12 13:21:14,812 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9294a611-572d-4e83-a891-6f9126cabc02
2026-05-12 13:21:14,824 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9294a611-572d-4e83-a891-6f9126cabc02
2026-05-12 13:21:14,835 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b8170aa9-bc8a-40d3-b370-c0bcb03127f8
2026-05-12 13:21:14,844 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-12 13:21:14,844 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d
2026-05-12 13:21:14,857 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9294a611-572d-4e83-a891-6f9126cabc02
2026-05-12 13:21:14,881 - INFO - Verified VN network id 11 for VN 0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d
2026-05-12 13:21:14,882 - INFO - Verifications in API Server for VN ctest-vn-76984502 passed
2026-05-12 13:21:14,882 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d
2026-05-12 13:21:14,896 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9294a611-572d-4e83-a891-6f9126cabc02
2026-05-12 13:21:14,907 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9294a611-572d-4e83-a891-6f9126cabc02
2026-05-12 13:21:14,916 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b8170aa9-bc8a-40d3-b370-c0bcb03127f8
2026-05-12 13:21:14,930 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-76984502', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33611964', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '905800627956239505', 'uuid-lslong': '12702610064603037581'}, 'enable': 'true', 'created': '2026-05-12T13:21:12', 'last-modified': '2026-05-12T13:21:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.129103'}
2026-05-12 13:21:14,938 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-12 13:21:14,938 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76984502 passed
2026-05-12 13:21:14,938 - DEBUG - ====Verifying policy data for ctest-vn-76984502 in API_Server ======
2026-05-12 13:21:14,938 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 13:21:14,946 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a645f060-b705-4e79-b438-276cfc593347
2026-05-12 13:21:14,959 - DEBUG - Requesting: http://10.0.0.22:8082/project/4b86c690-6de6-4e36-bcd6-28a6b5f09375
2026-05-12 13:21:15,045 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c920cdf-3aa8-4c91-b048-bc8d6cf73f8d
2026-05-12 13:21:15,059 - DEBUG - ==>Verifying data for policy with id: 9e34c0c3-044d-4cb5-8617-bbed1dacb4b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-33611964', 'ctest-policy-allow-all-95816604']
2026-05-12 13:21:15,059 - INFO - VN ctest-vn-76984502 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-12 13:21:15,059 - DEBUG - Verifying the vn in opserver
2026-05-12 13:21:15,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-76984502 virtual network link through opserver 10.0.0.22
2026-05-12 13:21:15,059 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-12 13:21:15,382 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-12 13:21:15,476 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-76984502', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-76984502?flat'}
2026-05-12 13:21:15,476 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-76984502 is found in opserver
2026-05-12 13:21:15,490 - DEBUG - Do not have enough data to verify VN in agent
2026-05-12 13:21:15,497 - DEBUG - VRF ids for VN ctest-vn-76984502: {}
2026-05-12 13:21:15,497 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 13:21:15,505 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a645f060-b705-4e79-b438-276cfc593347
2026-05-12 13:21:15,522 - DEBUG - Requesting: http://10.0.0.22:8082/project/4b86c690-6de6-4e36-bcd6-28a6b5f09375
2026-05-12 13:21:15,605 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3af274e5-aea2-4c08-a79f-c93402fcaa30
2026-05-12 13:21:15,621 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3af274e5-aea2-4c08-a79f-c93402fcaa30
2026-05-12 13:21:15,633 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0bbd9c0-e801-4382-bfdc-880024a7c208
2026-05-12 13:21:15,645 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0bbd9c0-e801-4382-bfdc-880024a7c208
2026-05-12 13:21:15,655 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/829b193f-7666-4d87-9146-08d3c27fbdbe
2026-05-12 13:21:15,665 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-12 13:21:15,665 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3af274e5-aea2-4c08-a79f-c93402fcaa30
2026-05-12 13:21:15,679 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0bbd9c0-e801-4382-bfdc-880024a7c208
2026-05-12 13:21:15,700 - INFO - Verified VN network id 12 for VN 3af274e5-aea2-4c08-a79f-c93402fcaa30
2026-05-12 13:21:15,700 - INFO - Verifications in API Server for VN ctest-vn-97202185 passed
2026-05-12 13:21:15,701 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3af274e5-aea2-4c08-a79f-c93402fcaa30
2026-05-12 13:21:15,715 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0bbd9c0-e801-4382-bfdc-880024a7c208
2026-05-12 13:21:15,725 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0bbd9c0-e801-4382-bfdc-880024a7c208
2026-05-12 13:21:15,736 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/829b193f-7666-4d87-9146-08d3c27fbdbe
2026-05-12 13:21:15,752 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-97202185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33611964', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4247585928390003720', 'uuid-lslong': '12078593950856555056'}, 'enable': 'true', 'created': '2026-05-12T13:21:13', 'last-modified': '2026-05-12T13:21:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.658358'}
2026-05-12 13:21:15,760 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-12 13:21:15,760 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97202185 passed
2026-05-12 13:21:15,760 - DEBUG - ====Verifying policy data for ctest-vn-97202185 in API_Server ======
2026-05-12 13:21:15,761 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 13:21:15,769 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a645f060-b705-4e79-b438-276cfc593347
2026-05-12 13:21:15,784 - DEBUG - Requesting: http://10.0.0.22:8082/project/4b86c690-6de6-4e36-bcd6-28a6b5f09375
2026-05-12 13:21:15,862 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3af274e5-aea2-4c08-a79f-c93402fcaa30
2026-05-12 13:21:15,875 - DEBUG - ==>Verifying data for policy with id: 9e34c0c3-044d-4cb5-8617-bbed1dacb4b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-33611964', 'ctest-policy-allow-all-95816604']
2026-05-12 13:21:15,875 - INFO - VN ctest-vn-97202185 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-12 13:21:15,876 - DEBUG - Verifying the vn in opserver
2026-05-12 13:21:15,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-97202185 virtual network link through opserver 10.0.0.22
2026-05-12 13:21:15,876 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-12 13:21:15,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-97202185', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-97202185?flat'}
2026-05-12 13:21:15,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33611964:ctest-vn-97202185 is found in opserver
2026-05-12 13:21:15,904 - DEBUG - Do not have enough data to verify VN in agent
2026-05-12 13:21:15,910 - DEBUG - VRF ids for VN ctest-vn-97202185: {}
2026-05-12 13:21:15,993 - DEBUG - Services list from nova: [