2026-04-24 19:32:10,452 - INFO - Domain Default found not creating
2026-04-24 19:32:10,660 - INFO - Project ctest-TestBasicPolicy-85286766 not found, creating it
2026-04-24 19:32:11,148 - INFO - Created Project:ctest-TestBasicPolicy-85286766, ID : 21532afe-3653-41d3-964d-38421590d56b
2026-04-24 19:32:12,714 - INFO - ================================================================================
2026-04-24 19:32:12,714 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-24 19:32:12,714 - 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-24 19:32:12,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-24 19:32:12,970 - INFO - Initial checks done. Running the testcase now
2026-04-24 19:32:12,970 - INFO -
2026-04-24 19:32:13,558 - DEBUG - Response for create_network : {'network': {'id': '08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad', 'name': 'ctest-vn-74125407', 'tenant_id': '21532afe365341d3964d38421590d56b', 'project_id': '21532afe365341d3964d38421590d56b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85286766', 'ctest-vn-74125407'], 'port_security_enabled': True, 'description': ''}}
2026-04-24 19:32:13,785 - DEBUG - Response for create_subnet : {'subnet': {'id': '69a3244a-c2e8-4fe1-951d-5494708aaede', 'name': '', 'tenant_id': '21532afe365341d3964d38421590d56b', 'network_id': '08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad', 'ip_version': 4, 'cidr': '107.213.241.64/26', 'allocation_pools': [{'start': '107.213.241.66', 'end': '107.213.241.126'}], 'gateway_ip': '107.213.241.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.213.241.66', 'tags': [], 'project_id': '21532afe365341d3964d38421590d56b'}}
2026-04-24 19:32:13,807 - INFO - Created VN ctest-vn-74125407
2026-04-24 19:32:13,860 - DEBUG - VN ctest-vn-74125407 UUID is 08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad
2026-04-24 19:32:14,173 - DEBUG - Response for create_network : {'network': {'id': '3b177245-5ef8-4a5e-bc54-631bc8a9cd06', 'name': 'ctest-vn-41186474', 'tenant_id': '21532afe365341d3964d38421590d56b', 'project_id': '21532afe365341d3964d38421590d56b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85286766', 'ctest-vn-41186474'], 'port_security_enabled': True, 'description': ''}}
2026-04-24 19:32:14,344 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a191eb2-023d-46c1-a05d-1f35c61997ac', 'name': '', 'tenant_id': '21532afe365341d3964d38421590d56b', 'network_id': '3b177245-5ef8-4a5e-bc54-631bc8a9cd06', 'ip_version': 4, 'cidr': '133.149.142.128/26', 'allocation_pools': [{'start': '133.149.142.130', 'end': '133.149.142.190'}], 'gateway_ip': '133.149.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.149.142.130', 'tags': [], 'project_id': '21532afe365341d3964d38421590d56b'}}
2026-04-24 19:32:14,368 - INFO - Created VN ctest-vn-41186474
2026-04-24 19:32:14,424 - DEBUG - VN ctest-vn-41186474 UUID is 3b177245-5ef8-4a5e-bc54-631bc8a9cd06
2026-04-24 19:32:14,544 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-74125407, 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-85286766:ctest-vn-41186474, 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-24 19:32:14,872 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad', 'name': 'ctest-vn-74125407', 'tenant_id': '21532afe365341d3964d38421590d56b', 'project_id': '21532afe365341d3964d38421590d56b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69a3244a-c2e8-4fe1-951d-5494708aaede'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85286766', 'ctest-vn-74125407'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85286766', 'ctest-policy-allow-all-49413043']], 'subnet_ipam': [{'subnet_cidr': '107.213.241.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-24 19:32:15,111 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3b177245-5ef8-4a5e-bc54-631bc8a9cd06', 'name': 'ctest-vn-41186474', 'tenant_id': '21532afe365341d3964d38421590d56b', 'project_id': '21532afe365341d3964d38421590d56b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a191eb2-023d-46c1-a05d-1f35c61997ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85286766', 'ctest-vn-41186474'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85286766', 'ctest-policy-allow-all-49413043']], 'subnet_ipam': [{'subnet_cidr': '133.149.142.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-24 19:32:15,292 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-24 19:32:15,614 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-24 19:32:15,652 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d726e48-9f9d-4743-a8bb-13f2812efb68
2026-04-24 19:32:15,667 - DEBUG - Requesting: http://10.0.0.50:8082/project/21532afe-3653-41d3-964d-38421590d56b
2026-04-24 19:32:15,740 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad
2026-04-24 19:32:15,750 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad
2026-04-24 19:32:15,758 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9ee52e7-6b21-4133-828d-d2c6bdd23647
2026-04-24 19:32:15,766 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9ee52e7-6b21-4133-828d-d2c6bdd23647
2026-04-24 19:32:15,773 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f8a043dc-b159-4291-a775-9103fda119f8
2026-04-24 19:32:15,779 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-24 19:32:15,779 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad
2026-04-24 19:32:15,788 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9ee52e7-6b21-4133-828d-d2c6bdd23647
2026-04-24 19:32:15,801 - INFO - Verified VN network id 11 for VN 08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad
2026-04-24 19:32:15,801 - INFO - Verifications in API Server for VN ctest-vn-74125407 passed
2026-04-24 19:32:15,801 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad
2026-04-24 19:32:15,813 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9ee52e7-6b21-4133-828d-d2c6bdd23647
2026-04-24 19:32:15,820 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9ee52e7-6b21-4133-828d-d2c6bdd23647
2026-04-24 19:32:15,828 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f8a043dc-b159-4291-a775-9103fda119f8
2026-04-24 19:32:15,839 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-74125407', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85286766', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '632690709682933448', 'uuid-lslong': '10129310015202661805'}, 'enable': 'true', 'created': '2026-04-24T19:32:13', 'last-modified': '2026-04-24T19:32:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009285'}
2026-04-24 19:32:15,845 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-24 19:32:15,845 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74125407 passed
2026-04-24 19:32:15,845 - DEBUG - ====Verifying policy data for ctest-vn-74125407 in API_Server ======
2026-04-24 19:32:15,845 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-24 19:32:15,850 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d726e48-9f9d-4743-a8bb-13f2812efb68
2026-04-24 19:32:15,861 - DEBUG - Requesting: http://10.0.0.50:8082/project/21532afe-3653-41d3-964d-38421590d56b
2026-04-24 19:32:15,931 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08c7c4d9-2b57-4ec8-8c92-89ca9bf615ad
2026-04-24 19:32:15,940 - DEBUG - ==>Verifying data for policy with id: 1230c071-33d5-4849-bcec-0e9270c7ab47, fqn: ['default-domain', 'ctest-TestBasicPolicy-85286766', 'ctest-policy-allow-all-49413043']
2026-04-24 19:32:15,940 - INFO - VN ctest-vn-74125407 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-24 19:32:15,940 - DEBUG - Verifying the vn in opserver
2026-04-24 19:32:15,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-74125407 virtual network link through opserver 10.0.0.50
2026-04-24 19:32:15,940 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-24 19:32:16,239 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-24 19:32:16,304 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-74125407', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-74125407?flat'}
2026-04-24 19:32:16,304 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-74125407 is found in opserver
2026-04-24 19:32:16,313 - DEBUG - Do not have enough data to verify VN in agent
2026-04-24 19:32:16,317 - DEBUG - VRF ids for VN ctest-vn-74125407: {}
2026-04-24 19:32:16,318 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-24 19:32:16,323 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d726e48-9f9d-4743-a8bb-13f2812efb68
2026-04-24 19:32:16,334 - DEBUG - Requesting: http://10.0.0.50:8082/project/21532afe-3653-41d3-964d-38421590d56b
2026-04-24 19:32:16,403 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3b177245-5ef8-4a5e-bc54-631bc8a9cd06
2026-04-24 19:32:16,413 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3b177245-5ef8-4a5e-bc54-631bc8a9cd06
2026-04-24 19:32:16,422 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b84161b5-6d94-4832-9f2e-5dca7a070d70
2026-04-24 19:32:16,428 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b84161b5-6d94-4832-9f2e-5dca7a070d70
2026-04-24 19:32:16,434 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c21bdc7-03d4-4b71-b5ae-f9c46d719e0d
2026-04-24 19:32:16,440 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-24 19:32:16,440 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3b177245-5ef8-4a5e-bc54-631bc8a9cd06
2026-04-24 19:32:16,451 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b84161b5-6d94-4832-9f2e-5dca7a070d70
2026-04-24 19:32:16,469 - INFO - Verified VN network id 12 for VN 3b177245-5ef8-4a5e-bc54-631bc8a9cd06
2026-04-24 19:32:16,469 - INFO - Verifications in API Server for VN ctest-vn-41186474 passed
2026-04-24 19:32:16,470 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3b177245-5ef8-4a5e-bc54-631bc8a9cd06
2026-04-24 19:32:16,479 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b84161b5-6d94-4832-9f2e-5dca7a070d70
2026-04-24 19:32:16,487 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b84161b5-6d94-4832-9f2e-5dca7a070d70
2026-04-24 19:32:16,496 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c21bdc7-03d4-4b71-b5ae-f9c46d719e0d
2026-04-24 19:32:16,514 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-41186474', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85286766', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4257997614973733470', 'uuid-lslong': '13570580548155985158'}, 'enable': 'true', 'created': '2026-04-24T19:32:14', 'last-modified': '2026-04-24T19:32:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.425178'}
2026-04-24 19:32:16,519 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-24 19:32:16,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41186474 passed
2026-04-24 19:32:16,520 - DEBUG - ====Verifying policy data for ctest-vn-41186474 in API_Server ======
2026-04-24 19:32:16,520 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-24 19:32:16,526 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d726e48-9f9d-4743-a8bb-13f2812efb68
2026-04-24 19:32:16,538 - DEBUG - Requesting: http://10.0.0.50:8082/project/21532afe-3653-41d3-964d-38421590d56b
2026-04-24 19:32:16,610 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3b177245-5ef8-4a5e-bc54-631bc8a9cd06
2026-04-24 19:32:16,620 - DEBUG - ==>Verifying data for policy with id: 1230c071-33d5-4849-bcec-0e9270c7ab47, fqn: ['default-domain', 'ctest-TestBasicPolicy-85286766', 'ctest-policy-allow-all-49413043']
2026-04-24 19:32:16,620 - INFO - VN ctest-vn-41186474 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-24 19:32:16,621 - DEBUG - Verifying the vn in opserver
2026-04-24 19:32:16,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-41186474 virtual network link through opserver 10.0.0.50
2026-04-24 19:32:16,621 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-24 19:32:16,631 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-41186474', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-41186474?flat'}
2026-04-24 19:32:16,632 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85286766:ctest-vn-41186474 is found in opserver
2026-04-24 19:32:16,641 - DEBUG - Do not have enough data to verify VN in agent
2026-04-24 19:32:16,645 - DEBUG - VRF ids for VN ctest-vn-41186474: {}
2026-04-24 19:32:16,711 - DEBUG - Services list from nova: [