2026-03-20 10:27:57,691 - INFO - Domain Default found not creating
2026-03-20 10:27:57,849 - INFO - Project ctest-TestBasicPolicy-36396405 not found, creating it
2026-03-20 10:27:58,311 - INFO - Created Project:ctest-TestBasicPolicy-36396405, ID : 14433074-2a6a-496a-9ffa-d1613569d070
2026-03-20 10:27:59,722 - INFO - ================================================================================
2026-03-20 10:27:59,722 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-20 10:27:59,722 - 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-03-20 10:27:59,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-03-20 10:27:59,976 - INFO - Initial checks done. Running the testcase now
2026-03-20 10:27:59,976 - INFO -
2026-03-20 10:28:00,497 - DEBUG - Response for create_network : {'network': {'id': '37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb', 'name': 'ctest-vn-10650186', 'tenant_id': '144330742a6a496a9ffad1613569d070', 'project_id': '144330742a6a496a9ffad1613569d070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36396405', 'ctest-vn-10650186'], 'port_security_enabled': True, 'description': ''}}
2026-03-20 10:28:00,678 - DEBUG - Response for create_subnet : {'subnet': {'id': '60977fb9-4a36-4b33-a997-2038ee1a22a3', 'name': '', 'tenant_id': '144330742a6a496a9ffad1613569d070', 'network_id': '37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb', 'ip_version': 4, 'cidr': '109.137.252.192/26', 'allocation_pools': [{'start': '109.137.252.194', 'end': '109.137.252.254'}], 'gateway_ip': '109.137.252.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.137.252.194', 'tags': [], 'project_id': '144330742a6a496a9ffad1613569d070'}}
2026-03-20 10:28:00,694 - INFO - Created VN ctest-vn-10650186
2026-03-20 10:28:00,747 - DEBUG - VN ctest-vn-10650186 UUID is 37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb
2026-03-20 10:28:01,054 - DEBUG - Response for create_network : {'network': {'id': 'eacc9400-0892-4cdf-bc43-bf422ebc206f', 'name': 'ctest-vn-51886441', 'tenant_id': '144330742a6a496a9ffad1613569d070', 'project_id': '144330742a6a496a9ffad1613569d070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36396405', 'ctest-vn-51886441'], 'port_security_enabled': True, 'description': ''}}
2026-03-20 10:28:01,222 - DEBUG - Response for create_subnet : {'subnet': {'id': '55ad44f4-0b2d-4ab4-b09d-31acb5d66600', 'name': '', 'tenant_id': '144330742a6a496a9ffad1613569d070', 'network_id': 'eacc9400-0892-4cdf-bc43-bf422ebc206f', 'ip_version': 4, 'cidr': '104.252.241.192/26', 'allocation_pools': [{'start': '104.252.241.194', 'end': '104.252.241.254'}], 'gateway_ip': '104.252.241.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.252.241.194', 'tags': [], 'project_id': '144330742a6a496a9ffad1613569d070'}}
2026-03-20 10:28:01,239 - INFO - Created VN ctest-vn-51886441
2026-03-20 10:28:01,291 - DEBUG - VN ctest-vn-51886441 UUID is eacc9400-0892-4cdf-bc43-bf422ebc206f
2026-03-20 10:28:01,439 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-10650186, 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-36396405:ctest-vn-51886441, 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-03-20 10:28:01,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb', 'name': 'ctest-vn-10650186', 'tenant_id': '144330742a6a496a9ffad1613569d070', 'project_id': '144330742a6a496a9ffad1613569d070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60977fb9-4a36-4b33-a997-2038ee1a22a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36396405', 'ctest-vn-10650186'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36396405', 'ctest-policy-allow-all-51308949']], 'subnet_ipam': [{'subnet_cidr': '109.137.252.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-20 10:28:02,004 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eacc9400-0892-4cdf-bc43-bf422ebc206f', 'name': 'ctest-vn-51886441', 'tenant_id': '144330742a6a496a9ffad1613569d070', 'project_id': '144330742a6a496a9ffad1613569d070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55ad44f4-0b2d-4ab4-b09d-31acb5d66600'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36396405', 'ctest-vn-51886441'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36396405', 'ctest-policy-allow-all-51308949']], 'subnet_ipam': [{'subnet_cidr': '104.252.241.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-20 10:28:02,151 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 10:28:02,633 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 10:28:02,680 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc2a1751-e2eb-43f1-8209-5edd2d301d6a
2026-03-20 10:28:02,695 - DEBUG - Requesting: http://10.0.0.38:8082/project/14433074-2a6a-496a-9ffa-d1613569d070
2026-03-20 10:28:02,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb
2026-03-20 10:28:02,781 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb
2026-03-20 10:28:02,790 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3c33d44-b998-4170-bb1f-4d44dc7b6895
2026-03-20 10:28:02,797 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3c33d44-b998-4170-bb1f-4d44dc7b6895
2026-03-20 10:28:02,803 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b59b2fdc-bc0c-4723-b4a2-27a2b12a5890
2026-03-20 10:28:02,808 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-20 10:28:02,808 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb
2026-03-20 10:28:02,816 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3c33d44-b998-4170-bb1f-4d44dc7b6895
2026-03-20 10:28:02,829 - INFO - Verified VN network id 11 for VN 37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb
2026-03-20 10:28:02,829 - INFO - Verifications in API Server for VN ctest-vn-10650186 passed
2026-03-20 10:28:02,829 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb
2026-03-20 10:28:02,838 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3c33d44-b998-4170-bb1f-4d44dc7b6895
2026-03-20 10:28:02,844 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3c33d44-b998-4170-bb1f-4d44dc7b6895
2026-03-20 10:28:02,851 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b59b2fdc-bc0c-4723-b4a2-27a2b12a5890
2026-03-20 10:28:02,861 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-10650186', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36396405', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4024874732277351166', 'uuid-lslong': '13630965701749032395'}, 'enable': 'true', 'created': '2026-03-20T10:28:00', 'last-modified': '2026-03-20T10:28:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.157181'}
2026-03-20 10:28:02,868 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-20 10:28:02,869 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10650186 passed
2026-03-20 10:28:02,869 - DEBUG - ====Verifying policy data for ctest-vn-10650186 in API_Server ======
2026-03-20 10:28:02,869 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 10:28:02,874 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc2a1751-e2eb-43f1-8209-5edd2d301d6a
2026-03-20 10:28:02,885 - DEBUG - Requesting: http://10.0.0.38:8082/project/14433074-2a6a-496a-9ffa-d1613569d070
2026-03-20 10:28:02,951 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37db3a3e-8ad6-42fe-bd2a-eb15f648c5cb
2026-03-20 10:28:02,960 - DEBUG - ==>Verifying data for policy with id: db55df80-3079-460b-9ddb-491e92ea92b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-36396405', 'ctest-policy-allow-all-51308949']
2026-03-20 10:28:02,960 - INFO - VN ctest-vn-10650186 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-20 10:28:02,960 - DEBUG - Verifying the vn in opserver
2026-03-20 10:28:02,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-10650186 virtual network link through opserver 10.0.0.38
2026-03-20 10:28:02,960 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-20 10:28:03,283 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-20 10:28:03,371 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-10650186', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-10650186?flat'}
2026-03-20 10:28:03,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-10650186 is found in opserver
2026-03-20 10:28:03,382 - DEBUG - Do not have enough data to verify VN in agent
2026-03-20 10:28:03,388 - DEBUG - VRF ids for VN ctest-vn-10650186: {}
2026-03-20 10:28:03,388 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 10:28:03,393 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc2a1751-e2eb-43f1-8209-5edd2d301d6a
2026-03-20 10:28:03,404 - DEBUG - Requesting: http://10.0.0.38:8082/project/14433074-2a6a-496a-9ffa-d1613569d070
2026-03-20 10:28:03,471 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eacc9400-0892-4cdf-bc43-bf422ebc206f
2026-03-20 10:28:03,482 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eacc9400-0892-4cdf-bc43-bf422ebc206f
2026-03-20 10:28:03,492 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2880bd7a-4db2-444f-9f8b-844249a38be1
2026-03-20 10:28:03,499 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2880bd7a-4db2-444f-9f8b-844249a38be1
2026-03-20 10:28:03,506 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/080b8181-a15b-4879-ab7c-50672a37ab5f
2026-03-20 10:28:03,511 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-20 10:28:03,512 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eacc9400-0892-4cdf-bc43-bf422ebc206f
2026-03-20 10:28:03,520 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2880bd7a-4db2-444f-9f8b-844249a38be1
2026-03-20 10:28:03,532 - INFO - Verified VN network id 12 for VN eacc9400-0892-4cdf-bc43-bf422ebc206f
2026-03-20 10:28:03,533 - INFO - Verifications in API Server for VN ctest-vn-51886441 passed
2026-03-20 10:28:03,533 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eacc9400-0892-4cdf-bc43-bf422ebc206f
2026-03-20 10:28:03,541 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2880bd7a-4db2-444f-9f8b-844249a38be1
2026-03-20 10:28:03,548 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2880bd7a-4db2-444f-9f8b-844249a38be1
2026-03-20 10:28:03,555 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/080b8181-a15b-4879-ab7c-50672a37ab5f
2026-03-20 10:28:03,566 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-51886441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36396405', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16919060627988827359', 'uuid-lslong': '13565896793542893679'}, 'enable': 'true', 'created': '2026-03-20T10:28:01', 'last-modified': '2026-03-20T10:28:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.634367'}
2026-03-20 10:28:03,572 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-20 10:28:03,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51886441 passed
2026-03-20 10:28:03,572 - DEBUG - ====Verifying policy data for ctest-vn-51886441 in API_Server ======
2026-03-20 10:28:03,572 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 10:28:03,578 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc2a1751-e2eb-43f1-8209-5edd2d301d6a
2026-03-20 10:28:03,588 - DEBUG - Requesting: http://10.0.0.38:8082/project/14433074-2a6a-496a-9ffa-d1613569d070
2026-03-20 10:28:03,660 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eacc9400-0892-4cdf-bc43-bf422ebc206f
2026-03-20 10:28:03,669 - DEBUG - ==>Verifying data for policy with id: db55df80-3079-460b-9ddb-491e92ea92b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-36396405', 'ctest-policy-allow-all-51308949']
2026-03-20 10:28:03,669 - INFO - VN ctest-vn-51886441 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-20 10:28:03,669 - DEBUG - Verifying the vn in opserver
2026-03-20 10:28:03,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-51886441 virtual network link through opserver 10.0.0.38
2026-03-20 10:28:03,669 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-20 10:28:03,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-51886441', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-51886441?flat'}
2026-03-20 10:28:03,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36396405:ctest-vn-51886441 is found in opserver
2026-03-20 10:28:03,687 - DEBUG - Do not have enough data to verify VN in agent
2026-03-20 10:28:03,691 - DEBUG - VRF ids for VN ctest-vn-51886441: {}
2026-03-20 10:28:03,749 - DEBUG - Services list from nova: [