2025-06-24 10:09:56,110 - INFO - Domain Default found not creating
2025-06-24 10:09:56,269 - INFO - Project ctest-TestBasicPolicy-11490992 not found, creating it
2025-06-24 10:09:56,743 - INFO - Created Project:ctest-TestBasicPolicy-11490992, ID : c046cae6-3b65-4283-801d-7f40e2107a84
2025-06-24 10:09:58,200 - INFO - ================================================================================
2025-06-24 10:09:58,200 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 10:09:58,200 - 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-24 10:09:58,458 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-24 10:09:58,458 - INFO - Initial checks done. Running the testcase now
2025-06-24 10:09:58,458 - INFO -
2025-06-24 10:09:59,037 - DEBUG - Response for create_network : {'network': {'id': 'dc68039e-a361-45b9-a38e-7e52c8c7d578', 'name': 'ctest-vn-67020364', 'tenant_id': 'c046cae63b654283801d7f40e2107a84', 'project_id': 'c046cae63b654283801d7f40e2107a84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11490992', 'ctest-vn-67020364'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 10:09:59,389 - DEBUG - Response for create_subnet : {'subnet': {'id': '29716cc0-e97b-40d9-a31a-f28d8bb2c294', 'name': '', 'tenant_id': 'c046cae63b654283801d7f40e2107a84', 'network_id': 'dc68039e-a361-45b9-a38e-7e52c8c7d578', 'ip_version': 4, 'cidr': '187.30.34.128/26', 'allocation_pools': [{'start': '187.30.34.130', 'end': '187.30.34.190'}], 'gateway_ip': '187.30.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.30.34.130', 'tags': [], 'project_id': 'c046cae63b654283801d7f40e2107a84'}}
2025-06-24 10:09:59,409 - INFO - Created VN ctest-vn-67020364
2025-06-24 10:09:59,464 - DEBUG - VN ctest-vn-67020364 UUID is dc68039e-a361-45b9-a38e-7e52c8c7d578
2025-06-24 10:09:59,747 - DEBUG - Response for create_network : {'network': {'id': '5935dce1-9b46-40f3-a7e1-0d132828df24', 'name': 'ctest-vn-69730352', 'tenant_id': 'c046cae63b654283801d7f40e2107a84', 'project_id': 'c046cae63b654283801d7f40e2107a84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11490992', 'ctest-vn-69730352'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 10:09:59,927 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a332ed49-5810-479d-8a4c-ff6377ef0909', 'name': '', 'tenant_id': 'c046cae63b654283801d7f40e2107a84', 'network_id': '5935dce1-9b46-40f3-a7e1-0d132828df24', 'ip_version': 4, 'cidr': '52.141.223.192/26', 'allocation_pools': [{'start': '52.141.223.194', 'end': '52.141.223.254'}], 'gateway_ip': '52.141.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.141.223.194', 'tags': [], 'project_id': 'c046cae63b654283801d7f40e2107a84'}}
2025-06-24 10:09:59,944 - INFO - Created VN ctest-vn-69730352
2025-06-24 10:10:00,000 - DEBUG - VN ctest-vn-69730352 UUID is 5935dce1-9b46-40f3-a7e1-0d132828df24
2025-06-24 10:10:00,126 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-67020364, 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-11490992:ctest-vn-69730352, 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-24 10:10:00,435 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc68039e-a361-45b9-a38e-7e52c8c7d578', 'name': 'ctest-vn-67020364', 'tenant_id': 'c046cae63b654283801d7f40e2107a84', 'project_id': 'c046cae63b654283801d7f40e2107a84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29716cc0-e97b-40d9-a31a-f28d8bb2c294'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11490992', 'ctest-vn-67020364'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11490992', 'ctest-policy-allow-all-10673150']], 'subnet_ipam': [{'subnet_cidr': '187.30.34.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 10:10:00,698 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5935dce1-9b46-40f3-a7e1-0d132828df24', 'name': 'ctest-vn-69730352', 'tenant_id': 'c046cae63b654283801d7f40e2107a84', 'project_id': 'c046cae63b654283801d7f40e2107a84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a332ed49-5810-479d-8a4c-ff6377ef0909'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11490992', 'ctest-vn-69730352'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11490992', 'ctest-policy-allow-all-10673150']], 'subnet_ipam': [{'subnet_cidr': '52.141.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 10:10:00,856 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 10:10:01,174 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 10:10:01,209 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7a7d582e-130b-441b-9b56-70c285b56429
2025-06-24 10:10:01,226 - DEBUG - Requesting: http://10.0.0.38:8082/project/c046cae6-3b65-4283-801d-7f40e2107a84
2025-06-24 10:10:01,301 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc68039e-a361-45b9-a38e-7e52c8c7d578
2025-06-24 10:10:01,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc68039e-a361-45b9-a38e-7e52c8c7d578
2025-06-24 10:10:01,329 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/739f3c9f-ad34-40a0-8621-aa7b8cc0e23e
2025-06-24 10:10:01,338 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/739f3c9f-ad34-40a0-8621-aa7b8cc0e23e
2025-06-24 10:10:01,347 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b2d1e31f-f7da-47e3-a8c4-6fec41cc9c90
2025-06-24 10:10:01,356 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 10:10:01,356 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc68039e-a361-45b9-a38e-7e52c8c7d578
2025-06-24 10:10:01,367 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/739f3c9f-ad34-40a0-8621-aa7b8cc0e23e
2025-06-24 10:10:01,385 - INFO - Verified VN network id 8 for VN dc68039e-a361-45b9-a38e-7e52c8c7d578
2025-06-24 10:10:01,385 - INFO - Verifications in API Server for VN ctest-vn-67020364 passed
2025-06-24 10:10:01,385 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc68039e-a361-45b9-a38e-7e52c8c7d578
2025-06-24 10:10:01,397 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/739f3c9f-ad34-40a0-8621-aa7b8cc0e23e
2025-06-24 10:10:01,406 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/739f3c9f-ad34-40a0-8621-aa7b8cc0e23e
2025-06-24 10:10:01,413 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b2d1e31f-f7da-47e3-a8c4-6fec41cc9c90
2025-06-24 10:10:01,426 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-67020364', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11490992', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15881948065802831289', 'uuid-lslong': '11785496168896124280'}, 'enable': 'true', 'created': '2025-06-24T10:09:58', 'last-modified': '2025-06-24T10:10:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.036331'}
2025-06-24 10:10:01,432 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 10:10:01,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67020364 passed
2025-06-24 10:10:01,432 - DEBUG - ====Verifying policy data for ctest-vn-67020364 in API_Server ======
2025-06-24 10:10:01,432 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 10:10:01,438 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7a7d582e-130b-441b-9b56-70c285b56429
2025-06-24 10:10:01,451 - DEBUG - Requesting: http://10.0.0.38:8082/project/c046cae6-3b65-4283-801d-7f40e2107a84
2025-06-24 10:10:01,530 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc68039e-a361-45b9-a38e-7e52c8c7d578
2025-06-24 10:10:01,543 - DEBUG - ==>Verifying data for policy with id: 87475961-2f3d-443a-af0f-cd4a16679f3d, fqn: ['default-domain', 'ctest-TestBasicPolicy-11490992', 'ctest-policy-allow-all-10673150']
2025-06-24 10:10:01,543 - INFO - VN ctest-vn-67020364 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 10:10:01,543 - DEBUG - Verifying the vn in opserver
2025-06-24 10:10:01,544 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-67020364 virtual network link through opserver 10.0.0.38
2025-06-24 10:10:01,544 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-24 10:10:01,858 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-24 10:10:01,912 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-67020364', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-67020364?flat'}
2025-06-24 10:10:01,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-67020364 is found in opserver
2025-06-24 10:10:01,923 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 10:10:01,929 - DEBUG - VRF ids for VN ctest-vn-67020364: {}
2025-06-24 10:10:01,930 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 10:10:01,936 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7a7d582e-130b-441b-9b56-70c285b56429
2025-06-24 10:10:01,951 - DEBUG - Requesting: http://10.0.0.38:8082/project/c046cae6-3b65-4283-801d-7f40e2107a84
2025-06-24 10:10:02,028 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5935dce1-9b46-40f3-a7e1-0d132828df24
2025-06-24 10:10:02,042 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5935dce1-9b46-40f3-a7e1-0d132828df24
2025-06-24 10:10:02,054 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab958e20-1a94-464b-a94f-afe721daaff6
2025-06-24 10:10:02,065 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab958e20-1a94-464b-a94f-afe721daaff6
2025-06-24 10:10:02,075 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bd1ee4b6-62f4-44db-bbe3-0e507fe7d07c
2025-06-24 10:10:02,084 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 10:10:02,085 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5935dce1-9b46-40f3-a7e1-0d132828df24
2025-06-24 10:10:02,099 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab958e20-1a94-464b-a94f-afe721daaff6
2025-06-24 10:10:02,117 - INFO - Verified VN network id 9 for VN 5935dce1-9b46-40f3-a7e1-0d132828df24
2025-06-24 10:10:02,118 - INFO - Verifications in API Server for VN ctest-vn-69730352 passed
2025-06-24 10:10:02,118 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5935dce1-9b46-40f3-a7e1-0d132828df24
2025-06-24 10:10:02,129 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab958e20-1a94-464b-a94f-afe721daaff6
2025-06-24 10:10:02,137 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab958e20-1a94-464b-a94f-afe721daaff6
2025-06-24 10:10:02,146 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bd1ee4b6-62f4-44db-bbe3-0e507fe7d07c
2025-06-24 10:10:02,159 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-69730352', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11490992', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6428286904672076019', 'uuid-lslong': '12096964450023169828'}, 'enable': 'true', 'created': '2025-06-24T10:09:59', 'last-modified': '2025-06-24T10:10:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540614'}
2025-06-24 10:10:02,165 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 10:10:02,166 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69730352 passed
2025-06-24 10:10:02,166 - DEBUG - ====Verifying policy data for ctest-vn-69730352 in API_Server ======
2025-06-24 10:10:02,166 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 10:10:02,173 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7a7d582e-130b-441b-9b56-70c285b56429
2025-06-24 10:10:02,189 - DEBUG - Requesting: http://10.0.0.38:8082/project/c046cae6-3b65-4283-801d-7f40e2107a84
2025-06-24 10:10:02,260 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5935dce1-9b46-40f3-a7e1-0d132828df24
2025-06-24 10:10:02,272 - DEBUG - ==>Verifying data for policy with id: 87475961-2f3d-443a-af0f-cd4a16679f3d, fqn: ['default-domain', 'ctest-TestBasicPolicy-11490992', 'ctest-policy-allow-all-10673150']
2025-06-24 10:10:02,272 - INFO - VN ctest-vn-69730352 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 10:10:02,272 - DEBUG - Verifying the vn in opserver
2025-06-24 10:10:02,272 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-69730352 virtual network link through opserver 10.0.0.38
2025-06-24 10:10:02,272 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-24 10:10:02,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-69730352', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-69730352?flat'}
2025-06-24 10:10:02,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11490992:ctest-vn-69730352 is found in opserver
2025-06-24 10:10:02,294 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 10:10:02,300 - DEBUG - VRF ids for VN ctest-vn-69730352: {}
2025-06-24 10:10:02,374 - DEBUG - Services list from nova: [