2025-05-01 12:51:19,458 - INFO - Domain Default found not creating
2025-05-01 12:51:19,625 - INFO - Project ctest-TestBasicPolicy-70184383 not found, creating it
2025-05-01 12:51:20,066 - INFO - Created Project:ctest-TestBasicPolicy-70184383, ID : 3ece34d8-d8f6-40d9-afda-82eef9a77118
2025-05-01 12:51:21,570 - INFO - ================================================================================
2025-05-01 12:51:21,570 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-01 12:51:21,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-05-01 12:51:21,835 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with
2025-05-01 12:51:21,835 - INFO - Initial checks done. Running the testcase now
2025-05-01 12:51:21,835 - INFO -
2025-05-01 12:51:22,352 - DEBUG - Response for create_network : {'network': {'id': 'eddb9305-97d6-4e78-8b70-44902ef69904', 'name': 'ctest-vn-28768819', 'tenant_id': '3ece34d8d8f640d9afda82eef9a77118', 'project_id': '3ece34d8d8f640d9afda82eef9a77118', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70184383', 'ctest-vn-28768819'], 'port_security_enabled': True, 'description': ''}}
2025-05-01 12:51:22,504 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf0257e5-7f36-4482-8f4c-6689581ac601', 'name': '', 'tenant_id': '3ece34d8d8f640d9afda82eef9a77118', 'network_id': 'eddb9305-97d6-4e78-8b70-44902ef69904', 'ip_version': 4, 'cidr': '64.120.77.192/26', 'allocation_pools': [{'start': '64.120.77.194', 'end': '64.120.77.254'}], 'gateway_ip': '64.120.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.120.77.194', 'tags': [], 'project_id': '3ece34d8d8f640d9afda82eef9a77118'}}
2025-05-01 12:51:22,523 - INFO - Created VN ctest-vn-28768819
2025-05-01 12:51:22,578 - DEBUG - VN ctest-vn-28768819 UUID is eddb9305-97d6-4e78-8b70-44902ef69904
2025-05-01 12:51:22,883 - DEBUG - Response for create_network : {'network': {'id': 'b76de471-944c-4648-8792-35b102261106', 'name': 'ctest-vn-51292128', 'tenant_id': '3ece34d8d8f640d9afda82eef9a77118', 'project_id': '3ece34d8d8f640d9afda82eef9a77118', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70184383', 'ctest-vn-51292128'], 'port_security_enabled': True, 'description': ''}}
2025-05-01 12:51:23,031 - DEBUG - Response for create_subnet : {'subnet': {'id': '7066cc80-ff86-4cd6-bad1-4236cb50b4d0', 'name': '', 'tenant_id': '3ece34d8d8f640d9afda82eef9a77118', 'network_id': 'b76de471-944c-4648-8792-35b102261106', 'ip_version': 4, 'cidr': '111.191.187.128/26', 'allocation_pools': [{'start': '111.191.187.130', 'end': '111.191.187.190'}], 'gateway_ip': '111.191.187.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.191.187.130', 'tags': [], 'project_id': '3ece34d8d8f640d9afda82eef9a77118'}}
2025-05-01 12:51:23,052 - INFO - Created VN ctest-vn-51292128
2025-05-01 12:51:23,102 - DEBUG - VN ctest-vn-51292128 UUID is b76de471-944c-4648-8792-35b102261106
2025-05-01 12:51:23,246 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-28768819, 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-70184383:ctest-vn-51292128, 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-05-01 12:51:23,536 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eddb9305-97d6-4e78-8b70-44902ef69904', 'name': 'ctest-vn-28768819', 'tenant_id': '3ece34d8d8f640d9afda82eef9a77118', 'project_id': '3ece34d8d8f640d9afda82eef9a77118', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf0257e5-7f36-4482-8f4c-6689581ac601'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70184383', 'ctest-vn-28768819'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70184383', 'ctest-policy-allow-all-37390842']], 'subnet_ipam': [{'subnet_cidr': '64.120.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-01 12:51:23,805 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b76de471-944c-4648-8792-35b102261106', 'name': 'ctest-vn-51292128', 'tenant_id': '3ece34d8d8f640d9afda82eef9a77118', 'project_id': '3ece34d8d8f640d9afda82eef9a77118', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7066cc80-ff86-4cd6-bad1-4236cb50b4d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70184383', 'ctest-vn-51292128'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70184383', 'ctest-policy-allow-all-37390842']], 'subnet_ipam': [{'subnet_cidr': '111.191.187.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-01 12:51:23,958 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-01 12:51:24,259 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-01 12:51:24,285 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bdb7b428-e628-49dd-8052-159d32e07b57
2025-05-01 12:51:24,295 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ece34d8-d8f6-40d9-afda-82eef9a77118
2025-05-01 12:51:24,369 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eddb9305-97d6-4e78-8b70-44902ef69904
2025-05-01 12:51:24,379 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eddb9305-97d6-4e78-8b70-44902ef69904
2025-05-01 12:51:24,387 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0ce1976-b619-4c29-866b-cc9ee67e5839
2025-05-01 12:51:24,394 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0ce1976-b619-4c29-866b-cc9ee67e5839
2025-05-01 12:51:24,401 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fc0d3f64-a637-4109-9c93-5ccb92be5066
2025-05-01 12:51:24,407 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-01 12:51:24,407 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eddb9305-97d6-4e78-8b70-44902ef69904
2025-05-01 12:51:24,414 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0ce1976-b619-4c29-866b-cc9ee67e5839
2025-05-01 12:51:24,426 - INFO - Verified VN network id 8 for VN eddb9305-97d6-4e78-8b70-44902ef69904
2025-05-01 12:51:24,426 - INFO - Verifications in API Server for VN ctest-vn-28768819 passed
2025-05-01 12:51:24,426 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eddb9305-97d6-4e78-8b70-44902ef69904
2025-05-01 12:51:24,434 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0ce1976-b619-4c29-866b-cc9ee67e5839
2025-05-01 12:51:24,440 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0ce1976-b619-4c29-866b-cc9ee67e5839
2025-05-01 12:51:24,446 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fc0d3f64-a637-4109-9c93-5ccb92be5066
2025-05-01 12:51:24,455 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-28768819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70184383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17139454459120078456', 'uuid-lslong': '10047606154717468932'}, 'enable': 'true', 'created': '2025-05-01T12:51:22', 'last-modified': '2025-05-01T12:51:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946320'}
2025-05-01 12:51:24,460 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-01 12:51:24,460 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28768819 passed
2025-05-01 12:51:24,461 - DEBUG - ====Verifying policy data for ctest-vn-28768819 in API_Server ======
2025-05-01 12:51:24,461 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-01 12:51:24,468 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bdb7b428-e628-49dd-8052-159d32e07b57
2025-05-01 12:51:24,478 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ece34d8-d8f6-40d9-afda-82eef9a77118
2025-05-01 12:51:24,557 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eddb9305-97d6-4e78-8b70-44902ef69904
2025-05-01 12:51:24,565 - DEBUG - ==>Verifying data for policy with id: 89856d57-6a01-4a67-8a4d-248173d6c9ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-70184383', 'ctest-policy-allow-all-37390842']
2025-05-01 12:51:24,565 - INFO - VN ctest-vn-28768819 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-01 12:51:24,565 - DEBUG - Verifying the vn in opserver
2025-05-01 12:51:24,565 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-28768819 virtual network link through opserver 10.0.0.38
2025-05-01 12:51:24,565 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-01 12:51:24,854 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-01 12:51:24,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-28768819', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-28768819?flat'}
2025-05-01 12:51:24,917 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-28768819 is found in opserver
2025-05-01 12:51:24,928 - DEBUG - Do not have enough data to verify VN in agent
2025-05-01 12:51:24,934 - DEBUG - VRF ids for VN ctest-vn-28768819: {}
2025-05-01 12:51:24,934 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-01 12:51:24,939 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bdb7b428-e628-49dd-8052-159d32e07b57
2025-05-01 12:51:24,951 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ece34d8-d8f6-40d9-afda-82eef9a77118
2025-05-01 12:51:25,029 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76de471-944c-4648-8792-35b102261106
2025-05-01 12:51:25,040 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76de471-944c-4648-8792-35b102261106
2025-05-01 12:51:25,049 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32f96f03-1629-475b-be23-2cf61765216e
2025-05-01 12:51:25,054 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32f96f03-1629-475b-be23-2cf61765216e
2025-05-01 12:51:25,060 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/62c56cb1-55ec-4199-827b-237019c88b50
2025-05-01 12:51:25,066 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-01 12:51:25,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76de471-944c-4648-8792-35b102261106
2025-05-01 12:51:25,073 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32f96f03-1629-475b-be23-2cf61765216e
2025-05-01 12:51:25,140 - INFO - Verified VN network id 9 for VN b76de471-944c-4648-8792-35b102261106
2025-05-01 12:51:25,140 - INFO - Verifications in API Server for VN ctest-vn-51292128 passed
2025-05-01 12:51:25,140 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76de471-944c-4648-8792-35b102261106
2025-05-01 12:51:25,147 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32f96f03-1629-475b-be23-2cf61765216e
2025-05-01 12:51:25,153 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32f96f03-1629-475b-be23-2cf61765216e
2025-05-01 12:51:25,160 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/62c56cb1-55ec-4199-827b-237019c88b50
2025-05-01 12:51:25,172 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-51292128', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70184383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13217471657872737864', 'uuid-lslong': '9768929576081559814'}, 'enable': 'true', 'created': '2025-05-01T12:51:22', 'last-modified': '2025-05-01T12:51:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.434622'}
2025-05-01 12:51:25,176 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-01 12:51:25,177 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51292128 passed
2025-05-01 12:51:25,177 - DEBUG - ====Verifying policy data for ctest-vn-51292128 in API_Server ======
2025-05-01 12:51:25,177 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-01 12:51:25,182 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bdb7b428-e628-49dd-8052-159d32e07b57
2025-05-01 12:51:25,194 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ece34d8-d8f6-40d9-afda-82eef9a77118
2025-05-01 12:51:25,269 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76de471-944c-4648-8792-35b102261106
2025-05-01 12:51:25,277 - DEBUG - ==>Verifying data for policy with id: 89856d57-6a01-4a67-8a4d-248173d6c9ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-70184383', 'ctest-policy-allow-all-37390842']
2025-05-01 12:51:25,277 - INFO - VN ctest-vn-51292128 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-01 12:51:25,277 - DEBUG - Verifying the vn in opserver
2025-05-01 12:51:25,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-51292128 virtual network link through opserver 10.0.0.38
2025-05-01 12:51:25,277 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-01 12:51:25,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-51292128', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-51292128?flat'}
2025-05-01 12:51:25,289 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70184383:ctest-vn-51292128 is found in opserver
2025-05-01 12:51:25,297 - DEBUG - Do not have enough data to verify VN in agent
2025-05-01 12:51:25,302 - DEBUG - VRF ids for VN ctest-vn-51292128: {}
2025-05-01 12:51:25,357 - DEBUG - Services list from nova: [