2025-08-11 10:01:29,742 - INFO - Domain Default found not creating
2025-08-11 10:01:29,886 - INFO - Project ctest-TestBasicPolicy-68214159 not found, creating it
2025-08-11 10:01:30,336 - INFO - Created Project:ctest-TestBasicPolicy-68214159, ID : e524bd02-c990-4698-89ff-60ac260062a3
2025-08-11 10:01:31,819 - INFO - ================================================================================
2025-08-11 10:01:31,819 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 10:01:31,819 - 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-08-11 10:01:32,083 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-08-11 10:01:32,083 - INFO - Initial checks done. Running the testcase now
2025-08-11 10:01:32,083 - INFO -
2025-08-11 10:01:32,654 - DEBUG - Response for create_network : {'network': {'id': 'c8c4b4af-6f1c-4d73-a630-60514af2d1d3', 'name': 'ctest-vn-59076364', 'tenant_id': 'e524bd02c990469889ff60ac260062a3', 'project_id': 'e524bd02c990469889ff60ac260062a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68214159', 'ctest-vn-59076364'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 10:01:32,834 - DEBUG - Response for create_subnet : {'subnet': {'id': '51ef8cc7-6e06-4472-a878-44a381842233', 'name': '', 'tenant_id': 'e524bd02c990469889ff60ac260062a3', 'network_id': 'c8c4b4af-6f1c-4d73-a630-60514af2d1d3', 'ip_version': 4, 'cidr': '47.56.92.0/26', 'allocation_pools': [{'start': '47.56.92.2', 'end': '47.56.92.62'}], 'gateway_ip': '47.56.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.56.92.2', 'tags': [], 'project_id': 'e524bd02c990469889ff60ac260062a3'}}
2025-08-11 10:01:32,853 - INFO - Created VN ctest-vn-59076364
2025-08-11 10:01:32,905 - DEBUG - VN ctest-vn-59076364 UUID is c8c4b4af-6f1c-4d73-a630-60514af2d1d3
2025-08-11 10:01:33,235 - DEBUG - Response for create_network : {'network': {'id': '82365bfc-ae7b-459d-95ef-47362b49aee2', 'name': 'ctest-vn-36203276', 'tenant_id': 'e524bd02c990469889ff60ac260062a3', 'project_id': 'e524bd02c990469889ff60ac260062a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68214159', 'ctest-vn-36203276'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 10:01:33,401 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c5b79f5-8aba-4fa7-81c8-e50b8594d117', 'name': '', 'tenant_id': 'e524bd02c990469889ff60ac260062a3', 'network_id': '82365bfc-ae7b-459d-95ef-47362b49aee2', 'ip_version': 4, 'cidr': '124.62.26.0/26', 'allocation_pools': [{'start': '124.62.26.2', 'end': '124.62.26.62'}], 'gateway_ip': '124.62.26.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.62.26.2', 'tags': [], 'project_id': 'e524bd02c990469889ff60ac260062a3'}}
2025-08-11 10:01:33,418 - INFO - Created VN ctest-vn-36203276
2025-08-11 10:01:33,469 - DEBUG - VN ctest-vn-36203276 UUID is 82365bfc-ae7b-459d-95ef-47362b49aee2
2025-08-11 10:01:33,583 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-59076364, 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-68214159:ctest-vn-36203276, 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-08-11 10:01:33,887 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8c4b4af-6f1c-4d73-a630-60514af2d1d3', 'name': 'ctest-vn-59076364', 'tenant_id': 'e524bd02c990469889ff60ac260062a3', 'project_id': 'e524bd02c990469889ff60ac260062a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51ef8cc7-6e06-4472-a878-44a381842233'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68214159', 'ctest-vn-59076364'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68214159', 'ctest-policy-allow-all-40365348']], 'subnet_ipam': [{'subnet_cidr': '47.56.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 10:01:34,118 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82365bfc-ae7b-459d-95ef-47362b49aee2', 'name': 'ctest-vn-36203276', 'tenant_id': 'e524bd02c990469889ff60ac260062a3', 'project_id': 'e524bd02c990469889ff60ac260062a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c5b79f5-8aba-4fa7-81c8-e50b8594d117'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68214159', 'ctest-vn-36203276'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68214159', 'ctest-policy-allow-all-40365348']], 'subnet_ipam': [{'subnet_cidr': '124.62.26.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 10:01:34,265 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 10:01:34,600 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 10:01:34,628 - DEBUG - Requesting: http://10.0.0.50:8082/domain/33249967-bcb4-4792-94ad-4a9762a2fd1e
2025-08-11 10:01:34,642 - DEBUG - Requesting: http://10.0.0.50:8082/project/e524bd02-c990-4698-89ff-60ac260062a3
2025-08-11 10:01:34,715 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8c4b4af-6f1c-4d73-a630-60514af2d1d3
2025-08-11 10:01:34,726 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8c4b4af-6f1c-4d73-a630-60514af2d1d3
2025-08-11 10:01:34,737 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23a26759-8ae6-47aa-80c5-afa78b8527f6
2025-08-11 10:01:34,745 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23a26759-8ae6-47aa-80c5-afa78b8527f6
2025-08-11 10:01:34,752 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9787082b-3227-49b5-b29b-7a5dc6be6954
2025-08-11 10:01:34,758 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 10:01:34,758 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8c4b4af-6f1c-4d73-a630-60514af2d1d3
2025-08-11 10:01:34,767 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23a26759-8ae6-47aa-80c5-afa78b8527f6
2025-08-11 10:01:34,781 - INFO - Verified VN network id 12 for VN c8c4b4af-6f1c-4d73-a630-60514af2d1d3
2025-08-11 10:01:34,781 - INFO - Verifications in API Server for VN ctest-vn-59076364 passed
2025-08-11 10:01:34,781 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8c4b4af-6f1c-4d73-a630-60514af2d1d3
2025-08-11 10:01:34,790 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23a26759-8ae6-47aa-80c5-afa78b8527f6
2025-08-11 10:01:34,797 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23a26759-8ae6-47aa-80c5-afa78b8527f6
2025-08-11 10:01:34,803 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9787082b-3227-49b5-b29b-7a5dc6be6954
2025-08-11 10:01:34,816 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-59076364', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68214159', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14466886568597278067', 'uuid-lslong': '11975177311444193747'}, 'enable': 'true', 'created': '2025-08-11T10:01:32', 'last-modified': '2025-08-11T10:01:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956761'}
2025-08-11 10:01:34,823 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 10:01:34,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59076364 passed
2025-08-11 10:01:34,823 - DEBUG - ====Verifying policy data for ctest-vn-59076364 in API_Server ======
2025-08-11 10:01:34,823 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 10:01:34,830 - DEBUG - Requesting: http://10.0.0.50:8082/domain/33249967-bcb4-4792-94ad-4a9762a2fd1e
2025-08-11 10:01:34,844 - DEBUG - Requesting: http://10.0.0.50:8082/project/e524bd02-c990-4698-89ff-60ac260062a3
2025-08-11 10:01:34,922 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8c4b4af-6f1c-4d73-a630-60514af2d1d3
2025-08-11 10:01:34,931 - DEBUG - ==>Verifying data for policy with id: 2ffbc0cf-3099-4ce3-8a95-f193b84ba7ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-68214159', 'ctest-policy-allow-all-40365348']
2025-08-11 10:01:34,931 - INFO - VN ctest-vn-59076364 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 10:01:34,931 - DEBUG - Verifying the vn in opserver
2025-08-11 10:01:34,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-59076364 virtual network link through opserver 10.0.0.50
2025-08-11 10:01:34,932 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 10:01:35,265 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 10:01:35,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-59076364', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-59076364?flat'}
2025-08-11 10:01:35,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-59076364 is found in opserver
2025-08-11 10:01:35,379 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 10:01:35,386 - DEBUG - VRF ids for VN ctest-vn-59076364: {}
2025-08-11 10:01:35,386 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 10:01:35,424 - DEBUG - Requesting: http://10.0.0.50:8082/domain/33249967-bcb4-4792-94ad-4a9762a2fd1e
2025-08-11 10:01:35,468 - DEBUG - Requesting: http://10.0.0.50:8082/project/e524bd02-c990-4698-89ff-60ac260062a3
2025-08-11 10:01:35,584 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82365bfc-ae7b-459d-95ef-47362b49aee2
2025-08-11 10:01:35,613 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82365bfc-ae7b-459d-95ef-47362b49aee2
2025-08-11 10:01:35,631 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/74846baf-7fd3-42ce-a05e-aa64d56ee9ab
2025-08-11 10:01:35,651 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/74846baf-7fd3-42ce-a05e-aa64d56ee9ab
2025-08-11 10:01:35,675 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/48e55c0b-9b00-4c5f-bf1a-40b3f96f1e58
2025-08-11 10:01:35,690 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 10:01:35,690 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82365bfc-ae7b-459d-95ef-47362b49aee2
2025-08-11 10:01:35,709 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/74846baf-7fd3-42ce-a05e-aa64d56ee9ab
2025-08-11 10:01:35,744 - INFO - Verified VN network id 13 for VN 82365bfc-ae7b-459d-95ef-47362b49aee2
2025-08-11 10:01:35,745 - INFO - Verifications in API Server for VN ctest-vn-36203276 passed
2025-08-11 10:01:35,745 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82365bfc-ae7b-459d-95ef-47362b49aee2
2025-08-11 10:01:35,762 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/74846baf-7fd3-42ce-a05e-aa64d56ee9ab
2025-08-11 10:01:35,775 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/74846baf-7fd3-42ce-a05e-aa64d56ee9ab
2025-08-11 10:01:35,789 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/48e55c0b-9b00-4c5f-bf1a-40b3f96f1e58
2025-08-11 10:01:35,825 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-36203276', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68214159', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9382788014490207645', 'uuid-lslong': '10803932329065164514'}, 'enable': 'true', 'created': '2025-08-11T10:01:33', 'last-modified': '2025-08-11T10:01:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.732128'}
2025-08-11 10:01:35,831 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 10:01:35,832 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36203276 passed
2025-08-11 10:01:35,832 - DEBUG - ====Verifying policy data for ctest-vn-36203276 in API_Server ======
2025-08-11 10:01:35,832 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 10:01:35,841 - DEBUG - Requesting: http://10.0.0.50:8082/domain/33249967-bcb4-4792-94ad-4a9762a2fd1e
2025-08-11 10:01:35,928 - DEBUG - Requesting: http://10.0.0.50:8082/project/e524bd02-c990-4698-89ff-60ac260062a3
2025-08-11 10:01:36,048 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82365bfc-ae7b-459d-95ef-47362b49aee2
2025-08-11 10:01:36,070 - DEBUG - ==>Verifying data for policy with id: 2ffbc0cf-3099-4ce3-8a95-f193b84ba7ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-68214159', 'ctest-policy-allow-all-40365348']
2025-08-11 10:01:36,070 - INFO - VN ctest-vn-36203276 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 10:01:36,070 - DEBUG - Verifying the vn in opserver
2025-08-11 10:01:36,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-36203276 virtual network link through opserver 10.0.0.50
2025-08-11 10:01:36,070 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 10:01:36,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-36203276', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-36203276?flat'}
2025-08-11 10:01:36,085 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68214159:ctest-vn-36203276 is found in opserver
2025-08-11 10:01:36,104 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 10:01:36,111 - DEBUG - VRF ids for VN ctest-vn-36203276: {}
2025-08-11 10:01:36,176 - DEBUG - Services list from nova: [