2026-08-04 09:30:58,213 - INFO - Domain Default found not creating
2026-08-04 09:30:58,414 - INFO - Project ctest-TestBasicPolicy-61046521 not found, creating it
2026-08-04 09:30:58,955 - INFO - Created Project:ctest-TestBasicPolicy-61046521, ID : b91d6d68-fa0a-480d-b587-4cfed75b7875
2026-08-04 09:31:00,812 - INFO - ================================================================================
2026-08-04 09:31:00,812 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-04 09:31:00,812 - 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-08-04 09:31:01,088 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-08-04 09:31:01,088 - INFO - Initial checks done. Running the testcase now
2026-08-04 09:31:01,088 - INFO -
2026-08-04 09:31:01,829 - DEBUG - Response for create_network : {'network': {'id': '74d09bae-4747-48b6-8a63-40be3cc268e0', 'name': 'ctest-vn-18819545', 'tenant_id': 'b91d6d68fa0a480db5874cfed75b7875', 'project_id': 'b91d6d68fa0a480db5874cfed75b7875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61046521', 'ctest-vn-18819545'], 'port_security_enabled': True, 'description': ''}}
2026-08-04 09:31:02,097 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af251471-a58d-4cfd-ab53-db59556d5b9a', 'name': '', 'tenant_id': 'b91d6d68fa0a480db5874cfed75b7875', 'network_id': '74d09bae-4747-48b6-8a63-40be3cc268e0', 'ip_version': 4, 'cidr': '210.52.134.192/26', 'allocation_pools': [{'start': '210.52.134.194', 'end': '210.52.134.254'}], 'gateway_ip': '210.52.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.52.134.194', 'tags': [], 'project_id': 'b91d6d68fa0a480db5874cfed75b7875'}}
2026-08-04 09:31:02,122 - INFO - Created VN ctest-vn-18819545
2026-08-04 09:31:02,181 - DEBUG - VN ctest-vn-18819545 UUID is 74d09bae-4747-48b6-8a63-40be3cc268e0
2026-08-04 09:31:02,559 - DEBUG - Response for create_network : {'network': {'id': '0830067d-34bd-4dfd-ab61-f0b018e4cd68', 'name': 'ctest-vn-54860248', 'tenant_id': 'b91d6d68fa0a480db5874cfed75b7875', 'project_id': 'b91d6d68fa0a480db5874cfed75b7875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61046521', 'ctest-vn-54860248'], 'port_security_enabled': True, 'description': ''}}
2026-08-04 09:31:02,771 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5bc3e0b-aafa-4aaa-96f7-aa008e972f47', 'name': '', 'tenant_id': 'b91d6d68fa0a480db5874cfed75b7875', 'network_id': '0830067d-34bd-4dfd-ab61-f0b018e4cd68', 'ip_version': 4, 'cidr': '150.172.74.192/26', 'allocation_pools': [{'start': '150.172.74.194', 'end': '150.172.74.254'}], 'gateway_ip': '150.172.74.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.172.74.194', 'tags': [], 'project_id': 'b91d6d68fa0a480db5874cfed75b7875'}}
2026-08-04 09:31:02,792 - INFO - Created VN ctest-vn-54860248
2026-08-04 09:31:02,849 - DEBUG - VN ctest-vn-54860248 UUID is 0830067d-34bd-4dfd-ab61-f0b018e4cd68
2026-08-04 09:31:02,980 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-18819545, 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-61046521:ctest-vn-54860248, 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-08-04 09:31:03,327 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74d09bae-4747-48b6-8a63-40be3cc268e0', 'name': 'ctest-vn-18819545', 'tenant_id': 'b91d6d68fa0a480db5874cfed75b7875', 'project_id': 'b91d6d68fa0a480db5874cfed75b7875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af251471-a58d-4cfd-ab53-db59556d5b9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61046521', 'ctest-vn-18819545'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61046521', 'ctest-policy-allow-all-49773346']], 'subnet_ipam': [{'subnet_cidr': '210.52.134.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-04 09:31:03,607 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0830067d-34bd-4dfd-ab61-f0b018e4cd68', 'name': 'ctest-vn-54860248', 'tenant_id': 'b91d6d68fa0a480db5874cfed75b7875', 'project_id': 'b91d6d68fa0a480db5874cfed75b7875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a5bc3e0b-aafa-4aaa-96f7-aa008e972f47'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61046521', 'ctest-vn-54860248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61046521', 'ctest-policy-allow-all-49773346']], 'subnet_ipam': [{'subnet_cidr': '150.172.74.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-04 09:31:03,785 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-04 09:31:04,260 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-04 09:31:04,309 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f99871a8-0529-4eab-a10d-d4786078fec9
2026-08-04 09:31:04,327 - DEBUG - Requesting: http://10.0.0.38:8082/project/b91d6d68-fa0a-480d-b587-4cfed75b7875
2026-08-04 09:31:04,420 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74d09bae-4747-48b6-8a63-40be3cc268e0
2026-08-04 09:31:04,437 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74d09bae-4747-48b6-8a63-40be3cc268e0
2026-08-04 09:31:04,449 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c79cd6-6131-4e05-8ac5-a7d45c5a68fa
2026-08-04 09:31:04,460 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c79cd6-6131-4e05-8ac5-a7d45c5a68fa
2026-08-04 09:31:04,471 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b469bfae-727c-4328-ade0-f753e8884eca
2026-08-04 09:31:04,481 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-04 09:31:04,482 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74d09bae-4747-48b6-8a63-40be3cc268e0
2026-08-04 09:31:04,495 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c79cd6-6131-4e05-8ac5-a7d45c5a68fa
2026-08-04 09:31:04,525 - INFO - Verified VN network id 9 for VN 74d09bae-4747-48b6-8a63-40be3cc268e0
2026-08-04 09:31:04,525 - INFO - Verifications in API Server for VN ctest-vn-18819545 passed
2026-08-04 09:31:04,525 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74d09bae-4747-48b6-8a63-40be3cc268e0
2026-08-04 09:31:04,538 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c79cd6-6131-4e05-8ac5-a7d45c5a68fa
2026-08-04 09:31:04,548 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c79cd6-6131-4e05-8ac5-a7d45c5a68fa
2026-08-04 09:31:04,558 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b469bfae-727c-4328-ade0-f753e8884eca
2026-08-04 09:31:04,576 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-18819545', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61046521', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8417398876377925814', 'uuid-lslong': '9971885185735747808'}, 'enable': 'true', 'created': '2026-08-04T09:31:01', 'last-modified': '2026-08-04T09:31:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.283146'}
2026-08-04 09:31:04,586 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-04 09:31:04,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18819545 passed
2026-08-04 09:31:04,586 - DEBUG - ====Verifying policy data for ctest-vn-18819545 in API_Server ======
2026-08-04 09:31:04,586 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-04 09:31:04,593 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f99871a8-0529-4eab-a10d-d4786078fec9
2026-08-04 09:31:04,604 - DEBUG - Requesting: http://10.0.0.38:8082/project/b91d6d68-fa0a-480d-b587-4cfed75b7875
2026-08-04 09:31:04,691 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74d09bae-4747-48b6-8a63-40be3cc268e0
2026-08-04 09:31:04,705 - DEBUG - ==>Verifying data for policy with id: 61d445d5-452c-44dd-8d1f-603d775446a2, fqn: ['default-domain', 'ctest-TestBasicPolicy-61046521', 'ctest-policy-allow-all-49773346']
2026-08-04 09:31:04,705 - INFO - VN ctest-vn-18819545 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-04 09:31:04,705 - DEBUG - Verifying the vn in opserver
2026-08-04 09:31:04,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-18819545 virtual network link through opserver 10.0.0.38
2026-08-04 09:31:04,705 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-04 09:31:05,089 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-04 09:31:05,146 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-18819545', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-18819545?flat'}
2026-08-04 09:31:05,146 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-18819545 is found in opserver
2026-08-04 09:31:05,161 - DEBUG - Do not have enough data to verify VN in agent
2026-08-04 09:31:05,167 - DEBUG - VRF ids for VN ctest-vn-18819545: {}
2026-08-04 09:31:05,167 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-04 09:31:05,176 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f99871a8-0529-4eab-a10d-d4786078fec9
2026-08-04 09:31:05,191 - DEBUG - Requesting: http://10.0.0.38:8082/project/b91d6d68-fa0a-480d-b587-4cfed75b7875
2026-08-04 09:31:05,280 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0830067d-34bd-4dfd-ab61-f0b018e4cd68
2026-08-04 09:31:05,298 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0830067d-34bd-4dfd-ab61-f0b018e4cd68
2026-08-04 09:31:05,310 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d2e58b8e-4def-4b40-8501-0524a7faaea0
2026-08-04 09:31:05,319 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d2e58b8e-4def-4b40-8501-0524a7faaea0
2026-08-04 09:31:05,327 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7e27e817-2004-4054-83c1-6cf249dc2b06
2026-08-04 09:31:05,335 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-04 09:31:05,335 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0830067d-34bd-4dfd-ab61-f0b018e4cd68
2026-08-04 09:31:05,346 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d2e58b8e-4def-4b40-8501-0524a7faaea0
2026-08-04 09:31:05,369 - INFO - Verified VN network id 10 for VN 0830067d-34bd-4dfd-ab61-f0b018e4cd68
2026-08-04 09:31:05,370 - INFO - Verifications in API Server for VN ctest-vn-54860248 passed
2026-08-04 09:31:05,370 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0830067d-34bd-4dfd-ab61-f0b018e4cd68
2026-08-04 09:31:05,384 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d2e58b8e-4def-4b40-8501-0524a7faaea0
2026-08-04 09:31:05,393 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d2e58b8e-4def-4b40-8501-0524a7faaea0
2026-08-04 09:31:05,403 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7e27e817-2004-4054-83c1-6cf249dc2b06
2026-08-04 09:31:05,419 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-54860248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61046521', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '589978686011035133', 'uuid-lslong': '12349416292349169000'}, 'enable': 'true', 'created': '2026-08-04T09:31:02', 'last-modified': '2026-08-04T09:31:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.853809'}
2026-08-04 09:31:05,426 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-04 09:31:05,426 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54860248 passed
2026-08-04 09:31:05,426 - DEBUG - ====Verifying policy data for ctest-vn-54860248 in API_Server ======
2026-08-04 09:31:05,427 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-04 09:31:05,433 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f99871a8-0529-4eab-a10d-d4786078fec9
2026-08-04 09:31:05,445 - DEBUG - Requesting: http://10.0.0.38:8082/project/b91d6d68-fa0a-480d-b587-4cfed75b7875
2026-08-04 09:31:05,528 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0830067d-34bd-4dfd-ab61-f0b018e4cd68
2026-08-04 09:31:05,541 - DEBUG - ==>Verifying data for policy with id: 61d445d5-452c-44dd-8d1f-603d775446a2, fqn: ['default-domain', 'ctest-TestBasicPolicy-61046521', 'ctest-policy-allow-all-49773346']
2026-08-04 09:31:05,541 - INFO - VN ctest-vn-54860248 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-04 09:31:05,541 - DEBUG - Verifying the vn in opserver
2026-08-04 09:31:05,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-54860248 virtual network link through opserver 10.0.0.38
2026-08-04 09:31:05,541 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-04 09:31:05,552 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-54860248', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-54860248?flat'}
2026-08-04 09:31:05,552 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61046521:ctest-vn-54860248 is found in opserver
2026-08-04 09:31:05,566 - DEBUG - Do not have enough data to verify VN in agent
2026-08-04 09:31:05,572 - DEBUG - VRF ids for VN ctest-vn-54860248: {}
2026-08-04 09:31:05,648 - DEBUG - Services list from nova: [