2026-04-22 15:55:37,521 - INFO - Domain Default found not creating
2026-04-22 15:55:37,703 - INFO - Project ctest-TestBasicPolicy-20198162 not found, creating it
2026-04-22 15:55:38,239 - INFO - Created Project:ctest-TestBasicPolicy-20198162, ID : fd147ce8-87ce-49f4-86fc-eff7ddbd599b
2026-04-22 15:55:40,436 - INFO - ================================================================================
2026-04-22 15:55:40,437 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-22 15:55:40,437 - 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-22 15:55:40,707 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-04-22 15:55:40,707 - INFO - Initial checks done. Running the testcase now
2026-04-22 15:55:40,707 - INFO -
2026-04-22 15:55:41,260 - DEBUG - Response for create_network : {'network': {'id': '969b8888-a62f-47a6-84f8-4c567a2556c4', 'name': 'ctest-vn-16746340', 'tenant_id': 'fd147ce887ce49f486fceff7ddbd599b', 'project_id': 'fd147ce887ce49f486fceff7ddbd599b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20198162', 'ctest-vn-16746340'], 'port_security_enabled': True, 'description': ''}}
2026-04-22 15:55:41,428 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8987bc1-5dc4-4b60-8adc-3666a7d4fe3e', 'name': '', 'tenant_id': 'fd147ce887ce49f486fceff7ddbd599b', 'network_id': '969b8888-a62f-47a6-84f8-4c567a2556c4', 'ip_version': 4, 'cidr': '124.191.10.192/26', 'allocation_pools': [{'start': '124.191.10.194', 'end': '124.191.10.254'}], 'gateway_ip': '124.191.10.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.191.10.194', 'tags': [], 'project_id': 'fd147ce887ce49f486fceff7ddbd599b'}}
2026-04-22 15:55:41,445 - INFO - Created VN ctest-vn-16746340
2026-04-22 15:55:41,496 - DEBUG - VN ctest-vn-16746340 UUID is 969b8888-a62f-47a6-84f8-4c567a2556c4
2026-04-22 15:55:41,829 - DEBUG - Response for create_network : {'network': {'id': '44c37dc9-4d9b-45df-978b-c4df1f7bbeb4', 'name': 'ctest-vn-44354949', 'tenant_id': 'fd147ce887ce49f486fceff7ddbd599b', 'project_id': 'fd147ce887ce49f486fceff7ddbd599b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20198162', 'ctest-vn-44354949'], 'port_security_enabled': True, 'description': ''}}
2026-04-22 15:55:41,984 - DEBUG - Response for create_subnet : {'subnet': {'id': '922dfe07-6eac-42f7-a5df-d2c43c53dc66', 'name': '', 'tenant_id': 'fd147ce887ce49f486fceff7ddbd599b', 'network_id': '44c37dc9-4d9b-45df-978b-c4df1f7bbeb4', 'ip_version': 4, 'cidr': '156.34.206.128/26', 'allocation_pools': [{'start': '156.34.206.130', 'end': '156.34.206.190'}], 'gateway_ip': '156.34.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.34.206.130', 'tags': [], 'project_id': 'fd147ce887ce49f486fceff7ddbd599b'}}
2026-04-22 15:55:42,002 - INFO - Created VN ctest-vn-44354949
2026-04-22 15:55:42,060 - DEBUG - VN ctest-vn-44354949 UUID is 44c37dc9-4d9b-45df-978b-c4df1f7bbeb4
2026-04-22 15:55:42,211 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-16746340, 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-20198162:ctest-vn-44354949, 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-22 15:55:42,513 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '969b8888-a62f-47a6-84f8-4c567a2556c4', 'name': 'ctest-vn-16746340', 'tenant_id': 'fd147ce887ce49f486fceff7ddbd599b', 'project_id': 'fd147ce887ce49f486fceff7ddbd599b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8987bc1-5dc4-4b60-8adc-3666a7d4fe3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20198162', 'ctest-vn-16746340'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20198162', 'ctest-policy-allow-all-60761750']], 'subnet_ipam': [{'subnet_cidr': '124.191.10.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-22 15:55:42,737 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44c37dc9-4d9b-45df-978b-c4df1f7bbeb4', 'name': 'ctest-vn-44354949', 'tenant_id': 'fd147ce887ce49f486fceff7ddbd599b', 'project_id': 'fd147ce887ce49f486fceff7ddbd599b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['922dfe07-6eac-42f7-a5df-d2c43c53dc66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20198162', 'ctest-vn-44354949'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20198162', 'ctest-policy-allow-all-60761750']], 'subnet_ipam': [{'subnet_cidr': '156.34.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-22 15:55:42,900 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-22 15:55:43,203 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-22 15:55:43,242 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c8c6278b-eebf-4dff-9adc-a925962521ad
2026-04-22 15:55:43,255 - DEBUG - Requesting: http://10.0.0.249:8082/project/fd147ce8-87ce-49f4-86fc-eff7ddbd599b
2026-04-22 15:55:43,324 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/969b8888-a62f-47a6-84f8-4c567a2556c4
2026-04-22 15:55:43,338 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/969b8888-a62f-47a6-84f8-4c567a2556c4
2026-04-22 15:55:43,347 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/98c1aa1e-3a9d-4695-9fc7-280d9ae56dbb
2026-04-22 15:55:43,354 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/98c1aa1e-3a9d-4695-9fc7-280d9ae56dbb
2026-04-22 15:55:43,361 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c4952a38-30f2-4544-9b07-8f2f716f9bb6
2026-04-22 15:55:43,368 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-22 15:55:43,368 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/969b8888-a62f-47a6-84f8-4c567a2556c4
2026-04-22 15:55:43,376 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/98c1aa1e-3a9d-4695-9fc7-280d9ae56dbb
2026-04-22 15:55:43,389 - INFO - Verified VN network id 11 for VN 969b8888-a62f-47a6-84f8-4c567a2556c4
2026-04-22 15:55:43,389 - INFO - Verifications in API Server for VN ctest-vn-16746340 passed
2026-04-22 15:55:43,390 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/969b8888-a62f-47a6-84f8-4c567a2556c4
2026-04-22 15:55:43,398 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/98c1aa1e-3a9d-4695-9fc7-280d9ae56dbb
2026-04-22 15:55:43,408 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/98c1aa1e-3a9d-4695-9fc7-280d9ae56dbb
2026-04-22 15:55:43,416 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c4952a38-30f2-4544-9b07-8f2f716f9bb6
2026-04-22 15:55:43,439 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-16746340', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20198162', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10852417847564388262', 'uuid-lslong': '9581492141530896068'}, 'enable': 'true', 'created': '2026-04-22T15:55:41', 'last-modified': '2026-04-22T15:55:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.951785'}
2026-04-22 15:55:43,444 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-22 15:55:43,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16746340 passed
2026-04-22 15:55:43,445 - DEBUG - ====Verifying policy data for ctest-vn-16746340 in API_Server ======
2026-04-22 15:55:43,445 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-22 15:55:43,450 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c8c6278b-eebf-4dff-9adc-a925962521ad
2026-04-22 15:55:43,461 - DEBUG - Requesting: http://10.0.0.249:8082/project/fd147ce8-87ce-49f4-86fc-eff7ddbd599b
2026-04-22 15:55:43,531 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/969b8888-a62f-47a6-84f8-4c567a2556c4
2026-04-22 15:55:43,541 - DEBUG - ==>Verifying data for policy with id: f306c5ba-0ad6-40c1-a851-c434d0351ffe, fqn: ['default-domain', 'ctest-TestBasicPolicy-20198162', 'ctest-policy-allow-all-60761750']
2026-04-22 15:55:43,541 - INFO - VN ctest-vn-16746340 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-22 15:55:43,541 - DEBUG - Verifying the vn in opserver
2026-04-22 15:55:43,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-16746340 virtual network link through opserver 10.0.0.249
2026-04-22 15:55:43,541 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-22 15:55:43,838 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-22 15:55:43,901 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-16746340', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-16746340?flat'}
2026-04-22 15:55:43,901 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-16746340 is found in opserver
2026-04-22 15:55:43,910 - DEBUG - Do not have enough data to verify VN in agent
2026-04-22 15:55:43,914 - DEBUG - VRF ids for VN ctest-vn-16746340: {}
2026-04-22 15:55:43,914 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-22 15:55:43,920 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c8c6278b-eebf-4dff-9adc-a925962521ad
2026-04-22 15:55:43,929 - DEBUG - Requesting: http://10.0.0.249:8082/project/fd147ce8-87ce-49f4-86fc-eff7ddbd599b
2026-04-22 15:55:43,997 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/44c37dc9-4d9b-45df-978b-c4df1f7bbeb4
2026-04-22 15:55:44,010 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/44c37dc9-4d9b-45df-978b-c4df1f7bbeb4
2026-04-22 15:55:44,020 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee92e4ae-2f2b-44b4-8cda-da7a3c37e048
2026-04-22 15:55:44,026 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee92e4ae-2f2b-44b4-8cda-da7a3c37e048
2026-04-22 15:55:44,033 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/56c610d2-3b23-4944-9661-8b0d71f3e884
2026-04-22 15:55:44,040 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-22 15:55:44,040 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/44c37dc9-4d9b-45df-978b-c4df1f7bbeb4
2026-04-22 15:55:44,049 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee92e4ae-2f2b-44b4-8cda-da7a3c37e048
2026-04-22 15:55:44,062 - INFO - Verified VN network id 12 for VN 44c37dc9-4d9b-45df-978b-c4df1f7bbeb4
2026-04-22 15:55:44,062 - INFO - Verifications in API Server for VN ctest-vn-44354949 passed
2026-04-22 15:55:44,062 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/44c37dc9-4d9b-45df-978b-c4df1f7bbeb4
2026-04-22 15:55:44,072 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee92e4ae-2f2b-44b4-8cda-da7a3c37e048
2026-04-22 15:55:44,078 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee92e4ae-2f2b-44b4-8cda-da7a3c37e048
2026-04-22 15:55:44,085 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/56c610d2-3b23-4944-9661-8b0d71f3e884
2026-04-22 15:55:44,096 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-44354949', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20198162', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4954942318581597663', 'uuid-lslong': '10920038184074854068'}, 'enable': 'true', 'created': '2026-04-22T15:55:41', 'last-modified': '2026-04-22T15:55:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384778'}
2026-04-22 15:55:44,101 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-22 15:55:44,101 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44354949 passed
2026-04-22 15:55:44,101 - DEBUG - ====Verifying policy data for ctest-vn-44354949 in API_Server ======
2026-04-22 15:55:44,102 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-22 15:55:44,107 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c8c6278b-eebf-4dff-9adc-a925962521ad
2026-04-22 15:55:44,117 - DEBUG - Requesting: http://10.0.0.249:8082/project/fd147ce8-87ce-49f4-86fc-eff7ddbd599b
2026-04-22 15:55:44,184 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/44c37dc9-4d9b-45df-978b-c4df1f7bbeb4
2026-04-22 15:55:44,192 - DEBUG - ==>Verifying data for policy with id: f306c5ba-0ad6-40c1-a851-c434d0351ffe, fqn: ['default-domain', 'ctest-TestBasicPolicy-20198162', 'ctest-policy-allow-all-60761750']
2026-04-22 15:55:44,192 - INFO - VN ctest-vn-44354949 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-22 15:55:44,192 - DEBUG - Verifying the vn in opserver
2026-04-22 15:55:44,192 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-44354949 virtual network link through opserver 10.0.0.249
2026-04-22 15:55:44,192 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-22 15:55:44,202 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-44354949', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-44354949?flat'}
2026-04-22 15:55:44,202 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20198162:ctest-vn-44354949 is found in opserver
2026-04-22 15:55:44,211 - DEBUG - Do not have enough data to verify VN in agent
2026-04-22 15:55:44,216 - DEBUG - VRF ids for VN ctest-vn-44354949: {}
2026-04-22 15:55:44,277 - DEBUG - Services list from nova: [