2025-11-20 13:43:50,311 - INFO - Domain Default found not creating
2025-11-20 13:43:50,659 - INFO - Project ctest-TestBasicPolicy-66045427 not found, creating it
2025-11-20 13:43:51,362 - INFO - Created Project:ctest-TestBasicPolicy-66045427, ID : 181ca0c4-e175-4f36-b4dd-ace7aae79ada
2025-11-20 13:43:53,393 - INFO - ================================================================================
2025-11-20 13:43:53,394 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-20 13:43:53,394 - 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 13:43:53,731 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.249': '0'}} with
2025-11-20 13:43:53,731 - INFO - Initial checks done. Running the testcase now
2025-11-20 13:43:53,731 - INFO -
2025-11-20 13:43:54,442 - DEBUG - Response for create_network : {'network': {'id': '9b6eb1ec-1ac8-4948-a969-17fffaba8fa4', 'name': 'ctest-vn-60215275', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'project_id': '181ca0c4e1754f36b4ddace7aae79ada', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-vn-60215275'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 13:43:54,675 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a141b8a1-f1d8-496d-bff3-a7a751d6ac26', 'name': '', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'network_id': '9b6eb1ec-1ac8-4948-a969-17fffaba8fa4', 'ip_version': 4, 'cidr': '81.234.104.64/26', 'allocation_pools': [{'start': '81.234.104.66', 'end': '81.234.104.126'}], 'gateway_ip': '81.234.104.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.234.104.66', 'tags': [], 'project_id': '181ca0c4e1754f36b4ddace7aae79ada'}}
2025-11-20 13:43:54,697 - INFO - Created VN ctest-vn-60215275
2025-11-20 13:43:54,755 - DEBUG - VN ctest-vn-60215275 UUID is 9b6eb1ec-1ac8-4948-a969-17fffaba8fa4
2025-11-20 13:43:55,147 - DEBUG - Response for create_network : {'network': {'id': '5a7b24ac-951f-4965-a1c8-b1ee8aa1f978', 'name': 'ctest-vn-05684626', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'project_id': '181ca0c4e1754f36b4ddace7aae79ada', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-vn-05684626'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 13:43:55,302 - DEBUG - Response for create_subnet : {'subnet': {'id': '92847ae3-fc99-40b0-8004-420d1cfc0281', 'name': '', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'network_id': '5a7b24ac-951f-4965-a1c8-b1ee8aa1f978', 'ip_version': 4, 'cidr': '179.201.63.192/26', 'allocation_pools': [{'start': '179.201.63.194', 'end': '179.201.63.254'}], 'gateway_ip': '179.201.63.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.201.63.194', 'tags': [], 'project_id': '181ca0c4e1754f36b4ddace7aae79ada'}}
2025-11-20 13:43:55,325 - INFO - Created VN ctest-vn-05684626
2025-11-20 13:43:55,379 - DEBUG - VN ctest-vn-05684626 UUID is 5a7b24ac-951f-4965-a1c8-b1ee8aa1f978
2025-11-20 13:43:55,541 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275, 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-66045427:ctest-vn-05684626, 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 13:43:55,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b6eb1ec-1ac8-4948-a969-17fffaba8fa4', 'name': 'ctest-vn-60215275', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'project_id': '181ca0c4e1754f36b4ddace7aae79ada', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a141b8a1-f1d8-496d-bff3-a7a751d6ac26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-vn-60215275'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-policy-allow-all-21819486']], 'subnet_ipam': [{'subnet_cidr': '81.234.104.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 13:43:56,152 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a7b24ac-951f-4965-a1c8-b1ee8aa1f978', 'name': 'ctest-vn-05684626', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'project_id': '181ca0c4e1754f36b4ddace7aae79ada', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92847ae3-fc99-40b0-8004-420d1cfc0281'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-vn-05684626'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-policy-allow-all-21819486']], 'subnet_ipam': [{'subnet_cidr': '179.201.63.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 13:43:56,315 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-20 13:43:56,650 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-20 13:43:56,693 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d
2025-11-20 13:43:56,719 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada
2025-11-20 13:43:56,810 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4
2025-11-20 13:43:56,828 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4
2025-11-20 13:43:56,844 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86
2025-11-20 13:43:56,856 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86
2025-11-20 13:43:56,867 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9dad900e-4616-423b-9d6a-1db63843e8aa
2025-11-20 13:43:56,878 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 13:43:56,878 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4
2025-11-20 13:43:56,893 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86
2025-11-20 13:43:56,917 - INFO - Verified VN network id 11 for VN 9b6eb1ec-1ac8-4948-a969-17fffaba8fa4
2025-11-20 13:43:56,917 - INFO - Verifications in API Server for VN ctest-vn-60215275 passed
2025-11-20 13:43:56,917 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4
2025-11-20 13:43:56,939 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86
2025-11-20 13:43:56,953 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86
2025-11-20 13:43:56,971 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9dad900e-4616-423b-9d6a-1db63843e8aa
2025-11-20 13:43:57,002 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66045427', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11200084950936734024', 'uuid-lslong': '12207314653155069860'}, 'enable': 'true', 'created': '2025-11-20T13:43:54', 'last-modified': '2025-11-20T13:43:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.133211'}
2025-11-20 13:43:57,015 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 13:43:57,015 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60215275 passed
2025-11-20 13:43:57,016 - DEBUG - ====Verifying policy data for ctest-vn-60215275 in API_Server ======
2025-11-20 13:43:57,016 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-20 13:43:57,030 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d
2025-11-20 13:43:57,059 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada
2025-11-20 13:43:57,156 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4
2025-11-20 13:43:57,180 - DEBUG - ==>Verifying data for policy with id: b0bf7f64-b616-42ee-9766-e68a40d18d01, fqn: ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-policy-allow-all-21819486']
2025-11-20 13:43:57,180 - INFO - VN ctest-vn-60215275 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 13:43:57,181 - DEBUG - Verifying the vn in opserver
2025-11-20 13:43:57,181 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275 virtual network link through opserver 10.0.0.49
2025-11-20 13:43:57,181 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-11-20 13:43:57,500 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-11-20 13:43:57,582 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275?flat'}
2025-11-20 13:43:57,582 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275 is found in opserver
2025-11-20 13:43:57,606 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 13:43:57,613 - DEBUG - VRF ids for VN ctest-vn-60215275: {}
2025-11-20 13:43:57,613 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-20 13:43:57,620 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d
2025-11-20 13:43:57,640 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada
2025-11-20 13:43:57,746 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978
2025-11-20 13:43:57,770 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978
2025-11-20 13:43:57,790 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34
2025-11-20 13:43:57,811 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34
2025-11-20 13:43:57,825 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e85ed7fe-4be5-431d-80de-cce49ecbf976
2025-11-20 13:43:57,838 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 13:43:57,838 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978
2025-11-20 13:43:57,855 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34
2025-11-20 13:43:57,878 - INFO - Verified VN network id 12 for VN 5a7b24ac-951f-4965-a1c8-b1ee8aa1f978
2025-11-20 13:43:57,878 - INFO - Verifications in API Server for VN ctest-vn-05684626 passed
2025-11-20 13:43:57,879 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978
2025-11-20 13:43:57,892 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34
2025-11-20 13:43:57,901 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34
2025-11-20 13:43:57,910 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e85ed7fe-4be5-431d-80de-cce49ecbf976
2025-11-20 13:43:57,925 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66045427', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6519845209203755365', 'uuid-lslong': '11657763273534732664'}, 'enable': 'true', 'created': '2025-11-20T13:43:55', 'last-modified': '2025-11-20T13:43:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.799604'}
2025-11-20 13:43:57,934 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 13:43:57,934 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05684626 passed
2025-11-20 13:43:57,934 - DEBUG - ====Verifying policy data for ctest-vn-05684626 in API_Server ======
2025-11-20 13:43:57,934 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-20 13:43:57,943 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d
2025-11-20 13:43:57,963 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada
2025-11-20 13:43:58,081 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978
2025-11-20 13:43:58,098 - DEBUG - ==>Verifying data for policy with id: b0bf7f64-b616-42ee-9766-e68a40d18d01, fqn: ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-policy-allow-all-21819486']
2025-11-20 13:43:58,098 - INFO - VN ctest-vn-05684626 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 13:43:58,098 - DEBUG - Verifying the vn in opserver
2025-11-20 13:43:58,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626 virtual network link through opserver 10.0.0.49
2025-11-20 13:43:58,098 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-11-20 13:43:58,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626?flat'}
2025-11-20 13:43:58,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626 is found in opserver
2025-11-20 13:43:58,138 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 13:43:58,147 - DEBUG - VRF ids for VN ctest-vn-05684626: {}
2025-11-20 13:43:58,292 - DEBUG - Services list from nova: [