2025-12-08 20:19:45,989 - INFO - Domain Default found not creating
2025-12-08 20:19:46,182 - INFO - Project ctest-TestBasicPolicy-31929867 not found, creating it
2025-12-08 20:19:46,675 - INFO - Created Project:ctest-TestBasicPolicy-31929867, ID : 5c2a8a4c-0e6b-48dd-8599-3394b97a127a
2025-12-08 20:19:48,267 - INFO - ================================================================================
2025-12-08 20:19:48,267 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-08 20:19:48,267 - 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-12-08 20:19:48,541 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with
2025-12-08 20:19:48,541 - INFO - Initial checks done. Running the testcase now
2025-12-08 20:19:48,541 - INFO -
2025-12-08 20:19:49,136 - DEBUG - Response for create_network : {'network': {'id': '9b5c6b0f-45e0-4f95-a58d-85b010192827', 'name': 'ctest-vn-80981107', 'tenant_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'project_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31929867', 'ctest-vn-80981107'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 20:19:49,336 - DEBUG - Response for create_subnet : {'subnet': {'id': '616ba911-2de1-4e98-bc28-4a79b3db5416', 'name': '', 'tenant_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'network_id': '9b5c6b0f-45e0-4f95-a58d-85b010192827', 'ip_version': 4, 'cidr': '20.11.251.192/26', 'allocation_pools': [{'start': '20.11.251.194', 'end': '20.11.251.254'}], 'gateway_ip': '20.11.251.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.11.251.194', 'tags': [], 'project_id': '5c2a8a4c0e6b48dd85993394b97a127a'}}
2025-12-08 20:19:49,355 - INFO - Created VN ctest-vn-80981107
2025-12-08 20:19:49,409 - DEBUG - VN ctest-vn-80981107 UUID is 9b5c6b0f-45e0-4f95-a58d-85b010192827
2025-12-08 20:19:49,719 - DEBUG - Response for create_network : {'network': {'id': '65f8d6d5-9352-4fda-9d1d-51a7c1c889d5', 'name': 'ctest-vn-46930802', 'tenant_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'project_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31929867', 'ctest-vn-46930802'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 20:19:49,881 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7c4cf22-cbac-4b10-aa77-bfe6ae8e3ec3', 'name': '', 'tenant_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'network_id': '65f8d6d5-9352-4fda-9d1d-51a7c1c889d5', 'ip_version': 4, 'cidr': '81.19.137.0/26', 'allocation_pools': [{'start': '81.19.137.2', 'end': '81.19.137.62'}], 'gateway_ip': '81.19.137.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.19.137.2', 'tags': [], 'project_id': '5c2a8a4c0e6b48dd85993394b97a127a'}}
2025-12-08 20:19:49,900 - INFO - Created VN ctest-vn-46930802
2025-12-08 20:19:49,953 - DEBUG - VN ctest-vn-46930802 UUID is 65f8d6d5-9352-4fda-9d1d-51a7c1c889d5
2025-12-08 20:19:50,075 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-80981107, 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-31929867:ctest-vn-46930802, 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-12-08 20:19:50,395 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b5c6b0f-45e0-4f95-a58d-85b010192827', 'name': 'ctest-vn-80981107', 'tenant_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'project_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['616ba911-2de1-4e98-bc28-4a79b3db5416'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31929867', 'ctest-vn-80981107'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31929867', 'ctest-policy-allow-all-49648782']], 'subnet_ipam': [{'subnet_cidr': '20.11.251.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 20:19:50,676 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65f8d6d5-9352-4fda-9d1d-51a7c1c889d5', 'name': 'ctest-vn-46930802', 'tenant_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'project_id': '5c2a8a4c0e6b48dd85993394b97a127a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c7c4cf22-cbac-4b10-aa77-bfe6ae8e3ec3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31929867', 'ctest-vn-46930802'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31929867', 'ctest-policy-allow-all-49648782']], 'subnet_ipam': [{'subnet_cidr': '81.19.137.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 20:19:50,825 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 20:19:51,135 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 20:19:51,170 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1fddce28-7986-4d00-9389-720e4acb85d9
2025-12-08 20:19:51,185 - DEBUG - Requesting: http://10.0.0.33:8082/project/5c2a8a4c-0e6b-48dd-8599-3394b97a127a
2025-12-08 20:19:51,264 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b5c6b0f-45e0-4f95-a58d-85b010192827
2025-12-08 20:19:51,275 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b5c6b0f-45e0-4f95-a58d-85b010192827
2025-12-08 20:19:51,285 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aba17ec5-dd62-4433-a12f-c3eac99951f9
2025-12-08 20:19:51,293 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aba17ec5-dd62-4433-a12f-c3eac99951f9
2025-12-08 20:19:51,300 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4f58bfdf-e81c-4d45-a6fe-abce8c13f700
2025-12-08 20:19:51,308 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 20:19:51,308 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b5c6b0f-45e0-4f95-a58d-85b010192827
2025-12-08 20:19:51,317 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aba17ec5-dd62-4433-a12f-c3eac99951f9
2025-12-08 20:19:51,333 - INFO - Verified VN network id 11 for VN 9b5c6b0f-45e0-4f95-a58d-85b010192827
2025-12-08 20:19:51,333 - INFO - Verifications in API Server for VN ctest-vn-80981107 passed
2025-12-08 20:19:51,333 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b5c6b0f-45e0-4f95-a58d-85b010192827
2025-12-08 20:19:51,342 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aba17ec5-dd62-4433-a12f-c3eac99951f9
2025-12-08 20:19:51,350 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aba17ec5-dd62-4433-a12f-c3eac99951f9
2025-12-08 20:19:51,357 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4f58bfdf-e81c-4d45-a6fe-abce8c13f700
2025-12-08 20:19:51,370 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-80981107', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31929867', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11194940487077220245', 'uuid-lslong': '11929337979205134375'}, 'enable': 'true', 'created': '2025-12-08T20:19:49', 'last-modified': '2025-12-08T20:19:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006771'}
2025-12-08 20:19:51,376 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 20:19:51,376 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80981107 passed
2025-12-08 20:19:51,376 - DEBUG - ====Verifying policy data for ctest-vn-80981107 in API_Server ======
2025-12-08 20:19:51,376 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 20:19:51,383 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1fddce28-7986-4d00-9389-720e4acb85d9
2025-12-08 20:19:51,394 - DEBUG - Requesting: http://10.0.0.33:8082/project/5c2a8a4c-0e6b-48dd-8599-3394b97a127a
2025-12-08 20:19:51,461 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b5c6b0f-45e0-4f95-a58d-85b010192827
2025-12-08 20:19:51,471 - DEBUG - ==>Verifying data for policy with id: 89236178-aa1c-47c4-a34b-b4518569bd8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-31929867', 'ctest-policy-allow-all-49648782']
2025-12-08 20:19:51,471 - INFO - VN ctest-vn-80981107 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 20:19:51,471 - DEBUG - Verifying the vn in opserver
2025-12-08 20:19:51,471 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-80981107 virtual network link through opserver 10.0.0.33
2025-12-08 20:19:51,471 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-08 20:19:51,775 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-08 20:19:51,859 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-80981107', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-80981107?flat'}
2025-12-08 20:19:51,859 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-80981107 is found in opserver
2025-12-08 20:19:51,871 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 20:19:51,877 - DEBUG - VRF ids for VN ctest-vn-80981107: {}
2025-12-08 20:19:51,877 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 20:19:51,892 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1fddce28-7986-4d00-9389-720e4acb85d9
2025-12-08 20:19:51,905 - DEBUG - Requesting: http://10.0.0.33:8082/project/5c2a8a4c-0e6b-48dd-8599-3394b97a127a
2025-12-08 20:19:51,978 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/65f8d6d5-9352-4fda-9d1d-51a7c1c889d5
2025-12-08 20:19:51,995 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/65f8d6d5-9352-4fda-9d1d-51a7c1c889d5
2025-12-08 20:19:52,004 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f23fc5f5-c09b-4e9b-a8ac-4db3b7aeed7c
2025-12-08 20:19:52,012 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f23fc5f5-c09b-4e9b-a8ac-4db3b7aeed7c
2025-12-08 20:19:52,021 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8ccfb36b-902c-42cb-ac2a-edc7d41cfa84
2025-12-08 20:19:52,028 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 20:19:52,028 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/65f8d6d5-9352-4fda-9d1d-51a7c1c889d5
2025-12-08 20:19:52,038 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f23fc5f5-c09b-4e9b-a8ac-4db3b7aeed7c
2025-12-08 20:19:52,055 - INFO - Verified VN network id 12 for VN 65f8d6d5-9352-4fda-9d1d-51a7c1c889d5
2025-12-08 20:19:52,055 - INFO - Verifications in API Server for VN ctest-vn-46930802 passed
2025-12-08 20:19:52,055 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/65f8d6d5-9352-4fda-9d1d-51a7c1c889d5
2025-12-08 20:19:52,064 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f23fc5f5-c09b-4e9b-a8ac-4db3b7aeed7c
2025-12-08 20:19:52,073 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f23fc5f5-c09b-4e9b-a8ac-4db3b7aeed7c
2025-12-08 20:19:52,081 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8ccfb36b-902c-42cb-ac2a-edc7d41cfa84
2025-12-08 20:19:52,094 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-46930802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31929867', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7347859004842987482', 'uuid-lslong': '11321294819231828437'}, 'enable': 'true', 'created': '2025-12-08T20:19:49', 'last-modified': '2025-12-08T20:19:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.494489'}
2025-12-08 20:19:52,100 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 20:19:52,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46930802 passed
2025-12-08 20:19:52,100 - DEBUG - ====Verifying policy data for ctest-vn-46930802 in API_Server ======
2025-12-08 20:19:52,101 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 20:19:52,107 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1fddce28-7986-4d00-9389-720e4acb85d9
2025-12-08 20:19:52,118 - DEBUG - Requesting: http://10.0.0.33:8082/project/5c2a8a4c-0e6b-48dd-8599-3394b97a127a
2025-12-08 20:19:52,185 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/65f8d6d5-9352-4fda-9d1d-51a7c1c889d5
2025-12-08 20:19:52,196 - DEBUG - ==>Verifying data for policy with id: 89236178-aa1c-47c4-a34b-b4518569bd8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-31929867', 'ctest-policy-allow-all-49648782']
2025-12-08 20:19:52,196 - INFO - VN ctest-vn-46930802 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 20:19:52,197 - DEBUG - Verifying the vn in opserver
2025-12-08 20:19:52,197 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-46930802 virtual network link through opserver 10.0.0.33
2025-12-08 20:19:52,197 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-08 20:19:52,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-46930802', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-46930802?flat'}
2025-12-08 20:19:52,207 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31929867:ctest-vn-46930802 is found in opserver
2025-12-08 20:19:52,218 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 20:19:52,223 - DEBUG - VRF ids for VN ctest-vn-46930802: {}
2025-12-08 20:19:52,289 - DEBUG - Services list from nova: [