2025-02-05 15:45:32,333 - INFO - Domain Default found not creating
2025-02-05 15:45:32,509 - INFO - Project ctest-TestBasicPolicy-23554610 not found, creating it
2025-02-05 15:45:32,977 - INFO - Created Project:ctest-TestBasicPolicy-23554610, ID : cfa75337-ee95-49ac-a99f-d2333a29b9cb
2025-02-05 15:45:34,490 - INFO - ================================================================================
2025-02-05 15:45:34,490 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-05 15:45:34,490 - 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-02-05 15:45:34,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-02-05 15:45:34,744 - INFO - Initial checks done. Running the testcase now
2025-02-05 15:45:34,744 - INFO -
2025-02-05 15:45:35,326 - DEBUG - Response for create_network : {'network': {'id': '1b180e78-05bc-4974-968e-ad2e52a885ff', 'name': 'ctest-vn-78331241', 'tenant_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'project_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23554610', 'ctest-vn-78331241'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 15:45:35,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '56accbb8-caae-4602-8937-ffa8664b23c4', 'name': '', 'tenant_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'network_id': '1b180e78-05bc-4974-968e-ad2e52a885ff', 'ip_version': 4, 'cidr': '177.195.13.192/26', 'allocation_pools': [{'start': '177.195.13.194', 'end': '177.195.13.254'}], 'gateway_ip': '177.195.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.195.13.194', 'tags': [], 'project_id': 'cfa75337ee9549aca99fd2333a29b9cb'}}
2025-02-05 15:45:35,580 - INFO - Created VN ctest-vn-78331241
2025-02-05 15:45:35,637 - DEBUG - VN ctest-vn-78331241 UUID is 1b180e78-05bc-4974-968e-ad2e52a885ff
2025-02-05 15:45:35,942 - DEBUG - Response for create_network : {'network': {'id': 'adc0e308-d9da-4cb4-a614-bff8f9f095b9', 'name': 'ctest-vn-88686954', 'tenant_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'project_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23554610', 'ctest-vn-88686954'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 15:45:36,150 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9ec8ff5-b991-4292-8fe5-3bc7ce9aa015', 'name': '', 'tenant_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'network_id': 'adc0e308-d9da-4cb4-a614-bff8f9f095b9', 'ip_version': 4, 'cidr': '43.55.159.0/26', 'allocation_pools': [{'start': '43.55.159.2', 'end': '43.55.159.62'}], 'gateway_ip': '43.55.159.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.55.159.2', 'tags': [], 'project_id': 'cfa75337ee9549aca99fd2333a29b9cb'}}
2025-02-05 15:45:36,169 - INFO - Created VN ctest-vn-88686954
2025-02-05 15:45:36,221 - DEBUG - VN ctest-vn-88686954 UUID is adc0e308-d9da-4cb4-a614-bff8f9f095b9
2025-02-05 15:45:36,340 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-78331241, 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-23554610:ctest-vn-88686954, 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-02-05 15:45:36,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b180e78-05bc-4974-968e-ad2e52a885ff', 'name': 'ctest-vn-78331241', 'tenant_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'project_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56accbb8-caae-4602-8937-ffa8664b23c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23554610', 'ctest-vn-78331241'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23554610', 'ctest-policy-allow-all-13416016']], 'subnet_ipam': [{'subnet_cidr': '177.195.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 15:45:36,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'adc0e308-d9da-4cb4-a614-bff8f9f095b9', 'name': 'ctest-vn-88686954', 'tenant_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'project_id': 'cfa75337ee9549aca99fd2333a29b9cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9ec8ff5-b991-4292-8fe5-3bc7ce9aa015'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23554610', 'ctest-vn-88686954'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23554610', 'ctest-policy-allow-all-13416016']], 'subnet_ipam': [{'subnet_cidr': '43.55.159.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 15:45:37,078 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 15:45:37,402 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 15:45:37,447 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c10826ae-6f15-4fbe-ba12-c723de102a6c
2025-02-05 15:45:37,463 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfa75337-ee95-49ac-a99f-d2333a29b9cb
2025-02-05 15:45:37,544 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1b180e78-05bc-4974-968e-ad2e52a885ff
2025-02-05 15:45:37,557 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1b180e78-05bc-4974-968e-ad2e52a885ff
2025-02-05 15:45:37,569 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/93db7f33-0747-4220-929a-e81b1cf9ad4f
2025-02-05 15:45:37,579 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/93db7f33-0747-4220-929a-e81b1cf9ad4f
2025-02-05 15:45:37,589 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/34208479-851e-4fa1-82f9-b59e4a88a528
2025-02-05 15:45:37,598 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 15:45:37,598 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1b180e78-05bc-4974-968e-ad2e52a885ff
2025-02-05 15:45:37,611 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/93db7f33-0747-4220-929a-e81b1cf9ad4f
2025-02-05 15:45:37,628 - INFO - Verified VN network id 8 for VN 1b180e78-05bc-4974-968e-ad2e52a885ff
2025-02-05 15:45:37,628 - INFO - Verifications in API Server for VN ctest-vn-78331241 passed
2025-02-05 15:45:37,628 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1b180e78-05bc-4974-968e-ad2e52a885ff
2025-02-05 15:45:37,640 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/93db7f33-0747-4220-929a-e81b1cf9ad4f
2025-02-05 15:45:37,649 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/93db7f33-0747-4220-929a-e81b1cf9ad4f
2025-02-05 15:45:37,658 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/34208479-851e-4fa1-82f9-b59e4a88a528
2025-02-05 15:45:37,674 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-78331241', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23554610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1952326347120200052', 'uuid-lslong': '10848798966848980479'}, 'enable': 'true', 'created': '2025-02-05T15:45:35', 'last-modified': '2025-02-05T15:45:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034130'}
2025-02-05 15:45:37,684 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 15:45:37,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78331241 passed
2025-02-05 15:45:37,685 - DEBUG - ====Verifying policy data for ctest-vn-78331241 in API_Server ======
2025-02-05 15:45:37,685 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 15:45:37,694 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c10826ae-6f15-4fbe-ba12-c723de102a6c
2025-02-05 15:45:37,711 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfa75337-ee95-49ac-a99f-d2333a29b9cb
2025-02-05 15:45:37,785 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1b180e78-05bc-4974-968e-ad2e52a885ff
2025-02-05 15:45:37,797 - DEBUG - ==>Verifying data for policy with id: 880d8c8a-6a4e-493d-89fe-86b07696188f, fqn: ['default-domain', 'ctest-TestBasicPolicy-23554610', 'ctest-policy-allow-all-13416016']
2025-02-05 15:45:37,797 - INFO - VN ctest-vn-78331241 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 15:45:37,797 - DEBUG - Verifying the vn in opserver
2025-02-05 15:45:37,797 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-78331241 virtual network link through opserver 10.0.0.27
2025-02-05 15:45:37,797 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-05 15:45:38,090 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-05 15:45:38,152 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-78331241', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-78331241?flat'}
2025-02-05 15:45:38,152 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-78331241 is found in opserver
2025-02-05 15:45:38,167 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 15:45:38,174 - DEBUG - VRF ids for VN ctest-vn-78331241: {}
2025-02-05 15:45:38,174 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 15:45:38,180 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c10826ae-6f15-4fbe-ba12-c723de102a6c
2025-02-05 15:45:38,194 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfa75337-ee95-49ac-a99f-d2333a29b9cb
2025-02-05 15:45:38,263 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/adc0e308-d9da-4cb4-a614-bff8f9f095b9
2025-02-05 15:45:38,275 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/adc0e308-d9da-4cb4-a614-bff8f9f095b9
2025-02-05 15:45:38,288 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/398dcd8f-27b8-43c3-a846-c2664e1d385e
2025-02-05 15:45:38,299 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/398dcd8f-27b8-43c3-a846-c2664e1d385e
2025-02-05 15:45:38,308 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7ddf3a2d-8717-48c1-9d2f-9a24ea75622c
2025-02-05 15:45:38,317 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 15:45:38,317 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/adc0e308-d9da-4cb4-a614-bff8f9f095b9
2025-02-05 15:45:38,329 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/398dcd8f-27b8-43c3-a846-c2664e1d385e
2025-02-05 15:45:38,347 - INFO - Verified VN network id 9 for VN adc0e308-d9da-4cb4-a614-bff8f9f095b9
2025-02-05 15:45:38,347 - INFO - Verifications in API Server for VN ctest-vn-88686954 passed
2025-02-05 15:45:38,347 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/adc0e308-d9da-4cb4-a614-bff8f9f095b9
2025-02-05 15:45:38,359 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/398dcd8f-27b8-43c3-a846-c2664e1d385e
2025-02-05 15:45:38,367 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/398dcd8f-27b8-43c3-a846-c2664e1d385e
2025-02-05 15:45:38,374 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7ddf3a2d-8717-48c1-9d2f-9a24ea75622c
2025-02-05 15:45:38,389 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-88686954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23554610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12520256591244184756', 'uuid-lslong': '11967401185896338873'}, 'enable': 'true', 'created': '2025-02-05T15:45:35', 'last-modified': '2025-02-05T15:45:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.506105'}
2025-02-05 15:45:38,396 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 15:45:38,396 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88686954 passed
2025-02-05 15:45:38,396 - DEBUG - ====Verifying policy data for ctest-vn-88686954 in API_Server ======
2025-02-05 15:45:38,396 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 15:45:38,403 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c10826ae-6f15-4fbe-ba12-c723de102a6c
2025-02-05 15:45:38,415 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfa75337-ee95-49ac-a99f-d2333a29b9cb
2025-02-05 15:45:38,491 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/adc0e308-d9da-4cb4-a614-bff8f9f095b9
2025-02-05 15:45:38,503 - DEBUG - ==>Verifying data for policy with id: 880d8c8a-6a4e-493d-89fe-86b07696188f, fqn: ['default-domain', 'ctest-TestBasicPolicy-23554610', 'ctest-policy-allow-all-13416016']
2025-02-05 15:45:38,503 - INFO - VN ctest-vn-88686954 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 15:45:38,503 - DEBUG - Verifying the vn in opserver
2025-02-05 15:45:38,503 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-88686954 virtual network link through opserver 10.0.0.27
2025-02-05 15:45:38,503 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-05 15:45:38,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-88686954', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-88686954?flat'}
2025-02-05 15:45:38,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23554610:ctest-vn-88686954 is found in opserver
2025-02-05 15:45:38,528 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 15:45:38,533 - DEBUG - VRF ids for VN ctest-vn-88686954: {}
2025-02-05 15:45:38,604 - DEBUG - Services list from nova: [