2026-04-28 19:03:10,598 - INFO - Domain Default found not creating
2026-04-28 19:03:10,766 - INFO - Project ctest-TestBasicPolicy-65526819 not found, creating it
2026-04-28 19:03:11,232 - INFO - Created Project:ctest-TestBasicPolicy-65526819, ID : c9896d67-3903-4ca4-8e12-5f07c2ca8c44
2026-04-28 19:03:12,723 - INFO - ================================================================================
2026-04-28 19:03:12,723 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-28 19:03:12,723 - 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-28 19:03:12,977 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2026-04-28 19:03:12,977 - INFO - Initial checks done. Running the testcase now
2026-04-28 19:03:12,977 - INFO -
2026-04-28 19:03:13,526 - DEBUG - Response for create_network : {'network': {'id': '9b77a055-adec-4470-856f-3e43bb1ccbdc', 'name': 'ctest-vn-49118407', 'tenant_id': 'c9896d6739034ca48e125f07c2ca8c44', 'project_id': 'c9896d6739034ca48e125f07c2ca8c44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65526819', 'ctest-vn-49118407'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 19:03:13,689 - DEBUG - Response for create_subnet : {'subnet': {'id': '03cc83e3-1438-4223-8795-c1083c7d0912', 'name': '', 'tenant_id': 'c9896d6739034ca48e125f07c2ca8c44', 'network_id': '9b77a055-adec-4470-856f-3e43bb1ccbdc', 'ip_version': 4, 'cidr': '121.213.216.128/26', 'allocation_pools': [{'start': '121.213.216.130', 'end': '121.213.216.190'}], 'gateway_ip': '121.213.216.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.213.216.130', 'tags': [], 'project_id': 'c9896d6739034ca48e125f07c2ca8c44'}}
2026-04-28 19:03:13,706 - INFO - Created VN ctest-vn-49118407
2026-04-28 19:03:13,759 - DEBUG - VN ctest-vn-49118407 UUID is 9b77a055-adec-4470-856f-3e43bb1ccbdc
2026-04-28 19:03:14,074 - DEBUG - Response for create_network : {'network': {'id': 'e42b489a-82eb-47ab-b3a8-751397fb40ad', 'name': 'ctest-vn-65081606', 'tenant_id': 'c9896d6739034ca48e125f07c2ca8c44', 'project_id': 'c9896d6739034ca48e125f07c2ca8c44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65526819', 'ctest-vn-65081606'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 19:03:14,281 - DEBUG - Response for create_subnet : {'subnet': {'id': '824307f8-9051-438a-b171-e39792783054', 'name': '', 'tenant_id': 'c9896d6739034ca48e125f07c2ca8c44', 'network_id': 'e42b489a-82eb-47ab-b3a8-751397fb40ad', 'ip_version': 4, 'cidr': '223.9.42.0/26', 'allocation_pools': [{'start': '223.9.42.2', 'end': '223.9.42.62'}], 'gateway_ip': '223.9.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.9.42.2', 'tags': [], 'project_id': 'c9896d6739034ca48e125f07c2ca8c44'}}
2026-04-28 19:03:14,299 - INFO - Created VN ctest-vn-65081606
2026-04-28 19:03:14,351 - DEBUG - VN ctest-vn-65081606 UUID is e42b489a-82eb-47ab-b3a8-751397fb40ad
2026-04-28 19:03:14,463 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-49118407, 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-65526819:ctest-vn-65081606, 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-28 19:03:14,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b77a055-adec-4470-856f-3e43bb1ccbdc', 'name': 'ctest-vn-49118407', 'tenant_id': 'c9896d6739034ca48e125f07c2ca8c44', 'project_id': 'c9896d6739034ca48e125f07c2ca8c44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03cc83e3-1438-4223-8795-c1083c7d0912'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65526819', 'ctest-vn-49118407'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65526819', 'ctest-policy-allow-all-10542033']], 'subnet_ipam': [{'subnet_cidr': '121.213.216.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 19:03:14,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e42b489a-82eb-47ab-b3a8-751397fb40ad', 'name': 'ctest-vn-65081606', 'tenant_id': 'c9896d6739034ca48e125f07c2ca8c44', 'project_id': 'c9896d6739034ca48e125f07c2ca8c44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['824307f8-9051-438a-b171-e39792783054'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65526819', 'ctest-vn-65081606'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65526819', 'ctest-policy-allow-all-10542033']], 'subnet_ipam': [{'subnet_cidr': '223.9.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 19:03:15,155 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 19:03:15,454 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 19:03:15,490 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08ebec29-9dfe-4d37-9485-0f6aa67ef17e
2026-04-28 19:03:15,504 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9896d67-3903-4ca4-8e12-5f07c2ca8c44
2026-04-28 19:03:15,575 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b77a055-adec-4470-856f-3e43bb1ccbdc
2026-04-28 19:03:15,586 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b77a055-adec-4470-856f-3e43bb1ccbdc
2026-04-28 19:03:15,595 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11f650c9-d837-4d9f-88c5-240894093ac7
2026-04-28 19:03:15,601 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11f650c9-d837-4d9f-88c5-240894093ac7
2026-04-28 19:03:15,608 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e639844-0fba-46ae-87d2-2583d1420da8
2026-04-28 19:03:15,614 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 19:03:15,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b77a055-adec-4470-856f-3e43bb1ccbdc
2026-04-28 19:03:15,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11f650c9-d837-4d9f-88c5-240894093ac7
2026-04-28 19:03:15,636 - INFO - Verified VN network id 11 for VN 9b77a055-adec-4470-856f-3e43bb1ccbdc
2026-04-28 19:03:15,637 - INFO - Verifications in API Server for VN ctest-vn-49118407 passed
2026-04-28 19:03:15,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b77a055-adec-4470-856f-3e43bb1ccbdc
2026-04-28 19:03:15,646 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11f650c9-d837-4d9f-88c5-240894093ac7
2026-04-28 19:03:15,653 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11f650c9-d837-4d9f-88c5-240894093ac7
2026-04-28 19:03:15,661 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e639844-0fba-46ae-87d2-2583d1420da8
2026-04-28 19:03:15,675 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-49118407', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65526819', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11202598887958004848', 'uuid-lslong': '9614972190082255836'}, 'enable': 'true', 'created': '2026-04-28T19:03:13', 'last-modified': '2026-04-28T19:03:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934013'}
2026-04-28 19:03:15,681 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 19:03:15,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49118407 passed
2026-04-28 19:03:15,681 - DEBUG - ====Verifying policy data for ctest-vn-49118407 in API_Server ======
2026-04-28 19:03:15,681 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 19:03:15,686 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08ebec29-9dfe-4d37-9485-0f6aa67ef17e
2026-04-28 19:03:15,696 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9896d67-3903-4ca4-8e12-5f07c2ca8c44
2026-04-28 19:03:15,766 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b77a055-adec-4470-856f-3e43bb1ccbdc
2026-04-28 19:03:15,775 - DEBUG - ==>Verifying data for policy with id: 0ccb803d-15f8-4f11-aa6a-356be8dfae72, fqn: ['default-domain', 'ctest-TestBasicPolicy-65526819', 'ctest-policy-allow-all-10542033']
2026-04-28 19:03:15,775 - INFO - VN ctest-vn-49118407 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 19:03:15,775 - DEBUG - Verifying the vn in opserver
2026-04-28 19:03:15,775 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-49118407 virtual network link through opserver 10.0.0.38
2026-04-28 19:03:15,775 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-28 19:03:16,073 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-28 19:03:16,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-49118407', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-49118407?flat'}
2026-04-28 19:03:16,139 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-49118407 is found in opserver
2026-04-28 19:03:16,151 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 19:03:16,156 - DEBUG - VRF ids for VN ctest-vn-49118407: {}
2026-04-28 19:03:16,156 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 19:03:16,162 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08ebec29-9dfe-4d37-9485-0f6aa67ef17e
2026-04-28 19:03:16,172 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9896d67-3903-4ca4-8e12-5f07c2ca8c44
2026-04-28 19:03:16,241 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e42b489a-82eb-47ab-b3a8-751397fb40ad
2026-04-28 19:03:16,252 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e42b489a-82eb-47ab-b3a8-751397fb40ad
2026-04-28 19:03:16,262 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4d7f18e-a7a4-4e87-a62b-5744d240a66d
2026-04-28 19:03:16,269 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4d7f18e-a7a4-4e87-a62b-5744d240a66d
2026-04-28 19:03:16,275 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/376a5a54-39bc-4d4a-b4da-bad0d20ec550
2026-04-28 19:03:16,281 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 19:03:16,281 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e42b489a-82eb-47ab-b3a8-751397fb40ad
2026-04-28 19:03:16,290 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4d7f18e-a7a4-4e87-a62b-5744d240a66d
2026-04-28 19:03:16,303 - INFO - Verified VN network id 12 for VN e42b489a-82eb-47ab-b3a8-751397fb40ad
2026-04-28 19:03:16,303 - INFO - Verifications in API Server for VN ctest-vn-65081606 passed
2026-04-28 19:03:16,303 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e42b489a-82eb-47ab-b3a8-751397fb40ad
2026-04-28 19:03:16,312 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4d7f18e-a7a4-4e87-a62b-5744d240a66d
2026-04-28 19:03:16,322 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4d7f18e-a7a4-4e87-a62b-5744d240a66d
2026-04-28 19:03:16,330 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/376a5a54-39bc-4d4a-b4da-bad0d20ec550
2026-04-28 19:03:16,341 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-65081606', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65526819', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16441314693104748459', 'uuid-lslong': '12945725855891144877'}, 'enable': 'true', 'created': '2026-04-28T19:03:14', 'last-modified': '2026-04-28T19:03:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.376575'}
2026-04-28 19:03:16,347 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 19:03:16,347 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65081606 passed
2026-04-28 19:03:16,347 - DEBUG - ====Verifying policy data for ctest-vn-65081606 in API_Server ======
2026-04-28 19:03:16,347 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 19:03:16,352 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08ebec29-9dfe-4d37-9485-0f6aa67ef17e
2026-04-28 19:03:16,362 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9896d67-3903-4ca4-8e12-5f07c2ca8c44
2026-04-28 19:03:16,433 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e42b489a-82eb-47ab-b3a8-751397fb40ad
2026-04-28 19:03:16,441 - DEBUG - ==>Verifying data for policy with id: 0ccb803d-15f8-4f11-aa6a-356be8dfae72, fqn: ['default-domain', 'ctest-TestBasicPolicy-65526819', 'ctest-policy-allow-all-10542033']
2026-04-28 19:03:16,441 - INFO - VN ctest-vn-65081606 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 19:03:16,442 - DEBUG - Verifying the vn in opserver
2026-04-28 19:03:16,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-65081606 virtual network link through opserver 10.0.0.38
2026-04-28 19:03:16,442 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-28 19:03:16,451 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-65081606', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-65081606?flat'}
2026-04-28 19:03:16,451 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65526819:ctest-vn-65081606 is found in opserver
2026-04-28 19:03:16,460 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 19:03:16,464 - DEBUG - VRF ids for VN ctest-vn-65081606: {}
2026-04-28 19:03:16,523 - DEBUG - Services list from nova: [