2026-08-21 13:32:34,841 - INFO - Domain Default found not creating
2026-08-21 13:32:35,009 - INFO - Project ctest-TestBasicPolicy-00034804 not found, creating it
2026-08-21 13:32:35,528 - INFO - Created Project:ctest-TestBasicPolicy-00034804, ID : 9ca14918-5f61-4178-a0d4-d76e16a4494a
2026-08-21 13:32:37,277 - INFO - ================================================================================
2026-08-21 13:32:37,277 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-21 13:32:37,277 - 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-08-21 13:32:37,548 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with
2026-08-21 13:32:37,549 - INFO - Initial checks done. Running the testcase now
2026-08-21 13:32:37,549 - INFO -
2026-08-21 13:32:38,196 - DEBUG - Response for create_network : {'network': {'id': '1aae0073-d1be-4ca5-9a0e-7c393467d56b', 'name': 'ctest-vn-39120882', 'tenant_id': '9ca149185f614178a0d4d76e16a4494a', 'project_id': '9ca149185f614178a0d4d76e16a4494a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00034804', 'ctest-vn-39120882'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 13:32:38,412 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ddcf0a8-f3b2-4c4f-a4c1-3b43795bfbb6', 'name': '', 'tenant_id': '9ca149185f614178a0d4d76e16a4494a', 'network_id': '1aae0073-d1be-4ca5-9a0e-7c393467d56b', 'ip_version': 4, 'cidr': '123.185.248.128/26', 'allocation_pools': [{'start': '123.185.248.130', 'end': '123.185.248.190'}], 'gateway_ip': '123.185.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.185.248.130', 'tags': [], 'project_id': '9ca149185f614178a0d4d76e16a4494a'}}
2026-08-21 13:32:38,428 - INFO - Created VN ctest-vn-39120882
2026-08-21 13:32:38,480 - DEBUG - VN ctest-vn-39120882 UUID is 1aae0073-d1be-4ca5-9a0e-7c393467d56b
2026-08-21 13:32:38,783 - DEBUG - Response for create_network : {'network': {'id': '07ea4f70-94e0-402d-86cb-233a5bef47bc', 'name': 'ctest-vn-55679925', 'tenant_id': '9ca149185f614178a0d4d76e16a4494a', 'project_id': '9ca149185f614178a0d4d76e16a4494a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00034804', 'ctest-vn-55679925'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 13:32:39,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b8a6ed3-8d62-4417-9bb8-251718e50418', 'name': '', 'tenant_id': '9ca149185f614178a0d4d76e16a4494a', 'network_id': '07ea4f70-94e0-402d-86cb-233a5bef47bc', 'ip_version': 4, 'cidr': '196.162.160.64/26', 'allocation_pools': [{'start': '196.162.160.66', 'end': '196.162.160.126'}], 'gateway_ip': '196.162.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.162.160.66', 'tags': [], 'project_id': '9ca149185f614178a0d4d76e16a4494a'}}
2026-08-21 13:32:39,022 - INFO - Created VN ctest-vn-55679925
2026-08-21 13:32:39,076 - DEBUG - VN ctest-vn-55679925 UUID is 07ea4f70-94e0-402d-86cb-233a5bef47bc
2026-08-21 13:32:39,195 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-39120882, 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-00034804:ctest-vn-55679925, 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-08-21 13:32:39,518 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1aae0073-d1be-4ca5-9a0e-7c393467d56b', 'name': 'ctest-vn-39120882', 'tenant_id': '9ca149185f614178a0d4d76e16a4494a', 'project_id': '9ca149185f614178a0d4d76e16a4494a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ddcf0a8-f3b2-4c4f-a4c1-3b43795bfbb6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00034804', 'ctest-vn-39120882'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00034804', 'ctest-policy-allow-all-28483737']], 'subnet_ipam': [{'subnet_cidr': '123.185.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 13:32:39,769 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07ea4f70-94e0-402d-86cb-233a5bef47bc', 'name': 'ctest-vn-55679925', 'tenant_id': '9ca149185f614178a0d4d76e16a4494a', 'project_id': '9ca149185f614178a0d4d76e16a4494a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b8a6ed3-8d62-4417-9bb8-251718e50418'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00034804', 'ctest-vn-55679925'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00034804', 'ctest-policy-allow-all-28483737']], 'subnet_ipam': [{'subnet_cidr': '196.162.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 13:32:39,940 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 13:32:40,312 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 13:32:40,341 - DEBUG - Requesting: http://10.0.0.162:8082/domain/4583c65d-bcaa-4340-908a-0dcf61eff8ff
2026-08-21 13:32:40,359 - DEBUG - Requesting: http://10.0.0.162:8082/project/9ca14918-5f61-4178-a0d4-d76e16a4494a
2026-08-21 13:32:40,444 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/1aae0073-d1be-4ca5-9a0e-7c393467d56b
2026-08-21 13:32:40,459 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/1aae0073-d1be-4ca5-9a0e-7c393467d56b
2026-08-21 13:32:40,470 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d181b743-e761-4851-8826-fb63269dfd91
2026-08-21 13:32:40,482 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d181b743-e761-4851-8826-fb63269dfd91
2026-08-21 13:32:40,490 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/4b8207b5-ea45-4990-b6f6-66c773a8574f
2026-08-21 13:32:40,497 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 13:32:40,497 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/1aae0073-d1be-4ca5-9a0e-7c393467d56b
2026-08-21 13:32:40,507 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d181b743-e761-4851-8826-fb63269dfd91
2026-08-21 13:32:40,522 - INFO - Verified VN network id 11 for VN 1aae0073-d1be-4ca5-9a0e-7c393467d56b
2026-08-21 13:32:40,523 - INFO - Verifications in API Server for VN ctest-vn-39120882 passed
2026-08-21 13:32:40,523 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/1aae0073-d1be-4ca5-9a0e-7c393467d56b
2026-08-21 13:32:40,532 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d181b743-e761-4851-8826-fb63269dfd91
2026-08-21 13:32:40,540 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d181b743-e761-4851-8826-fb63269dfd91
2026-08-21 13:32:40,548 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/4b8207b5-ea45-4990-b6f6-66c773a8574f
2026-08-21 13:32:40,561 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-39120882', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00034804', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1922474588373929125', 'uuid-lslong': '11100946716649051499'}, 'enable': 'true', 'created': '2026-08-21T13:32:38', 'last-modified': '2026-08-21T13:32:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.083067'}
2026-08-21 13:32:40,569 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 13:32:40,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39120882 passed
2026-08-21 13:32:40,569 - DEBUG - ====Verifying policy data for ctest-vn-39120882 in API_Server ======
2026-08-21 13:32:40,569 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 13:32:40,575 - DEBUG - Requesting: http://10.0.0.162:8082/domain/4583c65d-bcaa-4340-908a-0dcf61eff8ff
2026-08-21 13:32:40,586 - DEBUG - Requesting: http://10.0.0.162:8082/project/9ca14918-5f61-4178-a0d4-d76e16a4494a
2026-08-21 13:32:40,660 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/1aae0073-d1be-4ca5-9a0e-7c393467d56b
2026-08-21 13:32:40,670 - DEBUG - ==>Verifying data for policy with id: e13961e0-2b46-4c3b-bd3f-c0165bbe9ff2, fqn: ['default-domain', 'ctest-TestBasicPolicy-00034804', 'ctest-policy-allow-all-28483737']
2026-08-21 13:32:40,670 - INFO - VN ctest-vn-39120882 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 13:32:40,670 - DEBUG - Verifying the vn in opserver
2026-08-21 13:32:40,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-39120882 virtual network link through opserver 10.0.0.162
2026-08-21 13:32:40,671 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-21 13:32:41,042 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-21 13:32:41,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-39120882', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-39120882?flat'}
2026-08-21 13:32:41,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-39120882 is found in opserver
2026-08-21 13:32:41,115 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 13:32:41,120 - DEBUG - VRF ids for VN ctest-vn-39120882: {}
2026-08-21 13:32:41,120 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 13:32:41,126 - DEBUG - Requesting: http://10.0.0.162:8082/domain/4583c65d-bcaa-4340-908a-0dcf61eff8ff
2026-08-21 13:32:41,138 - DEBUG - Requesting: http://10.0.0.162:8082/project/9ca14918-5f61-4178-a0d4-d76e16a4494a
2026-08-21 13:32:41,214 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/07ea4f70-94e0-402d-86cb-233a5bef47bc
2026-08-21 13:32:41,227 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/07ea4f70-94e0-402d-86cb-233a5bef47bc
2026-08-21 13:32:41,237 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/61153787-2ea0-4788-b8b3-58e46a910681
2026-08-21 13:32:41,244 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/61153787-2ea0-4788-b8b3-58e46a910681
2026-08-21 13:32:41,252 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/6ff218db-c86d-45c3-83a8-8bb0f18a5639
2026-08-21 13:32:41,259 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 13:32:41,259 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/07ea4f70-94e0-402d-86cb-233a5bef47bc
2026-08-21 13:32:41,270 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/61153787-2ea0-4788-b8b3-58e46a910681
2026-08-21 13:32:41,290 - INFO - Verified VN network id 12 for VN 07ea4f70-94e0-402d-86cb-233a5bef47bc
2026-08-21 13:32:41,290 - INFO - Verifications in API Server for VN ctest-vn-55679925 passed
2026-08-21 13:32:41,290 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/07ea4f70-94e0-402d-86cb-233a5bef47bc
2026-08-21 13:32:41,303 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/61153787-2ea0-4788-b8b3-58e46a910681
2026-08-21 13:32:41,313 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/61153787-2ea0-4788-b8b3-58e46a910681
2026-08-21 13:32:41,323 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/6ff218db-c86d-45c3-83a8-8bb0f18a5639
2026-08-21 13:32:41,339 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-55679925', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00034804', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '570355647768444973', 'uuid-lslong': '9712895754912090044'}, 'enable': 'true', 'created': '2026-08-21T13:32:38', 'last-modified': '2026-08-21T13:32:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.597609'}
2026-08-21 13:32:41,345 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 13:32:41,345 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55679925 passed
2026-08-21 13:32:41,345 - DEBUG - ====Verifying policy data for ctest-vn-55679925 in API_Server ======
2026-08-21 13:32:41,346 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 13:32:41,351 - DEBUG - Requesting: http://10.0.0.162:8082/domain/4583c65d-bcaa-4340-908a-0dcf61eff8ff
2026-08-21 13:32:41,363 - DEBUG - Requesting: http://10.0.0.162:8082/project/9ca14918-5f61-4178-a0d4-d76e16a4494a
2026-08-21 13:32:41,440 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/07ea4f70-94e0-402d-86cb-233a5bef47bc
2026-08-21 13:32:41,450 - DEBUG - ==>Verifying data for policy with id: e13961e0-2b46-4c3b-bd3f-c0165bbe9ff2, fqn: ['default-domain', 'ctest-TestBasicPolicy-00034804', 'ctest-policy-allow-all-28483737']
2026-08-21 13:32:41,450 - INFO - VN ctest-vn-55679925 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 13:32:41,450 - DEBUG - Verifying the vn in opserver
2026-08-21 13:32:41,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-55679925 virtual network link through opserver 10.0.0.162
2026-08-21 13:32:41,450 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-21 13:32:41,460 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-55679925', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-55679925?flat'}
2026-08-21 13:32:41,460 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00034804:ctest-vn-55679925 is found in opserver
2026-08-21 13:32:41,472 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 13:32:41,477 - DEBUG - VRF ids for VN ctest-vn-55679925: {}
2026-08-21 13:32:41,540 - DEBUG - Services list from nova: [