2025-10-30 22:23:22,647 - INFO - Domain Default found not creating
2025-10-30 22:23:22,778 - INFO - Project ctest-TestBasicPolicy-05184612 not found, creating it
2025-10-30 22:23:23,194 - INFO - Created Project:ctest-TestBasicPolicy-05184612, ID : 15686415-9d65-47d5-b2aa-d37edaab1b79
2025-10-30 22:23:24,549 - INFO - ================================================================================
2025-10-30 22:23:24,549 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 22:23:24,550 - 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-10-30 22:23:24,810 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.153': '0'}} with
2025-10-30 22:23:24,810 - INFO - Initial checks done. Running the testcase now
2025-10-30 22:23:24,811 - INFO -
2025-10-30 22:23:25,330 - DEBUG - Response for create_network : {'network': {'id': '5d04fb2f-7932-4e20-9e9e-18bbfd353f31', 'name': 'ctest-vn-41294607', 'tenant_id': '156864159d6547d5b2aad37edaab1b79', 'project_id': '156864159d6547d5b2aad37edaab1b79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05184612', 'ctest-vn-41294607'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 22:23:25,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '04d83dd7-9415-44e1-9cdc-dd5a6615064e', 'name': '', 'tenant_id': '156864159d6547d5b2aad37edaab1b79', 'network_id': '5d04fb2f-7932-4e20-9e9e-18bbfd353f31', 'ip_version': 4, 'cidr': '25.138.20.128/26', 'allocation_pools': [{'start': '25.138.20.130', 'end': '25.138.20.190'}], 'gateway_ip': '25.138.20.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.138.20.130', 'tags': [], 'project_id': '156864159d6547d5b2aad37edaab1b79'}}
2025-10-30 22:23:25,517 - INFO - Created VN ctest-vn-41294607
2025-10-30 22:23:25,568 - DEBUG - VN ctest-vn-41294607 UUID is 5d04fb2f-7932-4e20-9e9e-18bbfd353f31
2025-10-30 22:23:25,890 - DEBUG - Response for create_network : {'network': {'id': 'ce3c1a25-22d9-40b5-9b65-509938d5d21e', 'name': 'ctest-vn-52356938', 'tenant_id': '156864159d6547d5b2aad37edaab1b79', 'project_id': '156864159d6547d5b2aad37edaab1b79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05184612', 'ctest-vn-52356938'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 22:23:26,084 - DEBUG - Response for create_subnet : {'subnet': {'id': '0bd60c7f-8bca-413c-948c-420796d9c9db', 'name': '', 'tenant_id': '156864159d6547d5b2aad37edaab1b79', 'network_id': 'ce3c1a25-22d9-40b5-9b65-509938d5d21e', 'ip_version': 4, 'cidr': '28.94.138.0/26', 'allocation_pools': [{'start': '28.94.138.2', 'end': '28.94.138.62'}], 'gateway_ip': '28.94.138.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.94.138.2', 'tags': [], 'project_id': '156864159d6547d5b2aad37edaab1b79'}}
2025-10-30 22:23:26,101 - INFO - Created VN ctest-vn-52356938
2025-10-30 22:23:26,156 - DEBUG - VN ctest-vn-52356938 UUID is ce3c1a25-22d9-40b5-9b65-509938d5d21e
2025-10-30 22:23:26,304 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-41294607, 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-05184612:ctest-vn-52356938, 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-10-30 22:23:26,582 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5d04fb2f-7932-4e20-9e9e-18bbfd353f31', 'name': 'ctest-vn-41294607', 'tenant_id': '156864159d6547d5b2aad37edaab1b79', 'project_id': '156864159d6547d5b2aad37edaab1b79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04d83dd7-9415-44e1-9cdc-dd5a6615064e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05184612', 'ctest-vn-41294607'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05184612', 'ctest-policy-allow-all-76341462']], 'subnet_ipam': [{'subnet_cidr': '25.138.20.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 22:23:26,797 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce3c1a25-22d9-40b5-9b65-509938d5d21e', 'name': 'ctest-vn-52356938', 'tenant_id': '156864159d6547d5b2aad37edaab1b79', 'project_id': '156864159d6547d5b2aad37edaab1b79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0bd60c7f-8bca-413c-948c-420796d9c9db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05184612', 'ctest-vn-52356938'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05184612', 'ctest-policy-allow-all-76341462']], 'subnet_ipam': [{'subnet_cidr': '28.94.138.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 22:23:26,912 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 22:23:27,206 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 22:23:27,233 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ce87f7e5-e2d5-4a4b-9d51-34ba94d3a13f
2025-10-30 22:23:27,243 - DEBUG - Requesting: http://10.0.0.242:8082/project/15686415-9d65-47d5-b2aa-d37edaab1b79
2025-10-30 22:23:27,312 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d04fb2f-7932-4e20-9e9e-18bbfd353f31
2025-10-30 22:23:27,322 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d04fb2f-7932-4e20-9e9e-18bbfd353f31
2025-10-30 22:23:27,330 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6536c93f-3686-4c19-8279-d85281ca9a69
2025-10-30 22:23:27,335 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6536c93f-3686-4c19-8279-d85281ca9a69
2025-10-30 22:23:27,340 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/66cfe349-6a3d-4ecb-9b2b-9601cb42845a
2025-10-30 22:23:27,344 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 22:23:27,344 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d04fb2f-7932-4e20-9e9e-18bbfd353f31
2025-10-30 22:23:27,351 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6536c93f-3686-4c19-8279-d85281ca9a69
2025-10-30 22:23:27,361 - INFO - Verified VN network id 12 for VN 5d04fb2f-7932-4e20-9e9e-18bbfd353f31
2025-10-30 22:23:27,362 - INFO - Verifications in API Server for VN ctest-vn-41294607 passed
2025-10-30 22:23:27,362 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d04fb2f-7932-4e20-9e9e-18bbfd353f31
2025-10-30 22:23:27,368 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6536c93f-3686-4c19-8279-d85281ca9a69
2025-10-30 22:23:27,374 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6536c93f-3686-4c19-8279-d85281ca9a69
2025-10-30 22:23:27,379 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/66cfe349-6a3d-4ecb-9b2b-9601cb42845a
2025-10-30 22:23:27,388 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-41294607', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05184612', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6702758326749515296', 'uuid-lslong': '11429600099998973745'}, 'enable': 'true', 'created': '2025-10-30T22:23:25', 'last-modified': '2025-10-30T22:23:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.827666'}
2025-10-30 22:23:27,392 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 22:23:27,393 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41294607 passed
2025-10-30 22:23:27,393 - DEBUG - ====Verifying policy data for ctest-vn-41294607 in API_Server ======
2025-10-30 22:23:27,393 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 22:23:27,397 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ce87f7e5-e2d5-4a4b-9d51-34ba94d3a13f
2025-10-30 22:23:27,405 - DEBUG - Requesting: http://10.0.0.242:8082/project/15686415-9d65-47d5-b2aa-d37edaab1b79
2025-10-30 22:23:27,473 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d04fb2f-7932-4e20-9e9e-18bbfd353f31
2025-10-30 22:23:27,481 - DEBUG - ==>Verifying data for policy with id: f0b9a6f6-a947-43d4-977d-cd0878143296, fqn: ['default-domain', 'ctest-TestBasicPolicy-05184612', 'ctest-policy-allow-all-76341462']
2025-10-30 22:23:27,481 - INFO - VN ctest-vn-41294607 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 22:23:27,481 - DEBUG - Verifying the vn in opserver
2025-10-30 22:23:27,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-41294607 virtual network link through opserver 10.0.0.242
2025-10-30 22:23:27,481 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-30 22:23:27,767 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-30 22:23:27,814 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-41294607', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-41294607?flat'}
2025-10-30 22:23:27,814 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-41294607 is found in opserver
2025-10-30 22:23:27,823 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 22:23:27,826 - DEBUG - VRF ids for VN ctest-vn-41294607: {}
2025-10-30 22:23:27,826 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 22:23:27,831 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ce87f7e5-e2d5-4a4b-9d51-34ba94d3a13f
2025-10-30 22:23:27,841 - DEBUG - Requesting: http://10.0.0.242:8082/project/15686415-9d65-47d5-b2aa-d37edaab1b79
2025-10-30 22:23:27,910 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ce3c1a25-22d9-40b5-9b65-509938d5d21e
2025-10-30 22:23:27,921 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ce3c1a25-22d9-40b5-9b65-509938d5d21e
2025-10-30 22:23:27,931 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8c6d3289-6e3c-4260-8d9b-6c298285d933
2025-10-30 22:23:27,937 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8c6d3289-6e3c-4260-8d9b-6c298285d933
2025-10-30 22:23:27,943 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/de082d91-ef5f-4ea3-adf6-4e0b308f95e4
2025-10-30 22:23:27,949 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 22:23:27,949 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ce3c1a25-22d9-40b5-9b65-509938d5d21e
2025-10-30 22:23:27,957 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8c6d3289-6e3c-4260-8d9b-6c298285d933
2025-10-30 22:23:27,968 - INFO - Verified VN network id 13 for VN ce3c1a25-22d9-40b5-9b65-509938d5d21e
2025-10-30 22:23:27,968 - INFO - Verifications in API Server for VN ctest-vn-52356938 passed
2025-10-30 22:23:27,968 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ce3c1a25-22d9-40b5-9b65-509938d5d21e
2025-10-30 22:23:27,975 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8c6d3289-6e3c-4260-8d9b-6c298285d933
2025-10-30 22:23:27,981 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8c6d3289-6e3c-4260-8d9b-6c298285d933
2025-10-30 22:23:27,986 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/de082d91-ef5f-4ea3-adf6-4e0b308f95e4
2025-10-30 22:23:27,996 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-52356938', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05184612', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14860781617216569525', 'uuid-lslong': '11197444667540361758'}, 'enable': 'true', 'created': '2025-10-30T22:23:25', 'last-modified': '2025-10-30T22:23:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.217957'}
2025-10-30 22:23:28,001 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 22:23:28,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52356938 passed
2025-10-30 22:23:28,001 - DEBUG - ====Verifying policy data for ctest-vn-52356938 in API_Server ======
2025-10-30 22:23:28,001 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-30 22:23:28,007 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ce87f7e5-e2d5-4a4b-9d51-34ba94d3a13f
2025-10-30 22:23:28,016 - DEBUG - Requesting: http://10.0.0.242:8082/project/15686415-9d65-47d5-b2aa-d37edaab1b79
2025-10-30 22:23:28,098 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ce3c1a25-22d9-40b5-9b65-509938d5d21e
2025-10-30 22:23:28,107 - DEBUG - ==>Verifying data for policy with id: f0b9a6f6-a947-43d4-977d-cd0878143296, fqn: ['default-domain', 'ctest-TestBasicPolicy-05184612', 'ctest-policy-allow-all-76341462']
2025-10-30 22:23:28,107 - INFO - VN ctest-vn-52356938 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 22:23:28,107 - DEBUG - Verifying the vn in opserver
2025-10-30 22:23:28,107 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-52356938 virtual network link through opserver 10.0.0.242
2025-10-30 22:23:28,107 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-30 22:23:28,117 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-52356938', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-52356938?flat'}
2025-10-30 22:23:28,117 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05184612:ctest-vn-52356938 is found in opserver
2025-10-30 22:23:28,125 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 22:23:28,128 - DEBUG - VRF ids for VN ctest-vn-52356938: {}
2025-10-30 22:23:28,177 - DEBUG - Services list from nova: [