2026-04-23 16:42:27,902 - INFO - Domain Default found not creating
2026-04-23 16:42:28,091 - INFO - Project ctest-TestBasicPolicy-98643160 not found, creating it
2026-04-23 16:42:28,552 - INFO - Created Project:ctest-TestBasicPolicy-98643160, ID : a746234c-1934-4e99-9e0c-cd41cb006d45
2026-04-23 16:42:30,057 - INFO - ================================================================================
2026-04-23 16:42:30,057 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-23 16:42:30,057 - 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-04-23 16:42:30,313 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-04-23 16:42:30,313 - INFO - Initial checks done. Running the testcase now
2026-04-23 16:42:30,313 - INFO -
2026-04-23 16:42:30,865 - DEBUG - Response for create_network : {'network': {'id': '38324bb0-9cb6-4190-ac24-4256e8fb9bc2', 'name': 'ctest-vn-21191819', 'tenant_id': 'a746234c19344e999e0ccd41cb006d45', 'project_id': 'a746234c19344e999e0ccd41cb006d45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98643160', 'ctest-vn-21191819'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 16:42:31,012 - DEBUG - Response for create_subnet : {'subnet': {'id': '40c32f02-4584-47b4-8d49-172a183952ab', 'name': '', 'tenant_id': 'a746234c19344e999e0ccd41cb006d45', 'network_id': '38324bb0-9cb6-4190-ac24-4256e8fb9bc2', 'ip_version': 4, 'cidr': '16.224.180.0/26', 'allocation_pools': [{'start': '16.224.180.2', 'end': '16.224.180.62'}], 'gateway_ip': '16.224.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.224.180.2', 'tags': [], 'project_id': 'a746234c19344e999e0ccd41cb006d45'}}
2026-04-23 16:42:31,030 - INFO - Created VN ctest-vn-21191819
2026-04-23 16:42:31,083 - DEBUG - VN ctest-vn-21191819 UUID is 38324bb0-9cb6-4190-ac24-4256e8fb9bc2
2026-04-23 16:42:31,368 - DEBUG - Response for create_network : {'network': {'id': '6fbd36ef-b947-4381-a2de-f179779935c9', 'name': 'ctest-vn-31572168', 'tenant_id': 'a746234c19344e999e0ccd41cb006d45', 'project_id': 'a746234c19344e999e0ccd41cb006d45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98643160', 'ctest-vn-31572168'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 16:42:31,525 - DEBUG - Response for create_subnet : {'subnet': {'id': '57180fe9-e269-40c7-82ad-f0dea8453958', 'name': '', 'tenant_id': 'a746234c19344e999e0ccd41cb006d45', 'network_id': '6fbd36ef-b947-4381-a2de-f179779935c9', 'ip_version': 4, 'cidr': '50.250.169.128/26', 'allocation_pools': [{'start': '50.250.169.130', 'end': '50.250.169.190'}], 'gateway_ip': '50.250.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.250.169.130', 'tags': [], 'project_id': 'a746234c19344e999e0ccd41cb006d45'}}
2026-04-23 16:42:31,544 - INFO - Created VN ctest-vn-31572168
2026-04-23 16:42:31,595 - DEBUG - VN ctest-vn-31572168 UUID is 6fbd36ef-b947-4381-a2de-f179779935c9
2026-04-23 16:42:31,709 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-21191819, 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-98643160:ctest-vn-31572168, 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-04-23 16:42:32,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '38324bb0-9cb6-4190-ac24-4256e8fb9bc2', 'name': 'ctest-vn-21191819', 'tenant_id': 'a746234c19344e999e0ccd41cb006d45', 'project_id': 'a746234c19344e999e0ccd41cb006d45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40c32f02-4584-47b4-8d49-172a183952ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98643160', 'ctest-vn-21191819'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98643160', 'ctest-policy-allow-all-82921364']], 'subnet_ipam': [{'subnet_cidr': '16.224.180.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 16:42:32,238 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fbd36ef-b947-4381-a2de-f179779935c9', 'name': 'ctest-vn-31572168', 'tenant_id': 'a746234c19344e999e0ccd41cb006d45', 'project_id': 'a746234c19344e999e0ccd41cb006d45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57180fe9-e269-40c7-82ad-f0dea8453958'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98643160', 'ctest-vn-31572168'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98643160', 'ctest-policy-allow-all-82921364']], 'subnet_ipam': [{'subnet_cidr': '50.250.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 16:42:32,399 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 16:42:32,693 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 16:42:32,726 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f86a2a3-d142-4bcf-a6d0-860081ab5a41
2026-04-23 16:42:32,742 - DEBUG - Requesting: http://10.0.0.33:8082/project/a746234c-1934-4e99-9e0c-cd41cb006d45
2026-04-23 16:42:32,817 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/38324bb0-9cb6-4190-ac24-4256e8fb9bc2
2026-04-23 16:42:32,829 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/38324bb0-9cb6-4190-ac24-4256e8fb9bc2
2026-04-23 16:42:32,839 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71aa159a-ea3f-448f-87bb-fd9b902bc972
2026-04-23 16:42:32,846 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71aa159a-ea3f-448f-87bb-fd9b902bc972
2026-04-23 16:42:32,852 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2da39fad-e458-490b-b759-55b6c947d911
2026-04-23 16:42:32,858 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 16:42:32,858 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/38324bb0-9cb6-4190-ac24-4256e8fb9bc2
2026-04-23 16:42:32,866 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71aa159a-ea3f-448f-87bb-fd9b902bc972
2026-04-23 16:42:32,878 - INFO - Verified VN network id 11 for VN 38324bb0-9cb6-4190-ac24-4256e8fb9bc2
2026-04-23 16:42:32,878 - INFO - Verifications in API Server for VN ctest-vn-21191819 passed
2026-04-23 16:42:32,878 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/38324bb0-9cb6-4190-ac24-4256e8fb9bc2
2026-04-23 16:42:32,886 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71aa159a-ea3f-448f-87bb-fd9b902bc972
2026-04-23 16:42:32,893 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71aa159a-ea3f-448f-87bb-fd9b902bc972
2026-04-23 16:42:32,898 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2da39fad-e458-490b-b759-55b6c947d911
2026-04-23 16:42:32,908 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-21191819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98643160', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4049382236875014544', 'uuid-lslong': '12404112214728612802'}, 'enable': 'true', 'created': '2026-04-23T16:42:30', 'last-modified': '2026-04-23T16:42:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928724'}
2026-04-23 16:42:32,914 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 16:42:32,914 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21191819 passed
2026-04-23 16:42:32,914 - DEBUG - ====Verifying policy data for ctest-vn-21191819 in API_Server ======
2026-04-23 16:42:32,914 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 16:42:32,919 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f86a2a3-d142-4bcf-a6d0-860081ab5a41
2026-04-23 16:42:32,929 - DEBUG - Requesting: http://10.0.0.33:8082/project/a746234c-1934-4e99-9e0c-cd41cb006d45
2026-04-23 16:42:33,000 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/38324bb0-9cb6-4190-ac24-4256e8fb9bc2
2026-04-23 16:42:33,010 - DEBUG - ==>Verifying data for policy with id: 61ad9741-565e-42c9-b716-516f06ad5107, fqn: ['default-domain', 'ctest-TestBasicPolicy-98643160', 'ctest-policy-allow-all-82921364']
2026-04-23 16:42:33,010 - INFO - VN ctest-vn-21191819 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 16:42:33,010 - DEBUG - Verifying the vn in opserver
2026-04-23 16:42:33,010 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-21191819 virtual network link through opserver 10.0.0.33
2026-04-23 16:42:33,011 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-23 16:42:33,309 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-23 16:42:33,373 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-21191819', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-21191819?flat'}
2026-04-23 16:42:33,373 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-21191819 is found in opserver
2026-04-23 16:42:33,382 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 16:42:33,386 - DEBUG - VRF ids for VN ctest-vn-21191819: {}
2026-04-23 16:42:33,387 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 16:42:33,392 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f86a2a3-d142-4bcf-a6d0-860081ab5a41
2026-04-23 16:42:33,402 - DEBUG - Requesting: http://10.0.0.33:8082/project/a746234c-1934-4e99-9e0c-cd41cb006d45
2026-04-23 16:42:33,504 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6fbd36ef-b947-4381-a2de-f179779935c9
2026-04-23 16:42:33,515 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6fbd36ef-b947-4381-a2de-f179779935c9
2026-04-23 16:42:33,523 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52402e60-c318-4c74-a605-1c746de9e884
2026-04-23 16:42:33,530 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52402e60-c318-4c74-a605-1c746de9e884
2026-04-23 16:42:33,537 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a049c90f-6f2c-4bf4-9a62-f0102223af7f
2026-04-23 16:42:33,542 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 16:42:33,542 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6fbd36ef-b947-4381-a2de-f179779935c9
2026-04-23 16:42:33,551 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52402e60-c318-4c74-a605-1c746de9e884
2026-04-23 16:42:33,570 - INFO - Verified VN network id 12 for VN 6fbd36ef-b947-4381-a2de-f179779935c9
2026-04-23 16:42:33,571 - INFO - Verifications in API Server for VN ctest-vn-31572168 passed
2026-04-23 16:42:33,571 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6fbd36ef-b947-4381-a2de-f179779935c9
2026-04-23 16:42:33,581 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52402e60-c318-4c74-a605-1c746de9e884
2026-04-23 16:42:33,587 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52402e60-c318-4c74-a605-1c746de9e884
2026-04-23 16:42:33,593 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a049c90f-6f2c-4bf4-9a62-f0102223af7f
2026-04-23 16:42:33,605 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-31572168', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98643160', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8051652112041853825', 'uuid-lslong': '11736083182973957577'}, 'enable': 'true', 'created': '2026-04-23T16:42:31', 'last-modified': '2026-04-23T16:42:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.387794'}
2026-04-23 16:42:33,610 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 16:42:33,610 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31572168 passed
2026-04-23 16:42:33,610 - DEBUG - ====Verifying policy data for ctest-vn-31572168 in API_Server ======
2026-04-23 16:42:33,611 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 16:42:33,616 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f86a2a3-d142-4bcf-a6d0-860081ab5a41
2026-04-23 16:42:33,629 - DEBUG - Requesting: http://10.0.0.33:8082/project/a746234c-1934-4e99-9e0c-cd41cb006d45
2026-04-23 16:42:33,705 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6fbd36ef-b947-4381-a2de-f179779935c9
2026-04-23 16:42:33,715 - DEBUG - ==>Verifying data for policy with id: 61ad9741-565e-42c9-b716-516f06ad5107, fqn: ['default-domain', 'ctest-TestBasicPolicy-98643160', 'ctest-policy-allow-all-82921364']
2026-04-23 16:42:33,715 - INFO - VN ctest-vn-31572168 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 16:42:33,715 - DEBUG - Verifying the vn in opserver
2026-04-23 16:42:33,715 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-31572168 virtual network link through opserver 10.0.0.33
2026-04-23 16:42:33,715 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-23 16:42:33,726 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-31572168', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-31572168?flat'}
2026-04-23 16:42:33,726 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98643160:ctest-vn-31572168 is found in opserver
2026-04-23 16:42:33,735 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 16:42:33,739 - DEBUG - VRF ids for VN ctest-vn-31572168: {}
2026-04-23 16:42:33,797 - DEBUG - Services list from nova: [