2025-07-23 14:57:11,741 - INFO - Domain Default found not creating
2025-07-23 14:57:11,904 - INFO - Project ctest-TestBasicPolicy-74360149 not found, creating it
2025-07-23 14:57:12,386 - INFO - Created Project:ctest-TestBasicPolicy-74360149, ID : 9d70da59-4f21-453c-a705-a1492896c535
2025-07-23 14:57:13,845 - INFO - ================================================================================
2025-07-23 14:57:13,845 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-23 14:57:13,846 - 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-23 14:57:14,099 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.25': '0'}} with
2025-07-23 14:57:14,099 - INFO - Initial checks done. Running the testcase now
2025-07-23 14:57:14,100 - INFO -
2025-07-23 14:57:14,655 - DEBUG - Response for create_network : {'network': {'id': '0867aa50-76a7-47e2-ab59-3fdc81bfadda', 'name': 'ctest-vn-51685076', 'tenant_id': '9d70da594f21453ca705a1492896c535', 'project_id': '9d70da594f21453ca705a1492896c535', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74360149', 'ctest-vn-51685076'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 14:57:14,895 - DEBUG - Response for create_subnet : {'subnet': {'id': '57479d43-d282-4bf2-af6b-3e3ef565980d', 'name': '', 'tenant_id': '9d70da594f21453ca705a1492896c535', 'network_id': '0867aa50-76a7-47e2-ab59-3fdc81bfadda', 'ip_version': 4, 'cidr': '32.142.186.0/26', 'allocation_pools': [{'start': '32.142.186.2', 'end': '32.142.186.62'}], 'gateway_ip': '32.142.186.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.142.186.2', 'tags': [], 'project_id': '9d70da594f21453ca705a1492896c535'}}
2025-07-23 14:57:14,918 - INFO - Created VN ctest-vn-51685076
2025-07-23 14:57:14,977 - DEBUG - VN ctest-vn-51685076 UUID is 0867aa50-76a7-47e2-ab59-3fdc81bfadda
2025-07-23 14:57:15,301 - DEBUG - Response for create_network : {'network': {'id': '55fa0059-5073-40e9-8b28-dd46c16ccc7a', 'name': 'ctest-vn-77595180', 'tenant_id': '9d70da594f21453ca705a1492896c535', 'project_id': '9d70da594f21453ca705a1492896c535', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74360149', 'ctest-vn-77595180'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 14:57:15,513 - DEBUG - Response for create_subnet : {'subnet': {'id': '73497158-f2cb-4d78-9a98-8e9d6825b45c', 'name': '', 'tenant_id': '9d70da594f21453ca705a1492896c535', 'network_id': '55fa0059-5073-40e9-8b28-dd46c16ccc7a', 'ip_version': 4, 'cidr': '23.102.205.128/26', 'allocation_pools': [{'start': '23.102.205.130', 'end': '23.102.205.190'}], 'gateway_ip': '23.102.205.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.102.205.130', 'tags': [], 'project_id': '9d70da594f21453ca705a1492896c535'}}
2025-07-23 14:57:15,536 - INFO - Created VN ctest-vn-77595180
2025-07-23 14:57:15,589 - DEBUG - VN ctest-vn-77595180 UUID is 55fa0059-5073-40e9-8b28-dd46c16ccc7a
2025-07-23 14:57:15,724 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-51685076, 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-74360149:ctest-vn-77595180, 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-23 14:57:16,047 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0867aa50-76a7-47e2-ab59-3fdc81bfadda', 'name': 'ctest-vn-51685076', 'tenant_id': '9d70da594f21453ca705a1492896c535', 'project_id': '9d70da594f21453ca705a1492896c535', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57479d43-d282-4bf2-af6b-3e3ef565980d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74360149', 'ctest-vn-51685076'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74360149', 'ctest-policy-allow-all-11460149']], 'subnet_ipam': [{'subnet_cidr': '32.142.186.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 14:57:16,339 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55fa0059-5073-40e9-8b28-dd46c16ccc7a', 'name': 'ctest-vn-77595180', 'tenant_id': '9d70da594f21453ca705a1492896c535', 'project_id': '9d70da594f21453ca705a1492896c535', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73497158-f2cb-4d78-9a98-8e9d6825b45c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74360149', 'ctest-vn-77595180'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74360149', 'ctest-policy-allow-all-11460149']], 'subnet_ipam': [{'subnet_cidr': '23.102.205.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 14:57:16,489 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-23 14:57:16,785 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-23 14:57:16,826 - DEBUG - Requesting: http://10.0.0.129:8082/domain/eb013d9f-4d4e-4e11-bece-55bf7e4da03b
2025-07-23 14:57:16,847 - DEBUG - Requesting: http://10.0.0.129:8082/project/9d70da59-4f21-453c-a705-a1492896c535
2025-07-23 14:57:16,934 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0867aa50-76a7-47e2-ab59-3fdc81bfadda
2025-07-23 14:57:16,947 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0867aa50-76a7-47e2-ab59-3fdc81bfadda
2025-07-23 14:57:16,959 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9d4ae098-3887-4160-a4d8-f20a6e8eacd3
2025-07-23 14:57:16,968 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9d4ae098-3887-4160-a4d8-f20a6e8eacd3
2025-07-23 14:57:16,979 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/de1b46fc-5600-4464-8fa1-b35f73e7fd75
2025-07-23 14:57:16,988 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 14:57:16,988 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0867aa50-76a7-47e2-ab59-3fdc81bfadda
2025-07-23 14:57:17,000 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9d4ae098-3887-4160-a4d8-f20a6e8eacd3
2025-07-23 14:57:17,018 - INFO - Verified VN network id 12 for VN 0867aa50-76a7-47e2-ab59-3fdc81bfadda
2025-07-23 14:57:17,018 - INFO - Verifications in API Server for VN ctest-vn-51685076 passed
2025-07-23 14:57:17,019 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0867aa50-76a7-47e2-ab59-3fdc81bfadda
2025-07-23 14:57:17,032 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9d4ae098-3887-4160-a4d8-f20a6e8eacd3
2025-07-23 14:57:17,040 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9d4ae098-3887-4160-a4d8-f20a6e8eacd3
2025-07-23 14:57:17,048 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/de1b46fc-5600-4464-8fa1-b35f73e7fd75
2025-07-23 14:57:17,062 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-51685076', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74360149', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '605639937469401058', 'uuid-lslong': '12346970069715103194'}, 'enable': 'true', 'created': '2025-07-23T14:57:14', 'last-modified': '2025-07-23T14:57:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033512'}
2025-07-23 14:57:17,069 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 14:57:17,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51685076 passed
2025-07-23 14:57:17,069 - DEBUG - ====Verifying policy data for ctest-vn-51685076 in API_Server ======
2025-07-23 14:57:17,069 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-23 14:57:17,076 - DEBUG - Requesting: http://10.0.0.129:8082/domain/eb013d9f-4d4e-4e11-bece-55bf7e4da03b
2025-07-23 14:57:17,091 - DEBUG - Requesting: http://10.0.0.129:8082/project/9d70da59-4f21-453c-a705-a1492896c535
2025-07-23 14:57:17,167 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0867aa50-76a7-47e2-ab59-3fdc81bfadda
2025-07-23 14:57:17,181 - DEBUG - ==>Verifying data for policy with id: 84b1b350-1e75-49d6-9040-2f8cf4b6eed2, fqn: ['default-domain', 'ctest-TestBasicPolicy-74360149', 'ctest-policy-allow-all-11460149']
2025-07-23 14:57:17,181 - INFO - VN ctest-vn-51685076 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 14:57:17,181 - DEBUG - Verifying the vn in opserver
2025-07-23 14:57:17,181 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-51685076 virtual network link through opserver 10.0.0.129
2025-07-23 14:57:17,182 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-07-23 14:57:17,480 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-07-23 14:57:17,544 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-51685076', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-51685076?flat'}
2025-07-23 14:57:17,544 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-51685076 is found in opserver
2025-07-23 14:57:17,556 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 14:57:17,561 - DEBUG - VRF ids for VN ctest-vn-51685076: {}
2025-07-23 14:57:17,561 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-23 14:57:17,568 - DEBUG - Requesting: http://10.0.0.129:8082/domain/eb013d9f-4d4e-4e11-bece-55bf7e4da03b
2025-07-23 14:57:17,582 - DEBUG - Requesting: http://10.0.0.129:8082/project/9d70da59-4f21-453c-a705-a1492896c535
2025-07-23 14:57:17,662 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/55fa0059-5073-40e9-8b28-dd46c16ccc7a
2025-07-23 14:57:17,677 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/55fa0059-5073-40e9-8b28-dd46c16ccc7a
2025-07-23 14:57:17,689 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04136d60-f40d-40d8-a327-7d533f161ade
2025-07-23 14:57:17,698 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04136d60-f40d-40d8-a327-7d533f161ade
2025-07-23 14:57:17,711 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/08283722-278d-432b-9826-88b9eb8d2d33
2025-07-23 14:57:17,719 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 14:57:17,719 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/55fa0059-5073-40e9-8b28-dd46c16ccc7a
2025-07-23 14:57:17,731 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04136d60-f40d-40d8-a327-7d533f161ade
2025-07-23 14:57:17,748 - INFO - Verified VN network id 13 for VN 55fa0059-5073-40e9-8b28-dd46c16ccc7a
2025-07-23 14:57:17,748 - INFO - Verifications in API Server for VN ctest-vn-77595180 passed
2025-07-23 14:57:17,748 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/55fa0059-5073-40e9-8b28-dd46c16ccc7a
2025-07-23 14:57:17,763 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04136d60-f40d-40d8-a327-7d533f161ade
2025-07-23 14:57:17,771 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04136d60-f40d-40d8-a327-7d533f161ade
2025-07-23 14:57:17,779 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/08283722-278d-432b-9826-88b9eb8d2d33
2025-07-23 14:57:17,792 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-77595180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74360149', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6195264621003358441', 'uuid-lslong': '10027507866302991482'}, 'enable': 'true', 'created': '2025-07-23T14:57:15', 'last-modified': '2025-07-23T14:57:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.523122'}
2025-07-23 14:57:17,799 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 14:57:17,799 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77595180 passed
2025-07-23 14:57:17,800 - DEBUG - ====Verifying policy data for ctest-vn-77595180 in API_Server ======
2025-07-23 14:57:17,800 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-23 14:57:17,807 - DEBUG - Requesting: http://10.0.0.129:8082/domain/eb013d9f-4d4e-4e11-bece-55bf7e4da03b
2025-07-23 14:57:17,820 - DEBUG - Requesting: http://10.0.0.129:8082/project/9d70da59-4f21-453c-a705-a1492896c535
2025-07-23 14:57:17,899 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/55fa0059-5073-40e9-8b28-dd46c16ccc7a
2025-07-23 14:57:17,911 - DEBUG - ==>Verifying data for policy with id: 84b1b350-1e75-49d6-9040-2f8cf4b6eed2, fqn: ['default-domain', 'ctest-TestBasicPolicy-74360149', 'ctest-policy-allow-all-11460149']
2025-07-23 14:57:17,911 - INFO - VN ctest-vn-77595180 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 14:57:17,911 - DEBUG - Verifying the vn in opserver
2025-07-23 14:57:17,911 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-77595180 virtual network link through opserver 10.0.0.129
2025-07-23 14:57:17,911 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-07-23 14:57:17,924 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-77595180', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-77595180?flat'}
2025-07-23 14:57:17,924 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74360149:ctest-vn-77595180 is found in opserver
2025-07-23 14:57:17,939 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 14:57:17,947 - DEBUG - VRF ids for VN ctest-vn-77595180: {}
2025-07-23 14:57:18,011 - DEBUG - Services list from nova: [