2026-02-01 14:34:46,991 - INFO - Domain Default found not creating
2026-02-01 14:34:47,196 - INFO - Project ctest-TestBasicPolicy-26981281 not found, creating it
2026-02-01 14:34:47,697 - INFO - Created Project:ctest-TestBasicPolicy-26981281, ID : 3366138d-9b00-4942-92f5-9f1183de38b8
2026-02-01 14:34:49,323 - INFO - ================================================================================
2026-02-01 14:34:49,323 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-01 14:34:49,323 - 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-02-01 14:34:49,585 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-02-01 14:34:49,585 - INFO - Initial checks done. Running the testcase now
2026-02-01 14:34:49,585 - INFO -
2026-02-01 14:34:50,179 - DEBUG - Response for create_network : {'network': {'id': '8021bfcc-d6d1-4463-bc7a-b9266dae48bc', 'name': 'ctest-vn-26408414', 'tenant_id': '3366138d9b00494292f59f1183de38b8', 'project_id': '3366138d9b00494292f59f1183de38b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26981281', 'ctest-vn-26408414'], 'port_security_enabled': True, 'description': ''}}
2026-02-01 14:34:50,347 - DEBUG - Response for create_subnet : {'subnet': {'id': '41d75bdb-1150-446d-a308-ce7895bbd36d', 'name': '', 'tenant_id': '3366138d9b00494292f59f1183de38b8', 'network_id': '8021bfcc-d6d1-4463-bc7a-b9266dae48bc', 'ip_version': 4, 'cidr': '158.234.251.0/26', 'allocation_pools': [{'start': '158.234.251.2', 'end': '158.234.251.62'}], 'gateway_ip': '158.234.251.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.234.251.2', 'tags': [], 'project_id': '3366138d9b00494292f59f1183de38b8'}}
2026-02-01 14:34:50,366 - INFO - Created VN ctest-vn-26408414
2026-02-01 14:34:50,422 - DEBUG - VN ctest-vn-26408414 UUID is 8021bfcc-d6d1-4463-bc7a-b9266dae48bc
2026-02-01 14:34:50,728 - DEBUG - Response for create_network : {'network': {'id': '874464fe-1fb9-4bde-b8a2-26766875598f', 'name': 'ctest-vn-39049734', 'tenant_id': '3366138d9b00494292f59f1183de38b8', 'project_id': '3366138d9b00494292f59f1183de38b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26981281', 'ctest-vn-39049734'], 'port_security_enabled': True, 'description': ''}}
2026-02-01 14:34:50,893 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad4e6848-017b-49c1-ac22-00580df04b22', 'name': '', 'tenant_id': '3366138d9b00494292f59f1183de38b8', 'network_id': '874464fe-1fb9-4bde-b8a2-26766875598f', 'ip_version': 4, 'cidr': '153.30.177.192/26', 'allocation_pools': [{'start': '153.30.177.194', 'end': '153.30.177.254'}], 'gateway_ip': '153.30.177.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.30.177.194', 'tags': [], 'project_id': '3366138d9b00494292f59f1183de38b8'}}
2026-02-01 14:34:50,913 - INFO - Created VN ctest-vn-39049734
2026-02-01 14:34:50,970 - DEBUG - VN ctest-vn-39049734 UUID is 874464fe-1fb9-4bde-b8a2-26766875598f
2026-02-01 14:34:51,096 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-26408414, 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-26981281:ctest-vn-39049734, 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-02-01 14:34:51,397 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8021bfcc-d6d1-4463-bc7a-b9266dae48bc', 'name': 'ctest-vn-26408414', 'tenant_id': '3366138d9b00494292f59f1183de38b8', 'project_id': '3366138d9b00494292f59f1183de38b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41d75bdb-1150-446d-a308-ce7895bbd36d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26981281', 'ctest-vn-26408414'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26981281', 'ctest-policy-allow-all-13043118']], 'subnet_ipam': [{'subnet_cidr': '158.234.251.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-01 14:34:51,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '874464fe-1fb9-4bde-b8a2-26766875598f', 'name': 'ctest-vn-39049734', 'tenant_id': '3366138d9b00494292f59f1183de38b8', 'project_id': '3366138d9b00494292f59f1183de38b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad4e6848-017b-49c1-ac22-00580df04b22'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26981281', 'ctest-vn-39049734'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26981281', 'ctest-policy-allow-all-13043118']], 'subnet_ipam': [{'subnet_cidr': '153.30.177.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-01 14:34:51,834 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-02-01 14:34:52,132 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-02-01 14:34:52,169 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c58131d3-c59d-4462-9600-9ca657ea470c
2026-02-01 14:34:52,182 - DEBUG - Requesting: http://10.0.0.242:8082/project/3366138d-9b00-4942-92f5-9f1183de38b8
2026-02-01 14:34:52,255 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8021bfcc-d6d1-4463-bc7a-b9266dae48bc
2026-02-01 14:34:52,266 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8021bfcc-d6d1-4463-bc7a-b9266dae48bc
2026-02-01 14:34:52,276 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f1ecf2-7176-4050-a969-911a87cb17e4
2026-02-01 14:34:52,283 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f1ecf2-7176-4050-a969-911a87cb17e4
2026-02-01 14:34:52,291 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/0c51d985-fd92-44cc-8187-f3f329f26f06
2026-02-01 14:34:52,299 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-01 14:34:52,299 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8021bfcc-d6d1-4463-bc7a-b9266dae48bc
2026-02-01 14:34:52,309 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f1ecf2-7176-4050-a969-911a87cb17e4
2026-02-01 14:34:52,324 - INFO - Verified VN network id 10 for VN 8021bfcc-d6d1-4463-bc7a-b9266dae48bc
2026-02-01 14:34:52,324 - INFO - Verifications in API Server for VN ctest-vn-26408414 passed
2026-02-01 14:34:52,324 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8021bfcc-d6d1-4463-bc7a-b9266dae48bc
2026-02-01 14:34:52,333 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f1ecf2-7176-4050-a969-911a87cb17e4
2026-02-01 14:34:52,342 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f1ecf2-7176-4050-a969-911a87cb17e4
2026-02-01 14:34:52,348 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/0c51d985-fd92-44cc-8187-f3f329f26f06
2026-02-01 14:34:52,362 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-26408414', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26981281', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9232871597584499811', 'uuid-lslong': '13581371200989186236'}, 'enable': 'true', 'created': '2026-02-01T14:34:50', 'last-modified': '2026-02-01T14:34:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983681'}
2026-02-01 14:34:52,369 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-01 14:34:52,370 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26408414 passed
2026-02-01 14:34:52,370 - DEBUG - ====Verifying policy data for ctest-vn-26408414 in API_Server ======
2026-02-01 14:34:52,370 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-02-01 14:34:52,376 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c58131d3-c59d-4462-9600-9ca657ea470c
2026-02-01 14:34:52,389 - DEBUG - Requesting: http://10.0.0.242:8082/project/3366138d-9b00-4942-92f5-9f1183de38b8
2026-02-01 14:34:52,458 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8021bfcc-d6d1-4463-bc7a-b9266dae48bc
2026-02-01 14:34:52,467 - DEBUG - ==>Verifying data for policy with id: 319d301c-6683-455b-8872-1160a37ef7a6, fqn: ['default-domain', 'ctest-TestBasicPolicy-26981281', 'ctest-policy-allow-all-13043118']
2026-02-01 14:34:52,467 - INFO - VN ctest-vn-26408414 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-01 14:34:52,467 - DEBUG - Verifying the vn in opserver
2026-02-01 14:34:52,467 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-26408414 virtual network link through opserver 10.0.0.242
2026-02-01 14:34:52,467 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-02-01 14:34:52,765 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-02-01 14:34:52,838 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-26408414', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-26408414?flat'}
2026-02-01 14:34:52,838 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-26408414 is found in opserver
2026-02-01 14:34:52,848 - DEBUG - Do not have enough data to verify VN in agent
2026-02-01 14:34:52,854 - DEBUG - VRF ids for VN ctest-vn-26408414: {}
2026-02-01 14:34:52,854 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-02-01 14:34:52,860 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c58131d3-c59d-4462-9600-9ca657ea470c
2026-02-01 14:34:52,874 - DEBUG - Requesting: http://10.0.0.242:8082/project/3366138d-9b00-4942-92f5-9f1183de38b8
2026-02-01 14:34:52,947 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/874464fe-1fb9-4bde-b8a2-26766875598f
2026-02-01 14:34:52,962 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/874464fe-1fb9-4bde-b8a2-26766875598f
2026-02-01 14:34:52,973 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9cf7dbb6-3a42-4c9b-9cee-ed8adec4d32e
2026-02-01 14:34:52,981 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9cf7dbb6-3a42-4c9b-9cee-ed8adec4d32e
2026-02-01 14:34:52,988 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8f2563f7-d17c-4815-838e-f3508a767df1
2026-02-01 14:34:52,996 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-01 14:34:52,996 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/874464fe-1fb9-4bde-b8a2-26766875598f
2026-02-01 14:34:53,006 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9cf7dbb6-3a42-4c9b-9cee-ed8adec4d32e
2026-02-01 14:34:53,023 - INFO - Verified VN network id 11 for VN 874464fe-1fb9-4bde-b8a2-26766875598f
2026-02-01 14:34:53,024 - INFO - Verifications in API Server for VN ctest-vn-39049734 passed
2026-02-01 14:34:53,024 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/874464fe-1fb9-4bde-b8a2-26766875598f
2026-02-01 14:34:53,034 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9cf7dbb6-3a42-4c9b-9cee-ed8adec4d32e
2026-02-01 14:34:53,042 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9cf7dbb6-3a42-4c9b-9cee-ed8adec4d32e
2026-02-01 14:34:53,050 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8f2563f7-d17c-4815-838e-f3508a767df1
2026-02-01 14:34:53,063 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-39049734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26981281', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9747026536153304030', 'uuid-lslong': '13304238539206384015'}, 'enable': 'true', 'created': '2026-02-01T14:34:50', 'last-modified': '2026-02-01T14:34:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439742'}
2026-02-01 14:34:53,069 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-01 14:34:53,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39049734 passed
2026-02-01 14:34:53,069 - DEBUG - ====Verifying policy data for ctest-vn-39049734 in API_Server ======
2026-02-01 14:34:53,070 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-02-01 14:34:53,077 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c58131d3-c59d-4462-9600-9ca657ea470c
2026-02-01 14:34:53,090 - DEBUG - Requesting: http://10.0.0.242:8082/project/3366138d-9b00-4942-92f5-9f1183de38b8
2026-02-01 14:34:53,164 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/874464fe-1fb9-4bde-b8a2-26766875598f
2026-02-01 14:34:53,174 - DEBUG - ==>Verifying data for policy with id: 319d301c-6683-455b-8872-1160a37ef7a6, fqn: ['default-domain', 'ctest-TestBasicPolicy-26981281', 'ctest-policy-allow-all-13043118']
2026-02-01 14:34:53,174 - INFO - VN ctest-vn-39049734 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-01 14:34:53,174 - DEBUG - Verifying the vn in opserver
2026-02-01 14:34:53,174 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-39049734 virtual network link through opserver 10.0.0.242
2026-02-01 14:34:53,174 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-02-01 14:34:53,186 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-39049734', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-39049734?flat'}
2026-02-01 14:34:53,186 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26981281:ctest-vn-39049734 is found in opserver
2026-02-01 14:34:53,197 - DEBUG - Do not have enough data to verify VN in agent
2026-02-01 14:34:53,202 - DEBUG - VRF ids for VN ctest-vn-39049734: {}
2026-02-01 14:34:53,265 - DEBUG - Services list from nova: [