2026-08-14 04:05:37,410 - INFO - Domain Default found not creating
2026-08-14 04:05:37,580 - INFO - Project ctest-TestBasicPolicy-98578145 not found, creating it
2026-08-14 04:05:38,076 - INFO - Created Project:ctest-TestBasicPolicy-98578145, ID : 78f1a73d-50d7-44c6-a2e5-c8c4c23d8cc9
2026-08-14 04:05:39,811 - INFO - ================================================================================
2026-08-14 04:05:39,811 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-14 04:05:39,811 - 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-14 04:05:40,081 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-08-14 04:05:40,081 - INFO - Initial checks done. Running the testcase now
2026-08-14 04:05:40,081 - INFO -
2026-08-14 04:05:40,739 - DEBUG - Response for create_network : {'network': {'id': '7f91a83b-a6f7-45db-afe5-40a83803712c', 'name': 'ctest-vn-46660711', 'tenant_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'project_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98578145', 'ctest-vn-46660711'], 'port_security_enabled': True, 'description': ''}}
2026-08-14 04:05:40,938 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b865acc2-e60f-4a0d-a3ed-eedf1dc039ea', 'name': '', 'tenant_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'network_id': '7f91a83b-a6f7-45db-afe5-40a83803712c', 'ip_version': 4, 'cidr': '39.116.53.0/26', 'allocation_pools': [{'start': '39.116.53.2', 'end': '39.116.53.62'}], 'gateway_ip': '39.116.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.116.53.2', 'tags': [], 'project_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9'}}
2026-08-14 04:05:40,958 - INFO - Created VN ctest-vn-46660711
2026-08-14 04:05:41,011 - DEBUG - VN ctest-vn-46660711 UUID is 7f91a83b-a6f7-45db-afe5-40a83803712c
2026-08-14 04:05:41,323 - DEBUG - Response for create_network : {'network': {'id': '36ff009b-79fb-42dd-b0bd-467e80c33031', 'name': 'ctest-vn-21833466', 'tenant_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'project_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98578145', 'ctest-vn-21833466'], 'port_security_enabled': True, 'description': ''}}
2026-08-14 04:05:41,488 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dda432dd-435f-4e8e-9203-854119e57966', 'name': '', 'tenant_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'network_id': '36ff009b-79fb-42dd-b0bd-467e80c33031', 'ip_version': 4, 'cidr': '51.125.99.64/26', 'allocation_pools': [{'start': '51.125.99.66', 'end': '51.125.99.126'}], 'gateway_ip': '51.125.99.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.125.99.66', 'tags': [], 'project_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9'}}
2026-08-14 04:05:41,513 - INFO - Created VN ctest-vn-21833466
2026-08-14 04:05:41,571 - DEBUG - VN ctest-vn-21833466 UUID is 36ff009b-79fb-42dd-b0bd-467e80c33031
2026-08-14 04:05:41,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-46660711, 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-98578145:ctest-vn-21833466, 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-14 04:05:42,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f91a83b-a6f7-45db-afe5-40a83803712c', 'name': 'ctest-vn-46660711', 'tenant_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'project_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b865acc2-e60f-4a0d-a3ed-eedf1dc039ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98578145', 'ctest-vn-46660711'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98578145', 'ctest-policy-allow-all-98351690']], 'subnet_ipam': [{'subnet_cidr': '39.116.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-14 04:05:42,230 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36ff009b-79fb-42dd-b0bd-467e80c33031', 'name': 'ctest-vn-21833466', 'tenant_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'project_id': '78f1a73d50d744c6a2e5c8c4c23d8cc9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dda432dd-435f-4e8e-9203-854119e57966'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98578145', 'ctest-vn-21833466'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98578145', 'ctest-policy-allow-all-98351690']], 'subnet_ipam': [{'subnet_cidr': '51.125.99.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-14 04:05:42,406 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-14 04:05:42,790 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-14 04:05:42,821 - DEBUG - Requesting: http://10.0.0.161:8082/domain/0a9cca3f-d863-4ec3-b0a1-69b7ae068a9b
2026-08-14 04:05:42,836 - DEBUG - Requesting: http://10.0.0.161:8082/project/78f1a73d-50d7-44c6-a2e5-c8c4c23d8cc9
2026-08-14 04:05:42,917 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7f91a83b-a6f7-45db-afe5-40a83803712c
2026-08-14 04:05:42,931 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7f91a83b-a6f7-45db-afe5-40a83803712c
2026-08-14 04:05:42,943 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7e2ce42e-169c-4829-8c76-4118e2f60ad4
2026-08-14 04:05:42,954 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7e2ce42e-169c-4829-8c76-4118e2f60ad4
2026-08-14 04:05:42,963 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/f3a9b91e-4318-4c68-85f4-056c92df9934
2026-08-14 04:05:42,971 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-14 04:05:42,971 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7f91a83b-a6f7-45db-afe5-40a83803712c
2026-08-14 04:05:42,981 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7e2ce42e-169c-4829-8c76-4118e2f60ad4
2026-08-14 04:05:42,998 - INFO - Verified VN network id 11 for VN 7f91a83b-a6f7-45db-afe5-40a83803712c
2026-08-14 04:05:42,999 - INFO - Verifications in API Server for VN ctest-vn-46660711 passed
2026-08-14 04:05:42,999 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7f91a83b-a6f7-45db-afe5-40a83803712c
2026-08-14 04:05:43,011 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7e2ce42e-169c-4829-8c76-4118e2f60ad4
2026-08-14 04:05:43,019 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7e2ce42e-169c-4829-8c76-4118e2f60ad4
2026-08-14 04:05:43,028 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/f3a9b91e-4318-4c68-85f4-056c92df9934
2026-08-14 04:05:43,045 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-46660711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98578145', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9192313288597652955', 'uuid-lslong': '12674607817542562092'}, 'enable': 'true', 'created': '2026-08-14T04:05:40', 'last-modified': '2026-08-14T04:05:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.070264'}
2026-08-14 04:05:43,053 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-14 04:05:43,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46660711 passed
2026-08-14 04:05:43,053 - DEBUG - ====Verifying policy data for ctest-vn-46660711 in API_Server ======
2026-08-14 04:05:43,053 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-14 04:05:43,060 - DEBUG - Requesting: http://10.0.0.161:8082/domain/0a9cca3f-d863-4ec3-b0a1-69b7ae068a9b
2026-08-14 04:05:43,075 - DEBUG - Requesting: http://10.0.0.161:8082/project/78f1a73d-50d7-44c6-a2e5-c8c4c23d8cc9
2026-08-14 04:05:43,156 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7f91a83b-a6f7-45db-afe5-40a83803712c
2026-08-14 04:05:43,169 - DEBUG - ==>Verifying data for policy with id: ca82914f-114e-4765-9429-73c9fd3f6575, fqn: ['default-domain', 'ctest-TestBasicPolicy-98578145', 'ctest-policy-allow-all-98351690']
2026-08-14 04:05:43,169 - INFO - VN ctest-vn-46660711 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-14 04:05:43,169 - DEBUG - Verifying the vn in opserver
2026-08-14 04:05:43,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-46660711 virtual network link through opserver 10.0.0.161
2026-08-14 04:05:43,169 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-14 04:05:43,541 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-14 04:05:43,608 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-46660711', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-46660711?flat'}
2026-08-14 04:05:43,608 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-46660711 is found in opserver
2026-08-14 04:05:43,619 - DEBUG - Do not have enough data to verify VN in agent
2026-08-14 04:05:43,624 - DEBUG - VRF ids for VN ctest-vn-46660711: {}
2026-08-14 04:05:43,624 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-14 04:05:43,631 - DEBUG - Requesting: http://10.0.0.161:8082/domain/0a9cca3f-d863-4ec3-b0a1-69b7ae068a9b
2026-08-14 04:05:43,643 - DEBUG - Requesting: http://10.0.0.161:8082/project/78f1a73d-50d7-44c6-a2e5-c8c4c23d8cc9
2026-08-14 04:05:43,725 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/36ff009b-79fb-42dd-b0bd-467e80c33031
2026-08-14 04:05:43,740 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/36ff009b-79fb-42dd-b0bd-467e80c33031
2026-08-14 04:05:43,752 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/56dc395d-ff68-4455-b17e-277574cffc12
2026-08-14 04:05:43,761 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/56dc395d-ff68-4455-b17e-277574cffc12
2026-08-14 04:05:43,770 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/33ef6a26-0655-4fc8-9e3e-23867faf1801
2026-08-14 04:05:43,778 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-14 04:05:43,778 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/36ff009b-79fb-42dd-b0bd-467e80c33031
2026-08-14 04:05:43,789 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/56dc395d-ff68-4455-b17e-277574cffc12
2026-08-14 04:05:43,806 - INFO - Verified VN network id 12 for VN 36ff009b-79fb-42dd-b0bd-467e80c33031
2026-08-14 04:05:43,806 - INFO - Verifications in API Server for VN ctest-vn-21833466 passed
2026-08-14 04:05:43,806 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/36ff009b-79fb-42dd-b0bd-467e80c33031
2026-08-14 04:05:43,816 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/56dc395d-ff68-4455-b17e-277574cffc12
2026-08-14 04:05:43,824 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/56dc395d-ff68-4455-b17e-277574cffc12
2026-08-14 04:05:43,831 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/33ef6a26-0655-4fc8-9e3e-23867faf1801
2026-08-14 04:05:43,844 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-21833466', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98578145', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3962886864875766493', 'uuid-lslong': '12735412830413729841'}, 'enable': 'true', 'created': '2026-08-14T04:05:41', 'last-modified': '2026-08-14T04:05:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.635830'}
2026-08-14 04:05:43,850 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-14 04:05:43,850 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21833466 passed
2026-08-14 04:05:43,851 - DEBUG - ====Verifying policy data for ctest-vn-21833466 in API_Server ======
2026-08-14 04:05:43,851 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-14 04:05:43,856 - DEBUG - Requesting: http://10.0.0.161:8082/domain/0a9cca3f-d863-4ec3-b0a1-69b7ae068a9b
2026-08-14 04:05:43,868 - DEBUG - Requesting: http://10.0.0.161:8082/project/78f1a73d-50d7-44c6-a2e5-c8c4c23d8cc9
2026-08-14 04:05:43,948 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/36ff009b-79fb-42dd-b0bd-467e80c33031
2026-08-14 04:05:43,958 - DEBUG - ==>Verifying data for policy with id: ca82914f-114e-4765-9429-73c9fd3f6575, fqn: ['default-domain', 'ctest-TestBasicPolicy-98578145', 'ctest-policy-allow-all-98351690']
2026-08-14 04:05:43,958 - INFO - VN ctest-vn-21833466 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-14 04:05:43,958 - DEBUG - Verifying the vn in opserver
2026-08-14 04:05:43,958 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-21833466 virtual network link through opserver 10.0.0.161
2026-08-14 04:05:43,958 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-14 04:05:43,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-21833466', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-21833466?flat'}
2026-08-14 04:05:43,969 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98578145:ctest-vn-21833466 is found in opserver
2026-08-14 04:05:43,980 - DEBUG - Do not have enough data to verify VN in agent
2026-08-14 04:05:43,987 - DEBUG - VRF ids for VN ctest-vn-21833466: {}
2026-08-14 04:05:44,059 - DEBUG - Services list from nova: [