2026-07-19 18:48:06,071 - INFO - Domain Default found not creating
2026-07-19 18:48:06,214 - INFO - Project ctest-TestBasicPolicy-21454608 not found, creating it
2026-07-19 18:48:06,669 - INFO - Created Project:ctest-TestBasicPolicy-21454608, ID : 6f17d39e-4a79-4ef4-90c5-1da0885c5475
2026-07-19 18:48:08,116 - INFO - ================================================================================
2026-07-19 18:48:08,116 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-19 18:48:08,116 - 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-07-19 18:48:08,370 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-07-19 18:48:08,370 - INFO - Initial checks done. Running the testcase now
2026-07-19 18:48:08,370 - INFO -
2026-07-19 18:48:08,941 - DEBUG - Response for create_network : {'network': {'id': '6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03', 'name': 'ctest-vn-19372583', 'tenant_id': '6f17d39e4a794ef490c51da0885c5475', 'project_id': '6f17d39e4a794ef490c51da0885c5475', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21454608', 'ctest-vn-19372583'], 'port_security_enabled': True, 'description': ''}}
2026-07-19 18:48:09,121 - DEBUG - Response for create_subnet : {'subnet': {'id': '033ddb5f-f26c-496c-b3a0-6ad5689f05c1', 'name': '', 'tenant_id': '6f17d39e4a794ef490c51da0885c5475', 'network_id': '6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03', 'ip_version': 4, 'cidr': '100.242.15.64/26', 'allocation_pools': [{'start': '100.242.15.66', 'end': '100.242.15.126'}], 'gateway_ip': '100.242.15.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.242.15.66', 'tags': [], 'project_id': '6f17d39e4a794ef490c51da0885c5475'}}
2026-07-19 18:48:09,138 - INFO - Created VN ctest-vn-19372583
2026-07-19 18:48:09,191 - DEBUG - VN ctest-vn-19372583 UUID is 6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03
2026-07-19 18:48:09,492 - DEBUG - Response for create_network : {'network': {'id': '2afe862d-db3c-4bff-832e-990cb5e47ceb', 'name': 'ctest-vn-35954609', 'tenant_id': '6f17d39e4a794ef490c51da0885c5475', 'project_id': '6f17d39e4a794ef490c51da0885c5475', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21454608', 'ctest-vn-35954609'], 'port_security_enabled': True, 'description': ''}}
2026-07-19 18:48:09,712 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a436074-a39d-4ed4-99d8-a619786a7cef', 'name': '', 'tenant_id': '6f17d39e4a794ef490c51da0885c5475', 'network_id': '2afe862d-db3c-4bff-832e-990cb5e47ceb', 'ip_version': 4, 'cidr': '142.121.28.128/26', 'allocation_pools': [{'start': '142.121.28.130', 'end': '142.121.28.190'}], 'gateway_ip': '142.121.28.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.121.28.130', 'tags': [], 'project_id': '6f17d39e4a794ef490c51da0885c5475'}}
2026-07-19 18:48:09,727 - INFO - Created VN ctest-vn-35954609
2026-07-19 18:48:09,783 - DEBUG - VN ctest-vn-35954609 UUID is 2afe862d-db3c-4bff-832e-990cb5e47ceb
2026-07-19 18:48:09,939 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-19372583, 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-21454608:ctest-vn-35954609, 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-07-19 18:48:10,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03', 'name': 'ctest-vn-19372583', 'tenant_id': '6f17d39e4a794ef490c51da0885c5475', 'project_id': '6f17d39e4a794ef490c51da0885c5475', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['033ddb5f-f26c-496c-b3a0-6ad5689f05c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21454608', 'ctest-vn-19372583'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21454608', 'ctest-policy-allow-all-53677606']], 'subnet_ipam': [{'subnet_cidr': '100.242.15.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-19 18:48:10,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2afe862d-db3c-4bff-832e-990cb5e47ceb', 'name': 'ctest-vn-35954609', 'tenant_id': '6f17d39e4a794ef490c51da0885c5475', 'project_id': '6f17d39e4a794ef490c51da0885c5475', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a436074-a39d-4ed4-99d8-a619786a7cef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21454608', 'ctest-vn-35954609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21454608', 'ctest-policy-allow-all-53677606']], 'subnet_ipam': [{'subnet_cidr': '142.121.28.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-19 18:48:10,623 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-19 18:48:10,946 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-19 18:48:10,975 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cd6870a3-4b4e-44b2-965d-af89c0e7bb93
2026-07-19 18:48:10,988 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f17d39e-4a79-4ef4-90c5-1da0885c5475
2026-07-19 18:48:11,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03
2026-07-19 18:48:11,082 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03
2026-07-19 18:48:11,092 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/136b303f-a946-471f-ac4b-48bb23132957
2026-07-19 18:48:11,101 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/136b303f-a946-471f-ac4b-48bb23132957
2026-07-19 18:48:11,109 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b08b914b-b240-4d80-a54d-f5ffef97b2a8
2026-07-19 18:48:11,118 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-19 18:48:11,118 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03
2026-07-19 18:48:11,130 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/136b303f-a946-471f-ac4b-48bb23132957
2026-07-19 18:48:11,148 - INFO - Verified VN network id 10 for VN 6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03
2026-07-19 18:48:11,148 - INFO - Verifications in API Server for VN ctest-vn-19372583 passed
2026-07-19 18:48:11,149 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03
2026-07-19 18:48:11,157 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/136b303f-a946-471f-ac4b-48bb23132957
2026-07-19 18:48:11,167 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/136b303f-a946-471f-ac4b-48bb23132957
2026-07-19 18:48:11,174 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b08b914b-b240-4d80-a54d-f5ffef97b2a8
2026-07-19 18:48:11,189 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-19372583', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21454608', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7878525880970791779', 'uuid-lslong': '9966900966149390083'}, 'enable': 'true', 'created': '2026-07-19T18:48:08', 'last-modified': '2026-07-19T18:48:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946062'}
2026-07-19 18:48:11,195 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-19 18:48:11,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19372583 passed
2026-07-19 18:48:11,195 - DEBUG - ====Verifying policy data for ctest-vn-19372583 in API_Server ======
2026-07-19 18:48:11,195 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-19 18:48:11,201 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cd6870a3-4b4e-44b2-965d-af89c0e7bb93
2026-07-19 18:48:11,213 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f17d39e-4a79-4ef4-90c5-1da0885c5475
2026-07-19 18:48:11,285 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6d56258b-e8fc-4b63-8a51-8b9f2ed4ff03
2026-07-19 18:48:11,294 - DEBUG - ==>Verifying data for policy with id: e71635ac-928f-4618-8673-1a028fb50a84, fqn: ['default-domain', 'ctest-TestBasicPolicy-21454608', 'ctest-policy-allow-all-53677606']
2026-07-19 18:48:11,294 - INFO - VN ctest-vn-19372583 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-19 18:48:11,295 - DEBUG - Verifying the vn in opserver
2026-07-19 18:48:11,295 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-19372583 virtual network link through opserver 10.0.0.50
2026-07-19 18:48:11,295 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-19 18:48:11,615 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-19 18:48:11,671 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-19372583', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-19372583?flat'}
2026-07-19 18:48:11,671 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-19372583 is found in opserver
2026-07-19 18:48:11,681 - DEBUG - Do not have enough data to verify VN in agent
2026-07-19 18:48:11,685 - DEBUG - VRF ids for VN ctest-vn-19372583: {}
2026-07-19 18:48:11,685 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-19 18:48:11,691 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cd6870a3-4b4e-44b2-965d-af89c0e7bb93
2026-07-19 18:48:11,701 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f17d39e-4a79-4ef4-90c5-1da0885c5475
2026-07-19 18:48:11,769 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2afe862d-db3c-4bff-832e-990cb5e47ceb
2026-07-19 18:48:11,781 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2afe862d-db3c-4bff-832e-990cb5e47ceb
2026-07-19 18:48:11,790 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20629cd3-ce96-4189-aee4-247a49c79b9a
2026-07-19 18:48:11,798 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20629cd3-ce96-4189-aee4-247a49c79b9a
2026-07-19 18:48:11,805 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/76d29fac-0c61-47bb-a717-eb1c6841e472
2026-07-19 18:48:11,813 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-19 18:48:11,813 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2afe862d-db3c-4bff-832e-990cb5e47ceb
2026-07-19 18:48:11,824 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20629cd3-ce96-4189-aee4-247a49c79b9a
2026-07-19 18:48:11,840 - INFO - Verified VN network id 11 for VN 2afe862d-db3c-4bff-832e-990cb5e47ceb
2026-07-19 18:48:11,840 - INFO - Verifications in API Server for VN ctest-vn-35954609 passed
2026-07-19 18:48:11,840 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2afe862d-db3c-4bff-832e-990cb5e47ceb
2026-07-19 18:48:11,850 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20629cd3-ce96-4189-aee4-247a49c79b9a
2026-07-19 18:48:11,857 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20629cd3-ce96-4189-aee4-247a49c79b9a
2026-07-19 18:48:11,865 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/76d29fac-0c61-47bb-a717-eb1c6841e472
2026-07-19 18:48:11,876 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-35954609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21454608', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3098061125187292159', 'uuid-lslong': '9452660947767557355'}, 'enable': 'true', 'created': '2026-07-19T18:48:09', 'last-modified': '2026-07-19T18:48:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449605'}
2026-07-19 18:48:11,883 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-19 18:48:11,883 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35954609 passed
2026-07-19 18:48:11,883 - DEBUG - ====Verifying policy data for ctest-vn-35954609 in API_Server ======
2026-07-19 18:48:11,883 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-19 18:48:11,889 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cd6870a3-4b4e-44b2-965d-af89c0e7bb93
2026-07-19 18:48:11,900 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f17d39e-4a79-4ef4-90c5-1da0885c5475
2026-07-19 18:48:11,974 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2afe862d-db3c-4bff-832e-990cb5e47ceb
2026-07-19 18:48:11,983 - DEBUG - ==>Verifying data for policy with id: e71635ac-928f-4618-8673-1a028fb50a84, fqn: ['default-domain', 'ctest-TestBasicPolicy-21454608', 'ctest-policy-allow-all-53677606']
2026-07-19 18:48:11,984 - INFO - VN ctest-vn-35954609 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-19 18:48:11,984 - DEBUG - Verifying the vn in opserver
2026-07-19 18:48:11,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-35954609 virtual network link through opserver 10.0.0.50
2026-07-19 18:48:11,984 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-19 18:48:11,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-35954609', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-35954609?flat'}
2026-07-19 18:48:11,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21454608:ctest-vn-35954609 is found in opserver
2026-07-19 18:48:12,003 - DEBUG - Do not have enough data to verify VN in agent
2026-07-19 18:48:12,007 - DEBUG - VRF ids for VN ctest-vn-35954609: {}
2026-07-19 18:48:12,064 - DEBUG - Services list from nova: [