2025-11-20 14:34:45,529 - INFO - Domain Default found not creating
2025-11-20 14:34:45,699 - INFO - Project ctest-TestBasicPolicy-65620111 not found, creating it
2025-11-20 14:34:46,200 - INFO - Created Project:ctest-TestBasicPolicy-65620111, ID : 2feb7fa1-2f20-48f4-b6ed-40141fc56184
2025-11-20 14:34:47,870 - INFO - ================================================================================
2025-11-20 14:34:47,870 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-20 14:34:47,871 - 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-11-20 14:34:48,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.136': {'10.20.0.218': '0'}} with
2025-11-20 14:34:48,129 - INFO - Initial checks done. Running the testcase now
2025-11-20 14:34:48,129 - INFO -
2025-11-20 14:34:48,685 - DEBUG - Response for create_network : {'network': {'id': '0bdfdb34-e022-41c0-b8f8-23a969f4ecf4', 'name': 'ctest-vn-76727474', 'tenant_id': '2feb7fa12f2048f4b6ed40141fc56184', 'project_id': '2feb7fa12f2048f4b6ed40141fc56184', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65620111', 'ctest-vn-76727474'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 14:34:48,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d3eb63a-cf14-4e95-a3d5-bba9ae660060', 'name': '', 'tenant_id': '2feb7fa12f2048f4b6ed40141fc56184', 'network_id': '0bdfdb34-e022-41c0-b8f8-23a969f4ecf4', 'ip_version': 4, 'cidr': '150.221.183.0/26', 'allocation_pools': [{'start': '150.221.183.2', 'end': '150.221.183.62'}], 'gateway_ip': '150.221.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.221.183.2', 'tags': [], 'project_id': '2feb7fa12f2048f4b6ed40141fc56184'}}
2025-11-20 14:34:48,899 - INFO - Created VN ctest-vn-76727474
2025-11-20 14:34:48,951 - DEBUG - VN ctest-vn-76727474 UUID is 0bdfdb34-e022-41c0-b8f8-23a969f4ecf4
2025-11-20 14:34:49,276 - DEBUG - Response for create_network : {'network': {'id': 'b50c0c10-58da-4c9b-8e44-06ef04bdf110', 'name': 'ctest-vn-23730095', 'tenant_id': '2feb7fa12f2048f4b6ed40141fc56184', 'project_id': '2feb7fa12f2048f4b6ed40141fc56184', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65620111', 'ctest-vn-23730095'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 14:34:49,495 - DEBUG - Response for create_subnet : {'subnet': {'id': '57e809d2-80b4-4aff-bcc2-bfda572652ab', 'name': '', 'tenant_id': '2feb7fa12f2048f4b6ed40141fc56184', 'network_id': 'b50c0c10-58da-4c9b-8e44-06ef04bdf110', 'ip_version': 4, 'cidr': '97.138.210.192/26', 'allocation_pools': [{'start': '97.138.210.194', 'end': '97.138.210.254'}], 'gateway_ip': '97.138.210.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.138.210.194', 'tags': [], 'project_id': '2feb7fa12f2048f4b6ed40141fc56184'}}
2025-11-20 14:34:49,515 - INFO - Created VN ctest-vn-23730095
2025-11-20 14:34:49,567 - DEBUG - VN ctest-vn-23730095 UUID is b50c0c10-58da-4c9b-8e44-06ef04bdf110
2025-11-20 14:34:49,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-76727474, 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-65620111:ctest-vn-23730095, 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-11-20 14:34:49,983 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0bdfdb34-e022-41c0-b8f8-23a969f4ecf4', 'name': 'ctest-vn-76727474', 'tenant_id': '2feb7fa12f2048f4b6ed40141fc56184', 'project_id': '2feb7fa12f2048f4b6ed40141fc56184', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d3eb63a-cf14-4e95-a3d5-bba9ae660060'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65620111', 'ctest-vn-76727474'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65620111', 'ctest-policy-allow-all-96145152']], 'subnet_ipam': [{'subnet_cidr': '150.221.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 14:34:50,325 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b50c0c10-58da-4c9b-8e44-06ef04bdf110', 'name': 'ctest-vn-23730095', 'tenant_id': '2feb7fa12f2048f4b6ed40141fc56184', 'project_id': '2feb7fa12f2048f4b6ed40141fc56184', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57e809d2-80b4-4aff-bcc2-bfda572652ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65620111', 'ctest-vn-23730095'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65620111', 'ctest-policy-allow-all-96145152']], 'subnet_ipam': [{'subnet_cidr': '97.138.210.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 14:34:50,519 - DEBUG - Requesting: http://10.0.0.136:8082/domains
2025-11-20 14:34:50,837 - DEBUG - Requesting: http://10.0.0.136:8082/domains
2025-11-20 14:34:50,886 - DEBUG - Requesting: http://10.0.0.136:8082/domain/20a2c035-69a8-436f-bf67-7a856b884082
2025-11-20 14:34:50,900 - DEBUG - Requesting: http://10.0.0.136:8082/project/2feb7fa1-2f20-48f4-b6ed-40141fc56184
2025-11-20 14:34:50,979 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/0bdfdb34-e022-41c0-b8f8-23a969f4ecf4
2025-11-20 14:34:50,990 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/0bdfdb34-e022-41c0-b8f8-23a969f4ecf4
2025-11-20 14:34:51,000 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/9da52532-3eec-4be8-9328-6dff7391575f
2025-11-20 14:34:51,009 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/9da52532-3eec-4be8-9328-6dff7391575f
2025-11-20 14:34:51,017 - DEBUG - Requesting: http://10.0.0.136:8082/route-target/e3d0a30d-61cd-4521-918c-dcc268e9600d
2025-11-20 14:34:51,024 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 14:34:51,024 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/0bdfdb34-e022-41c0-b8f8-23a969f4ecf4
2025-11-20 14:34:51,034 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/9da52532-3eec-4be8-9328-6dff7391575f
2025-11-20 14:34:51,050 - INFO - Verified VN network id 12 for VN 0bdfdb34-e022-41c0-b8f8-23a969f4ecf4
2025-11-20 14:34:51,050 - INFO - Verifications in API Server for VN ctest-vn-76727474 passed
2025-11-20 14:34:51,050 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/0bdfdb34-e022-41c0-b8f8-23a969f4ecf4
2025-11-20 14:34:51,062 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/9da52532-3eec-4be8-9328-6dff7391575f
2025-11-20 14:34:51,072 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/9da52532-3eec-4be8-9328-6dff7391575f
2025-11-20 14:34:51,081 - DEBUG - Requesting: http://10.0.0.136:8082/route-target/e3d0a30d-61cd-4521-918c-dcc268e9600d
2025-11-20 14:34:51,097 - DEBUG - Control-node 10.0.0.136 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-76727474', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65620111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '855643474368807360', 'uuid-lslong': '13328442307737087220'}, 'enable': 'true', 'created': '2025-11-20T14:34:48', 'last-modified': '2025-11-20T14:34:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.140335'}
2025-11-20 14:34:51,103 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 14:34:51,103 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76727474 passed
2025-11-20 14:34:51,103 - DEBUG - ====Verifying policy data for ctest-vn-76727474 in API_Server ======
2025-11-20 14:34:51,103 - DEBUG - Requesting: http://10.0.0.136:8082/domains
2025-11-20 14:34:51,108 - DEBUG - Requesting: http://10.0.0.136:8082/domain/20a2c035-69a8-436f-bf67-7a856b884082
2025-11-20 14:34:51,120 - DEBUG - Requesting: http://10.0.0.136:8082/project/2feb7fa1-2f20-48f4-b6ed-40141fc56184
2025-11-20 14:34:51,192 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/0bdfdb34-e022-41c0-b8f8-23a969f4ecf4
2025-11-20 14:34:51,203 - DEBUG - ==>Verifying data for policy with id: afd18d85-93a9-4b1d-9c35-af1454c5adf2, fqn: ['default-domain', 'ctest-TestBasicPolicy-65620111', 'ctest-policy-allow-all-96145152']
2025-11-20 14:34:51,203 - INFO - VN ctest-vn-76727474 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 14:34:51,203 - DEBUG - Verifying the vn in opserver
2025-11-20 14:34:51,203 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-76727474 virtual network link through opserver 10.0.0.136
2025-11-20 14:34:51,203 - DEBUG - Requesting: http://10.0.0.136:8081/analytics/uves/virtual-networks
2025-11-20 14:34:51,506 - DEBUG - Requesting: http://10.0.0.136:8081/analytics/uves/virtual-networks
2025-11-20 14:34:51,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-76727474', 'href': 'http://10.0.0.136:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-76727474?flat'}
2025-11-20 14:34:51,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-76727474 is found in opserver
2025-11-20 14:34:51,582 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 14:34:51,586 - DEBUG - VRF ids for VN ctest-vn-76727474: {}
2025-11-20 14:34:51,586 - DEBUG - Requesting: http://10.0.0.136:8082/domains
2025-11-20 14:34:51,593 - DEBUG - Requesting: http://10.0.0.136:8082/domain/20a2c035-69a8-436f-bf67-7a856b884082
2025-11-20 14:34:51,609 - DEBUG - Requesting: http://10.0.0.136:8082/project/2feb7fa1-2f20-48f4-b6ed-40141fc56184
2025-11-20 14:34:51,688 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/b50c0c10-58da-4c9b-8e44-06ef04bdf110
2025-11-20 14:34:51,704 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/b50c0c10-58da-4c9b-8e44-06ef04bdf110
2025-11-20 14:34:51,716 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/2e7008e9-27b5-4412-8077-9bbfab8f72db
2025-11-20 14:34:51,725 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/2e7008e9-27b5-4412-8077-9bbfab8f72db
2025-11-20 14:34:51,734 - DEBUG - Requesting: http://10.0.0.136:8082/route-target/ca9be386-e4ef-4ac2-bc82-ea2d9721fcad
2025-11-20 14:34:51,744 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 14:34:51,745 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/b50c0c10-58da-4c9b-8e44-06ef04bdf110
2025-11-20 14:34:51,756 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/2e7008e9-27b5-4412-8077-9bbfab8f72db
2025-11-20 14:34:51,773 - INFO - Verified VN network id 13 for VN b50c0c10-58da-4c9b-8e44-06ef04bdf110
2025-11-20 14:34:51,773 - INFO - Verifications in API Server for VN ctest-vn-23730095 passed
2025-11-20 14:34:51,773 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/b50c0c10-58da-4c9b-8e44-06ef04bdf110
2025-11-20 14:34:51,786 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/2e7008e9-27b5-4412-8077-9bbfab8f72db
2025-11-20 14:34:51,796 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/2e7008e9-27b5-4412-8077-9bbfab8f72db
2025-11-20 14:34:51,806 - DEBUG - Requesting: http://10.0.0.136:8082/route-target/ca9be386-e4ef-4ac2-bc82-ea2d9721fcad
2025-11-20 14:34:51,823 - DEBUG - Control-node 10.0.0.136 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-23730095', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65620111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13045815484935195803', 'uuid-lslong': '10251326275448598800'}, 'enable': 'true', 'created': '2025-11-20T14:34:49', 'last-modified': '2025-11-20T14:34:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.550256'}
2025-11-20 14:34:51,829 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 14:34:51,830 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23730095 passed
2025-11-20 14:34:51,830 - DEBUG - ====Verifying policy data for ctest-vn-23730095 in API_Server ======
2025-11-20 14:34:51,830 - DEBUG - Requesting: http://10.0.0.136:8082/domains
2025-11-20 14:34:51,836 - DEBUG - Requesting: http://10.0.0.136:8082/domain/20a2c035-69a8-436f-bf67-7a856b884082
2025-11-20 14:34:51,848 - DEBUG - Requesting: http://10.0.0.136:8082/project/2feb7fa1-2f20-48f4-b6ed-40141fc56184
2025-11-20 14:34:51,923 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/b50c0c10-58da-4c9b-8e44-06ef04bdf110
2025-11-20 14:34:51,941 - DEBUG - ==>Verifying data for policy with id: afd18d85-93a9-4b1d-9c35-af1454c5adf2, fqn: ['default-domain', 'ctest-TestBasicPolicy-65620111', 'ctest-policy-allow-all-96145152']
2025-11-20 14:34:51,941 - INFO - VN ctest-vn-23730095 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 14:34:51,941 - DEBUG - Verifying the vn in opserver
2025-11-20 14:34:51,941 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-23730095 virtual network link through opserver 10.0.0.136
2025-11-20 14:34:51,941 - DEBUG - Requesting: http://10.0.0.136:8081/analytics/uves/virtual-networks
2025-11-20 14:34:51,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-23730095', 'href': 'http://10.0.0.136:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-23730095?flat'}
2025-11-20 14:34:51,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65620111:ctest-vn-23730095 is found in opserver
2025-11-20 14:34:51,964 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 14:34:51,969 - DEBUG - VRF ids for VN ctest-vn-23730095: {}
2025-11-20 14:34:52,036 - DEBUG - Services list from nova: [