2026-04-27 02:31:05,015 - INFO - Domain Default found not creating
2026-04-27 02:31:05,188 - INFO - Project ctest-TestBasicPolicy-42611400 not found, creating it
2026-04-27 02:31:05,651 - INFO - Created Project:ctest-TestBasicPolicy-42611400, ID : c8025671-b027-4d04-aebe-98bd10a8c943
2026-04-27 02:31:07,157 - INFO - ================================================================================
2026-04-27 02:31:07,157 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-27 02:31:07,157 - 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-27 02:31:07,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2026-04-27 02:31:07,416 - INFO - Initial checks done. Running the testcase now
2026-04-27 02:31:07,416 - INFO -
2026-04-27 02:31:07,961 - DEBUG - Response for create_network : {'network': {'id': 'ee238618-a240-44ef-8758-b51d614728e9', 'name': 'ctest-vn-22329563', 'tenant_id': 'c8025671b0274d04aebe98bd10a8c943', 'project_id': 'c8025671b0274d04aebe98bd10a8c943', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42611400', 'ctest-vn-22329563'], 'port_security_enabled': True, 'description': ''}}
2026-04-27 02:31:08,170 - DEBUG - Response for create_subnet : {'subnet': {'id': '10ff698d-f5de-42ac-b9f1-0d6f2dc4d5b6', 'name': '', 'tenant_id': 'c8025671b0274d04aebe98bd10a8c943', 'network_id': 'ee238618-a240-44ef-8758-b51d614728e9', 'ip_version': 4, 'cidr': '206.120.235.192/26', 'allocation_pools': [{'start': '206.120.235.194', 'end': '206.120.235.254'}], 'gateway_ip': '206.120.235.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.120.235.194', 'tags': [], 'project_id': 'c8025671b0274d04aebe98bd10a8c943'}}
2026-04-27 02:31:08,190 - INFO - Created VN ctest-vn-22329563
2026-04-27 02:31:08,242 - DEBUG - VN ctest-vn-22329563 UUID is ee238618-a240-44ef-8758-b51d614728e9
2026-04-27 02:31:08,575 - DEBUG - Response for create_network : {'network': {'id': 'f9fa8299-a639-4ad5-b681-582bc8a83f4f', 'name': 'ctest-vn-10320022', 'tenant_id': 'c8025671b0274d04aebe98bd10a8c943', 'project_id': 'c8025671b0274d04aebe98bd10a8c943', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42611400', 'ctest-vn-10320022'], 'port_security_enabled': True, 'description': ''}}
2026-04-27 02:31:08,737 - DEBUG - Response for create_subnet : {'subnet': {'id': '71c5e591-a28e-45d4-a490-41d0993e1946', 'name': '', 'tenant_id': 'c8025671b0274d04aebe98bd10a8c943', 'network_id': 'f9fa8299-a639-4ad5-b681-582bc8a83f4f', 'ip_version': 4, 'cidr': '79.102.9.0/26', 'allocation_pools': [{'start': '79.102.9.2', 'end': '79.102.9.62'}], 'gateway_ip': '79.102.9.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.102.9.2', 'tags': [], 'project_id': 'c8025671b0274d04aebe98bd10a8c943'}}
2026-04-27 02:31:08,755 - INFO - Created VN ctest-vn-10320022
2026-04-27 02:31:08,806 - DEBUG - VN ctest-vn-10320022 UUID is f9fa8299-a639-4ad5-b681-582bc8a83f4f
2026-04-27 02:31:08,922 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-22329563, 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-42611400:ctest-vn-10320022, 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-27 02:31:09,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee238618-a240-44ef-8758-b51d614728e9', 'name': 'ctest-vn-22329563', 'tenant_id': 'c8025671b0274d04aebe98bd10a8c943', 'project_id': 'c8025671b0274d04aebe98bd10a8c943', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10ff698d-f5de-42ac-b9f1-0d6f2dc4d5b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42611400', 'ctest-vn-22329563'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42611400', 'ctest-policy-allow-all-00137806']], 'subnet_ipam': [{'subnet_cidr': '206.120.235.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-27 02:31:09,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9fa8299-a639-4ad5-b681-582bc8a83f4f', 'name': 'ctest-vn-10320022', 'tenant_id': 'c8025671b0274d04aebe98bd10a8c943', 'project_id': 'c8025671b0274d04aebe98bd10a8c943', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71c5e591-a28e-45d4-a490-41d0993e1946'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42611400', 'ctest-vn-10320022'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42611400', 'ctest-policy-allow-all-00137806']], 'subnet_ipam': [{'subnet_cidr': '79.102.9.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-27 02:31:09,614 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-04-27 02:31:09,908 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-04-27 02:31:09,942 - DEBUG - Requesting: http://10.0.0.242:8082/domain/524f4263-879b-42be-bdd6-35a05fa4fd34
2026-04-27 02:31:09,954 - DEBUG - Requesting: http://10.0.0.242:8082/project/c8025671-b027-4d04-aebe-98bd10a8c943
2026-04-27 02:31:10,029 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee238618-a240-44ef-8758-b51d614728e9
2026-04-27 02:31:10,041 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee238618-a240-44ef-8758-b51d614728e9
2026-04-27 02:31:10,051 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/169ff37b-c633-4334-8447-e94accffaf09
2026-04-27 02:31:10,059 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/169ff37b-c633-4334-8447-e94accffaf09
2026-04-27 02:31:10,065 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e0a4fc50-1adc-4bbc-a115-4bd1619b7542
2026-04-27 02:31:10,072 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-27 02:31:10,072 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee238618-a240-44ef-8758-b51d614728e9
2026-04-27 02:31:10,082 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/169ff37b-c633-4334-8447-e94accffaf09
2026-04-27 02:31:10,096 - INFO - Verified VN network id 11 for VN ee238618-a240-44ef-8758-b51d614728e9
2026-04-27 02:31:10,096 - INFO - Verifications in API Server for VN ctest-vn-22329563 passed
2026-04-27 02:31:10,096 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee238618-a240-44ef-8758-b51d614728e9
2026-04-27 02:31:10,106 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/169ff37b-c633-4334-8447-e94accffaf09
2026-04-27 02:31:10,113 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/169ff37b-c633-4334-8447-e94accffaf09
2026-04-27 02:31:10,119 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e0a4fc50-1adc-4bbc-a115-4bd1619b7542
2026-04-27 02:31:10,131 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-22329563', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42611400', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17159706445571179759', 'uuid-lslong': '9752744130861541609'}, 'enable': 'true', 'created': '2026-04-27T02:31:07', 'last-modified': '2026-04-27T02:31:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.945188'}
2026-04-27 02:31:10,137 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-27 02:31:10,137 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22329563 passed
2026-04-27 02:31:10,138 - DEBUG - ====Verifying policy data for ctest-vn-22329563 in API_Server ======
2026-04-27 02:31:10,138 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-04-27 02:31:10,143 - DEBUG - Requesting: http://10.0.0.242:8082/domain/524f4263-879b-42be-bdd6-35a05fa4fd34
2026-04-27 02:31:10,155 - DEBUG - Requesting: http://10.0.0.242:8082/project/c8025671-b027-4d04-aebe-98bd10a8c943
2026-04-27 02:31:10,229 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee238618-a240-44ef-8758-b51d614728e9
2026-04-27 02:31:10,241 - DEBUG - ==>Verifying data for policy with id: a81fac73-60e4-4a6b-9995-9c48468d78c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-42611400', 'ctest-policy-allow-all-00137806']
2026-04-27 02:31:10,241 - INFO - VN ctest-vn-22329563 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-27 02:31:10,241 - DEBUG - Verifying the vn in opserver
2026-04-27 02:31:10,241 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-22329563 virtual network link through opserver 10.0.0.242
2026-04-27 02:31:10,241 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-04-27 02:31:10,538 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-04-27 02:31:10,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-22329563', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-22329563?flat'}
2026-04-27 02:31:10,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-22329563 is found in opserver
2026-04-27 02:31:10,607 - DEBUG - Do not have enough data to verify VN in agent
2026-04-27 02:31:10,611 - DEBUG - VRF ids for VN ctest-vn-22329563: {}
2026-04-27 02:31:10,611 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-04-27 02:31:10,616 - DEBUG - Requesting: http://10.0.0.242:8082/domain/524f4263-879b-42be-bdd6-35a05fa4fd34
2026-04-27 02:31:10,627 - DEBUG - Requesting: http://10.0.0.242:8082/project/c8025671-b027-4d04-aebe-98bd10a8c943
2026-04-27 02:31:10,699 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f9fa8299-a639-4ad5-b681-582bc8a83f4f
2026-04-27 02:31:10,710 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f9fa8299-a639-4ad5-b681-582bc8a83f4f
2026-04-27 02:31:10,719 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/912913c8-ef42-4c8e-b8ac-84d95052986b
2026-04-27 02:31:10,726 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/912913c8-ef42-4c8e-b8ac-84d95052986b
2026-04-27 02:31:10,733 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c3baa43e-f603-40ba-b64f-76c957234cb2
2026-04-27 02:31:10,739 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-27 02:31:10,740 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f9fa8299-a639-4ad5-b681-582bc8a83f4f
2026-04-27 02:31:10,748 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/912913c8-ef42-4c8e-b8ac-84d95052986b
2026-04-27 02:31:10,762 - INFO - Verified VN network id 12 for VN f9fa8299-a639-4ad5-b681-582bc8a83f4f
2026-04-27 02:31:10,762 - INFO - Verifications in API Server for VN ctest-vn-10320022 passed
2026-04-27 02:31:10,762 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f9fa8299-a639-4ad5-b681-582bc8a83f4f
2026-04-27 02:31:10,771 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/912913c8-ef42-4c8e-b8ac-84d95052986b
2026-04-27 02:31:10,777 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/912913c8-ef42-4c8e-b8ac-84d95052986b
2026-04-27 02:31:10,784 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c3baa43e-f603-40ba-b64f-76c957234cb2
2026-04-27 02:31:10,800 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-10320022', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42611400', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18012853256052099797', 'uuid-lslong': '13150889331971866447'}, 'enable': 'true', 'created': '2026-04-27T02:31:08', 'last-modified': '2026-04-27T02:31:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.377242'}
2026-04-27 02:31:10,808 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-27 02:31:10,808 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10320022 passed
2026-04-27 02:31:10,808 - DEBUG - ====Verifying policy data for ctest-vn-10320022 in API_Server ======
2026-04-27 02:31:10,808 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-04-27 02:31:10,813 - DEBUG - Requesting: http://10.0.0.242:8082/domain/524f4263-879b-42be-bdd6-35a05fa4fd34
2026-04-27 02:31:10,823 - DEBUG - Requesting: http://10.0.0.242:8082/project/c8025671-b027-4d04-aebe-98bd10a8c943
2026-04-27 02:31:10,891 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f9fa8299-a639-4ad5-b681-582bc8a83f4f
2026-04-27 02:31:10,901 - DEBUG - ==>Verifying data for policy with id: a81fac73-60e4-4a6b-9995-9c48468d78c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-42611400', 'ctest-policy-allow-all-00137806']
2026-04-27 02:31:10,901 - INFO - VN ctest-vn-10320022 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-27 02:31:10,901 - DEBUG - Verifying the vn in opserver
2026-04-27 02:31:10,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-10320022 virtual network link through opserver 10.0.0.242
2026-04-27 02:31:10,901 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-04-27 02:31:10,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-10320022', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-10320022?flat'}
2026-04-27 02:31:10,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42611400:ctest-vn-10320022 is found in opserver
2026-04-27 02:31:10,922 - DEBUG - Do not have enough data to verify VN in agent
2026-04-27 02:31:10,926 - DEBUG - VRF ids for VN ctest-vn-10320022: {}
2026-04-27 02:31:10,993 - DEBUG - Services list from nova: [