2025-08-26 11:26:54,467 - INFO - Domain Default found not creating
2025-08-26 11:26:54,612 - INFO - Project ctest-TestBasicPolicy-81578934 not found, creating it
2025-08-26 11:26:55,107 - INFO - Created Project:ctest-TestBasicPolicy-81578934, ID : ebde0344-c1dd-4cd5-af8b-29ce02b839ee
2025-08-26 11:26:56,619 - INFO - ================================================================================
2025-08-26 11:26:56,619 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-26 11:26:56,620 - 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-08-26 11:26:56,885 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-26 11:26:56,885 - INFO - Initial checks done. Running the testcase now
2025-08-26 11:26:56,885 - INFO -
2025-08-26 11:26:57,431 - DEBUG - Response for create_network : {'network': {'id': '6a740565-4981-4b82-8570-ffe3332c14c7', 'name': 'ctest-vn-90745894', 'tenant_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'project_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81578934', 'ctest-vn-90745894'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 11:26:57,610 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b73d118-1507-4049-8269-5f949ee089af', 'name': '', 'tenant_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'network_id': '6a740565-4981-4b82-8570-ffe3332c14c7', 'ip_version': 4, 'cidr': '170.90.13.64/26', 'allocation_pools': [{'start': '170.90.13.66', 'end': '170.90.13.126'}], 'gateway_ip': '170.90.13.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.90.13.66', 'tags': [], 'project_id': 'ebde0344c1dd4cd5af8b29ce02b839ee'}}
2025-08-26 11:26:57,627 - INFO - Created VN ctest-vn-90745894
2025-08-26 11:26:57,678 - DEBUG - VN ctest-vn-90745894 UUID is 6a740565-4981-4b82-8570-ffe3332c14c7
2025-08-26 11:26:58,010 - DEBUG - Response for create_network : {'network': {'id': '074340c4-86d8-4af1-8329-820d25daa631', 'name': 'ctest-vn-80427384', 'tenant_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'project_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81578934', 'ctest-vn-80427384'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 11:26:58,189 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f7d1fe7-54a6-4623-bdec-85168f2c96d0', 'name': '', 'tenant_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'network_id': '074340c4-86d8-4af1-8329-820d25daa631', 'ip_version': 4, 'cidr': '129.210.208.0/26', 'allocation_pools': [{'start': '129.210.208.2', 'end': '129.210.208.62'}], 'gateway_ip': '129.210.208.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.210.208.2', 'tags': [], 'project_id': 'ebde0344c1dd4cd5af8b29ce02b839ee'}}
2025-08-26 11:26:58,206 - INFO - Created VN ctest-vn-80427384
2025-08-26 11:26:58,258 - DEBUG - VN ctest-vn-80427384 UUID is 074340c4-86d8-4af1-8329-820d25daa631
2025-08-26 11:26:58,374 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-90745894, 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-81578934:ctest-vn-80427384, 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-08-26 11:26:58,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a740565-4981-4b82-8570-ffe3332c14c7', 'name': 'ctest-vn-90745894', 'tenant_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'project_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4b73d118-1507-4049-8269-5f949ee089af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81578934', 'ctest-vn-90745894'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81578934', 'ctest-policy-allow-all-95865788']], 'subnet_ipam': [{'subnet_cidr': '170.90.13.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 11:26:58,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '074340c4-86d8-4af1-8329-820d25daa631', 'name': 'ctest-vn-80427384', 'tenant_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'project_id': 'ebde0344c1dd4cd5af8b29ce02b839ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f7d1fe7-54a6-4623-bdec-85168f2c96d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81578934', 'ctest-vn-80427384'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81578934', 'ctest-policy-allow-all-95865788']], 'subnet_ipam': [{'subnet_cidr': '129.210.208.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 11:26:59,114 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 11:26:59,414 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 11:26:59,444 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f3a67ef8-eb83-4780-952f-1f211a645aa1
2025-08-26 11:26:59,459 - DEBUG - Requesting: http://10.0.0.254:8082/project/ebde0344-c1dd-4cd5-af8b-29ce02b839ee
2025-08-26 11:26:59,535 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a740565-4981-4b82-8570-ffe3332c14c7
2025-08-26 11:26:59,546 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a740565-4981-4b82-8570-ffe3332c14c7
2025-08-26 11:26:59,555 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/52b6ddc9-92ef-421c-99ab-e7f4cae2ce86
2025-08-26 11:26:59,562 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/52b6ddc9-92ef-421c-99ab-e7f4cae2ce86
2025-08-26 11:26:59,568 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/580f5850-629c-4d88-ba98-b46bcf2cc91a
2025-08-26 11:26:59,575 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 11:26:59,575 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a740565-4981-4b82-8570-ffe3332c14c7
2025-08-26 11:26:59,584 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/52b6ddc9-92ef-421c-99ab-e7f4cae2ce86
2025-08-26 11:26:59,598 - INFO - Verified VN network id 12 for VN 6a740565-4981-4b82-8570-ffe3332c14c7
2025-08-26 11:26:59,598 - INFO - Verifications in API Server for VN ctest-vn-90745894 passed
2025-08-26 11:26:59,598 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a740565-4981-4b82-8570-ffe3332c14c7
2025-08-26 11:26:59,608 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/52b6ddc9-92ef-421c-99ab-e7f4cae2ce86
2025-08-26 11:26:59,615 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/52b6ddc9-92ef-421c-99ab-e7f4cae2ce86
2025-08-26 11:26:59,622 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/580f5850-629c-4d88-ba98-b46bcf2cc91a
2025-08-26 11:26:59,635 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-90745894', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81578934', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7670761997901843330', 'uuid-lslong': '9615466555717194951'}, 'enable': 'true', 'created': '2025-08-26T11:26:57', 'last-modified': '2025-08-26T11:26:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977274'}
2025-08-26 11:26:59,641 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 11:26:59,641 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90745894 passed
2025-08-26 11:26:59,642 - DEBUG - ====Verifying policy data for ctest-vn-90745894 in API_Server ======
2025-08-26 11:26:59,642 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 11:26:59,647 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f3a67ef8-eb83-4780-952f-1f211a645aa1
2025-08-26 11:26:59,659 - DEBUG - Requesting: http://10.0.0.254:8082/project/ebde0344-c1dd-4cd5-af8b-29ce02b839ee
2025-08-26 11:26:59,739 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a740565-4981-4b82-8570-ffe3332c14c7
2025-08-26 11:26:59,749 - DEBUG - ==>Verifying data for policy with id: 846a9cd1-53e5-4761-b25a-2a5fc499107f, fqn: ['default-domain', 'ctest-TestBasicPolicy-81578934', 'ctest-policy-allow-all-95865788']
2025-08-26 11:26:59,749 - INFO - VN ctest-vn-90745894 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 11:26:59,749 - DEBUG - Verifying the vn in opserver
2025-08-26 11:26:59,749 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-90745894 virtual network link through opserver 10.0.0.254
2025-08-26 11:26:59,749 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-26 11:27:00,045 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-26 11:27:00,103 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-90745894', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-90745894?flat'}
2025-08-26 11:27:00,103 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-90745894 is found in opserver
2025-08-26 11:27:00,118 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 11:27:00,125 - DEBUG - VRF ids for VN ctest-vn-90745894: {}
2025-08-26 11:27:00,125 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 11:27:00,131 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f3a67ef8-eb83-4780-952f-1f211a645aa1
2025-08-26 11:27:00,144 - DEBUG - Requesting: http://10.0.0.254:8082/project/ebde0344-c1dd-4cd5-af8b-29ce02b839ee
2025-08-26 11:27:00,234 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/074340c4-86d8-4af1-8329-820d25daa631
2025-08-26 11:27:00,251 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/074340c4-86d8-4af1-8329-820d25daa631
2025-08-26 11:27:00,263 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26c303b5-44ef-4af1-a4dc-46c00e34535b
2025-08-26 11:27:00,271 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26c303b5-44ef-4af1-a4dc-46c00e34535b
2025-08-26 11:27:00,279 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ea18be01-1a0f-4e91-8d7b-1125221ed548
2025-08-26 11:27:00,286 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 11:27:00,286 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/074340c4-86d8-4af1-8329-820d25daa631
2025-08-26 11:27:00,295 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26c303b5-44ef-4af1-a4dc-46c00e34535b
2025-08-26 11:27:00,310 - INFO - Verified VN network id 13 for VN 074340c4-86d8-4af1-8329-820d25daa631
2025-08-26 11:27:00,310 - INFO - Verifications in API Server for VN ctest-vn-80427384 passed
2025-08-26 11:27:00,311 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/074340c4-86d8-4af1-8329-820d25daa631
2025-08-26 11:27:00,321 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26c303b5-44ef-4af1-a4dc-46c00e34535b
2025-08-26 11:27:00,328 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26c303b5-44ef-4af1-a4dc-46c00e34535b
2025-08-26 11:27:00,335 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ea18be01-1a0f-4e91-8d7b-1125221ed548
2025-08-26 11:27:00,349 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-80427384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81578934', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '523333194525199089', 'uuid-lslong': '9451228285994968625'}, 'enable': 'true', 'created': '2025-08-26T11:26:57', 'last-modified': '2025-08-26T11:26:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.456286'}
2025-08-26 11:27:00,355 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 11:27:00,356 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80427384 passed
2025-08-26 11:27:00,356 - DEBUG - ====Verifying policy data for ctest-vn-80427384 in API_Server ======
2025-08-26 11:27:00,356 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 11:27:00,362 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f3a67ef8-eb83-4780-952f-1f211a645aa1
2025-08-26 11:27:00,375 - DEBUG - Requesting: http://10.0.0.254:8082/project/ebde0344-c1dd-4cd5-af8b-29ce02b839ee
2025-08-26 11:27:00,449 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/074340c4-86d8-4af1-8329-820d25daa631
2025-08-26 11:27:00,462 - DEBUG - ==>Verifying data for policy with id: 846a9cd1-53e5-4761-b25a-2a5fc499107f, fqn: ['default-domain', 'ctest-TestBasicPolicy-81578934', 'ctest-policy-allow-all-95865788']
2025-08-26 11:27:00,462 - INFO - VN ctest-vn-80427384 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 11:27:00,462 - DEBUG - Verifying the vn in opserver
2025-08-26 11:27:00,462 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-80427384 virtual network link through opserver 10.0.0.254
2025-08-26 11:27:00,462 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-26 11:27:00,474 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-80427384', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-80427384?flat'}
2025-08-26 11:27:00,474 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81578934:ctest-vn-80427384 is found in opserver
2025-08-26 11:27:00,487 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 11:27:00,494 - DEBUG - VRF ids for VN ctest-vn-80427384: {}
2025-08-26 11:27:00,551 - DEBUG - Services list from nova: [