2025-10-10 03:52:20,110 - INFO - Domain Default found not creating
2025-10-10 03:52:20,246 - INFO - Project ctest-TestBasicPolicy-56190284 not found, creating it
2025-10-10 03:52:20,683 - INFO - Created Project:ctest-TestBasicPolicy-56190284, ID : b5f7915f-3fde-43ca-8925-98a6db0438e9
2025-10-10 03:52:22,093 - INFO - ================================================================================
2025-10-10 03:52:22,093 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-10 03:52:22,093 - 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-10 03:52:22,357 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-10-10 03:52:22,357 - INFO - Initial checks done. Running the testcase now
2025-10-10 03:52:22,357 - INFO -
2025-10-10 03:52:22,938 - DEBUG - Response for create_network : {'network': {'id': '9481296b-b2f0-4833-a02e-71ba95c1e4b0', 'name': 'ctest-vn-23303157', 'tenant_id': 'b5f7915f3fde43ca892598a6db0438e9', 'project_id': 'b5f7915f3fde43ca892598a6db0438e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56190284', 'ctest-vn-23303157'], 'port_security_enabled': True, 'description': ''}}
2025-10-10 03:52:23,145 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b614ba6-d3f2-461a-a8f5-4304ebbc2d7d', 'name': '', 'tenant_id': 'b5f7915f3fde43ca892598a6db0438e9', 'network_id': '9481296b-b2f0-4833-a02e-71ba95c1e4b0', 'ip_version': 4, 'cidr': '31.239.24.0/26', 'allocation_pools': [{'start': '31.239.24.2', 'end': '31.239.24.62'}], 'gateway_ip': '31.239.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.239.24.2', 'tags': [], 'project_id': 'b5f7915f3fde43ca892598a6db0438e9'}}
2025-10-10 03:52:23,161 - INFO - Created VN ctest-vn-23303157
2025-10-10 03:52:23,212 - DEBUG - VN ctest-vn-23303157 UUID is 9481296b-b2f0-4833-a02e-71ba95c1e4b0
2025-10-10 03:52:23,535 - DEBUG - Response for create_network : {'network': {'id': 'ff97d146-81d7-401c-a26a-c0e9d3cc481b', 'name': 'ctest-vn-19060454', 'tenant_id': 'b5f7915f3fde43ca892598a6db0438e9', 'project_id': 'b5f7915f3fde43ca892598a6db0438e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56190284', 'ctest-vn-19060454'], 'port_security_enabled': True, 'description': ''}}
2025-10-10 03:52:23,717 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5a94967-10aa-4bf3-9da6-44672636ec9d', 'name': '', 'tenant_id': 'b5f7915f3fde43ca892598a6db0438e9', 'network_id': 'ff97d146-81d7-401c-a26a-c0e9d3cc481b', 'ip_version': 4, 'cidr': '28.79.44.128/26', 'allocation_pools': [{'start': '28.79.44.130', 'end': '28.79.44.190'}], 'gateway_ip': '28.79.44.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.79.44.130', 'tags': [], 'project_id': 'b5f7915f3fde43ca892598a6db0438e9'}}
2025-10-10 03:52:23,733 - INFO - Created VN ctest-vn-19060454
2025-10-10 03:52:23,784 - DEBUG - VN ctest-vn-19060454 UUID is ff97d146-81d7-401c-a26a-c0e9d3cc481b
2025-10-10 03:52:23,932 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-23303157, 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-56190284:ctest-vn-19060454, 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-10 03:52:24,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9481296b-b2f0-4833-a02e-71ba95c1e4b0', 'name': 'ctest-vn-23303157', 'tenant_id': 'b5f7915f3fde43ca892598a6db0438e9', 'project_id': 'b5f7915f3fde43ca892598a6db0438e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b614ba6-d3f2-461a-a8f5-4304ebbc2d7d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56190284', 'ctest-vn-23303157'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56190284', 'ctest-policy-allow-all-73613161']], 'subnet_ipam': [{'subnet_cidr': '31.239.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-10 03:52:24,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff97d146-81d7-401c-a26a-c0e9d3cc481b', 'name': 'ctest-vn-19060454', 'tenant_id': 'b5f7915f3fde43ca892598a6db0438e9', 'project_id': 'b5f7915f3fde43ca892598a6db0438e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5a94967-10aa-4bf3-9da6-44672636ec9d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56190284', 'ctest-vn-19060454'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56190284', 'ctest-policy-allow-all-73613161']], 'subnet_ipam': [{'subnet_cidr': '28.79.44.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-10 03:52:24,604 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-10 03:52:24,905 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-10 03:52:24,938 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4a1ce052-c65e-46fc-8ab3-1ac107dd9180
2025-10-10 03:52:24,949 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5f7915f-3fde-43ca-8925-98a6db0438e9
2025-10-10 03:52:25,024 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9481296b-b2f0-4833-a02e-71ba95c1e4b0
2025-10-10 03:52:25,034 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9481296b-b2f0-4833-a02e-71ba95c1e4b0
2025-10-10 03:52:25,042 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1d7b7033-3953-44eb-893b-9b8289497efa
2025-10-10 03:52:25,048 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1d7b7033-3953-44eb-893b-9b8289497efa
2025-10-10 03:52:25,055 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b6569db7-ecbe-4af0-b84e-6e4500f28d42
2025-10-10 03:52:25,061 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-10 03:52:25,061 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9481296b-b2f0-4833-a02e-71ba95c1e4b0
2025-10-10 03:52:25,069 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1d7b7033-3953-44eb-893b-9b8289497efa
2025-10-10 03:52:25,083 - INFO - Verified VN network id 11 for VN 9481296b-b2f0-4833-a02e-71ba95c1e4b0
2025-10-10 03:52:25,083 - INFO - Verifications in API Server for VN ctest-vn-23303157 passed
2025-10-10 03:52:25,083 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9481296b-b2f0-4833-a02e-71ba95c1e4b0
2025-10-10 03:52:25,092 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1d7b7033-3953-44eb-893b-9b8289497efa
2025-10-10 03:52:25,099 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1d7b7033-3953-44eb-893b-9b8289497efa
2025-10-10 03:52:25,105 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b6569db7-ecbe-4af0-b84e-6e4500f28d42
2025-10-10 03:52:25,116 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-23303157', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56190284', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10700879732149340211', 'uuid-lslong': '11542287941187527856'}, 'enable': 'true', 'created': '2025-10-10T03:52:22', 'last-modified': '2025-10-10T03:52:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914997'}
2025-10-10 03:52:25,124 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-10 03:52:25,124 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23303157 passed
2025-10-10 03:52:25,124 - DEBUG - ====Verifying policy data for ctest-vn-23303157 in API_Server ======
2025-10-10 03:52:25,124 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-10 03:52:25,129 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4a1ce052-c65e-46fc-8ab3-1ac107dd9180
2025-10-10 03:52:25,139 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5f7915f-3fde-43ca-8925-98a6db0438e9
2025-10-10 03:52:25,211 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9481296b-b2f0-4833-a02e-71ba95c1e4b0
2025-10-10 03:52:25,223 - DEBUG - ==>Verifying data for policy with id: ce0dd3f7-d272-43df-bfa3-fa4afe4a84d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-56190284', 'ctest-policy-allow-all-73613161']
2025-10-10 03:52:25,223 - INFO - VN ctest-vn-23303157 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-10 03:52:25,223 - DEBUG - Verifying the vn in opserver
2025-10-10 03:52:25,223 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-23303157 virtual network link through opserver 10.0.0.33
2025-10-10 03:52:25,224 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-10 03:52:25,516 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-10 03:52:25,577 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-23303157', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-23303157?flat'}
2025-10-10 03:52:25,577 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-23303157 is found in opserver
2025-10-10 03:52:25,585 - DEBUG - Do not have enough data to verify VN in agent
2025-10-10 03:52:25,589 - DEBUG - VRF ids for VN ctest-vn-23303157: {}
2025-10-10 03:52:25,589 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-10 03:52:25,594 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4a1ce052-c65e-46fc-8ab3-1ac107dd9180
2025-10-10 03:52:25,604 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5f7915f-3fde-43ca-8925-98a6db0438e9
2025-10-10 03:52:25,676 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ff97d146-81d7-401c-a26a-c0e9d3cc481b
2025-10-10 03:52:25,688 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ff97d146-81d7-401c-a26a-c0e9d3cc481b
2025-10-10 03:52:25,696 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/849da87c-6a27-42d4-824c-b3138ecb42e2
2025-10-10 03:52:25,701 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/849da87c-6a27-42d4-824c-b3138ecb42e2
2025-10-10 03:52:25,706 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ca6519f1-36e3-4558-9f2a-755bbb889c98
2025-10-10 03:52:25,711 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-10 03:52:25,711 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ff97d146-81d7-401c-a26a-c0e9d3cc481b
2025-10-10 03:52:25,719 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/849da87c-6a27-42d4-824c-b3138ecb42e2
2025-10-10 03:52:25,729 - INFO - Verified VN network id 12 for VN ff97d146-81d7-401c-a26a-c0e9d3cc481b
2025-10-10 03:52:25,729 - INFO - Verifications in API Server for VN ctest-vn-19060454 passed
2025-10-10 03:52:25,729 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ff97d146-81d7-401c-a26a-c0e9d3cc481b
2025-10-10 03:52:25,737 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/849da87c-6a27-42d4-824c-b3138ecb42e2
2025-10-10 03:52:25,743 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/849da87c-6a27-42d4-824c-b3138ecb42e2
2025-10-10 03:52:25,748 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ca6519f1-36e3-4558-9f2a-755bbb889c98
2025-10-10 03:52:25,758 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-19060454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56190284', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18417419301911216156', 'uuid-lslong': '11703378692188948507'}, 'enable': 'true', 'created': '2025-10-10T03:52:23', 'last-modified': '2025-10-10T03:52:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.323399'}
2025-10-10 03:52:25,762 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-10 03:52:25,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19060454 passed
2025-10-10 03:52:25,762 - DEBUG - ====Verifying policy data for ctest-vn-19060454 in API_Server ======
2025-10-10 03:52:25,762 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-10 03:52:25,767 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4a1ce052-c65e-46fc-8ab3-1ac107dd9180
2025-10-10 03:52:25,777 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5f7915f-3fde-43ca-8925-98a6db0438e9
2025-10-10 03:52:25,845 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ff97d146-81d7-401c-a26a-c0e9d3cc481b
2025-10-10 03:52:25,854 - DEBUG - ==>Verifying data for policy with id: ce0dd3f7-d272-43df-bfa3-fa4afe4a84d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-56190284', 'ctest-policy-allow-all-73613161']
2025-10-10 03:52:25,854 - INFO - VN ctest-vn-19060454 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-10 03:52:25,854 - DEBUG - Verifying the vn in opserver
2025-10-10 03:52:25,854 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-19060454 virtual network link through opserver 10.0.0.33
2025-10-10 03:52:25,854 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-10 03:52:25,867 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-19060454', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-19060454?flat'}
2025-10-10 03:52:25,867 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56190284:ctest-vn-19060454 is found in opserver
2025-10-10 03:52:25,876 - DEBUG - Do not have enough data to verify VN in agent
2025-10-10 03:52:25,880 - DEBUG - VRF ids for VN ctest-vn-19060454: {}
2025-10-10 03:52:25,943 - DEBUG - Services list from nova: [