2025-07-17 14:56:58,310 - INFO - Domain Default found not creating
2025-07-17 14:56:58,471 - INFO - Project ctest-TestBasicPolicy-50803556 not found, creating it
2025-07-17 14:56:58,945 - INFO - Created Project:ctest-TestBasicPolicy-50803556, ID : fc357756-3fca-4945-8fc3-9f7bd01a711a
2025-07-17 14:57:00,493 - INFO - ================================================================================
2025-07-17 14:57:00,493 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-17 14:57:00,493 - 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-07-17 14:57:00,751 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-17 14:57:00,751 - INFO - Initial checks done. Running the testcase now
2025-07-17 14:57:00,752 - INFO -
2025-07-17 14:57:01,344 - DEBUG - Response for create_network : {'network': {'id': 'd0b02177-722d-48f4-8487-4a0bb4741296', 'name': 'ctest-vn-53144421', 'tenant_id': 'fc3577563fca49458fc39f7bd01a711a', 'project_id': 'fc3577563fca49458fc39f7bd01a711a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50803556', 'ctest-vn-53144421'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 14:57:01,529 - DEBUG - Response for create_subnet : {'subnet': {'id': '363515af-b291-465f-93b1-39fada08cece', 'name': '', 'tenant_id': 'fc3577563fca49458fc39f7bd01a711a', 'network_id': 'd0b02177-722d-48f4-8487-4a0bb4741296', 'ip_version': 4, 'cidr': '117.49.30.128/26', 'allocation_pools': [{'start': '117.49.30.130', 'end': '117.49.30.190'}], 'gateway_ip': '117.49.30.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.49.30.130', 'tags': [], 'project_id': 'fc3577563fca49458fc39f7bd01a711a'}}
2025-07-17 14:57:01,553 - INFO - Created VN ctest-vn-53144421
2025-07-17 14:57:01,609 - DEBUG - VN ctest-vn-53144421 UUID is d0b02177-722d-48f4-8487-4a0bb4741296
2025-07-17 14:57:01,911 - DEBUG - Response for create_network : {'network': {'id': '374dd855-70f5-493d-92f3-b296ca9afc8e', 'name': 'ctest-vn-27040883', 'tenant_id': 'fc3577563fca49458fc39f7bd01a711a', 'project_id': 'fc3577563fca49458fc39f7bd01a711a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50803556', 'ctest-vn-27040883'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 14:57:02,112 - DEBUG - Response for create_subnet : {'subnet': {'id': '00ad743d-180b-4630-a79b-e2f9113cde5f', 'name': '', 'tenant_id': 'fc3577563fca49458fc39f7bd01a711a', 'network_id': '374dd855-70f5-493d-92f3-b296ca9afc8e', 'ip_version': 4, 'cidr': '7.140.188.64/26', 'allocation_pools': [{'start': '7.140.188.66', 'end': '7.140.188.126'}], 'gateway_ip': '7.140.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.140.188.66', 'tags': [], 'project_id': 'fc3577563fca49458fc39f7bd01a711a'}}
2025-07-17 14:57:02,130 - INFO - Created VN ctest-vn-27040883
2025-07-17 14:57:02,186 - DEBUG - VN ctest-vn-27040883 UUID is 374dd855-70f5-493d-92f3-b296ca9afc8e
2025-07-17 14:57:02,301 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-53144421, 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-50803556:ctest-vn-27040883, 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-07-17 14:57:02,610 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0b02177-722d-48f4-8487-4a0bb4741296', 'name': 'ctest-vn-53144421', 'tenant_id': 'fc3577563fca49458fc39f7bd01a711a', 'project_id': 'fc3577563fca49458fc39f7bd01a711a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['363515af-b291-465f-93b1-39fada08cece'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50803556', 'ctest-vn-53144421'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50803556', 'ctest-policy-allow-all-19623104']], 'subnet_ipam': [{'subnet_cidr': '117.49.30.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 14:57:02,888 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '374dd855-70f5-493d-92f3-b296ca9afc8e', 'name': 'ctest-vn-27040883', 'tenant_id': 'fc3577563fca49458fc39f7bd01a711a', 'project_id': 'fc3577563fca49458fc39f7bd01a711a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00ad743d-180b-4630-a79b-e2f9113cde5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50803556', 'ctest-vn-27040883'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50803556', 'ctest-policy-allow-all-19623104']], 'subnet_ipam': [{'subnet_cidr': '7.140.188.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 14:57:03,061 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 14:57:03,359 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 14:57:03,389 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0df13b68-a6e9-4fb2-ace2-7b8a3de5e40c
2025-07-17 14:57:03,404 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc357756-3fca-4945-8fc3-9f7bd01a711a
2025-07-17 14:57:03,484 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0b02177-722d-48f4-8487-4a0bb4741296
2025-07-17 14:57:03,498 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0b02177-722d-48f4-8487-4a0bb4741296
2025-07-17 14:57:03,509 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/424a3451-6d27-494d-85ad-14009e806574
2025-07-17 14:57:03,519 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/424a3451-6d27-494d-85ad-14009e806574
2025-07-17 14:57:03,528 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/620760c0-3067-4e71-af27-dc45922040be
2025-07-17 14:57:03,535 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 14:57:03,535 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0b02177-722d-48f4-8487-4a0bb4741296
2025-07-17 14:57:03,546 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/424a3451-6d27-494d-85ad-14009e806574
2025-07-17 14:57:03,562 - INFO - Verified VN network id 8 for VN d0b02177-722d-48f4-8487-4a0bb4741296
2025-07-17 14:57:03,562 - INFO - Verifications in API Server for VN ctest-vn-53144421 passed
2025-07-17 14:57:03,563 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0b02177-722d-48f4-8487-4a0bb4741296
2025-07-17 14:57:03,573 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/424a3451-6d27-494d-85ad-14009e806574
2025-07-17 14:57:03,582 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/424a3451-6d27-494d-85ad-14009e806574
2025-07-17 14:57:03,591 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/620760c0-3067-4e71-af27-dc45922040be
2025-07-17 14:57:03,608 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-53144421', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50803556', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15037555952690481396', 'uuid-lslong': '9549682948995027606'}, 'enable': 'true', 'created': '2025-07-17T14:57:01', 'last-modified': '2025-07-17T14:57:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018667'}
2025-07-17 14:57:03,616 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 14:57:03,616 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53144421 passed
2025-07-17 14:57:03,616 - DEBUG - ====Verifying policy data for ctest-vn-53144421 in API_Server ======
2025-07-17 14:57:03,616 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 14:57:03,623 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0df13b68-a6e9-4fb2-ace2-7b8a3de5e40c
2025-07-17 14:57:03,636 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc357756-3fca-4945-8fc3-9f7bd01a711a
2025-07-17 14:57:03,715 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0b02177-722d-48f4-8487-4a0bb4741296
2025-07-17 14:57:03,726 - DEBUG - ==>Verifying data for policy with id: befe728b-932b-4c0e-8065-a6571620fdf0, fqn: ['default-domain', 'ctest-TestBasicPolicy-50803556', 'ctest-policy-allow-all-19623104']
2025-07-17 14:57:03,726 - INFO - VN ctest-vn-53144421 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 14:57:03,726 - DEBUG - Verifying the vn in opserver
2025-07-17 14:57:03,726 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-53144421 virtual network link through opserver 10.0.0.50
2025-07-17 14:57:03,726 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-17 14:57:04,020 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-17 14:57:04,078 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-53144421', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-53144421?flat'}
2025-07-17 14:57:04,078 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-53144421 is found in opserver
2025-07-17 14:57:04,089 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 14:57:04,095 - DEBUG - VRF ids for VN ctest-vn-53144421: {}
2025-07-17 14:57:04,096 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 14:57:04,101 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0df13b68-a6e9-4fb2-ace2-7b8a3de5e40c
2025-07-17 14:57:04,114 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc357756-3fca-4945-8fc3-9f7bd01a711a
2025-07-17 14:57:04,195 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374dd855-70f5-493d-92f3-b296ca9afc8e
2025-07-17 14:57:04,208 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374dd855-70f5-493d-92f3-b296ca9afc8e
2025-07-17 14:57:04,221 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92a3e955-7ec3-44a4-9d6f-eeb2df4e4160
2025-07-17 14:57:04,230 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92a3e955-7ec3-44a4-9d6f-eeb2df4e4160
2025-07-17 14:57:04,240 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef408760-d048-4cdf-8e08-3f31cd1f313a
2025-07-17 14:57:04,250 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 14:57:04,250 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374dd855-70f5-493d-92f3-b296ca9afc8e
2025-07-17 14:57:04,262 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92a3e955-7ec3-44a4-9d6f-eeb2df4e4160
2025-07-17 14:57:04,278 - INFO - Verified VN network id 9 for VN 374dd855-70f5-493d-92f3-b296ca9afc8e
2025-07-17 14:57:04,278 - INFO - Verifications in API Server for VN ctest-vn-27040883 passed
2025-07-17 14:57:04,278 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374dd855-70f5-493d-92f3-b296ca9afc8e
2025-07-17 14:57:04,289 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92a3e955-7ec3-44a4-9d6f-eeb2df4e4160
2025-07-17 14:57:04,298 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92a3e955-7ec3-44a4-9d6f-eeb2df4e4160
2025-07-17 14:57:04,306 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef408760-d048-4cdf-8e08-3f31cd1f313a
2025-07-17 14:57:04,322 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-27040883', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50803556', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3985079106771700029', 'uuid-lslong': '10589003509592161422'}, 'enable': 'true', 'created': '2025-07-17T14:57:01', 'last-modified': '2025-07-17T14:57:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480839'}
2025-07-17 14:57:04,328 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 14:57:04,329 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27040883 passed
2025-07-17 14:57:04,329 - DEBUG - ====Verifying policy data for ctest-vn-27040883 in API_Server ======
2025-07-17 14:57:04,329 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 14:57:04,335 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0df13b68-a6e9-4fb2-ace2-7b8a3de5e40c
2025-07-17 14:57:04,347 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc357756-3fca-4945-8fc3-9f7bd01a711a
2025-07-17 14:57:04,422 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374dd855-70f5-493d-92f3-b296ca9afc8e
2025-07-17 14:57:04,439 - DEBUG - ==>Verifying data for policy with id: befe728b-932b-4c0e-8065-a6571620fdf0, fqn: ['default-domain', 'ctest-TestBasicPolicy-50803556', 'ctest-policy-allow-all-19623104']
2025-07-17 14:57:04,439 - INFO - VN ctest-vn-27040883 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 14:57:04,439 - DEBUG - Verifying the vn in opserver
2025-07-17 14:57:04,439 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-27040883 virtual network link through opserver 10.0.0.50
2025-07-17 14:57:04,439 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-17 14:57:04,451 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-27040883', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-27040883?flat'}
2025-07-17 14:57:04,451 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50803556:ctest-vn-27040883 is found in opserver
2025-07-17 14:57:04,464 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 14:57:04,470 - DEBUG - VRF ids for VN ctest-vn-27040883: {}
2025-07-17 14:57:04,533 - DEBUG - Services list from nova: [