2025-10-16 10:09:54,646 - INFO - Domain Default found not creating
2025-10-16 10:09:54,830 - INFO - Project ctest-TestBasicPolicy-23705576 not found, creating it
2025-10-16 10:09:55,292 - INFO - Created Project:ctest-TestBasicPolicy-23705576, ID : b286f802-21cd-4917-8f49-db1484b1d4ae
2025-10-16 10:09:56,896 - INFO - ================================================================================
2025-10-16 10:09:56,896 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-16 10:09:56,896 - 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
2025-10-16 10:09:57,151 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-10-16 10:09:57,151 - INFO - Initial checks done. Running the testcase now
2025-10-16 10:09:57,151 - INFO -
2025-10-16 10:09:57,738 - DEBUG - Response for create_network : {'network': {'id': '73c76cd1-5a58-442a-90f1-26167f34a618', 'name': 'ctest-vn-02285377', 'tenant_id': 'b286f80221cd49178f49db1484b1d4ae', 'project_id': 'b286f80221cd49178f49db1484b1d4ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23705576', 'ctest-vn-02285377'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 10:09:57,963 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cd8d79b-95b9-49fe-a9ae-cfa4059743e1', 'name': '', 'tenant_id': 'b286f80221cd49178f49db1484b1d4ae', 'network_id': '73c76cd1-5a58-442a-90f1-26167f34a618', 'ip_version': 4, 'cidr': '26.182.21.192/26', 'allocation_pools': [{'start': '26.182.21.194', 'end': '26.182.21.254'}], 'gateway_ip': '26.182.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.182.21.194', 'tags': [], 'project_id': 'b286f80221cd49178f49db1484b1d4ae'}}
2025-10-16 10:09:57,982 - INFO - Created VN ctest-vn-02285377
2025-10-16 10:09:58,036 - DEBUG - VN ctest-vn-02285377 UUID is 73c76cd1-5a58-442a-90f1-26167f34a618
2025-10-16 10:09:58,356 - DEBUG - Response for create_network : {'network': {'id': 'f6b43f59-a26d-4f28-9582-01810a5205f4', 'name': 'ctest-vn-22833298', 'tenant_id': 'b286f80221cd49178f49db1484b1d4ae', 'project_id': 'b286f80221cd49178f49db1484b1d4ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23705576', 'ctest-vn-22833298'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 10:09:58,559 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c95b741-0ec3-4a49-a9c7-382aa3f39e56', 'name': '', 'tenant_id': 'b286f80221cd49178f49db1484b1d4ae', 'network_id': 'f6b43f59-a26d-4f28-9582-01810a5205f4', 'ip_version': 4, 'cidr': '8.22.56.64/26', 'allocation_pools': [{'start': '8.22.56.66', 'end': '8.22.56.126'}], 'gateway_ip': '8.22.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.22.56.66', 'tags': [], 'project_id': 'b286f80221cd49178f49db1484b1d4ae'}}
2025-10-16 10:09:58,583 - INFO - Created VN ctest-vn-22833298
2025-10-16 10:09:58,636 - DEBUG - VN ctest-vn-22833298 UUID is f6b43f59-a26d-4f28-9582-01810a5205f4
2025-10-16 10:09:58,755 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-02285377, 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-23705576:ctest-vn-22833298, 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]
2025-10-16 10:09:59,068 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73c76cd1-5a58-442a-90f1-26167f34a618', 'name': 'ctest-vn-02285377', 'tenant_id': 'b286f80221cd49178f49db1484b1d4ae', 'project_id': 'b286f80221cd49178f49db1484b1d4ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7cd8d79b-95b9-49fe-a9ae-cfa4059743e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23705576', 'ctest-vn-02285377'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23705576', 'ctest-policy-allow-all-40020767']], 'subnet_ipam': [{'subnet_cidr': '26.182.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 10:09:59,298 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6b43f59-a26d-4f28-9582-01810a5205f4', 'name': 'ctest-vn-22833298', 'tenant_id': 'b286f80221cd49178f49db1484b1d4ae', 'project_id': 'b286f80221cd49178f49db1484b1d4ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c95b741-0ec3-4a49-a9c7-382aa3f39e56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23705576', 'ctest-vn-22833298'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23705576', 'ctest-policy-allow-all-40020767']], 'subnet_ipam': [{'subnet_cidr': '8.22.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 10:09:59,448 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-16 10:09:59,803 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-16 10:09:59,836 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d8fb0c-894c-452c-bfe3-cf9364634df3
2025-10-16 10:09:59,850 - DEBUG - Requesting: http://10.0.0.38:8082/project/b286f802-21cd-4917-8f49-db1484b1d4ae
2025-10-16 10:09:59,925 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73c76cd1-5a58-442a-90f1-26167f34a618
2025-10-16 10:09:59,938 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73c76cd1-5a58-442a-90f1-26167f34a618
2025-10-16 10:09:59,948 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2c2cf587-1ed4-4568-a527-459ea12234a4
2025-10-16 10:09:59,959 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2c2cf587-1ed4-4568-a527-459ea12234a4
2025-10-16 10:09:59,968 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e18c8a2-da87-4fff-97fc-5eea578b33cc
2025-10-16 10:09:59,976 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 10:09:59,976 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73c76cd1-5a58-442a-90f1-26167f34a618
2025-10-16 10:09:59,987 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2c2cf587-1ed4-4568-a527-459ea12234a4
2025-10-16 10:10:00,002 - INFO - Verified VN network id 11 for VN 73c76cd1-5a58-442a-90f1-26167f34a618
2025-10-16 10:10:00,002 - INFO - Verifications in API Server for VN ctest-vn-02285377 passed
2025-10-16 10:10:00,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73c76cd1-5a58-442a-90f1-26167f34a618
2025-10-16 10:10:00,014 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2c2cf587-1ed4-4568-a527-459ea12234a4
2025-10-16 10:10:00,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2c2cf587-1ed4-4568-a527-459ea12234a4
2025-10-16 10:10:00,031 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e18c8a2-da87-4fff-97fc-5eea578b33cc
2025-10-16 10:10:00,046 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-02285377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23705576', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8342756481146831914', 'uuid-lslong': '10444170888914183704'}, 'enable': 'true', 'created': '2025-10-16T10:09:57', 'last-modified': '2025-10-16T10:09:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005511'}
2025-10-16 10:10:00,053 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 10:10:00,054 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02285377 passed
2025-10-16 10:10:00,054 - DEBUG - ====Verifying policy data for ctest-vn-02285377 in API_Server ======
2025-10-16 10:10:00,054 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-16 10:10:00,061 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d8fb0c-894c-452c-bfe3-cf9364634df3
2025-10-16 10:10:00,075 - DEBUG - Requesting: http://10.0.0.38:8082/project/b286f802-21cd-4917-8f49-db1484b1d4ae
2025-10-16 10:10:00,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73c76cd1-5a58-442a-90f1-26167f34a618
2025-10-16 10:10:00,161 - DEBUG - ==>Verifying data for policy with id: 9c98ac91-4cab-458b-9eaa-528238e201e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-23705576', 'ctest-policy-allow-all-40020767']
2025-10-16 10:10:00,161 - INFO - VN ctest-vn-02285377 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 10:10:00,161 - DEBUG - Verifying the vn in opserver
2025-10-16 10:10:00,162 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-02285377 virtual network link through opserver 10.0.0.38
2025-10-16 10:10:00,162 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-16 10:10:00,506 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-16 10:10:00,569 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-02285377', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-02285377?flat'}
2025-10-16 10:10:00,569 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-02285377 is found in opserver
2025-10-16 10:10:00,580 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 10:10:00,585 - DEBUG - VRF ids for VN ctest-vn-02285377: {}
2025-10-16 10:10:00,585 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-16 10:10:00,591 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d8fb0c-894c-452c-bfe3-cf9364634df3
2025-10-16 10:10:00,603 - DEBUG - Requesting: http://10.0.0.38:8082/project/b286f802-21cd-4917-8f49-db1484b1d4ae
2025-10-16 10:10:00,673 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6b43f59-a26d-4f28-9582-01810a5205f4
2025-10-16 10:10:00,686 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6b43f59-a26d-4f28-9582-01810a5205f4
2025-10-16 10:10:00,696 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df0ec00d-87da-4ebf-9cf8-2b2d7d2327b1
2025-10-16 10:10:00,703 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df0ec00d-87da-4ebf-9cf8-2b2d7d2327b1
2025-10-16 10:10:00,711 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3657f09a-df43-4031-8433-149c8d2a55d2
2025-10-16 10:10:00,718 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 10:10:00,718 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6b43f59-a26d-4f28-9582-01810a5205f4
2025-10-16 10:10:00,728 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df0ec00d-87da-4ebf-9cf8-2b2d7d2327b1
2025-10-16 10:10:00,742 - INFO - Verified VN network id 12 for VN f6b43f59-a26d-4f28-9582-01810a5205f4
2025-10-16 10:10:00,743 - INFO - Verifications in API Server for VN ctest-vn-22833298 passed
2025-10-16 10:10:00,743 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6b43f59-a26d-4f28-9582-01810a5205f4
2025-10-16 10:10:00,752 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df0ec00d-87da-4ebf-9cf8-2b2d7d2327b1
2025-10-16 10:10:00,760 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df0ec00d-87da-4ebf-9cf8-2b2d7d2327b1
2025-10-16 10:10:00,768 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3657f09a-df43-4031-8433-149c8d2a55d2
2025-10-16 10:10:00,782 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-22833298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23705576', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17776903283347902248', 'uuid-lslong': '10773174912359204340'}, 'enable': 'true', 'created': '2025-10-16T10:09:58', 'last-modified': '2025-10-16T10:09:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509703'}
2025-10-16 10:10:00,789 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 10:10:00,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22833298 passed
2025-10-16 10:10:00,789 - DEBUG - ====Verifying policy data for ctest-vn-22833298 in API_Server ======
2025-10-16 10:10:00,789 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-16 10:10:00,795 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d8fb0c-894c-452c-bfe3-cf9364634df3
2025-10-16 10:10:00,806 - DEBUG - Requesting: http://10.0.0.38:8082/project/b286f802-21cd-4917-8f49-db1484b1d4ae
2025-10-16 10:10:00,881 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6b43f59-a26d-4f28-9582-01810a5205f4
2025-10-16 10:10:00,892 - DEBUG - ==>Verifying data for policy with id: 9c98ac91-4cab-458b-9eaa-528238e201e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-23705576', 'ctest-policy-allow-all-40020767']
2025-10-16 10:10:00,892 - INFO - VN ctest-vn-22833298 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 10:10:00,892 - DEBUG - Verifying the vn in opserver
2025-10-16 10:10:00,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-22833298 virtual network link through opserver 10.0.0.38
2025-10-16 10:10:00,892 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-16 10:10:00,903 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-22833298', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-22833298?flat'}
2025-10-16 10:10:00,903 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23705576:ctest-vn-22833298 is found in opserver
2025-10-16 10:10:00,916 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 10:10:00,922 - DEBUG - VRF ids for VN ctest-vn-22833298: {}
2025-10-16 10:10:01,006 - DEBUG - Services list from nova: [