2025-07-31 02:26:51,747 - INFO - Domain Default found not creating
2025-07-31 02:26:51,948 - INFO - Project ctest-TestBasicPolicy-45855620 not found, creating it
2025-07-31 02:26:52,506 - INFO - Created Project:ctest-TestBasicPolicy-45855620, ID : 4f9970e2-bc8b-4277-9399-59d2f4f6bc5c
2025-07-31 02:26:54,026 - INFO - ================================================================================
2025-07-31 02:26:54,026 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-31 02:26:54,026 - 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-31 02:26:54,286 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-31 02:26:54,286 - INFO - Initial checks done. Running the testcase now
2025-07-31 02:26:54,286 - INFO -
2025-07-31 02:26:54,939 - DEBUG - Response for create_network : {'network': {'id': '638ea2de-3a26-45ac-9730-72ab74a17af0', 'name': 'ctest-vn-82193113', 'tenant_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'project_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45855620', 'ctest-vn-82193113'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:26:55,175 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd54644bc-b6d9-4acd-a4d4-a447e624b4db', 'name': '', 'tenant_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'network_id': '638ea2de-3a26-45ac-9730-72ab74a17af0', 'ip_version': 4, 'cidr': '18.41.128.128/26', 'allocation_pools': [{'start': '18.41.128.130', 'end': '18.41.128.190'}], 'gateway_ip': '18.41.128.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.41.128.130', 'tags': [], 'project_id': '4f9970e2bc8b4277939959d2f4f6bc5c'}}
2025-07-31 02:26:55,202 - INFO - Created VN ctest-vn-82193113
2025-07-31 02:26:55,258 - DEBUG - VN ctest-vn-82193113 UUID is 638ea2de-3a26-45ac-9730-72ab74a17af0
2025-07-31 02:26:55,583 - DEBUG - Response for create_network : {'network': {'id': '56cddab6-5df9-475e-92ae-8271fafdbd92', 'name': 'ctest-vn-68148565', 'tenant_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'project_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45855620', 'ctest-vn-68148565'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:26:55,810 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c9c37b1-70b8-4c24-b04f-9af2c8b86fcf', 'name': '', 'tenant_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'network_id': '56cddab6-5df9-475e-92ae-8271fafdbd92', 'ip_version': 4, 'cidr': '172.102.234.192/26', 'allocation_pools': [{'start': '172.102.234.194', 'end': '172.102.234.254'}], 'gateway_ip': '172.102.234.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.102.234.194', 'tags': [], 'project_id': '4f9970e2bc8b4277939959d2f4f6bc5c'}}
2025-07-31 02:26:55,835 - INFO - Created VN ctest-vn-68148565
2025-07-31 02:26:55,890 - DEBUG - VN ctest-vn-68148565 UUID is 56cddab6-5df9-475e-92ae-8271fafdbd92
2025-07-31 02:26:56,022 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-82193113, 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-45855620:ctest-vn-68148565, 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-31 02:26:56,343 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '638ea2de-3a26-45ac-9730-72ab74a17af0', 'name': 'ctest-vn-82193113', 'tenant_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'project_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d54644bc-b6d9-4acd-a4d4-a447e624b4db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45855620', 'ctest-vn-82193113'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45855620', 'ctest-policy-allow-all-56053350']], 'subnet_ipam': [{'subnet_cidr': '18.41.128.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:26:56,568 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '56cddab6-5df9-475e-92ae-8271fafdbd92', 'name': 'ctest-vn-68148565', 'tenant_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'project_id': '4f9970e2bc8b4277939959d2f4f6bc5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c9c37b1-70b8-4c24-b04f-9af2c8b86fcf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45855620', 'ctest-vn-68148565'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45855620', 'ctest-policy-allow-all-56053350']], 'subnet_ipam': [{'subnet_cidr': '172.102.234.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:26:56,742 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 02:26:57,037 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 02:26:57,069 - DEBUG - Requesting: http://10.0.0.50:8082/domain/59cd0ab7-96a7-4f7a-b514-7f260b8ac1aa
2025-07-31 02:26:57,084 - DEBUG - Requesting: http://10.0.0.50:8082/project/4f9970e2-bc8b-4277-9399-59d2f4f6bc5c
2025-07-31 02:26:57,167 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/638ea2de-3a26-45ac-9730-72ab74a17af0
2025-07-31 02:26:57,180 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/638ea2de-3a26-45ac-9730-72ab74a17af0
2025-07-31 02:26:57,193 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70488bc5-56be-4227-ba71-fc72af26c155
2025-07-31 02:26:57,202 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70488bc5-56be-4227-ba71-fc72af26c155
2025-07-31 02:26:57,211 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6e5db8e8-a98e-4ae2-8b4a-ce05dbf67445
2025-07-31 02:26:57,219 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 02:26:57,219 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/638ea2de-3a26-45ac-9730-72ab74a17af0
2025-07-31 02:26:57,230 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70488bc5-56be-4227-ba71-fc72af26c155
2025-07-31 02:26:57,248 - INFO - Verified VN network id 11 for VN 638ea2de-3a26-45ac-9730-72ab74a17af0
2025-07-31 02:26:57,249 - INFO - Verifications in API Server for VN ctest-vn-82193113 passed
2025-07-31 02:26:57,249 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/638ea2de-3a26-45ac-9730-72ab74a17af0
2025-07-31 02:26:57,261 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70488bc5-56be-4227-ba71-fc72af26c155
2025-07-31 02:26:57,270 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70488bc5-56be-4227-ba71-fc72af26c155
2025-07-31 02:26:57,278 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6e5db8e8-a98e-4ae2-8b4a-ce05dbf67445
2025-07-31 02:26:57,293 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-82193113', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45855620', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7173850331789804972', 'uuid-lslong': '10894333579330943728'}, 'enable': 'true', 'created': '2025-07-31T02:26:54', 'last-modified': '2025-07-31T02:26:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968282'}
2025-07-31 02:26:57,302 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 02:26:57,302 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82193113 passed
2025-07-31 02:26:57,302 - DEBUG - ====Verifying policy data for ctest-vn-82193113 in API_Server ======
2025-07-31 02:26:57,303 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 02:26:57,310 - DEBUG - Requesting: http://10.0.0.50:8082/domain/59cd0ab7-96a7-4f7a-b514-7f260b8ac1aa
2025-07-31 02:26:57,325 - DEBUG - Requesting: http://10.0.0.50:8082/project/4f9970e2-bc8b-4277-9399-59d2f4f6bc5c
2025-07-31 02:26:57,401 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/638ea2de-3a26-45ac-9730-72ab74a17af0
2025-07-31 02:26:57,413 - DEBUG - ==>Verifying data for policy with id: ad51c677-e730-4ae0-85bf-3b277452a7a1, fqn: ['default-domain', 'ctest-TestBasicPolicy-45855620', 'ctest-policy-allow-all-56053350']
2025-07-31 02:26:57,413 - INFO - VN ctest-vn-82193113 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 02:26:57,413 - DEBUG - Verifying the vn in opserver
2025-07-31 02:26:57,413 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-82193113 virtual network link through opserver 10.0.0.50
2025-07-31 02:26:57,413 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-31 02:26:57,709 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-31 02:26:57,777 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-82193113', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-82193113?flat'}
2025-07-31 02:26:57,777 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-82193113 is found in opserver
2025-07-31 02:26:57,792 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 02:26:57,799 - DEBUG - VRF ids for VN ctest-vn-82193113: {}
2025-07-31 02:26:57,799 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 02:26:57,806 - DEBUG - Requesting: http://10.0.0.50:8082/domain/59cd0ab7-96a7-4f7a-b514-7f260b8ac1aa
2025-07-31 02:26:57,822 - DEBUG - Requesting: http://10.0.0.50:8082/project/4f9970e2-bc8b-4277-9399-59d2f4f6bc5c
2025-07-31 02:26:57,904 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/56cddab6-5df9-475e-92ae-8271fafdbd92
2025-07-31 02:26:57,933 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/56cddab6-5df9-475e-92ae-8271fafdbd92
2025-07-31 02:26:57,946 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e05b7525-6c17-4fa7-a67b-aa0bf4756703
2025-07-31 02:26:57,957 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e05b7525-6c17-4fa7-a67b-aa0bf4756703
2025-07-31 02:26:57,965 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/84203f0a-6da6-4934-be5d-75d839c92f5d
2025-07-31 02:26:57,976 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 02:26:57,976 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/56cddab6-5df9-475e-92ae-8271fafdbd92
2025-07-31 02:26:57,991 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e05b7525-6c17-4fa7-a67b-aa0bf4756703
2025-07-31 02:26:58,010 - INFO - Verified VN network id 12 for VN 56cddab6-5df9-475e-92ae-8271fafdbd92
2025-07-31 02:26:58,010 - INFO - Verifications in API Server for VN ctest-vn-68148565 passed
2025-07-31 02:26:58,010 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/56cddab6-5df9-475e-92ae-8271fafdbd92
2025-07-31 02:26:58,023 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e05b7525-6c17-4fa7-a67b-aa0bf4756703
2025-07-31 02:26:58,032 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e05b7525-6c17-4fa7-a67b-aa0bf4756703
2025-07-31 02:26:58,041 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/84203f0a-6da6-4934-be5d-75d839c92f5d
2025-07-31 02:26:58,059 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-68148565', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45855620', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6254895934283007838', 'uuid-lslong': '10569528801538981266'}, 'enable': 'true', 'created': '2025-07-31T02:26:55', 'last-modified': '2025-07-31T02:26:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.522242'}
2025-07-31 02:26:58,068 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 02:26:58,068 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68148565 passed
2025-07-31 02:26:58,069 - DEBUG - ====Verifying policy data for ctest-vn-68148565 in API_Server ======
2025-07-31 02:26:58,069 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 02:26:58,076 - DEBUG - Requesting: http://10.0.0.50:8082/domain/59cd0ab7-96a7-4f7a-b514-7f260b8ac1aa
2025-07-31 02:26:58,091 - DEBUG - Requesting: http://10.0.0.50:8082/project/4f9970e2-bc8b-4277-9399-59d2f4f6bc5c
2025-07-31 02:26:58,170 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/56cddab6-5df9-475e-92ae-8271fafdbd92
2025-07-31 02:26:58,181 - DEBUG - ==>Verifying data for policy with id: ad51c677-e730-4ae0-85bf-3b277452a7a1, fqn: ['default-domain', 'ctest-TestBasicPolicy-45855620', 'ctest-policy-allow-all-56053350']
2025-07-31 02:26:58,181 - INFO - VN ctest-vn-68148565 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 02:26:58,181 - DEBUG - Verifying the vn in opserver
2025-07-31 02:26:58,181 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-68148565 virtual network link through opserver 10.0.0.50
2025-07-31 02:26:58,181 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-31 02:26:58,194 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-68148565', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-68148565?flat'}
2025-07-31 02:26:58,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45855620:ctest-vn-68148565 is found in opserver
2025-07-31 02:26:58,207 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 02:26:58,215 - DEBUG - VRF ids for VN ctest-vn-68148565: {}
2025-07-31 02:26:58,287 - DEBUG - Services list from nova: [