2025-09-04 16:24:28,616 - INFO - Domain Default found not creating
2025-09-04 16:24:28,781 - INFO - Project ctest-TestBasicPolicy-54427929 not found, creating it
2025-09-04 16:24:29,233 - INFO - Created Project:ctest-TestBasicPolicy-54427929, ID : aa9766ad-90c7-465a-b1df-26bffc132183
2025-09-04 16:24:30,753 - INFO - ================================================================================
2025-09-04 16:24:30,753 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-04 16:24:30,753 - 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-04 16:24:31,017 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-09-04 16:24:31,017 - INFO - Initial checks done. Running the testcase now
2025-09-04 16:24:31,017 - INFO -
2025-09-04 16:24:31,592 - DEBUG - Response for create_network : {'network': {'id': 'c5d665d8-5186-4518-9740-b9042edcbf22', 'name': 'ctest-vn-06409783', 'tenant_id': 'aa9766ad90c7465ab1df26bffc132183', 'project_id': 'aa9766ad90c7465ab1df26bffc132183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54427929', 'ctest-vn-06409783'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 16:24:31,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '72a75c01-a694-4eff-81e0-9374fb8f97b6', 'name': '', 'tenant_id': 'aa9766ad90c7465ab1df26bffc132183', 'network_id': 'c5d665d8-5186-4518-9740-b9042edcbf22', 'ip_version': 4, 'cidr': '58.206.195.64/26', 'allocation_pools': [{'start': '58.206.195.66', 'end': '58.206.195.126'}], 'gateway_ip': '58.206.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.206.195.66', 'tags': [], 'project_id': 'aa9766ad90c7465ab1df26bffc132183'}}
2025-09-04 16:24:31,813 - INFO - Created VN ctest-vn-06409783
2025-09-04 16:24:31,863 - DEBUG - VN ctest-vn-06409783 UUID is c5d665d8-5186-4518-9740-b9042edcbf22
2025-09-04 16:24:32,221 - DEBUG - Response for create_network : {'network': {'id': 'fa1a527f-df57-4a5f-bf52-a1aee6202a25', 'name': 'ctest-vn-09808430', 'tenant_id': 'aa9766ad90c7465ab1df26bffc132183', 'project_id': 'aa9766ad90c7465ab1df26bffc132183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54427929', 'ctest-vn-09808430'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 16:24:32,382 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e5ec32b-9187-4a75-a94d-1098b16249c7', 'name': '', 'tenant_id': 'aa9766ad90c7465ab1df26bffc132183', 'network_id': 'fa1a527f-df57-4a5f-bf52-a1aee6202a25', 'ip_version': 4, 'cidr': '164.50.162.192/26', 'allocation_pools': [{'start': '164.50.162.194', 'end': '164.50.162.254'}], 'gateway_ip': '164.50.162.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.50.162.194', 'tags': [], 'project_id': 'aa9766ad90c7465ab1df26bffc132183'}}
2025-09-04 16:24:32,401 - INFO - Created VN ctest-vn-09808430
2025-09-04 16:24:32,451 - DEBUG - VN ctest-vn-09808430 UUID is fa1a527f-df57-4a5f-bf52-a1aee6202a25
2025-09-04 16:24:32,603 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-06409783, 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-54427929:ctest-vn-09808430, 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-04 16:24:32,893 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c5d665d8-5186-4518-9740-b9042edcbf22', 'name': 'ctest-vn-06409783', 'tenant_id': 'aa9766ad90c7465ab1df26bffc132183', 'project_id': 'aa9766ad90c7465ab1df26bffc132183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72a75c01-a694-4eff-81e0-9374fb8f97b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54427929', 'ctest-vn-06409783'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54427929', 'ctest-policy-allow-all-06898506']], 'subnet_ipam': [{'subnet_cidr': '58.206.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 16:24:33,128 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa1a527f-df57-4a5f-bf52-a1aee6202a25', 'name': 'ctest-vn-09808430', 'tenant_id': 'aa9766ad90c7465ab1df26bffc132183', 'project_id': 'aa9766ad90c7465ab1df26bffc132183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e5ec32b-9187-4a75-a94d-1098b16249c7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54427929', 'ctest-vn-09808430'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54427929', 'ctest-policy-allow-all-06898506']], 'subnet_ipam': [{'subnet_cidr': '164.50.162.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 16:24:33,291 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 16:24:33,626 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 16:24:33,655 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f175ec21-e8ca-45bc-b5a3-0fc6800d490a
2025-09-04 16:24:33,668 - DEBUG - Requesting: http://10.0.0.33:8082/project/aa9766ad-90c7-465a-b1df-26bffc132183
2025-09-04 16:24:33,739 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c5d665d8-5186-4518-9740-b9042edcbf22
2025-09-04 16:24:33,752 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c5d665d8-5186-4518-9740-b9042edcbf22
2025-09-04 16:24:33,761 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e394e9b9-60c3-4c90-9916-5eff7e92c7f2
2025-09-04 16:24:33,768 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e394e9b9-60c3-4c90-9916-5eff7e92c7f2
2025-09-04 16:24:33,774 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/39290efb-35dc-48a0-a27a-4681c0bd39f5
2025-09-04 16:24:33,780 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 16:24:33,780 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c5d665d8-5186-4518-9740-b9042edcbf22
2025-09-04 16:24:33,788 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e394e9b9-60c3-4c90-9916-5eff7e92c7f2
2025-09-04 16:24:33,800 - INFO - Verified VN network id 11 for VN c5d665d8-5186-4518-9740-b9042edcbf22
2025-09-04 16:24:33,800 - INFO - Verifications in API Server for VN ctest-vn-06409783 passed
2025-09-04 16:24:33,800 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c5d665d8-5186-4518-9740-b9042edcbf22
2025-09-04 16:24:33,809 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e394e9b9-60c3-4c90-9916-5eff7e92c7f2
2025-09-04 16:24:33,815 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e394e9b9-60c3-4c90-9916-5eff7e92c7f2
2025-09-04 16:24:33,820 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/39290efb-35dc-48a0-a27a-4681c0bd39f5
2025-09-04 16:24:33,831 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-06409783', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54427929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14255693650242979096', 'uuid-lslong': '10898914525853826850'}, 'enable': 'true', 'created': '2025-09-04T16:24:31', 'last-modified': '2025-09-04T16:24:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957274'}
2025-09-04 16:24:33,838 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 16:24:33,838 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06409783 passed
2025-09-04 16:24:33,838 - DEBUG - ====Verifying policy data for ctest-vn-06409783 in API_Server ======
2025-09-04 16:24:33,838 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 16:24:33,844 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f175ec21-e8ca-45bc-b5a3-0fc6800d490a
2025-09-04 16:24:33,854 - DEBUG - Requesting: http://10.0.0.33:8082/project/aa9766ad-90c7-465a-b1df-26bffc132183
2025-09-04 16:24:33,927 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c5d665d8-5186-4518-9740-b9042edcbf22
2025-09-04 16:24:33,937 - DEBUG - ==>Verifying data for policy with id: 72de82b1-e5d2-4dda-9936-4fbe3f8d3a6f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54427929', 'ctest-policy-allow-all-06898506']
2025-09-04 16:24:33,937 - INFO - VN ctest-vn-06409783 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 16:24:33,938 - DEBUG - Verifying the vn in opserver
2025-09-04 16:24:33,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-06409783 virtual network link through opserver 10.0.0.33
2025-09-04 16:24:33,938 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-04 16:24:34,275 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-04 16:24:34,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-06409783', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-06409783?flat'}
2025-09-04 16:24:34,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-06409783 is found in opserver
2025-09-04 16:24:34,351 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 16:24:34,356 - DEBUG - VRF ids for VN ctest-vn-06409783: {}
2025-09-04 16:24:34,356 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 16:24:34,362 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f175ec21-e8ca-45bc-b5a3-0fc6800d490a
2025-09-04 16:24:34,373 - DEBUG - Requesting: http://10.0.0.33:8082/project/aa9766ad-90c7-465a-b1df-26bffc132183
2025-09-04 16:24:34,445 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa1a527f-df57-4a5f-bf52-a1aee6202a25
2025-09-04 16:24:34,458 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa1a527f-df57-4a5f-bf52-a1aee6202a25
2025-09-04 16:24:34,468 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91820fb0-9c5c-44ab-9bda-2721d69a5aa4
2025-09-04 16:24:34,474 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91820fb0-9c5c-44ab-9bda-2721d69a5aa4
2025-09-04 16:24:34,481 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8e3c0815-c349-4376-a5e7-e0c8910d0b02
2025-09-04 16:24:34,486 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 16:24:34,486 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa1a527f-df57-4a5f-bf52-a1aee6202a25
2025-09-04 16:24:34,495 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91820fb0-9c5c-44ab-9bda-2721d69a5aa4
2025-09-04 16:24:34,508 - INFO - Verified VN network id 12 for VN fa1a527f-df57-4a5f-bf52-a1aee6202a25
2025-09-04 16:24:34,508 - INFO - Verifications in API Server for VN ctest-vn-09808430 passed
2025-09-04 16:24:34,508 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa1a527f-df57-4a5f-bf52-a1aee6202a25
2025-09-04 16:24:34,516 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91820fb0-9c5c-44ab-9bda-2721d69a5aa4
2025-09-04 16:24:34,522 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91820fb0-9c5c-44ab-9bda-2721d69a5aa4
2025-09-04 16:24:34,528 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8e3c0815-c349-4376-a5e7-e0c8910d0b02
2025-09-04 16:24:34,538 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-09808430', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54427929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18021807568037825119', 'uuid-lslong': '13786259181891758629'}, 'enable': 'true', 'created': '2025-09-04T16:24:32', 'last-modified': '2025-09-04T16:24:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433992'}
2025-09-04 16:24:34,544 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 16:24:34,544 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09808430 passed
2025-09-04 16:24:34,544 - DEBUG - ====Verifying policy data for ctest-vn-09808430 in API_Server ======
2025-09-04 16:24:34,544 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 16:24:34,549 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f175ec21-e8ca-45bc-b5a3-0fc6800d490a
2025-09-04 16:24:34,560 - DEBUG - Requesting: http://10.0.0.33:8082/project/aa9766ad-90c7-465a-b1df-26bffc132183
2025-09-04 16:24:34,629 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa1a527f-df57-4a5f-bf52-a1aee6202a25
2025-09-04 16:24:34,638 - DEBUG - ==>Verifying data for policy with id: 72de82b1-e5d2-4dda-9936-4fbe3f8d3a6f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54427929', 'ctest-policy-allow-all-06898506']
2025-09-04 16:24:34,638 - INFO - VN ctest-vn-09808430 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 16:24:34,638 - DEBUG - Verifying the vn in opserver
2025-09-04 16:24:34,638 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-09808430 virtual network link through opserver 10.0.0.33
2025-09-04 16:24:34,638 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-04 16:24:34,648 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-09808430', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-09808430?flat'}
2025-09-04 16:24:34,648 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54427929:ctest-vn-09808430 is found in opserver
2025-09-04 16:24:34,658 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 16:24:34,663 - DEBUG - VRF ids for VN ctest-vn-09808430: {}
2025-09-04 16:24:34,723 - DEBUG - Services list from nova: [