2025-11-15 20:29:50,976 - INFO - Domain Default found not creating
2025-11-15 20:29:51,133 - INFO - Project ctest-TestBasicPolicy-95549358 not found, creating it
2025-11-15 20:29:51,571 - INFO - Created Project:ctest-TestBasicPolicy-95549358, ID : c7067d3b-5e81-45b0-9add-42fcae0068d6
2025-11-15 20:29:52,974 - INFO - ================================================================================
2025-11-15 20:29:52,975 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-15 20:29:52,975 - 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-15 20:29:53,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-11-15 20:29:53,230 - INFO - Initial checks done. Running the testcase now
2025-11-15 20:29:53,231 - INFO -
2025-11-15 20:29:53,757 - DEBUG - Response for create_network : {'network': {'id': 'c933e741-d67c-433b-a8b1-1873953c5893', 'name': 'ctest-vn-01794178', 'tenant_id': 'c7067d3b5e8145b09add42fcae0068d6', 'project_id': 'c7067d3b5e8145b09add42fcae0068d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95549358', 'ctest-vn-01794178'], 'port_security_enabled': True, 'description': ''}}
2025-11-15 20:29:53,911 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e01db15a-c054-4dff-9db1-185f77730792', 'name': '', 'tenant_id': 'c7067d3b5e8145b09add42fcae0068d6', 'network_id': 'c933e741-d67c-433b-a8b1-1873953c5893', 'ip_version': 4, 'cidr': '77.65.28.0/26', 'allocation_pools': [{'start': '77.65.28.2', 'end': '77.65.28.62'}], 'gateway_ip': '77.65.28.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.65.28.2', 'tags': [], 'project_id': 'c7067d3b5e8145b09add42fcae0068d6'}}
2025-11-15 20:29:53,927 - INFO - Created VN ctest-vn-01794178
2025-11-15 20:29:53,977 - DEBUG - VN ctest-vn-01794178 UUID is c933e741-d67c-433b-a8b1-1873953c5893
2025-11-15 20:29:54,290 - DEBUG - Response for create_network : {'network': {'id': '2f4ea50c-f366-45af-be5e-2a8b57fba3f5', 'name': 'ctest-vn-45688707', 'tenant_id': 'c7067d3b5e8145b09add42fcae0068d6', 'project_id': 'c7067d3b5e8145b09add42fcae0068d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95549358', 'ctest-vn-45688707'], 'port_security_enabled': True, 'description': ''}}
2025-11-15 20:29:54,463 - DEBUG - Response for create_subnet : {'subnet': {'id': '31147577-2d79-49b9-8186-cafcbaa7375b', 'name': '', 'tenant_id': 'c7067d3b5e8145b09add42fcae0068d6', 'network_id': '2f4ea50c-f366-45af-be5e-2a8b57fba3f5', 'ip_version': 4, 'cidr': '80.116.25.0/26', 'allocation_pools': [{'start': '80.116.25.2', 'end': '80.116.25.62'}], 'gateway_ip': '80.116.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.116.25.2', 'tags': [], 'project_id': 'c7067d3b5e8145b09add42fcae0068d6'}}
2025-11-15 20:29:54,478 - INFO - Created VN ctest-vn-45688707
2025-11-15 20:29:54,529 - DEBUG - VN ctest-vn-45688707 UUID is 2f4ea50c-f366-45af-be5e-2a8b57fba3f5
2025-11-15 20:29:54,673 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-01794178, 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-95549358:ctest-vn-45688707, 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-15 20:29:54,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c933e741-d67c-433b-a8b1-1873953c5893', 'name': 'ctest-vn-01794178', 'tenant_id': 'c7067d3b5e8145b09add42fcae0068d6', 'project_id': 'c7067d3b5e8145b09add42fcae0068d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e01db15a-c054-4dff-9db1-185f77730792'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95549358', 'ctest-vn-01794178'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95549358', 'ctest-policy-allow-all-05437242']], 'subnet_ipam': [{'subnet_cidr': '77.65.28.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-15 20:29:55,213 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f4ea50c-f366-45af-be5e-2a8b57fba3f5', 'name': 'ctest-vn-45688707', 'tenant_id': 'c7067d3b5e8145b09add42fcae0068d6', 'project_id': 'c7067d3b5e8145b09add42fcae0068d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31147577-2d79-49b9-8186-cafcbaa7375b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95549358', 'ctest-vn-45688707'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95549358', 'ctest-policy-allow-all-05437242']], 'subnet_ipam': [{'subnet_cidr': '80.116.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-15 20:29:55,365 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-15 20:29:55,655 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-15 20:29:55,682 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c41869b6-8444-4061-a790-0bb702330aad
2025-11-15 20:29:55,693 - DEBUG - Requesting: http://10.0.0.33:8082/project/c7067d3b-5e81-45b0-9add-42fcae0068d6
2025-11-15 20:29:55,762 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c933e741-d67c-433b-a8b1-1873953c5893
2025-11-15 20:29:55,771 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c933e741-d67c-433b-a8b1-1873953c5893
2025-11-15 20:29:55,779 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e271216-9399-405a-a3e8-9de9ab330663
2025-11-15 20:29:55,784 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e271216-9399-405a-a3e8-9de9ab330663
2025-11-15 20:29:55,789 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/90712499-7239-460e-93b6-9dfb4409fb68
2025-11-15 20:29:55,794 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-15 20:29:55,794 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c933e741-d67c-433b-a8b1-1873953c5893
2025-11-15 20:29:55,801 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e271216-9399-405a-a3e8-9de9ab330663
2025-11-15 20:29:55,813 - INFO - Verified VN network id 12 for VN c933e741-d67c-433b-a8b1-1873953c5893
2025-11-15 20:29:55,813 - INFO - Verifications in API Server for VN ctest-vn-01794178 passed
2025-11-15 20:29:55,813 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c933e741-d67c-433b-a8b1-1873953c5893
2025-11-15 20:29:55,820 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e271216-9399-405a-a3e8-9de9ab330663
2025-11-15 20:29:55,825 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e271216-9399-405a-a3e8-9de9ab330663
2025-11-15 20:29:55,833 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/90712499-7239-460e-93b6-9dfb4409fb68
2025-11-15 20:29:55,842 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-01794178', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95549358', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14498185895393116987', 'uuid-lslong': '12155523753953745043'}, 'enable': 'true', 'created': '2025-11-15T20:29:53', 'last-modified': '2025-11-15T20:29:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908130'}
2025-11-15 20:29:55,847 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-15 20:29:55,847 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01794178 passed
2025-11-15 20:29:55,847 - DEBUG - ====Verifying policy data for ctest-vn-01794178 in API_Server ======
2025-11-15 20:29:55,847 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-15 20:29:55,851 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c41869b6-8444-4061-a790-0bb702330aad
2025-11-15 20:29:55,860 - DEBUG - Requesting: http://10.0.0.33:8082/project/c7067d3b-5e81-45b0-9add-42fcae0068d6
2025-11-15 20:29:55,933 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c933e741-d67c-433b-a8b1-1873953c5893
2025-11-15 20:29:55,941 - DEBUG - ==>Verifying data for policy with id: bb69fe45-4007-43a4-a3ad-b4ca5ac8d1f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-95549358', 'ctest-policy-allow-all-05437242']
2025-11-15 20:29:55,941 - INFO - VN ctest-vn-01794178 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-15 20:29:55,941 - DEBUG - Verifying the vn in opserver
2025-11-15 20:29:55,941 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-01794178 virtual network link through opserver 10.0.0.33
2025-11-15 20:29:55,941 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-15 20:29:56,232 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-15 20:29:56,296 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-01794178', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-01794178?flat'}
2025-11-15 20:29:56,296 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-01794178 is found in opserver
2025-11-15 20:29:56,305 - DEBUG - Do not have enough data to verify VN in agent
2025-11-15 20:29:56,309 - DEBUG - VRF ids for VN ctest-vn-01794178: {}
2025-11-15 20:29:56,309 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-15 20:29:56,313 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c41869b6-8444-4061-a790-0bb702330aad
2025-11-15 20:29:56,322 - DEBUG - Requesting: http://10.0.0.33:8082/project/c7067d3b-5e81-45b0-9add-42fcae0068d6
2025-11-15 20:29:56,435 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2f4ea50c-f366-45af-be5e-2a8b57fba3f5
2025-11-15 20:29:56,470 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2f4ea50c-f366-45af-be5e-2a8b57fba3f5
2025-11-15 20:29:56,489 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02f2ec82-ce12-4d38-a764-c30ccea45fcd
2025-11-15 20:29:56,499 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02f2ec82-ce12-4d38-a764-c30ccea45fcd
2025-11-15 20:29:56,516 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a5f35586-633f-4f36-ab44-8027a657ee44
2025-11-15 20:29:56,527 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-15 20:29:56,527 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2f4ea50c-f366-45af-be5e-2a8b57fba3f5
2025-11-15 20:29:56,547 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02f2ec82-ce12-4d38-a764-c30ccea45fcd
2025-11-15 20:29:56,560 - INFO - Verified VN network id 13 for VN 2f4ea50c-f366-45af-be5e-2a8b57fba3f5
2025-11-15 20:29:56,560 - INFO - Verifications in API Server for VN ctest-vn-45688707 passed
2025-11-15 20:29:56,560 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2f4ea50c-f366-45af-be5e-2a8b57fba3f5
2025-11-15 20:29:56,567 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02f2ec82-ce12-4d38-a764-c30ccea45fcd
2025-11-15 20:29:56,575 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02f2ec82-ce12-4d38-a764-c30ccea45fcd
2025-11-15 20:29:56,581 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a5f35586-633f-4f36-ab44-8027a657ee44
2025-11-15 20:29:56,600 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-45688707', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95549358', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3408843443007800751', 'uuid-lslong': '13717448292982039541'}, 'enable': 'true', 'created': '2025-11-15T20:29:54', 'last-modified': '2025-11-15T20:29:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.452687'}
2025-11-15 20:29:56,605 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-15 20:29:56,605 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45688707 passed
2025-11-15 20:29:56,606 - DEBUG - ====Verifying policy data for ctest-vn-45688707 in API_Server ======
2025-11-15 20:29:56,606 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-15 20:29:56,612 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c41869b6-8444-4061-a790-0bb702330aad
2025-11-15 20:29:56,624 - DEBUG - Requesting: http://10.0.0.33:8082/project/c7067d3b-5e81-45b0-9add-42fcae0068d6
2025-11-15 20:29:56,732 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2f4ea50c-f366-45af-be5e-2a8b57fba3f5
2025-11-15 20:29:56,747 - DEBUG - ==>Verifying data for policy with id: bb69fe45-4007-43a4-a3ad-b4ca5ac8d1f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-95549358', 'ctest-policy-allow-all-05437242']
2025-11-15 20:29:56,747 - INFO - VN ctest-vn-45688707 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-15 20:29:56,747 - DEBUG - Verifying the vn in opserver
2025-11-15 20:29:56,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-45688707 virtual network link through opserver 10.0.0.33
2025-11-15 20:29:56,747 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-15 20:29:56,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-45688707', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-45688707?flat'}
2025-11-15 20:29:56,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95549358:ctest-vn-45688707 is found in opserver
2025-11-15 20:29:56,766 - DEBUG - Do not have enough data to verify VN in agent
2025-11-15 20:29:56,770 - DEBUG - VRF ids for VN ctest-vn-45688707: {}
2025-11-15 20:29:56,842 - DEBUG - Services list from nova: [