2025-09-21 12:49:21,753 - INFO - Domain Default found not creating
2025-09-21 12:49:21,879 - INFO - Project ctest-TestBasicPolicy-84232765 not found, creating it
2025-09-21 12:49:22,337 - INFO - Created Project:ctest-TestBasicPolicy-84232765, ID : 8a54d7a7-b19b-4910-b36f-74edf8e51d20
2025-09-21 12:49:23,700 - INFO - ================================================================================
2025-09-21 12:49:23,700 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-21 12:49:23,700 - 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-09-21 12:49:23,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-09-21 12:49:23,949 - INFO - Initial checks done. Running the testcase now
2025-09-21 12:49:23,949 - INFO -
2025-09-21 12:49:24,451 - DEBUG - Response for create_network : {'network': {'id': 'c40afcc8-bc7b-4c72-951a-04dce2f5b68a', 'name': 'ctest-vn-89827142', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-vn-89827142'], 'port_security_enabled': True, 'description': ''}}
2025-09-21 12:49:24,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '0438a891-d07f-4250-a0f1-8c080a19a8aa', 'name': '', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'network_id': 'c40afcc8-bc7b-4c72-951a-04dce2f5b68a', 'ip_version': 4, 'cidr': '214.102.155.192/26', 'allocation_pools': [{'start': '214.102.155.194', 'end': '214.102.155.254'}], 'gateway_ip': '214.102.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.102.155.194', 'tags': [], 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20'}}
2025-09-21 12:49:24,655 - INFO - Created VN ctest-vn-89827142
2025-09-21 12:49:24,704 - DEBUG - VN ctest-vn-89827142 UUID is c40afcc8-bc7b-4c72-951a-04dce2f5b68a
2025-09-21 12:49:25,015 - DEBUG - Response for create_network : {'network': {'id': '7d5d9ba7-6cc7-4b5b-9818-341ea3d97358', 'name': 'ctest-vn-30388571', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-vn-30388571'], 'port_security_enabled': True, 'description': ''}}
2025-09-21 12:49:25,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b1bea70-4e45-424c-a7da-1ca1131787ab', 'name': '', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'network_id': '7d5d9ba7-6cc7-4b5b-9818-341ea3d97358', 'ip_version': 4, 'cidr': '5.42.123.0/26', 'allocation_pools': [{'start': '5.42.123.2', 'end': '5.42.123.62'}], 'gateway_ip': '5.42.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.42.123.2', 'tags': [], 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20'}}
2025-09-21 12:49:25,224 - INFO - Created VN ctest-vn-30388571
2025-09-21 12:49:25,276 - DEBUG - VN ctest-vn-30388571 UUID is 7d5d9ba7-6cc7-4b5b-9818-341ea3d97358
2025-09-21 12:49:25,420 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142, 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-84232765:ctest-vn-30388571, 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-09-21 12:49:25,698 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c40afcc8-bc7b-4c72-951a-04dce2f5b68a', 'name': 'ctest-vn-89827142', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0438a891-d07f-4250-a0f1-8c080a19a8aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-vn-89827142'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-policy-allow-all-45767295']], 'subnet_ipam': [{'subnet_cidr': '214.102.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-21 12:49:25,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d5d9ba7-6cc7-4b5b-9818-341ea3d97358', 'name': 'ctest-vn-30388571', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b1bea70-4e45-424c-a7da-1ca1131787ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-vn-30388571'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-policy-allow-all-45767295']], 'subnet_ipam': [{'subnet_cidr': '5.42.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-21 12:49:26,108 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-21 12:49:26,403 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-21 12:49:26,431 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1
2025-09-21 12:49:26,441 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20
2025-09-21 12:49:26,512 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a
2025-09-21 12:49:26,520 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a
2025-09-21 12:49:26,528 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55
2025-09-21 12:49:26,533 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55
2025-09-21 12:49:26,539 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c619bdc-24f5-435e-872d-cc5edff59fe2
2025-09-21 12:49:26,546 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-21 12:49:26,546 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a
2025-09-21 12:49:26,554 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55
2025-09-21 12:49:26,567 - INFO - Verified VN network id 11 for VN c40afcc8-bc7b-4c72-951a-04dce2f5b68a
2025-09-21 12:49:26,568 - INFO - Verifications in API Server for VN ctest-vn-89827142 passed
2025-09-21 12:49:26,568 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a
2025-09-21 12:49:26,577 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55
2025-09-21 12:49:26,584 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55
2025-09-21 12:49:26,590 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c619bdc-24f5-435e-872d-cc5edff59fe2
2025-09-21 12:49:26,600 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84232765', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14126381120286837874', 'uuid-lslong': '10743905207792809610'}, 'enable': 'true', 'created': '2025-09-21T12:49:24', 'last-modified': '2025-09-21T12:49:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920797'}
2025-09-21 12:49:26,604 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-21 12:49:26,605 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89827142 passed
2025-09-21 12:49:26,605 - DEBUG - ====Verifying policy data for ctest-vn-89827142 in API_Server ======
2025-09-21 12:49:26,605 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-21 12:49:26,609 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1
2025-09-21 12:49:26,617 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20
2025-09-21 12:49:26,689 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a
2025-09-21 12:49:26,697 - DEBUG - ==>Verifying data for policy with id: 0323ba99-ddc0-4028-a11c-4c6317b9b220, fqn: ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-policy-allow-all-45767295']
2025-09-21 12:49:26,697 - INFO - VN ctest-vn-89827142 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-21 12:49:26,697 - DEBUG - Verifying the vn in opserver
2025-09-21 12:49:26,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142 virtual network link through opserver 10.0.0.50
2025-09-21 12:49:26,697 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-21 12:49:26,986 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-21 12:49:27,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142?flat'}
2025-09-21 12:49:27,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142 is found in opserver
2025-09-21 12:49:27,041 - DEBUG - Do not have enough data to verify VN in agent
2025-09-21 12:49:27,045 - DEBUG - VRF ids for VN ctest-vn-89827142: {}
2025-09-21 12:49:27,045 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-21 12:49:27,049 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1
2025-09-21 12:49:27,058 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20
2025-09-21 12:49:27,124 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358
2025-09-21 12:49:27,135 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358
2025-09-21 12:49:27,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0
2025-09-21 12:49:27,148 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0
2025-09-21 12:49:27,153 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6e53c526-bedb-4d2d-a7ab-1033ed9d5a25
2025-09-21 12:49:27,159 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-21 12:49:27,159 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358
2025-09-21 12:49:27,167 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0
2025-09-21 12:49:27,178 - INFO - Verified VN network id 12 for VN 7d5d9ba7-6cc7-4b5b-9818-341ea3d97358
2025-09-21 12:49:27,178 - INFO - Verifications in API Server for VN ctest-vn-30388571 passed
2025-09-21 12:49:27,178 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358
2025-09-21 12:49:27,187 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0
2025-09-21 12:49:27,193 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0
2025-09-21 12:49:27,198 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6e53c526-bedb-4d2d-a7ab-1033ed9d5a25
2025-09-21 12:49:27,207 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84232765', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9033547570961927003', 'uuid-lslong': '10959566999408702296'}, 'enable': 'true', 'created': '2025-09-21T12:49:24', 'last-modified': '2025-09-21T12:49:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.309332'}
2025-09-21 12:49:27,212 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-21 12:49:27,212 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30388571 passed
2025-09-21 12:49:27,212 - DEBUG - ====Verifying policy data for ctest-vn-30388571 in API_Server ======
2025-09-21 12:49:27,212 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-21 12:49:27,216 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1
2025-09-21 12:49:27,224 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20
2025-09-21 12:49:27,295 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358
2025-09-21 12:49:27,303 - DEBUG - ==>Verifying data for policy with id: 0323ba99-ddc0-4028-a11c-4c6317b9b220, fqn: ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-policy-allow-all-45767295']
2025-09-21 12:49:27,303 - INFO - VN ctest-vn-30388571 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-21 12:49:27,303 - DEBUG - Verifying the vn in opserver
2025-09-21 12:49:27,303 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571 virtual network link through opserver 10.0.0.50
2025-09-21 12:49:27,303 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-21 12:49:27,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571?flat'}
2025-09-21 12:49:27,311 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571 is found in opserver
2025-09-21 12:49:27,319 - DEBUG - Do not have enough data to verify VN in agent
2025-09-21 12:49:27,323 - DEBUG - VRF ids for VN ctest-vn-30388571: {}
2025-09-21 12:49:27,369 - DEBUG - Services list from nova: [