2025-08-20 09:17:32,426 - INFO - Domain Default found not creating
2025-08-20 09:17:32,556 - INFO - Project ctest-TestBasicPolicy-17264524 not found, creating it
2025-08-20 09:17:33,002 - INFO - Created Project:ctest-TestBasicPolicy-17264524, ID : 36ecd675-6d44-4e86-a3ea-cd83c495cc8d
2025-08-20 09:17:34,570 - INFO - ================================================================================
2025-08-20 09:17:34,570 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 09:17:34,570 - 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-20 09:17:34,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.254': '0'}} with
2025-08-20 09:17:34,825 - INFO - Initial checks done. Running the testcase now
2025-08-20 09:17:34,825 - INFO -
2025-08-20 09:17:35,398 - DEBUG - Response for create_network : {'network': {'id': '6c21ade1-f978-464c-9523-dbe0d839f7f2', 'name': 'ctest-vn-79300345', 'tenant_id': '36ecd6756d444e86a3eacd83c495cc8d', 'project_id': '36ecd6756d444e86a3eacd83c495cc8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17264524', 'ctest-vn-79300345'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:17:35,592 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ec35481-6910-4da1-9ee8-a9ddec569ee1', 'name': '', 'tenant_id': '36ecd6756d444e86a3eacd83c495cc8d', 'network_id': '6c21ade1-f978-464c-9523-dbe0d839f7f2', 'ip_version': 4, 'cidr': '6.72.48.0/26', 'allocation_pools': [{'start': '6.72.48.2', 'end': '6.72.48.62'}], 'gateway_ip': '6.72.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.72.48.2', 'tags': [], 'project_id': '36ecd6756d444e86a3eacd83c495cc8d'}}
2025-08-20 09:17:35,609 - INFO - Created VN ctest-vn-79300345
2025-08-20 09:17:35,663 - DEBUG - VN ctest-vn-79300345 UUID is 6c21ade1-f978-464c-9523-dbe0d839f7f2
2025-08-20 09:17:35,968 - DEBUG - Response for create_network : {'network': {'id': 'be78dbf4-2682-4d31-946c-0673c302638f', 'name': 'ctest-vn-34477359', 'tenant_id': '36ecd6756d444e86a3eacd83c495cc8d', 'project_id': '36ecd6756d444e86a3eacd83c495cc8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17264524', 'ctest-vn-34477359'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:17:36,159 - DEBUG - Response for create_subnet : {'subnet': {'id': '3331b84f-8d9d-424b-b6e0-a7673ebf8ae7', 'name': '', 'tenant_id': '36ecd6756d444e86a3eacd83c495cc8d', 'network_id': 'be78dbf4-2682-4d31-946c-0673c302638f', 'ip_version': 4, 'cidr': '19.129.71.0/26', 'allocation_pools': [{'start': '19.129.71.2', 'end': '19.129.71.62'}], 'gateway_ip': '19.129.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.129.71.2', 'tags': [], 'project_id': '36ecd6756d444e86a3eacd83c495cc8d'}}
2025-08-20 09:17:36,178 - INFO - Created VN ctest-vn-34477359
2025-08-20 09:17:36,231 - DEBUG - VN ctest-vn-34477359 UUID is be78dbf4-2682-4d31-946c-0673c302638f
2025-08-20 09:17:36,425 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-79300345, 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-17264524:ctest-vn-34477359, 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-20 09:17:36,885 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c21ade1-f978-464c-9523-dbe0d839f7f2', 'name': 'ctest-vn-79300345', 'tenant_id': '36ecd6756d444e86a3eacd83c495cc8d', 'project_id': '36ecd6756d444e86a3eacd83c495cc8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ec35481-6910-4da1-9ee8-a9ddec569ee1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17264524', 'ctest-vn-79300345'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17264524', 'ctest-policy-allow-all-95779722']], 'subnet_ipam': [{'subnet_cidr': '6.72.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:17:37,119 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be78dbf4-2682-4d31-946c-0673c302638f', 'name': 'ctest-vn-34477359', 'tenant_id': '36ecd6756d444e86a3eacd83c495cc8d', 'project_id': '36ecd6756d444e86a3eacd83c495cc8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3331b84f-8d9d-424b-b6e0-a7673ebf8ae7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17264524', 'ctest-vn-34477359'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17264524', 'ctest-policy-allow-all-95779722']], 'subnet_ipam': [{'subnet_cidr': '19.129.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:17:37,243 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-20 09:17:37,601 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-20 09:17:37,632 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f6f36838-ec57-408a-a3fc-ce44c8e524e3
2025-08-20 09:17:37,645 - DEBUG - Requesting: http://10.0.0.57:8082/project/36ecd675-6d44-4e86-a3ea-cd83c495cc8d
2025-08-20 09:17:37,721 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6c21ade1-f978-464c-9523-dbe0d839f7f2
2025-08-20 09:17:37,733 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6c21ade1-f978-464c-9523-dbe0d839f7f2
2025-08-20 09:17:37,742 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9c4ce1e-4fc3-4ee8-857e-41c3f46c2836
2025-08-20 09:17:37,750 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9c4ce1e-4fc3-4ee8-857e-41c3f46c2836
2025-08-20 09:17:37,757 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/cd8d7195-ec2d-4f32-aa0b-7fbd1f9cf2bb
2025-08-20 09:17:37,763 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 09:17:37,763 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6c21ade1-f978-464c-9523-dbe0d839f7f2
2025-08-20 09:17:37,773 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9c4ce1e-4fc3-4ee8-857e-41c3f46c2836
2025-08-20 09:17:37,787 - INFO - Verified VN network id 12 for VN 6c21ade1-f978-464c-9523-dbe0d839f7f2
2025-08-20 09:17:37,787 - INFO - Verifications in API Server for VN ctest-vn-79300345 passed
2025-08-20 09:17:37,788 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6c21ade1-f978-464c-9523-dbe0d839f7f2
2025-08-20 09:17:37,798 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9c4ce1e-4fc3-4ee8-857e-41c3f46c2836
2025-08-20 09:17:37,804 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9c4ce1e-4fc3-4ee8-857e-41c3f46c2836
2025-08-20 09:17:37,811 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/cd8d7195-ec2d-4f32-aa0b-7fbd1f9cf2bb
2025-08-20 09:17:37,828 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-79300345', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17264524', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7791700016392324684', 'uuid-lslong': '10746674894582970354'}, 'enable': 'true', 'created': '2025-08-20T09:17:35', 'last-modified': '2025-08-20T09:17:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964699'}
2025-08-20 09:17:37,835 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 09:17:37,835 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79300345 passed
2025-08-20 09:17:37,835 - DEBUG - ====Verifying policy data for ctest-vn-79300345 in API_Server ======
2025-08-20 09:17:37,835 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-20 09:17:37,840 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f6f36838-ec57-408a-a3fc-ce44c8e524e3
2025-08-20 09:17:37,851 - DEBUG - Requesting: http://10.0.0.57:8082/project/36ecd675-6d44-4e86-a3ea-cd83c495cc8d
2025-08-20 09:17:37,938 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6c21ade1-f978-464c-9523-dbe0d839f7f2
2025-08-20 09:17:37,951 - DEBUG - ==>Verifying data for policy with id: e1b3cad1-bef0-4aad-b9d0-7e2a2570b518, fqn: ['default-domain', 'ctest-TestBasicPolicy-17264524', 'ctest-policy-allow-all-95779722']
2025-08-20 09:17:37,951 - INFO - VN ctest-vn-79300345 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 09:17:37,951 - DEBUG - Verifying the vn in opserver
2025-08-20 09:17:37,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-79300345 virtual network link through opserver 10.0.0.57
2025-08-20 09:17:37,952 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-20 09:17:38,285 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-20 09:17:38,339 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-79300345', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-79300345?flat'}
2025-08-20 09:17:38,339 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-79300345 is found in opserver
2025-08-20 09:17:38,350 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 09:17:38,361 - DEBUG - VRF ids for VN ctest-vn-79300345: {}
2025-08-20 09:17:38,361 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-20 09:17:38,367 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f6f36838-ec57-408a-a3fc-ce44c8e524e3
2025-08-20 09:17:38,379 - DEBUG - Requesting: http://10.0.0.57:8082/project/36ecd675-6d44-4e86-a3ea-cd83c495cc8d
2025-08-20 09:17:38,453 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/be78dbf4-2682-4d31-946c-0673c302638f
2025-08-20 09:17:38,466 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/be78dbf4-2682-4d31-946c-0673c302638f
2025-08-20 09:17:38,475 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c183ab45-a111-4ec1-aab6-f5199f2d7130
2025-08-20 09:17:38,482 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c183ab45-a111-4ec1-aab6-f5199f2d7130
2025-08-20 09:17:38,489 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b4de9c30-8456-4f34-a5c8-9ba624bf7074
2025-08-20 09:17:38,495 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 09:17:38,495 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/be78dbf4-2682-4d31-946c-0673c302638f
2025-08-20 09:17:38,505 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c183ab45-a111-4ec1-aab6-f5199f2d7130
2025-08-20 09:17:38,519 - INFO - Verified VN network id 13 for VN be78dbf4-2682-4d31-946c-0673c302638f
2025-08-20 09:17:38,519 - INFO - Verifications in API Server for VN ctest-vn-34477359 passed
2025-08-20 09:17:38,519 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/be78dbf4-2682-4d31-946c-0673c302638f
2025-08-20 09:17:38,529 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c183ab45-a111-4ec1-aab6-f5199f2d7130
2025-08-20 09:17:38,536 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c183ab45-a111-4ec1-aab6-f5199f2d7130
2025-08-20 09:17:38,543 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b4de9c30-8456-4f34-a5c8-9ba624bf7074
2025-08-20 09:17:38,554 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-34477359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17264524', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13724961706076163377', 'uuid-lslong': '10694930309360804751'}, 'enable': 'true', 'created': '2025-08-20T09:17:35', 'last-modified': '2025-08-20T09:17:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.455543'}
2025-08-20 09:17:38,561 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 09:17:38,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34477359 passed
2025-08-20 09:17:38,562 - DEBUG - ====Verifying policy data for ctest-vn-34477359 in API_Server ======
2025-08-20 09:17:38,562 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-20 09:17:38,567 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f6f36838-ec57-408a-a3fc-ce44c8e524e3
2025-08-20 09:17:38,578 - DEBUG - Requesting: http://10.0.0.57:8082/project/36ecd675-6d44-4e86-a3ea-cd83c495cc8d
2025-08-20 09:17:38,649 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/be78dbf4-2682-4d31-946c-0673c302638f
2025-08-20 09:17:38,659 - DEBUG - ==>Verifying data for policy with id: e1b3cad1-bef0-4aad-b9d0-7e2a2570b518, fqn: ['default-domain', 'ctest-TestBasicPolicy-17264524', 'ctest-policy-allow-all-95779722']
2025-08-20 09:17:38,659 - INFO - VN ctest-vn-34477359 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 09:17:38,660 - DEBUG - Verifying the vn in opserver
2025-08-20 09:17:38,660 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-34477359 virtual network link through opserver 10.0.0.57
2025-08-20 09:17:38,660 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-20 09:17:38,669 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-34477359', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-34477359?flat'}
2025-08-20 09:17:38,669 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17264524:ctest-vn-34477359 is found in opserver
2025-08-20 09:17:38,680 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 09:17:38,686 - DEBUG - VRF ids for VN ctest-vn-34477359: {}
2025-08-20 09:17:38,745 - DEBUG - Services list from nova: [