2026-04-17 11:52:09,020 - INFO - Domain Default found not creating
2026-04-17 11:52:09,221 - INFO - Project ctest-TestBasicPolicy-34599558 not found, creating it
2026-04-17 11:52:09,695 - INFO - Created Project:ctest-TestBasicPolicy-34599558, ID : 3943e809-b0e5-4969-9d37-66f1a494d61d
2026-04-17 11:52:11,241 - INFO - ================================================================================
2026-04-17 11:52:11,241 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-17 11:52:11,241 - 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-17 11:52:11,513 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with
2026-04-17 11:52:11,513 - INFO - Initial checks done. Running the testcase now
2026-04-17 11:52:11,514 - INFO -
2026-04-17 11:52:12,105 - DEBUG - Response for create_network : {'network': {'id': '7f3ceca9-8303-4f8f-97eb-0fc14a828395', 'name': 'ctest-vn-33254446', 'tenant_id': '3943e809b0e549699d3766f1a494d61d', 'project_id': '3943e809b0e549699d3766f1a494d61d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34599558', 'ctest-vn-33254446'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 11:52:12,321 - DEBUG - Response for create_subnet : {'subnet': {'id': '79697193-b060-4215-90bf-8854f7b83d12', 'name': '', 'tenant_id': '3943e809b0e549699d3766f1a494d61d', 'network_id': '7f3ceca9-8303-4f8f-97eb-0fc14a828395', 'ip_version': 4, 'cidr': '152.220.90.0/26', 'allocation_pools': [{'start': '152.220.90.2', 'end': '152.220.90.62'}], 'gateway_ip': '152.220.90.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.220.90.2', 'tags': [], 'project_id': '3943e809b0e549699d3766f1a494d61d'}}
2026-04-17 11:52:12,339 - INFO - Created VN ctest-vn-33254446
2026-04-17 11:52:12,390 - DEBUG - VN ctest-vn-33254446 UUID is 7f3ceca9-8303-4f8f-97eb-0fc14a828395
2026-04-17 11:52:12,726 - DEBUG - Response for create_network : {'network': {'id': '9a704d86-7f4a-4260-bd3e-493da812b68f', 'name': 'ctest-vn-68611806', 'tenant_id': '3943e809b0e549699d3766f1a494d61d', 'project_id': '3943e809b0e549699d3766f1a494d61d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34599558', 'ctest-vn-68611806'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 11:52:12,893 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff45b296-2801-48f3-8022-346d5fe3c224', 'name': '', 'tenant_id': '3943e809b0e549699d3766f1a494d61d', 'network_id': '9a704d86-7f4a-4260-bd3e-493da812b68f', 'ip_version': 4, 'cidr': '54.179.65.64/26', 'allocation_pools': [{'start': '54.179.65.66', 'end': '54.179.65.126'}], 'gateway_ip': '54.179.65.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.179.65.66', 'tags': [], 'project_id': '3943e809b0e549699d3766f1a494d61d'}}
2026-04-17 11:52:12,911 - INFO - Created VN ctest-vn-68611806
2026-04-17 11:52:12,961 - DEBUG - VN ctest-vn-68611806 UUID is 9a704d86-7f4a-4260-bd3e-493da812b68f
2026-04-17 11:52:13,109 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-33254446, 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-34599558:ctest-vn-68611806, 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-17 11:52:13,400 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f3ceca9-8303-4f8f-97eb-0fc14a828395', 'name': 'ctest-vn-33254446', 'tenant_id': '3943e809b0e549699d3766f1a494d61d', 'project_id': '3943e809b0e549699d3766f1a494d61d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79697193-b060-4215-90bf-8854f7b83d12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34599558', 'ctest-vn-33254446'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34599558', 'ctest-policy-allow-all-81304990']], 'subnet_ipam': [{'subnet_cidr': '152.220.90.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 11:52:13,620 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a704d86-7f4a-4260-bd3e-493da812b68f', 'name': 'ctest-vn-68611806', 'tenant_id': '3943e809b0e549699d3766f1a494d61d', 'project_id': '3943e809b0e549699d3766f1a494d61d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff45b296-2801-48f3-8022-346d5fe3c224'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34599558', 'ctest-vn-68611806'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34599558', 'ctest-policy-allow-all-81304990']], 'subnet_ipam': [{'subnet_cidr': '54.179.65.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 11:52:13,774 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-17 11:52:14,069 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-17 11:52:14,103 - DEBUG - Requesting: http://10.0.0.23:8082/domain/062f32a0-b8a6-4da4-b773-bbb2b5286e6c
2026-04-17 11:52:14,114 - DEBUG - Requesting: http://10.0.0.23:8082/project/3943e809-b0e5-4969-9d37-66f1a494d61d
2026-04-17 11:52:14,183 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7f3ceca9-8303-4f8f-97eb-0fc14a828395
2026-04-17 11:52:14,193 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7f3ceca9-8303-4f8f-97eb-0fc14a828395
2026-04-17 11:52:14,201 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c3108b5b-ae67-44cd-8894-026952028e7f
2026-04-17 11:52:14,206 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c3108b5b-ae67-44cd-8894-026952028e7f
2026-04-17 11:52:14,211 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/3fb1146e-ba89-45ed-ba72-980e3035ae2f
2026-04-17 11:52:14,217 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 11:52:14,217 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7f3ceca9-8303-4f8f-97eb-0fc14a828395
2026-04-17 11:52:14,226 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c3108b5b-ae67-44cd-8894-026952028e7f
2026-04-17 11:52:14,239 - INFO - Verified VN network id 11 for VN 7f3ceca9-8303-4f8f-97eb-0fc14a828395
2026-04-17 11:52:14,239 - INFO - Verifications in API Server for VN ctest-vn-33254446 passed
2026-04-17 11:52:14,239 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7f3ceca9-8303-4f8f-97eb-0fc14a828395
2026-04-17 11:52:14,249 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c3108b5b-ae67-44cd-8894-026952028e7f
2026-04-17 11:52:14,256 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c3108b5b-ae67-44cd-8894-026952028e7f
2026-04-17 11:52:14,262 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/3fb1146e-ba89-45ed-ba72-980e3035ae2f
2026-04-17 11:52:14,272 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-33254446', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34599558', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9168463154211147663', 'uuid-lslong': '10946860642107294613'}, 'enable': 'true', 'created': '2026-04-17T11:52:12', 'last-modified': '2026-04-17T11:52:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.892509'}
2026-04-17 11:52:14,278 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 11:52:14,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33254446 passed
2026-04-17 11:52:14,278 - DEBUG - ====Verifying policy data for ctest-vn-33254446 in API_Server ======
2026-04-17 11:52:14,278 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-17 11:52:14,283 - DEBUG - Requesting: http://10.0.0.23:8082/domain/062f32a0-b8a6-4da4-b773-bbb2b5286e6c
2026-04-17 11:52:14,293 - DEBUG - Requesting: http://10.0.0.23:8082/project/3943e809-b0e5-4969-9d37-66f1a494d61d
2026-04-17 11:52:14,364 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7f3ceca9-8303-4f8f-97eb-0fc14a828395
2026-04-17 11:52:14,373 - DEBUG - ==>Verifying data for policy with id: 01cae690-f360-482d-a1ce-4b8ba5f0a7f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-34599558', 'ctest-policy-allow-all-81304990']
2026-04-17 11:52:14,373 - INFO - VN ctest-vn-33254446 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 11:52:14,373 - DEBUG - Verifying the vn in opserver
2026-04-17 11:52:14,373 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-33254446 virtual network link through opserver 10.0.0.23
2026-04-17 11:52:14,374 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-04-17 11:52:14,668 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-04-17 11:52:14,726 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-33254446', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-33254446?flat'}
2026-04-17 11:52:14,726 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-33254446 is found in opserver
2026-04-17 11:52:14,735 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 11:52:14,740 - DEBUG - VRF ids for VN ctest-vn-33254446: {}
2026-04-17 11:52:14,740 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-17 11:52:14,745 - DEBUG - Requesting: http://10.0.0.23:8082/domain/062f32a0-b8a6-4da4-b773-bbb2b5286e6c
2026-04-17 11:52:14,754 - DEBUG - Requesting: http://10.0.0.23:8082/project/3943e809-b0e5-4969-9d37-66f1a494d61d
2026-04-17 11:52:14,824 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9a704d86-7f4a-4260-bd3e-493da812b68f
2026-04-17 11:52:14,835 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9a704d86-7f4a-4260-bd3e-493da812b68f
2026-04-17 11:52:14,843 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1ebb4287-4639-4367-8c61-234ee53f3b45
2026-04-17 11:52:14,849 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1ebb4287-4639-4367-8c61-234ee53f3b45
2026-04-17 11:52:14,855 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0848db77-280a-4ab1-801b-a90abee2bc03
2026-04-17 11:52:14,862 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 11:52:14,862 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9a704d86-7f4a-4260-bd3e-493da812b68f
2026-04-17 11:52:14,870 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1ebb4287-4639-4367-8c61-234ee53f3b45
2026-04-17 11:52:14,884 - INFO - Verified VN network id 12 for VN 9a704d86-7f4a-4260-bd3e-493da812b68f
2026-04-17 11:52:14,884 - INFO - Verifications in API Server for VN ctest-vn-68611806 passed
2026-04-17 11:52:14,884 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9a704d86-7f4a-4260-bd3e-493da812b68f
2026-04-17 11:52:14,894 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1ebb4287-4639-4367-8c61-234ee53f3b45
2026-04-17 11:52:14,900 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1ebb4287-4639-4367-8c61-234ee53f3b45
2026-04-17 11:52:14,906 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0848db77-280a-4ab1-801b-a90abee2bc03
2026-04-17 11:52:14,917 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-68611806', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34599558', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11128479919289025120', 'uuid-lslong': '13636417250886071951'}, 'enable': 'true', 'created': '2026-04-17T11:52:12', 'last-modified': '2026-04-17T11:52:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.325138'}
2026-04-17 11:52:14,924 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 11:52:14,924 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68611806 passed
2026-04-17 11:52:14,924 - DEBUG - ====Verifying policy data for ctest-vn-68611806 in API_Server ======
2026-04-17 11:52:14,924 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-17 11:52:14,930 - DEBUG - Requesting: http://10.0.0.23:8082/domain/062f32a0-b8a6-4da4-b773-bbb2b5286e6c
2026-04-17 11:52:14,941 - DEBUG - Requesting: http://10.0.0.23:8082/project/3943e809-b0e5-4969-9d37-66f1a494d61d
2026-04-17 11:52:15,015 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9a704d86-7f4a-4260-bd3e-493da812b68f
2026-04-17 11:52:15,024 - DEBUG - ==>Verifying data for policy with id: 01cae690-f360-482d-a1ce-4b8ba5f0a7f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-34599558', 'ctest-policy-allow-all-81304990']
2026-04-17 11:52:15,024 - INFO - VN ctest-vn-68611806 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 11:52:15,024 - DEBUG - Verifying the vn in opserver
2026-04-17 11:52:15,024 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-68611806 virtual network link through opserver 10.0.0.23
2026-04-17 11:52:15,024 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-04-17 11:52:15,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-68611806', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-68611806?flat'}
2026-04-17 11:52:15,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34599558:ctest-vn-68611806 is found in opserver
2026-04-17 11:52:15,043 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 11:52:15,048 - DEBUG - VRF ids for VN ctest-vn-68611806: {}
2026-04-17 11:52:15,105 - DEBUG - Services list from nova: [