2026-01-27 20:34:42,835 - INFO - Domain Default found not creating
2026-01-27 20:34:43,000 - INFO - Project ctest-TestBasicPolicy-34613785 not found, creating it
2026-01-27 20:34:43,443 - INFO - Created Project:ctest-TestBasicPolicy-34613785, ID : fc83a16d-0f37-4eff-b991-3a15e1e7f7cc
2026-01-27 20:34:44,905 - INFO - ================================================================================
2026-01-27 20:34:44,906 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-27 20:34:44,906 - 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-01-27 20:34:45,162 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-01-27 20:34:45,162 - INFO - Initial checks done. Running the testcase now
2026-01-27 20:34:45,162 - INFO -
2026-01-27 20:34:45,698 - DEBUG - Response for create_network : {'network': {'id': 'f6585e49-2543-4034-9cfd-8d21c6723a79', 'name': 'ctest-vn-19589101', 'tenant_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'project_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34613785', 'ctest-vn-19589101'], 'port_security_enabled': True, 'description': ''}}
2026-01-27 20:34:45,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '4363c83d-14fa-43cd-9953-f05f5ad5fa66', 'name': '', 'tenant_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'network_id': 'f6585e49-2543-4034-9cfd-8d21c6723a79', 'ip_version': 4, 'cidr': '41.124.43.128/26', 'allocation_pools': [{'start': '41.124.43.130', 'end': '41.124.43.190'}], 'gateway_ip': '41.124.43.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.124.43.130', 'tags': [], 'project_id': 'fc83a16d0f374effb9913a15e1e7f7cc'}}
2026-01-27 20:34:45,857 - INFO - Created VN ctest-vn-19589101
2026-01-27 20:34:45,909 - DEBUG - VN ctest-vn-19589101 UUID is f6585e49-2543-4034-9cfd-8d21c6723a79
2026-01-27 20:34:46,216 - DEBUG - Response for create_network : {'network': {'id': '5e0403f8-857f-45f6-a3ed-c44a532a9e3c', 'name': 'ctest-vn-69054911', 'tenant_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'project_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34613785', 'ctest-vn-69054911'], 'port_security_enabled': True, 'description': ''}}
2026-01-27 20:34:46,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '61a1d8d5-91c7-4e53-b9f4-32af84b1b324', 'name': '', 'tenant_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'network_id': '5e0403f8-857f-45f6-a3ed-c44a532a9e3c', 'ip_version': 4, 'cidr': '199.98.132.128/26', 'allocation_pools': [{'start': '199.98.132.130', 'end': '199.98.132.190'}], 'gateway_ip': '199.98.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.98.132.130', 'tags': [], 'project_id': 'fc83a16d0f374effb9913a15e1e7f7cc'}}
2026-01-27 20:34:46,415 - INFO - Created VN ctest-vn-69054911
2026-01-27 20:34:46,465 - DEBUG - VN ctest-vn-69054911 UUID is 5e0403f8-857f-45f6-a3ed-c44a532a9e3c
2026-01-27 20:34:46,617 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-19589101, 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-34613785:ctest-vn-69054911, 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-01-27 20:34:46,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6585e49-2543-4034-9cfd-8d21c6723a79', 'name': 'ctest-vn-19589101', 'tenant_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'project_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4363c83d-14fa-43cd-9953-f05f5ad5fa66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34613785', 'ctest-vn-19589101'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34613785', 'ctest-policy-allow-all-50042906']], 'subnet_ipam': [{'subnet_cidr': '41.124.43.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-27 20:34:47,123 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e0403f8-857f-45f6-a3ed-c44a532a9e3c', 'name': 'ctest-vn-69054911', 'tenant_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'project_id': 'fc83a16d0f374effb9913a15e1e7f7cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61a1d8d5-91c7-4e53-b9f4-32af84b1b324'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34613785', 'ctest-vn-69054911'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34613785', 'ctest-policy-allow-all-50042906']], 'subnet_ipam': [{'subnet_cidr': '199.98.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-27 20:34:47,293 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-27 20:34:47,587 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-27 20:34:47,621 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56c911da-18d0-450d-9291-741a08145a6d
2026-01-27 20:34:47,633 - DEBUG - Requesting: http://10.0.0.33:8082/project/fc83a16d-0f37-4eff-b991-3a15e1e7f7cc
2026-01-27 20:34:47,701 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6585e49-2543-4034-9cfd-8d21c6723a79
2026-01-27 20:34:47,711 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6585e49-2543-4034-9cfd-8d21c6723a79
2026-01-27 20:34:47,719 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/086076e6-7599-40cc-9f7f-4a155a7f2202
2026-01-27 20:34:47,726 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/086076e6-7599-40cc-9f7f-4a155a7f2202
2026-01-27 20:34:47,732 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/70001097-840c-45cf-b9f2-d4f39dac9225
2026-01-27 20:34:47,738 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-27 20:34:47,738 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6585e49-2543-4034-9cfd-8d21c6723a79
2026-01-27 20:34:47,748 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/086076e6-7599-40cc-9f7f-4a155a7f2202
2026-01-27 20:34:47,762 - INFO - Verified VN network id 12 for VN f6585e49-2543-4034-9cfd-8d21c6723a79
2026-01-27 20:34:47,762 - INFO - Verifications in API Server for VN ctest-vn-19589101 passed
2026-01-27 20:34:47,762 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6585e49-2543-4034-9cfd-8d21c6723a79
2026-01-27 20:34:47,772 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/086076e6-7599-40cc-9f7f-4a155a7f2202
2026-01-27 20:34:47,779 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/086076e6-7599-40cc-9f7f-4a155a7f2202
2026-01-27 20:34:47,785 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/70001097-840c-45cf-b9f2-d4f39dac9225
2026-01-27 20:34:47,796 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-19589101', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34613785', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17751041599531597876', 'uuid-lslong': '11312353015227366009'}, 'enable': 'true', 'created': '2026-01-27T20:34:45', 'last-modified': '2026-01-27T20:34:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914802'}
2026-01-27 20:34:47,802 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-27 20:34:47,802 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19589101 passed
2026-01-27 20:34:47,802 - DEBUG - ====Verifying policy data for ctest-vn-19589101 in API_Server ======
2026-01-27 20:34:47,802 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-27 20:34:47,807 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56c911da-18d0-450d-9291-741a08145a6d
2026-01-27 20:34:47,817 - DEBUG - Requesting: http://10.0.0.33:8082/project/fc83a16d-0f37-4eff-b991-3a15e1e7f7cc
2026-01-27 20:34:47,884 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6585e49-2543-4034-9cfd-8d21c6723a79
2026-01-27 20:34:47,893 - DEBUG - ==>Verifying data for policy with id: d60e2eca-b654-4917-95fa-0dba6c8102f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-34613785', 'ctest-policy-allow-all-50042906']
2026-01-27 20:34:47,893 - INFO - VN ctest-vn-19589101 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-27 20:34:47,893 - DEBUG - Verifying the vn in opserver
2026-01-27 20:34:47,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-19589101 virtual network link through opserver 10.0.0.33
2026-01-27 20:34:47,893 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-01-27 20:34:48,182 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-01-27 20:34:48,240 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-19589101', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-19589101?flat'}
2026-01-27 20:34:48,240 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-19589101 is found in opserver
2026-01-27 20:34:48,249 - DEBUG - Do not have enough data to verify VN in agent
2026-01-27 20:34:48,253 - DEBUG - VRF ids for VN ctest-vn-19589101: {}
2026-01-27 20:34:48,253 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-27 20:34:48,259 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56c911da-18d0-450d-9291-741a08145a6d
2026-01-27 20:34:48,269 - DEBUG - Requesting: http://10.0.0.33:8082/project/fc83a16d-0f37-4eff-b991-3a15e1e7f7cc
2026-01-27 20:34:48,337 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e0403f8-857f-45f6-a3ed-c44a532a9e3c
2026-01-27 20:34:48,347 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e0403f8-857f-45f6-a3ed-c44a532a9e3c
2026-01-27 20:34:48,354 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ff17116-17e2-41f1-acf6-37c0e81ea3e2
2026-01-27 20:34:48,360 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ff17116-17e2-41f1-acf6-37c0e81ea3e2
2026-01-27 20:34:48,365 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/500e0f37-64c0-4bba-990b-5c5533872b1f
2026-01-27 20:34:48,370 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-27 20:34:48,370 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e0403f8-857f-45f6-a3ed-c44a532a9e3c
2026-01-27 20:34:48,378 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ff17116-17e2-41f1-acf6-37c0e81ea3e2
2026-01-27 20:34:48,389 - INFO - Verified VN network id 13 for VN 5e0403f8-857f-45f6-a3ed-c44a532a9e3c
2026-01-27 20:34:48,389 - INFO - Verifications in API Server for VN ctest-vn-69054911 passed
2026-01-27 20:34:48,389 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e0403f8-857f-45f6-a3ed-c44a532a9e3c
2026-01-27 20:34:48,398 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ff17116-17e2-41f1-acf6-37c0e81ea3e2
2026-01-27 20:34:48,404 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ff17116-17e2-41f1-acf6-37c0e81ea3e2
2026-01-27 20:34:48,409 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/500e0f37-64c0-4bba-990b-5c5533872b1f
2026-01-27 20:34:48,417 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-69054911', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34613785', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6774544105398552054', 'uuid-lslong': '11812313221164604988'}, 'enable': 'true', 'created': '2026-01-27T20:34:46', 'last-modified': '2026-01-27T20:34:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318198'}
2026-01-27 20:34:48,422 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-27 20:34:48,422 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69054911 passed
2026-01-27 20:34:48,422 - DEBUG - ====Verifying policy data for ctest-vn-69054911 in API_Server ======
2026-01-27 20:34:48,422 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-27 20:34:48,426 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56c911da-18d0-450d-9291-741a08145a6d
2026-01-27 20:34:48,435 - DEBUG - Requesting: http://10.0.0.33:8082/project/fc83a16d-0f37-4eff-b991-3a15e1e7f7cc
2026-01-27 20:34:48,503 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e0403f8-857f-45f6-a3ed-c44a532a9e3c
2026-01-27 20:34:48,511 - DEBUG - ==>Verifying data for policy with id: d60e2eca-b654-4917-95fa-0dba6c8102f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-34613785', 'ctest-policy-allow-all-50042906']
2026-01-27 20:34:48,511 - INFO - VN ctest-vn-69054911 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-27 20:34:48,511 - DEBUG - Verifying the vn in opserver
2026-01-27 20:34:48,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-69054911 virtual network link through opserver 10.0.0.33
2026-01-27 20:34:48,511 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-01-27 20:34:48,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-69054911', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-69054911?flat'}
2026-01-27 20:34:48,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34613785:ctest-vn-69054911 is found in opserver
2026-01-27 20:34:48,528 - DEBUG - Do not have enough data to verify VN in agent
2026-01-27 20:34:48,532 - DEBUG - VRF ids for VN ctest-vn-69054911: {}
2026-01-27 20:34:48,583 - DEBUG - Services list from nova: [