2026-09-25 15:53:03,747 - INFO - Domain Default found not creating
2026-09-25 15:53:03,984 - INFO - Project ctest-TestBasicPolicy-11724493 not found, creating it
2026-09-25 15:53:04,564 - INFO - Created Project:ctest-TestBasicPolicy-11724493, ID : 86cd1afb-0bda-4d4a-8d3a-3fb24b95b0cf
2026-09-25 15:53:06,403 - INFO - ================================================================================
2026-09-25 15:53:06,404 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-25 15:53:06,404 - 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-09-25 15:53:06,675 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with
2026-09-25 15:53:06,675 - INFO - Initial checks done. Running the testcase now
2026-09-25 15:53:06,675 - INFO -
2026-09-25 15:53:07,370 - DEBUG - Response for create_network : {'network': {'id': 'ff2a2f1f-4256-4424-81ca-a143660e47b3', 'name': 'ctest-vn-32092831', 'tenant_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'project_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11724493', 'ctest-vn-32092831'], 'port_security_enabled': True, 'description': ''}}
2026-09-25 15:53:07,601 - DEBUG - Response for create_subnet : {'subnet': {'id': '135119dd-3e7f-4fcf-84d1-b12797bf4c1f', 'name': '', 'tenant_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'network_id': 'ff2a2f1f-4256-4424-81ca-a143660e47b3', 'ip_version': 4, 'cidr': '75.248.194.192/26', 'allocation_pools': [{'start': '75.248.194.194', 'end': '75.248.194.254'}], 'gateway_ip': '75.248.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.248.194.194', 'tags': [], 'project_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf'}}
2026-09-25 15:53:07,627 - INFO - Created VN ctest-vn-32092831
2026-09-25 15:53:07,689 - DEBUG - VN ctest-vn-32092831 UUID is ff2a2f1f-4256-4424-81ca-a143660e47b3
2026-09-25 15:53:08,076 - DEBUG - Response for create_network : {'network': {'id': 'cda932e1-5b9b-4b32-801c-35001baeac6f', 'name': 'ctest-vn-90654623', 'tenant_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'project_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11724493', 'ctest-vn-90654623'], 'port_security_enabled': True, 'description': ''}}
2026-09-25 15:53:08,302 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f03cf06-6bfe-4264-be8d-0a816ad4c399', 'name': '', 'tenant_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'network_id': 'cda932e1-5b9b-4b32-801c-35001baeac6f', 'ip_version': 4, 'cidr': '8.60.12.0/26', 'allocation_pools': [{'start': '8.60.12.2', 'end': '8.60.12.62'}], 'gateway_ip': '8.60.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.60.12.2', 'tags': [], 'project_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf'}}
2026-09-25 15:53:08,334 - INFO - Created VN ctest-vn-90654623
2026-09-25 15:53:08,389 - DEBUG - VN ctest-vn-90654623 UUID is cda932e1-5b9b-4b32-801c-35001baeac6f
2026-09-25 15:53:08,507 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-32092831, 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-11724493:ctest-vn-90654623, 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-09-25 15:53:08,854 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff2a2f1f-4256-4424-81ca-a143660e47b3', 'name': 'ctest-vn-32092831', 'tenant_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'project_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['135119dd-3e7f-4fcf-84d1-b12797bf4c1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11724493', 'ctest-vn-32092831'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11724493', 'ctest-policy-allow-all-82538005']], 'subnet_ipam': [{'subnet_cidr': '75.248.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-25 15:53:09,141 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cda932e1-5b9b-4b32-801c-35001baeac6f', 'name': 'ctest-vn-90654623', 'tenant_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'project_id': '86cd1afb0bda4d4a8d3a3fb24b95b0cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['2f03cf06-6bfe-4264-be8d-0a816ad4c399'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11724493', 'ctest-vn-90654623'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11724493', 'ctest-policy-allow-all-82538005']], 'subnet_ipam': [{'subnet_cidr': '8.60.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-25 15:53:09,305 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-25 15:53:09,669 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-25 15:53:09,706 - DEBUG - Requesting: http://10.0.0.38:8082/domain/feefc375-57ba-41f0-bd64-4db01ac76350
2026-09-25 15:53:09,719 - DEBUG - Requesting: http://10.0.0.38:8082/project/86cd1afb-0bda-4d4a-8d3a-3fb24b95b0cf
2026-09-25 15:53:09,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2a2f1f-4256-4424-81ca-a143660e47b3
2026-09-25 15:53:09,821 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2a2f1f-4256-4424-81ca-a143660e47b3
2026-09-25 15:53:09,834 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2ed2589-09f0-4449-93a4-a06b6776afa9
2026-09-25 15:53:09,842 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2ed2589-09f0-4449-93a4-a06b6776afa9
2026-09-25 15:53:09,851 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4d2654d2-cd29-4e2d-bc4b-40711dbc5001
2026-09-25 15:53:09,862 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-25 15:53:09,862 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2a2f1f-4256-4424-81ca-a143660e47b3
2026-09-25 15:53:09,875 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2ed2589-09f0-4449-93a4-a06b6776afa9
2026-09-25 15:53:09,899 - INFO - Verified VN network id 12 for VN ff2a2f1f-4256-4424-81ca-a143660e47b3
2026-09-25 15:53:09,899 - INFO - Verifications in API Server for VN ctest-vn-32092831 passed
2026-09-25 15:53:09,899 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2a2f1f-4256-4424-81ca-a143660e47b3
2026-09-25 15:53:09,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2ed2589-09f0-4449-93a4-a06b6776afa9
2026-09-25 15:53:09,928 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2ed2589-09f0-4449-93a4-a06b6776afa9
2026-09-25 15:53:09,940 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4d2654d2-cd29-4e2d-bc4b-40711dbc5001
2026-09-25 15:53:09,961 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-32092831', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11724493', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18386560239996912676', 'uuid-lslong': '9352464887035348915'}, 'enable': 'true', 'created': '2026-09-25T15:53:07', 'last-modified': '2026-09-25T15:53:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.132638'}
2026-09-25 15:53:09,970 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-25 15:53:09,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32092831 passed
2026-09-25 15:53:09,970 - DEBUG - ====Verifying policy data for ctest-vn-32092831 in API_Server ======
2026-09-25 15:53:09,971 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-25 15:53:09,982 - DEBUG - Requesting: http://10.0.0.38:8082/domain/feefc375-57ba-41f0-bd64-4db01ac76350
2026-09-25 15:53:10,002 - DEBUG - Requesting: http://10.0.0.38:8082/project/86cd1afb-0bda-4d4a-8d3a-3fb24b95b0cf
2026-09-25 15:53:10,101 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2a2f1f-4256-4424-81ca-a143660e47b3
2026-09-25 15:53:10,115 - DEBUG - ==>Verifying data for policy with id: 3b91ee8e-90d5-45b1-82e5-de150a687bb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-11724493', 'ctest-policy-allow-all-82538005']
2026-09-25 15:53:10,115 - INFO - VN ctest-vn-32092831 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-25 15:53:10,115 - DEBUG - Verifying the vn in opserver
2026-09-25 15:53:10,115 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-32092831 virtual network link through opserver 10.0.0.38
2026-09-25 15:53:10,115 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-25 15:53:10,461 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-25 15:53:10,531 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-32092831', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-32092831?flat'}
2026-09-25 15:53:10,531 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-32092831 is found in opserver
2026-09-25 15:53:10,545 - DEBUG - Do not have enough data to verify VN in agent
2026-09-25 15:53:10,550 - DEBUG - VRF ids for VN ctest-vn-32092831: {}
2026-09-25 15:53:10,550 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-25 15:53:10,557 - DEBUG - Requesting: http://10.0.0.38:8082/domain/feefc375-57ba-41f0-bd64-4db01ac76350
2026-09-25 15:53:10,572 - DEBUG - Requesting: http://10.0.0.38:8082/project/86cd1afb-0bda-4d4a-8d3a-3fb24b95b0cf
2026-09-25 15:53:10,662 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cda932e1-5b9b-4b32-801c-35001baeac6f
2026-09-25 15:53:10,677 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cda932e1-5b9b-4b32-801c-35001baeac6f
2026-09-25 15:53:10,687 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39dcef0e-6cbe-464a-8797-8a19480ef0e9
2026-09-25 15:53:10,698 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39dcef0e-6cbe-464a-8797-8a19480ef0e9
2026-09-25 15:53:10,709 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/aa0cd985-546e-49d4-a19e-ab6251f39e09
2026-09-25 15:53:10,718 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-25 15:53:10,719 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cda932e1-5b9b-4b32-801c-35001baeac6f
2026-09-25 15:53:10,732 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39dcef0e-6cbe-464a-8797-8a19480ef0e9
2026-09-25 15:53:10,750 - INFO - Verified VN network id 13 for VN cda932e1-5b9b-4b32-801c-35001baeac6f
2026-09-25 15:53:10,750 - INFO - Verifications in API Server for VN ctest-vn-90654623 passed
2026-09-25 15:53:10,750 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cda932e1-5b9b-4b32-801c-35001baeac6f
2026-09-25 15:53:10,763 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39dcef0e-6cbe-464a-8797-8a19480ef0e9
2026-09-25 15:53:10,772 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39dcef0e-6cbe-464a-8797-8a19480ef0e9
2026-09-25 15:53:10,780 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/aa0cd985-546e-49d4-a19e-ab6251f39e09
2026-09-25 15:53:10,795 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-90654623', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11724493', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14819431992325262130', 'uuid-lslong': '9231311610783378543'}, 'enable': 'true', 'created': '2026-09-25T15:53:08', 'last-modified': '2026-09-25T15:53:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.691559'}
2026-09-25 15:53:10,803 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-25 15:53:10,803 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90654623 passed
2026-09-25 15:53:10,804 - DEBUG - ====Verifying policy data for ctest-vn-90654623 in API_Server ======
2026-09-25 15:53:10,804 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-25 15:53:10,812 - DEBUG - Requesting: http://10.0.0.38:8082/domain/feefc375-57ba-41f0-bd64-4db01ac76350
2026-09-25 15:53:10,827 - DEBUG - Requesting: http://10.0.0.38:8082/project/86cd1afb-0bda-4d4a-8d3a-3fb24b95b0cf
2026-09-25 15:53:10,912 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cda932e1-5b9b-4b32-801c-35001baeac6f
2026-09-25 15:53:10,925 - DEBUG - ==>Verifying data for policy with id: 3b91ee8e-90d5-45b1-82e5-de150a687bb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-11724493', 'ctest-policy-allow-all-82538005']
2026-09-25 15:53:10,926 - INFO - VN ctest-vn-90654623 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-25 15:53:10,926 - DEBUG - Verifying the vn in opserver
2026-09-25 15:53:10,926 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-90654623 virtual network link through opserver 10.0.0.38
2026-09-25 15:53:10,926 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-25 15:53:10,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-90654623', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-90654623?flat'}
2026-09-25 15:53:10,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11724493:ctest-vn-90654623 is found in opserver
2026-09-25 15:53:10,958 - DEBUG - Do not have enough data to verify VN in agent
2026-09-25 15:53:10,967 - DEBUG - VRF ids for VN ctest-vn-90654623: {}
2026-09-25 15:53:11,036 - DEBUG - Services list from nova: [