2025-07-19 08:04:07,164 - INFO - Domain Default found not creating
2025-07-19 08:04:07,513 - INFO - Project ctest-TestBasicPolicy-28776157 not found, creating it
2025-07-19 08:04:08,297 - INFO - Created Project:ctest-TestBasicPolicy-28776157, ID : 986a509a-ed6a-4f65-a0b0-071a67966595
2025-07-19 08:04:10,605 - INFO - ================================================================================
2025-07-19 08:04:10,605 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-19 08:04:10,606 - 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-07-19 08:04:10,938 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.25': '0'}} with
2025-07-19 08:04:10,938 - INFO - Initial checks done. Running the testcase now
2025-07-19 08:04:10,938 - INFO -
2025-07-19 08:04:11,851 - DEBUG - Response for create_network : {'network': {'id': '66b9210e-7440-496b-b28e-00f8edc8adcf', 'name': 'ctest-vn-01297102', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'project_id': '986a509aed6a4f65a0b0071a67966595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-vn-01297102'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 08:04:12,144 - DEBUG - Response for create_subnet : {'subnet': {'id': '090d73ab-eabe-4e28-84c3-6ecc68ced106', 'name': '', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'network_id': '66b9210e-7440-496b-b28e-00f8edc8adcf', 'ip_version': 4, 'cidr': '124.161.63.0/26', 'allocation_pools': [{'start': '124.161.63.2', 'end': '124.161.63.62'}], 'gateway_ip': '124.161.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.161.63.2', 'tags': [], 'project_id': '986a509aed6a4f65a0b0071a67966595'}}
2025-07-19 08:04:12,192 - INFO - Created VN ctest-vn-01297102
2025-07-19 08:04:12,250 - DEBUG - VN ctest-vn-01297102 UUID is 66b9210e-7440-496b-b28e-00f8edc8adcf
2025-07-19 08:04:12,797 - DEBUG - Response for create_network : {'network': {'id': '2c1dc132-5451-43cc-ab77-d52f7f0d7699', 'name': 'ctest-vn-25550856', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'project_id': '986a509aed6a4f65a0b0071a67966595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-vn-25550856'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 08:04:13,085 - DEBUG - Response for create_subnet : {'subnet': {'id': '73f8520e-f04f-4a6a-bc05-22940dbb0db0', 'name': '', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'network_id': '2c1dc132-5451-43cc-ab77-d52f7f0d7699', 'ip_version': 4, 'cidr': '124.72.180.192/26', 'allocation_pools': [{'start': '124.72.180.194', 'end': '124.72.180.254'}], 'gateway_ip': '124.72.180.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.72.180.194', 'tags': [], 'project_id': '986a509aed6a4f65a0b0071a67966595'}}
2025-07-19 08:04:13,126 - INFO - Created VN ctest-vn-25550856
2025-07-19 08:04:13,201 - DEBUG - VN ctest-vn-25550856 UUID is 2c1dc132-5451-43cc-ab77-d52f7f0d7699
2025-07-19 08:04:13,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102, 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-28776157:ctest-vn-25550856, 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-07-19 08:04:13,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66b9210e-7440-496b-b28e-00f8edc8adcf', 'name': 'ctest-vn-01297102', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'project_id': '986a509aed6a4f65a0b0071a67966595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['090d73ab-eabe-4e28-84c3-6ecc68ced106'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-vn-01297102'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-policy-allow-all-39924497']], 'subnet_ipam': [{'subnet_cidr': '124.161.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 08:04:14,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c1dc132-5451-43cc-ab77-d52f7f0d7699', 'name': 'ctest-vn-25550856', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'project_id': '986a509aed6a4f65a0b0071a67966595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73f8520e-f04f-4a6a-bc05-22940dbb0db0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-vn-25550856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-policy-allow-all-39924497']], 'subnet_ipam': [{'subnet_cidr': '124.72.180.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 08:04:14,494 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-19 08:04:14,880 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-19 08:04:14,951 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda
2025-07-19 08:04:14,980 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595
2025-07-19 08:04:15,116 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf
2025-07-19 08:04:15,154 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf
2025-07-19 08:04:15,190 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a
2025-07-19 08:04:15,211 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a
2025-07-19 08:04:15,230 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/b10a045c-87c7-402a-9de8-057d862ba916
2025-07-19 08:04:15,248 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 08:04:15,248 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf
2025-07-19 08:04:15,275 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a
2025-07-19 08:04:15,317 - INFO - Verified VN network id 8 for VN 66b9210e-7440-496b-b28e-00f8edc8adcf
2025-07-19 08:04:15,318 - INFO - Verifications in API Server for VN ctest-vn-01297102 passed
2025-07-19 08:04:15,318 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf
2025-07-19 08:04:15,346 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a
2025-07-19 08:04:15,366 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a
2025-07-19 08:04:15,390 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/b10a045c-87c7-402a-9de8-057d862ba916
2025-07-19 08:04:15,434 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28776157', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7401983808523749739', 'uuid-lslong': '12866222254585327055'}, 'enable': 'true', 'created': '2025-07-19T08:04:11', 'last-modified': '2025-07-19T08:04:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.577873'}
2025-07-19 08:04:15,453 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 08:04:15,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01297102 passed
2025-07-19 08:04:15,454 - DEBUG - ====Verifying policy data for ctest-vn-01297102 in API_Server ======
2025-07-19 08:04:15,454 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-19 08:04:15,466 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda
2025-07-19 08:04:15,500 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595
2025-07-19 08:04:15,604 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf
2025-07-19 08:04:15,632 - DEBUG - ==>Verifying data for policy with id: d322a481-d209-4b83-b4a4-2ca459c9300f, fqn: ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-policy-allow-all-39924497']
2025-07-19 08:04:15,633 - INFO - VN ctest-vn-01297102 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 08:04:15,633 - DEBUG - Verifying the vn in opserver
2025-07-19 08:04:15,633 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102 virtual network link through opserver 10.0.0.137
2025-07-19 08:04:15,633 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-07-19 08:04:15,979 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-07-19 08:04:16,087 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102?flat'}
2025-07-19 08:04:16,087 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102 is found in opserver
2025-07-19 08:04:16,129 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 08:04:16,144 - DEBUG - VRF ids for VN ctest-vn-01297102: {}
2025-07-19 08:04:16,145 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-19 08:04:16,161 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda
2025-07-19 08:04:16,202 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595
2025-07-19 08:04:16,322 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699
2025-07-19 08:04:16,348 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699
2025-07-19 08:04:16,373 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c
2025-07-19 08:04:16,392 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c
2025-07-19 08:04:16,413 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/5f279d55-a178-452c-b912-dcb70765af67
2025-07-19 08:04:16,435 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 08:04:16,436 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699
2025-07-19 08:04:16,463 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c
2025-07-19 08:04:16,497 - INFO - Verified VN network id 9 for VN 2c1dc132-5451-43cc-ab77-d52f7f0d7699
2025-07-19 08:04:16,497 - INFO - Verifications in API Server for VN ctest-vn-25550856 passed
2025-07-19 08:04:16,497 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699
2025-07-19 08:04:16,525 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c
2025-07-19 08:04:16,549 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c
2025-07-19 08:04:16,573 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/5f279d55-a178-452c-b912-dcb70765af67
2025-07-19 08:04:16,613 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28776157', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3178909333900575692', 'uuid-lslong': '12355578502686013081'}, 'enable': 'true', 'created': '2025-07-19T08:04:12', 'last-modified': '2025-07-19T08:04:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.387509'}
2025-07-19 08:04:16,634 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 08:04:16,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25550856 passed
2025-07-19 08:04:16,635 - DEBUG - ====Verifying policy data for ctest-vn-25550856 in API_Server ======
2025-07-19 08:04:16,635 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-19 08:04:16,656 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda
2025-07-19 08:04:16,697 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595
2025-07-19 08:04:16,826 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699
2025-07-19 08:04:16,856 - DEBUG - ==>Verifying data for policy with id: d322a481-d209-4b83-b4a4-2ca459c9300f, fqn: ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-policy-allow-all-39924497']
2025-07-19 08:04:16,856 - INFO - VN ctest-vn-25550856 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 08:04:16,856 - DEBUG - Verifying the vn in opserver
2025-07-19 08:04:16,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856 virtual network link through opserver 10.0.0.137
2025-07-19 08:04:16,856 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-07-19 08:04:16,886 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856?flat'}
2025-07-19 08:04:16,886 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856 is found in opserver
2025-07-19 08:04:16,920 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 08:04:16,936 - DEBUG - VRF ids for VN ctest-vn-25550856: {}
2025-07-19 08:04:17,088 - DEBUG - Services list from nova: [