2025-06-25 11:21:00,135 - INFO - Domain Default found not creating
2025-06-25 11:21:00,342 - INFO - Project ctest-TestBasicPolicy-48993945 not found, creating it
2025-06-25 11:21:00,873 - INFO - Created Project:ctest-TestBasicPolicy-48993945, ID : 71d482ac-d2ce-429d-942f-429cc726187e
2025-06-25 11:21:02,719 - INFO - ================================================================================
2025-06-25 11:21:02,719 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-25 11:21:02,719 - 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-06-25 11:21:03,005 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2025-06-25 11:21:03,005 - INFO - Initial checks done. Running the testcase now
2025-06-25 11:21:03,005 - INFO -
2025-06-25 11:21:03,711 - DEBUG - Response for create_network : {'network': {'id': 'd7bd0c78-54bf-4ad3-91ae-43e3699537a4', 'name': 'ctest-vn-96300936', 'tenant_id': '71d482acd2ce429d942f429cc726187e', 'project_id': '71d482acd2ce429d942f429cc726187e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48993945', 'ctest-vn-96300936'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 11:21:03,911 - DEBUG - Response for create_subnet : {'subnet': {'id': '232fa36a-683b-48b9-886e-aee7d84e633b', 'name': '', 'tenant_id': '71d482acd2ce429d942f429cc726187e', 'network_id': 'd7bd0c78-54bf-4ad3-91ae-43e3699537a4', 'ip_version': 4, 'cidr': '14.191.147.192/26', 'allocation_pools': [{'start': '14.191.147.194', 'end': '14.191.147.254'}], 'gateway_ip': '14.191.147.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.191.147.194', 'tags': [], 'project_id': '71d482acd2ce429d942f429cc726187e'}}
2025-06-25 11:21:03,941 - INFO - Created VN ctest-vn-96300936
2025-06-25 11:21:04,006 - DEBUG - VN ctest-vn-96300936 UUID is d7bd0c78-54bf-4ad3-91ae-43e3699537a4
2025-06-25 11:21:04,388 - DEBUG - Response for create_network : {'network': {'id': '050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d', 'name': 'ctest-vn-04784627', 'tenant_id': '71d482acd2ce429d942f429cc726187e', 'project_id': '71d482acd2ce429d942f429cc726187e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48993945', 'ctest-vn-04784627'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 11:21:04,615 - DEBUG - Response for create_subnet : {'subnet': {'id': '42b8b760-4e3e-4532-8fca-5bbe9cbaba9c', 'name': '', 'tenant_id': '71d482acd2ce429d942f429cc726187e', 'network_id': '050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d', 'ip_version': 4, 'cidr': '87.161.117.128/26', 'allocation_pools': [{'start': '87.161.117.130', 'end': '87.161.117.190'}], 'gateway_ip': '87.161.117.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.161.117.130', 'tags': [], 'project_id': '71d482acd2ce429d942f429cc726187e'}}
2025-06-25 11:21:04,639 - INFO - Created VN ctest-vn-04784627
2025-06-25 11:21:04,698 - DEBUG - VN ctest-vn-04784627 UUID is 050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d
2025-06-25 11:21:04,838 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-96300936, 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-48993945:ctest-vn-04784627, 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-06-25 11:21:05,187 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7bd0c78-54bf-4ad3-91ae-43e3699537a4', 'name': 'ctest-vn-96300936', 'tenant_id': '71d482acd2ce429d942f429cc726187e', 'project_id': '71d482acd2ce429d942f429cc726187e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['232fa36a-683b-48b9-886e-aee7d84e633b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48993945', 'ctest-vn-96300936'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48993945', 'ctest-policy-allow-all-58541747']], 'subnet_ipam': [{'subnet_cidr': '14.191.147.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 11:21:05,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d', 'name': 'ctest-vn-04784627', 'tenant_id': '71d482acd2ce429d942f429cc726187e', 'project_id': '71d482acd2ce429d942f429cc726187e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42b8b760-4e3e-4532-8fca-5bbe9cbaba9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48993945', 'ctest-vn-04784627'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48993945', 'ctest-policy-allow-all-58541747']], 'subnet_ipam': [{'subnet_cidr': '87.161.117.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 11:21:05,610 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-06-25 11:21:05,971 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-06-25 11:21:06,014 - DEBUG - Requesting: http://10.0.0.141:8082/domain/641421c2-01b1-4dc2-8524-bbff9e25550d
2025-06-25 11:21:06,038 - DEBUG - Requesting: http://10.0.0.141:8082/project/71d482ac-d2ce-429d-942f-429cc726187e
2025-06-25 11:21:06,127 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7bd0c78-54bf-4ad3-91ae-43e3699537a4
2025-06-25 11:21:06,147 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7bd0c78-54bf-4ad3-91ae-43e3699537a4
2025-06-25 11:21:06,168 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6bc2a354-1e42-4c18-ac8b-84b5154eb3c9
2025-06-25 11:21:06,180 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6bc2a354-1e42-4c18-ac8b-84b5154eb3c9
2025-06-25 11:21:06,189 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d327102d-3374-44d4-9610-86011b2dc147
2025-06-25 11:21:06,198 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 11:21:06,198 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7bd0c78-54bf-4ad3-91ae-43e3699537a4
2025-06-25 11:21:06,212 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6bc2a354-1e42-4c18-ac8b-84b5154eb3c9
2025-06-25 11:21:06,231 - INFO - Verified VN network id 8 for VN d7bd0c78-54bf-4ad3-91ae-43e3699537a4
2025-06-25 11:21:06,231 - INFO - Verifications in API Server for VN ctest-vn-96300936 passed
2025-06-25 11:21:06,231 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7bd0c78-54bf-4ad3-91ae-43e3699537a4
2025-06-25 11:21:06,247 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6bc2a354-1e42-4c18-ac8b-84b5154eb3c9
2025-06-25 11:21:06,261 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6bc2a354-1e42-4c18-ac8b-84b5154eb3c9
2025-06-25 11:21:06,272 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d327102d-3374-44d4-9610-86011b2dc147
2025-06-25 11:21:06,289 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-96300936', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48993945', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15545595199710251731', 'uuid-lslong': '10497402425455228836'}, 'enable': 'true', 'created': '2025-06-25T11:21:03', 'last-modified': '2025-06-25T11:21:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.134631'}
2025-06-25 11:21:06,300 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 11:21:06,301 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96300936 passed
2025-06-25 11:21:06,301 - DEBUG - ====Verifying policy data for ctest-vn-96300936 in API_Server ======
2025-06-25 11:21:06,301 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-06-25 11:21:06,309 - DEBUG - Requesting: http://10.0.0.141:8082/domain/641421c2-01b1-4dc2-8524-bbff9e25550d
2025-06-25 11:21:06,325 - DEBUG - Requesting: http://10.0.0.141:8082/project/71d482ac-d2ce-429d-942f-429cc726187e
2025-06-25 11:21:06,412 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7bd0c78-54bf-4ad3-91ae-43e3699537a4
2025-06-25 11:21:06,426 - DEBUG - ==>Verifying data for policy with id: 98f35620-12cb-48cc-83e5-038dbf9d6a80, fqn: ['default-domain', 'ctest-TestBasicPolicy-48993945', 'ctest-policy-allow-all-58541747']
2025-06-25 11:21:06,426 - INFO - VN ctest-vn-96300936 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 11:21:06,426 - DEBUG - Verifying the vn in opserver
2025-06-25 11:21:06,426 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-96300936 virtual network link through opserver 10.0.0.141
2025-06-25 11:21:06,427 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-06-25 11:21:06,809 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-06-25 11:21:06,885 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-96300936', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-96300936?flat'}
2025-06-25 11:21:06,885 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-96300936 is found in opserver
2025-06-25 11:21:06,902 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 11:21:06,909 - DEBUG - VRF ids for VN ctest-vn-96300936: {}
2025-06-25 11:21:06,909 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-06-25 11:21:06,918 - DEBUG - Requesting: http://10.0.0.141:8082/domain/641421c2-01b1-4dc2-8524-bbff9e25550d
2025-06-25 11:21:06,938 - DEBUG - Requesting: http://10.0.0.141:8082/project/71d482ac-d2ce-429d-942f-429cc726187e
2025-06-25 11:21:07,020 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d
2025-06-25 11:21:07,037 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d
2025-06-25 11:21:07,052 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b4cc0041-7a9b-4bc8-9a73-729c1e80a886
2025-06-25 11:21:07,064 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b4cc0041-7a9b-4bc8-9a73-729c1e80a886
2025-06-25 11:21:07,074 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d8cc1774-eeec-41da-8f9c-016ade70c546
2025-06-25 11:21:07,086 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 11:21:07,086 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d
2025-06-25 11:21:07,101 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b4cc0041-7a9b-4bc8-9a73-729c1e80a886
2025-06-25 11:21:07,123 - INFO - Verified VN network id 9 for VN 050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d
2025-06-25 11:21:07,123 - INFO - Verifications in API Server for VN ctest-vn-04784627 passed
2025-06-25 11:21:07,124 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d
2025-06-25 11:21:07,137 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b4cc0041-7a9b-4bc8-9a73-729c1e80a886
2025-06-25 11:21:07,148 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b4cc0041-7a9b-4bc8-9a73-729c1e80a886
2025-06-25 11:21:07,158 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d8cc1774-eeec-41da-8f9c-016ade70c546
2025-06-25 11:21:07,179 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-04784627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48993945', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '364189963771923660', 'uuid-lslong': '11155972216839795021'}, 'enable': 'true', 'created': '2025-06-25T11:21:04', 'last-modified': '2025-06-25T11:21:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.758476'}
2025-06-25 11:21:07,188 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 11:21:07,188 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04784627 passed
2025-06-25 11:21:07,188 - DEBUG - ====Verifying policy data for ctest-vn-04784627 in API_Server ======
2025-06-25 11:21:07,189 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-06-25 11:21:07,199 - DEBUG - Requesting: http://10.0.0.141:8082/domain/641421c2-01b1-4dc2-8524-bbff9e25550d
2025-06-25 11:21:07,214 - DEBUG - Requesting: http://10.0.0.141:8082/project/71d482ac-d2ce-429d-942f-429cc726187e
2025-06-25 11:21:07,301 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/050ddcd7-ad63-4ccc-9ad1-f99fd4dcf14d
2025-06-25 11:21:07,315 - DEBUG - ==>Verifying data for policy with id: 98f35620-12cb-48cc-83e5-038dbf9d6a80, fqn: ['default-domain', 'ctest-TestBasicPolicy-48993945', 'ctest-policy-allow-all-58541747']
2025-06-25 11:21:07,316 - INFO - VN ctest-vn-04784627 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 11:21:07,316 - DEBUG - Verifying the vn in opserver
2025-06-25 11:21:07,316 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-04784627 virtual network link through opserver 10.0.0.141
2025-06-25 11:21:07,316 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-06-25 11:21:07,330 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-04784627', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-04784627?flat'}
2025-06-25 11:21:07,330 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48993945:ctest-vn-04784627 is found in opserver
2025-06-25 11:21:07,345 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 11:21:07,352 - DEBUG - VRF ids for VN ctest-vn-04784627: {}
2025-06-25 11:21:07,435 - DEBUG - Services list from nova: [