2025-06-03 12:46:43,737 - INFO - Domain Default found not creating
2025-06-03 12:46:43,913 - INFO - Project ctest-TestBasicPolicy-84901159 not found, creating it
2025-06-03 12:46:44,480 - INFO - Created Project:ctest-TestBasicPolicy-84901159, ID : b601a238-b542-4022-9f21-79a49c35ed89
2025-06-03 12:46:46,056 - INFO - ================================================================================
2025-06-03 12:46:46,056 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-03 12:46:46,056 - 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-06-03 12:46:46,318 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with
2025-06-03 12:46:46,318 - INFO - Initial checks done. Running the testcase now
2025-06-03 12:46:46,318 - INFO -
2025-06-03 12:46:46,914 - DEBUG - Response for create_network : {'network': {'id': '6b389b04-3f2b-4bc6-955a-c80da0392bd9', 'name': 'ctest-vn-69375136', 'tenant_id': 'b601a238b54240229f2179a49c35ed89', 'project_id': 'b601a238b54240229f2179a49c35ed89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84901159', 'ctest-vn-69375136'], 'port_security_enabled': True, 'description': ''}}
2025-06-03 12:46:47,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cfe992e-1d3b-43ad-aac0-ef72b7fab9f2', 'name': '', 'tenant_id': 'b601a238b54240229f2179a49c35ed89', 'network_id': '6b389b04-3f2b-4bc6-955a-c80da0392bd9', 'ip_version': 4, 'cidr': '2.208.227.128/26', 'allocation_pools': [{'start': '2.208.227.130', 'end': '2.208.227.190'}], 'gateway_ip': '2.208.227.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.208.227.130', 'tags': [], 'project_id': 'b601a238b54240229f2179a49c35ed89'}}
2025-06-03 12:46:47,184 - INFO - Created VN ctest-vn-69375136
2025-06-03 12:46:47,239 - DEBUG - VN ctest-vn-69375136 UUID is 6b389b04-3f2b-4bc6-955a-c80da0392bd9
2025-06-03 12:46:47,521 - DEBUG - Response for create_network : {'network': {'id': '2ad92071-be9f-4887-9c46-e76105ebf097', 'name': 'ctest-vn-38569271', 'tenant_id': 'b601a238b54240229f2179a49c35ed89', 'project_id': 'b601a238b54240229f2179a49c35ed89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84901159', 'ctest-vn-38569271'], 'port_security_enabled': True, 'description': ''}}
2025-06-03 12:46:47,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '541ed362-1a92-400b-b29a-aafc0e257acf', 'name': '', 'tenant_id': 'b601a238b54240229f2179a49c35ed89', 'network_id': '2ad92071-be9f-4887-9c46-e76105ebf097', 'ip_version': 4, 'cidr': '70.143.180.192/26', 'allocation_pools': [{'start': '70.143.180.194', 'end': '70.143.180.254'}], 'gateway_ip': '70.143.180.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.143.180.194', 'tags': [], 'project_id': 'b601a238b54240229f2179a49c35ed89'}}
2025-06-03 12:46:47,773 - INFO - Created VN ctest-vn-38569271
2025-06-03 12:46:47,827 - DEBUG - VN ctest-vn-38569271 UUID is 2ad92071-be9f-4887-9c46-e76105ebf097
2025-06-03 12:46:47,942 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-69375136, 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-84901159:ctest-vn-38569271, 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-06-03 12:46:48,252 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b389b04-3f2b-4bc6-955a-c80da0392bd9', 'name': 'ctest-vn-69375136', 'tenant_id': 'b601a238b54240229f2179a49c35ed89', 'project_id': 'b601a238b54240229f2179a49c35ed89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7cfe992e-1d3b-43ad-aac0-ef72b7fab9f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84901159', 'ctest-vn-69375136'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84901159', 'ctest-policy-allow-all-46233262']], 'subnet_ipam': [{'subnet_cidr': '2.208.227.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-03 12:46:48,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ad92071-be9f-4887-9c46-e76105ebf097', 'name': 'ctest-vn-38569271', 'tenant_id': 'b601a238b54240229f2179a49c35ed89', 'project_id': 'b601a238b54240229f2179a49c35ed89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['541ed362-1a92-400b-b29a-aafc0e257acf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84901159', 'ctest-vn-38569271'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84901159', 'ctest-policy-allow-all-46233262']], 'subnet_ipam': [{'subnet_cidr': '70.143.180.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-03 12:46:48,655 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-03 12:46:48,991 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-03 12:46:49,019 - DEBUG - Requesting: http://10.0.0.38:8082/domain/07dcd119-2194-4f5b-b3c9-0833dd37312d
2025-06-03 12:46:49,031 - DEBUG - Requesting: http://10.0.0.38:8082/project/b601a238-b542-4022-9f21-79a49c35ed89
2025-06-03 12:46:49,101 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b389b04-3f2b-4bc6-955a-c80da0392bd9
2025-06-03 12:46:49,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b389b04-3f2b-4bc6-955a-c80da0392bd9
2025-06-03 12:46:49,125 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b76b136-5798-4720-af23-a420e5406545
2025-06-03 12:46:49,133 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b76b136-5798-4720-af23-a420e5406545
2025-06-03 12:46:49,141 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b623803-9ab8-48c0-a09e-8ed971e5233c
2025-06-03 12:46:49,149 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-03 12:46:49,149 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b389b04-3f2b-4bc6-955a-c80da0392bd9
2025-06-03 12:46:49,160 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b76b136-5798-4720-af23-a420e5406545
2025-06-03 12:46:49,178 - INFO - Verified VN network id 7 for VN 6b389b04-3f2b-4bc6-955a-c80da0392bd9
2025-06-03 12:46:49,178 - INFO - Verifications in API Server for VN ctest-vn-69375136 passed
2025-06-03 12:46:49,178 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b389b04-3f2b-4bc6-955a-c80da0392bd9
2025-06-03 12:46:49,190 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b76b136-5798-4720-af23-a420e5406545
2025-06-03 12:46:49,198 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b76b136-5798-4720-af23-a420e5406545
2025-06-03 12:46:49,206 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b623803-9ab8-48c0-a09e-8ed971e5233c
2025-06-03 12:46:49,220 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-69375136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84901159', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7726095603296062406', 'uuid-lslong': '10762134220403452889'}, 'enable': 'true', 'created': '2025-06-03T12:46:46', 'last-modified': '2025-06-03T12:46:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997600'}
2025-06-03 12:46:49,226 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-03 12:46:49,226 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69375136 passed
2025-06-03 12:46:49,226 - DEBUG - ====Verifying policy data for ctest-vn-69375136 in API_Server ======
2025-06-03 12:46:49,226 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-03 12:46:49,232 - DEBUG - Requesting: http://10.0.0.38:8082/domain/07dcd119-2194-4f5b-b3c9-0833dd37312d
2025-06-03 12:46:49,247 - DEBUG - Requesting: http://10.0.0.38:8082/project/b601a238-b542-4022-9f21-79a49c35ed89
2025-06-03 12:46:49,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b389b04-3f2b-4bc6-955a-c80da0392bd9
2025-06-03 12:46:49,334 - DEBUG - ==>Verifying data for policy with id: 7754b133-e7d7-40d8-9176-de6614a1aaa9, fqn: ['default-domain', 'ctest-TestBasicPolicy-84901159', 'ctest-policy-allow-all-46233262']
2025-06-03 12:46:49,334 - INFO - VN ctest-vn-69375136 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-03 12:46:49,334 - DEBUG - Verifying the vn in opserver
2025-06-03 12:46:49,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-69375136 virtual network link through opserver 10.0.0.38
2025-06-03 12:46:49,335 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-03 12:46:49,671 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-03 12:46:49,728 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-69375136', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-69375136?flat'}
2025-06-03 12:46:49,728 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-69375136 is found in opserver
2025-06-03 12:46:49,737 - DEBUG - Do not have enough data to verify VN in agent
2025-06-03 12:46:49,742 - DEBUG - VRF ids for VN ctest-vn-69375136: {}
2025-06-03 12:46:49,742 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-03 12:46:49,747 - DEBUG - Requesting: http://10.0.0.38:8082/domain/07dcd119-2194-4f5b-b3c9-0833dd37312d
2025-06-03 12:46:49,759 - DEBUG - Requesting: http://10.0.0.38:8082/project/b601a238-b542-4022-9f21-79a49c35ed89
2025-06-03 12:46:49,831 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2ad92071-be9f-4887-9c46-e76105ebf097
2025-06-03 12:46:49,846 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2ad92071-be9f-4887-9c46-e76105ebf097
2025-06-03 12:46:49,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a6a66e2-7cc3-47fc-8b92-68e29058a8c4
2025-06-03 12:46:49,866 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a6a66e2-7cc3-47fc-8b92-68e29058a8c4
2025-06-03 12:46:49,874 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/50635d1e-36cc-4aaf-a503-08be03f671aa
2025-06-03 12:46:49,882 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-03 12:46:49,882 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2ad92071-be9f-4887-9c46-e76105ebf097
2025-06-03 12:46:49,893 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a6a66e2-7cc3-47fc-8b92-68e29058a8c4
2025-06-03 12:46:49,908 - INFO - Verified VN network id 8 for VN 2ad92071-be9f-4887-9c46-e76105ebf097
2025-06-03 12:46:49,908 - INFO - Verifications in API Server for VN ctest-vn-38569271 passed
2025-06-03 12:46:49,908 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2ad92071-be9f-4887-9c46-e76105ebf097
2025-06-03 12:46:49,919 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a6a66e2-7cc3-47fc-8b92-68e29058a8c4
2025-06-03 12:46:49,926 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a6a66e2-7cc3-47fc-8b92-68e29058a8c4
2025-06-03 12:46:49,934 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/50635d1e-36cc-4aaf-a503-08be03f671aa
2025-06-03 12:46:49,948 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-38569271', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84901159', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3087534692440688775', 'uuid-lslong': '11260942322183696535'}, 'enable': 'true', 'created': '2025-06-03T12:46:47', 'last-modified': '2025-06-03T12:46:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.483629'}
2025-06-03 12:46:49,953 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-03 12:46:49,953 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38569271 passed
2025-06-03 12:46:49,953 - DEBUG - ====Verifying policy data for ctest-vn-38569271 in API_Server ======
2025-06-03 12:46:49,954 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-03 12:46:49,960 - DEBUG - Requesting: http://10.0.0.38:8082/domain/07dcd119-2194-4f5b-b3c9-0833dd37312d
2025-06-03 12:46:49,973 - DEBUG - Requesting: http://10.0.0.38:8082/project/b601a238-b542-4022-9f21-79a49c35ed89
2025-06-03 12:46:50,053 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2ad92071-be9f-4887-9c46-e76105ebf097
2025-06-03 12:46:50,065 - DEBUG - ==>Verifying data for policy with id: 7754b133-e7d7-40d8-9176-de6614a1aaa9, fqn: ['default-domain', 'ctest-TestBasicPolicy-84901159', 'ctest-policy-allow-all-46233262']
2025-06-03 12:46:50,065 - INFO - VN ctest-vn-38569271 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-03 12:46:50,065 - DEBUG - Verifying the vn in opserver
2025-06-03 12:46:50,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-38569271 virtual network link through opserver 10.0.0.38
2025-06-03 12:46:50,065 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-03 12:46:50,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-38569271', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-38569271?flat'}
2025-06-03 12:46:50,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84901159:ctest-vn-38569271 is found in opserver
2025-06-03 12:46:50,087 - DEBUG - Do not have enough data to verify VN in agent
2025-06-03 12:46:50,092 - DEBUG - VRF ids for VN ctest-vn-38569271: {}
2025-06-03 12:46:50,156 - DEBUG - Services list from nova: [