2025-06-02 02:32:45,021 - INFO - Domain Default found not creating
2025-06-02 02:32:45,168 - INFO - Project ctest-TestBasicPolicy-02681075 not found, creating it
2025-06-02 02:32:45,645 - INFO - Created Project:ctest-TestBasicPolicy-02681075, ID : d278d1b3-b2f6-4a26-be4b-548732408bc5
2025-06-02 02:32:47,238 - INFO - ================================================================================
2025-06-02 02:32:47,238 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-02 02:32:47,238 - 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-02 02:32:47,499 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.14': '0'}} with
2025-06-02 02:32:47,499 - INFO - Initial checks done. Running the testcase now
2025-06-02 02:32:47,499 - INFO -
2025-06-02 02:32:48,101 - DEBUG - Response for create_network : {'network': {'id': '7cc2b18f-c3f7-4791-9533-82050e5008d1', 'name': 'ctest-vn-39363287', 'tenant_id': 'd278d1b3b2f64a26be4b548732408bc5', 'project_id': 'd278d1b3b2f64a26be4b548732408bc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02681075', 'ctest-vn-39363287'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 02:32:48,263 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b7bc512-af19-44b5-9626-40bcfdb20240', 'name': '', 'tenant_id': 'd278d1b3b2f64a26be4b548732408bc5', 'network_id': '7cc2b18f-c3f7-4791-9533-82050e5008d1', 'ip_version': 4, 'cidr': '104.227.67.128/26', 'allocation_pools': [{'start': '104.227.67.130', 'end': '104.227.67.190'}], 'gateway_ip': '104.227.67.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.227.67.130', 'tags': [], 'project_id': 'd278d1b3b2f64a26be4b548732408bc5'}}
2025-06-02 02:32:48,284 - INFO - Created VN ctest-vn-39363287
2025-06-02 02:32:48,336 - DEBUG - VN ctest-vn-39363287 UUID is 7cc2b18f-c3f7-4791-9533-82050e5008d1
2025-06-02 02:32:48,674 - DEBUG - Response for create_network : {'network': {'id': '7cd56e35-7e14-4e8b-b822-fff6d56c1d35', 'name': 'ctest-vn-27923388', 'tenant_id': 'd278d1b3b2f64a26be4b548732408bc5', 'project_id': 'd278d1b3b2f64a26be4b548732408bc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02681075', 'ctest-vn-27923388'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 02:32:48,836 - DEBUG - Response for create_subnet : {'subnet': {'id': '5965c12f-1f27-4e51-aab6-449a5add0cde', 'name': '', 'tenant_id': 'd278d1b3b2f64a26be4b548732408bc5', 'network_id': '7cd56e35-7e14-4e8b-b822-fff6d56c1d35', 'ip_version': 4, 'cidr': '114.162.52.128/26', 'allocation_pools': [{'start': '114.162.52.130', 'end': '114.162.52.190'}], 'gateway_ip': '114.162.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.162.52.130', 'tags': [], 'project_id': 'd278d1b3b2f64a26be4b548732408bc5'}}
2025-06-02 02:32:48,854 - INFO - Created VN ctest-vn-27923388
2025-06-02 02:32:48,908 - DEBUG - VN ctest-vn-27923388 UUID is 7cd56e35-7e14-4e8b-b822-fff6d56c1d35
2025-06-02 02:32:49,029 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-39363287, 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-02681075:ctest-vn-27923388, 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-02 02:32:49,340 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cc2b18f-c3f7-4791-9533-82050e5008d1', 'name': 'ctest-vn-39363287', 'tenant_id': 'd278d1b3b2f64a26be4b548732408bc5', 'project_id': 'd278d1b3b2f64a26be4b548732408bc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b7bc512-af19-44b5-9626-40bcfdb20240'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02681075', 'ctest-vn-39363287'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02681075', 'ctest-policy-allow-all-75746500']], 'subnet_ipam': [{'subnet_cidr': '104.227.67.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 02:32:49,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cd56e35-7e14-4e8b-b822-fff6d56c1d35', 'name': 'ctest-vn-27923388', 'tenant_id': 'd278d1b3b2f64a26be4b548732408bc5', 'project_id': 'd278d1b3b2f64a26be4b548732408bc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5965c12f-1f27-4e51-aab6-449a5add0cde'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02681075', 'ctest-vn-27923388'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02681075', 'ctest-policy-allow-all-75746500']], 'subnet_ipam': [{'subnet_cidr': '114.162.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 02:32:49,728 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-02 02:32:50,068 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-02 02:32:50,100 - DEBUG - Requesting: http://10.0.0.131:8082/domain/b335d742-a7a1-43da-b8db-9e2748f9277c
2025-06-02 02:32:50,115 - DEBUG - Requesting: http://10.0.0.131:8082/project/d278d1b3-b2f6-4a26-be4b-548732408bc5
2025-06-02 02:32:50,190 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cc2b18f-c3f7-4791-9533-82050e5008d1
2025-06-02 02:32:50,202 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cc2b18f-c3f7-4791-9533-82050e5008d1
2025-06-02 02:32:50,212 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5eae7888-426f-4536-8925-8b859fee2247
2025-06-02 02:32:50,220 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5eae7888-426f-4536-8925-8b859fee2247
2025-06-02 02:32:50,226 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/3ea300bb-aece-41d2-a796-30e8cbeebc24
2025-06-02 02:32:50,232 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 02:32:50,233 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cc2b18f-c3f7-4791-9533-82050e5008d1
2025-06-02 02:32:50,242 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5eae7888-426f-4536-8925-8b859fee2247
2025-06-02 02:32:50,255 - INFO - Verified VN network id 8 for VN 7cc2b18f-c3f7-4791-9533-82050e5008d1
2025-06-02 02:32:50,255 - INFO - Verifications in API Server for VN ctest-vn-39363287 passed
2025-06-02 02:32:50,255 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cc2b18f-c3f7-4791-9533-82050e5008d1
2025-06-02 02:32:50,264 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5eae7888-426f-4536-8925-8b859fee2247
2025-06-02 02:32:50,272 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5eae7888-426f-4536-8925-8b859fee2247
2025-06-02 02:32:50,280 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/3ea300bb-aece-41d2-a796-30e8cbeebc24
2025-06-02 02:32:50,294 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-39363287', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02681075', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8989943037211133841', 'uuid-lslong': '10751079693690079441'}, 'enable': 'true', 'created': '2025-06-02T02:32:48', 'last-modified': '2025-06-02T02:32:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977642'}
2025-06-02 02:32:50,300 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 02:32:50,301 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39363287 passed
2025-06-02 02:32:50,301 - DEBUG - ====Verifying policy data for ctest-vn-39363287 in API_Server ======
2025-06-02 02:32:50,301 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-02 02:32:50,306 - DEBUG - Requesting: http://10.0.0.131:8082/domain/b335d742-a7a1-43da-b8db-9e2748f9277c
2025-06-02 02:32:50,318 - DEBUG - Requesting: http://10.0.0.131:8082/project/d278d1b3-b2f6-4a26-be4b-548732408bc5
2025-06-02 02:32:50,394 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cc2b18f-c3f7-4791-9533-82050e5008d1
2025-06-02 02:32:50,407 - DEBUG - ==>Verifying data for policy with id: 249eeff3-6a13-455c-955a-798da91e7be9, fqn: ['default-domain', 'ctest-TestBasicPolicy-02681075', 'ctest-policy-allow-all-75746500']
2025-06-02 02:32:50,407 - INFO - VN ctest-vn-39363287 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 02:32:50,407 - DEBUG - Verifying the vn in opserver
2025-06-02 02:32:50,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-39363287 virtual network link through opserver 10.0.0.131
2025-06-02 02:32:50,408 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-06-02 02:32:50,744 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-06-02 02:32:50,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-39363287', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-39363287?flat'}
2025-06-02 02:32:50,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-39363287 is found in opserver
2025-06-02 02:32:50,817 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 02:32:50,824 - DEBUG - VRF ids for VN ctest-vn-39363287: {}
2025-06-02 02:32:50,824 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-02 02:32:50,830 - DEBUG - Requesting: http://10.0.0.131:8082/domain/b335d742-a7a1-43da-b8db-9e2748f9277c
2025-06-02 02:32:50,842 - DEBUG - Requesting: http://10.0.0.131:8082/project/d278d1b3-b2f6-4a26-be4b-548732408bc5
2025-06-02 02:32:50,922 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cd56e35-7e14-4e8b-b822-fff6d56c1d35
2025-06-02 02:32:50,935 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cd56e35-7e14-4e8b-b822-fff6d56c1d35
2025-06-02 02:32:50,947 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/9e8ff716-2119-40d6-988a-a3bcafd62f62
2025-06-02 02:32:50,955 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/9e8ff716-2119-40d6-988a-a3bcafd62f62
2025-06-02 02:32:50,962 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/c60fd80a-dd2a-47b7-a242-7cd24d27b1bb
2025-06-02 02:32:50,969 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 02:32:50,969 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cd56e35-7e14-4e8b-b822-fff6d56c1d35
2025-06-02 02:32:50,980 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/9e8ff716-2119-40d6-988a-a3bcafd62f62
2025-06-02 02:32:50,995 - INFO - Verified VN network id 9 for VN 7cd56e35-7e14-4e8b-b822-fff6d56c1d35
2025-06-02 02:32:50,996 - INFO - Verifications in API Server for VN ctest-vn-27923388 passed
2025-06-02 02:32:50,996 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cd56e35-7e14-4e8b-b822-fff6d56c1d35
2025-06-02 02:32:51,006 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/9e8ff716-2119-40d6-988a-a3bcafd62f62
2025-06-02 02:32:51,013 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/9e8ff716-2119-40d6-988a-a3bcafd62f62
2025-06-02 02:32:51,020 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/c60fd80a-dd2a-47b7-a242-7cd24d27b1bb
2025-06-02 02:32:51,033 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-27923388', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02681075', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8995217006770015883', 'uuid-lslong': '13268448887794572597'}, 'enable': 'true', 'created': '2025-06-02T02:32:48', 'last-modified': '2025-06-02T02:32:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.474768'}
2025-06-02 02:32:51,040 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 02:32:51,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27923388 passed
2025-06-02 02:32:51,040 - DEBUG - ====Verifying policy data for ctest-vn-27923388 in API_Server ======
2025-06-02 02:32:51,040 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-02 02:32:51,046 - DEBUG - Requesting: http://10.0.0.131:8082/domain/b335d742-a7a1-43da-b8db-9e2748f9277c
2025-06-02 02:32:51,058 - DEBUG - Requesting: http://10.0.0.131:8082/project/d278d1b3-b2f6-4a26-be4b-548732408bc5
2025-06-02 02:32:51,135 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/7cd56e35-7e14-4e8b-b822-fff6d56c1d35
2025-06-02 02:32:51,147 - DEBUG - ==>Verifying data for policy with id: 249eeff3-6a13-455c-955a-798da91e7be9, fqn: ['default-domain', 'ctest-TestBasicPolicy-02681075', 'ctest-policy-allow-all-75746500']
2025-06-02 02:32:51,147 - INFO - VN ctest-vn-27923388 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 02:32:51,147 - DEBUG - Verifying the vn in opserver
2025-06-02 02:32:51,147 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-27923388 virtual network link through opserver 10.0.0.131
2025-06-02 02:32:51,147 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-06-02 02:32:51,159 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-27923388', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-27923388?flat'}
2025-06-02 02:32:51,159 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02681075:ctest-vn-27923388 is found in opserver
2025-06-02 02:32:51,171 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 02:32:51,176 - DEBUG - VRF ids for VN ctest-vn-27923388: {}
2025-06-02 02:32:51,233 - DEBUG - Services list from nova: [