2026-03-20 21:15:01,981 - INFO - Domain Default found not creating
2026-03-20 21:15:02,129 - INFO - Project ctest-TestBasicPolicy-33572280 not found, creating it
2026-03-20 21:15:02,569 - INFO - Created Project:ctest-TestBasicPolicy-33572280, ID : 4b9c0a3f-9cd5-4712-be0c-6f581659f17a
2026-03-20 21:15:03,979 - INFO - ================================================================================
2026-03-20 21:15:03,979 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-20 21:15:03,979 - 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 21:15:04,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-03-20 21:15:04,231 - INFO - Initial checks done. Running the testcase now
2026-03-20 21:15:04,231 - INFO -
2026-03-20 21:15:04,774 - DEBUG - Response for create_network : {'network': {'id': '72d3299e-4783-4854-9789-42122a68eb01', 'name': 'ctest-vn-64323963', 'tenant_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'project_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33572280', 'ctest-vn-64323963'], 'port_security_enabled': True, 'description': ''}}
2026-03-20 21:15:04,906 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4193bd8-6ea7-418d-8b76-27a5a8252afd', 'name': '', 'tenant_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'network_id': '72d3299e-4783-4854-9789-42122a68eb01', 'ip_version': 4, 'cidr': '25.26.80.128/26', 'allocation_pools': [{'start': '25.26.80.130', 'end': '25.26.80.190'}], 'gateway_ip': '25.26.80.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.26.80.130', 'tags': [], 'project_id': '4b9c0a3f9cd54712be0c6f581659f17a'}}
2026-03-20 21:15:04,923 - INFO - Created VN ctest-vn-64323963
2026-03-20 21:15:04,974 - DEBUG - VN ctest-vn-64323963 UUID is 72d3299e-4783-4854-9789-42122a68eb01
2026-03-20 21:15:05,311 - DEBUG - Response for create_network : {'network': {'id': '425f6b89-30ba-4c06-b63d-146c2c056223', 'name': 'ctest-vn-52191215', 'tenant_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'project_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33572280', 'ctest-vn-52191215'], 'port_security_enabled': True, 'description': ''}}
2026-03-20 21:15:05,477 - DEBUG - Response for create_subnet : {'subnet': {'id': '51dab61f-396f-4182-ae00-bc8f024ef403', 'name': '', 'tenant_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'network_id': '425f6b89-30ba-4c06-b63d-146c2c056223', 'ip_version': 4, 'cidr': '87.42.112.128/26', 'allocation_pools': [{'start': '87.42.112.130', 'end': '87.42.112.190'}], 'gateway_ip': '87.42.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.42.112.130', 'tags': [], 'project_id': '4b9c0a3f9cd54712be0c6f581659f17a'}}
2026-03-20 21:15:05,493 - INFO - Created VN ctest-vn-52191215
2026-03-20 21:15:05,546 - DEBUG - VN ctest-vn-52191215 UUID is 425f6b89-30ba-4c06-b63d-146c2c056223
2026-03-20 21:15:05,698 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-64323963, 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-33572280:ctest-vn-52191215, 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 21:15:05,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72d3299e-4783-4854-9789-42122a68eb01', 'name': 'ctest-vn-64323963', 'tenant_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'project_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4193bd8-6ea7-418d-8b76-27a5a8252afd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33572280', 'ctest-vn-64323963'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33572280', 'ctest-policy-allow-all-03142977']], 'subnet_ipam': [{'subnet_cidr': '25.26.80.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-20 21:15:06,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '425f6b89-30ba-4c06-b63d-146c2c056223', 'name': 'ctest-vn-52191215', 'tenant_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'project_id': '4b9c0a3f9cd54712be0c6f581659f17a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51dab61f-396f-4182-ae00-bc8f024ef403'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33572280', 'ctest-vn-52191215'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33572280', 'ctest-policy-allow-all-03142977']], 'subnet_ipam': [{'subnet_cidr': '87.42.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-20 21:15:06,346 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 21:15:06,635 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 21:15:06,664 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cf004ce-4702-4a59-bd59-ede0221bf91e
2026-03-20 21:15:06,674 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b9c0a3f-9cd5-4712-be0c-6f581659f17a
2026-03-20 21:15:06,744 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72d3299e-4783-4854-9789-42122a68eb01
2026-03-20 21:15:06,754 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72d3299e-4783-4854-9789-42122a68eb01
2026-03-20 21:15:06,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/270665dd-6974-40fa-aa9c-6dd4811c7529
2026-03-20 21:15:06,767 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/270665dd-6974-40fa-aa9c-6dd4811c7529
2026-03-20 21:15:06,771 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b5c8de2-e035-47fa-9ecb-6840f8a55dbf
2026-03-20 21:15:06,776 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-20 21:15:06,776 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72d3299e-4783-4854-9789-42122a68eb01
2026-03-20 21:15:06,783 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/270665dd-6974-40fa-aa9c-6dd4811c7529
2026-03-20 21:15:06,793 - INFO - Verified VN network id 12 for VN 72d3299e-4783-4854-9789-42122a68eb01
2026-03-20 21:15:06,793 - INFO - Verifications in API Server for VN ctest-vn-64323963 passed
2026-03-20 21:15:06,793 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72d3299e-4783-4854-9789-42122a68eb01
2026-03-20 21:15:06,800 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/270665dd-6974-40fa-aa9c-6dd4811c7529
2026-03-20 21:15:06,805 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/270665dd-6974-40fa-aa9c-6dd4811c7529
2026-03-20 21:15:06,810 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b5c8de2-e035-47fa-9ecb-6840f8a55dbf
2026-03-20 21:15:06,819 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-64323963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33572280', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8274002700191090772', 'uuid-lslong': '10919331417324841729'}, 'enable': 'true', 'created': '2026-03-20T21:15:04', 'last-modified': '2026-03-20T21:15:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.862806'}
2026-03-20 21:15:06,823 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-20 21:15:06,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64323963 passed
2026-03-20 21:15:06,824 - DEBUG - ====Verifying policy data for ctest-vn-64323963 in API_Server ======
2026-03-20 21:15:06,824 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 21:15:06,828 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cf004ce-4702-4a59-bd59-ede0221bf91e
2026-03-20 21:15:06,838 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b9c0a3f-9cd5-4712-be0c-6f581659f17a
2026-03-20 21:15:06,908 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72d3299e-4783-4854-9789-42122a68eb01
2026-03-20 21:15:06,917 - DEBUG - ==>Verifying data for policy with id: aa7d0bae-c0aa-48c4-87eb-8067e53c5e77, fqn: ['default-domain', 'ctest-TestBasicPolicy-33572280', 'ctest-policy-allow-all-03142977']
2026-03-20 21:15:06,917 - INFO - VN ctest-vn-64323963 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-20 21:15:06,918 - DEBUG - Verifying the vn in opserver
2026-03-20 21:15:06,918 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-64323963 virtual network link through opserver 10.0.0.38
2026-03-20 21:15:06,918 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-20 21:15:07,213 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-20 21:15:07,301 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-64323963', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-64323963?flat'}
2026-03-20 21:15:07,301 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-64323963 is found in opserver
2026-03-20 21:15:07,309 - DEBUG - Do not have enough data to verify VN in agent
2026-03-20 21:15:07,313 - DEBUG - VRF ids for VN ctest-vn-64323963: {}
2026-03-20 21:15:07,313 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 21:15:07,322 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cf004ce-4702-4a59-bd59-ede0221bf91e
2026-03-20 21:15:07,419 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b9c0a3f-9cd5-4712-be0c-6f581659f17a
2026-03-20 21:15:07,513 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/425f6b89-30ba-4c06-b63d-146c2c056223
2026-03-20 21:15:07,539 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/425f6b89-30ba-4c06-b63d-146c2c056223
2026-03-20 21:15:07,551 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d524b93e-f253-4db5-8272-b88e3defadcc
2026-03-20 21:15:07,561 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d524b93e-f253-4db5-8272-b88e3defadcc
2026-03-20 21:15:07,574 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4d8bcba3-7b73-41c4-b452-d8dd14575d5f
2026-03-20 21:15:07,583 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-20 21:15:07,583 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/425f6b89-30ba-4c06-b63d-146c2c056223
2026-03-20 21:15:07,597 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d524b93e-f253-4db5-8272-b88e3defadcc
2026-03-20 21:15:07,613 - INFO - Verified VN network id 13 for VN 425f6b89-30ba-4c06-b63d-146c2c056223
2026-03-20 21:15:07,613 - INFO - Verifications in API Server for VN ctest-vn-52191215 passed
2026-03-20 21:15:07,613 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/425f6b89-30ba-4c06-b63d-146c2c056223
2026-03-20 21:15:07,628 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d524b93e-f253-4db5-8272-b88e3defadcc
2026-03-20 21:15:07,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d524b93e-f253-4db5-8272-b88e3defadcc
2026-03-20 21:15:07,646 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4d8bcba3-7b73-41c4-b452-d8dd14575d5f
2026-03-20 21:15:07,665 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-52191215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33572280', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4782659566262963206', 'uuid-lslong': '13131674543309808163'}, 'enable': 'true', 'created': '2026-03-20T21:15:05', 'last-modified': '2026-03-20T21:15:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.497412'}
2026-03-20 21:15:07,677 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-20 21:15:07,677 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52191215 passed
2026-03-20 21:15:07,678 - DEBUG - ====Verifying policy data for ctest-vn-52191215 in API_Server ======
2026-03-20 21:15:07,678 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 21:15:07,695 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cf004ce-4702-4a59-bd59-ede0221bf91e
2026-03-20 21:15:07,765 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b9c0a3f-9cd5-4712-be0c-6f581659f17a
2026-03-20 21:15:07,852 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/425f6b89-30ba-4c06-b63d-146c2c056223
2026-03-20 21:15:07,863 - DEBUG - ==>Verifying data for policy with id: aa7d0bae-c0aa-48c4-87eb-8067e53c5e77, fqn: ['default-domain', 'ctest-TestBasicPolicy-33572280', 'ctest-policy-allow-all-03142977']
2026-03-20 21:15:07,863 - INFO - VN ctest-vn-52191215 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-20 21:15:07,863 - DEBUG - Verifying the vn in opserver
2026-03-20 21:15:07,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-52191215 virtual network link through opserver 10.0.0.38
2026-03-20 21:15:07,864 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-20 21:15:07,873 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-52191215', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-52191215?flat'}
2026-03-20 21:15:07,873 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33572280:ctest-vn-52191215 is found in opserver
2026-03-20 21:15:07,882 - DEBUG - Do not have enough data to verify VN in agent
2026-03-20 21:15:07,886 - DEBUG - VRF ids for VN ctest-vn-52191215: {}
2026-03-20 21:15:07,938 - DEBUG - Services list from nova: [