2025-08-11 16:04:15,582 - INFO - Domain Default found not creating
2025-08-11 16:04:15,715 - INFO - Project ctest-TestBasicPolicy-84780700 not found, creating it
2025-08-11 16:04:16,167 - INFO - Created Project:ctest-TestBasicPolicy-84780700, ID : 509d13a7-fe5a-4966-98a2-cd3110321832
2025-08-11 16:04:17,766 - INFO - ================================================================================
2025-08-11 16:04:17,766 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 16:04:17,766 - 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-08-11 16:04:18,021 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with
2025-08-11 16:04:18,022 - INFO - Initial checks done. Running the testcase now
2025-08-11 16:04:18,022 - INFO -
2025-08-11 16:04:18,627 - DEBUG - Response for create_network : {'network': {'id': 'e5d42707-26ab-42db-bfe3-1332db9cd101', 'name': 'ctest-vn-76975109', 'tenant_id': '509d13a7fe5a496698a2cd3110321832', 'project_id': '509d13a7fe5a496698a2cd3110321832', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84780700', 'ctest-vn-76975109'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 16:04:18,840 - DEBUG - Response for create_subnet : {'subnet': {'id': '88e04312-7806-42dc-a18c-85c5b1a72bce', 'name': '', 'tenant_id': '509d13a7fe5a496698a2cd3110321832', 'network_id': 'e5d42707-26ab-42db-bfe3-1332db9cd101', 'ip_version': 4, 'cidr': '183.86.85.64/26', 'allocation_pools': [{'start': '183.86.85.66', 'end': '183.86.85.126'}], 'gateway_ip': '183.86.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.86.85.66', 'tags': [], 'project_id': '509d13a7fe5a496698a2cd3110321832'}}
2025-08-11 16:04:18,858 - INFO - Created VN ctest-vn-76975109
2025-08-11 16:04:18,911 - DEBUG - VN ctest-vn-76975109 UUID is e5d42707-26ab-42db-bfe3-1332db9cd101
2025-08-11 16:04:19,215 - DEBUG - Response for create_network : {'network': {'id': '7ea955ed-ae86-4dfd-afe6-f86581fc0066', 'name': 'ctest-vn-53912307', 'tenant_id': '509d13a7fe5a496698a2cd3110321832', 'project_id': '509d13a7fe5a496698a2cd3110321832', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84780700', 'ctest-vn-53912307'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 16:04:19,393 - DEBUG - Response for create_subnet : {'subnet': {'id': '8829d547-4957-4481-9201-4b2cdb2803b2', 'name': '', 'tenant_id': '509d13a7fe5a496698a2cd3110321832', 'network_id': '7ea955ed-ae86-4dfd-afe6-f86581fc0066', 'ip_version': 4, 'cidr': '32.70.233.192/26', 'allocation_pools': [{'start': '32.70.233.194', 'end': '32.70.233.254'}], 'gateway_ip': '32.70.233.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.70.233.194', 'tags': [], 'project_id': '509d13a7fe5a496698a2cd3110321832'}}
2025-08-11 16:04:19,410 - INFO - Created VN ctest-vn-53912307
2025-08-11 16:04:19,463 - DEBUG - VN ctest-vn-53912307 UUID is 7ea955ed-ae86-4dfd-afe6-f86581fc0066
2025-08-11 16:04:19,611 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-76975109, 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-84780700:ctest-vn-53912307, 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-08-11 16:04:19,914 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5d42707-26ab-42db-bfe3-1332db9cd101', 'name': 'ctest-vn-76975109', 'tenant_id': '509d13a7fe5a496698a2cd3110321832', 'project_id': '509d13a7fe5a496698a2cd3110321832', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['88e04312-7806-42dc-a18c-85c5b1a72bce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84780700', 'ctest-vn-76975109'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84780700', 'ctest-policy-allow-all-78304238']], 'subnet_ipam': [{'subnet_cidr': '183.86.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 16:04:20,169 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ea955ed-ae86-4dfd-afe6-f86581fc0066', 'name': 'ctest-vn-53912307', 'tenant_id': '509d13a7fe5a496698a2cd3110321832', 'project_id': '509d13a7fe5a496698a2cd3110321832', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8829d547-4957-4481-9201-4b2cdb2803b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84780700', 'ctest-vn-53912307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84780700', 'ctest-policy-allow-all-78304238']], 'subnet_ipam': [{'subnet_cidr': '32.70.233.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 16:04:20,327 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:04:20,675 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:04:20,704 - DEBUG - Requesting: http://10.0.0.22:8082/domain/643a94c5-4849-463a-a353-4619a162fafa
2025-08-11 16:04:20,718 - DEBUG - Requesting: http://10.0.0.22:8082/project/509d13a7-fe5a-4966-98a2-cd3110321832
2025-08-11 16:04:20,791 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e5d42707-26ab-42db-bfe3-1332db9cd101
2025-08-11 16:04:20,802 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e5d42707-26ab-42db-bfe3-1332db9cd101
2025-08-11 16:04:20,813 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bda5d501-b844-4a37-b199-bcaf7cc3e4e6
2025-08-11 16:04:20,820 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bda5d501-b844-4a37-b199-bcaf7cc3e4e6
2025-08-11 16:04:20,828 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5620b427-f76a-4e2e-bebe-5b8f3d0bc5d8
2025-08-11 16:04:20,835 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 16:04:20,835 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e5d42707-26ab-42db-bfe3-1332db9cd101
2025-08-11 16:04:20,845 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bda5d501-b844-4a37-b199-bcaf7cc3e4e6
2025-08-11 16:04:20,859 - INFO - Verified VN network id 11 for VN e5d42707-26ab-42db-bfe3-1332db9cd101
2025-08-11 16:04:20,859 - INFO - Verifications in API Server for VN ctest-vn-76975109 passed
2025-08-11 16:04:20,859 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e5d42707-26ab-42db-bfe3-1332db9cd101
2025-08-11 16:04:20,869 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bda5d501-b844-4a37-b199-bcaf7cc3e4e6
2025-08-11 16:04:20,876 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bda5d501-b844-4a37-b199-bcaf7cc3e4e6
2025-08-11 16:04:20,882 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5620b427-f76a-4e2e-bebe-5b8f3d0bc5d8
2025-08-11 16:04:20,895 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-76975109', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84780700', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16560904641415168731', 'uuid-lslong': '13826916390111334657'}, 'enable': 'true', 'created': '2025-08-11T16:04:18', 'last-modified': '2025-08-11T16:04:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006506'}
2025-08-11 16:04:20,902 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 16:04:20,902 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76975109 passed
2025-08-11 16:04:20,902 - DEBUG - ====Verifying policy data for ctest-vn-76975109 in API_Server ======
2025-08-11 16:04:20,902 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:04:20,907 - DEBUG - Requesting: http://10.0.0.22:8082/domain/643a94c5-4849-463a-a353-4619a162fafa
2025-08-11 16:04:20,919 - DEBUG - Requesting: http://10.0.0.22:8082/project/509d13a7-fe5a-4966-98a2-cd3110321832
2025-08-11 16:04:20,989 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e5d42707-26ab-42db-bfe3-1332db9cd101
2025-08-11 16:04:21,000 - DEBUG - ==>Verifying data for policy with id: 7eb2dffc-9133-490b-b9d3-bc05f6a4f313, fqn: ['default-domain', 'ctest-TestBasicPolicy-84780700', 'ctest-policy-allow-all-78304238']
2025-08-11 16:04:21,000 - INFO - VN ctest-vn-76975109 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 16:04:21,000 - DEBUG - Verifying the vn in opserver
2025-08-11 16:04:21,000 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-76975109 virtual network link through opserver 10.0.0.22
2025-08-11 16:04:21,000 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-11 16:04:21,332 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-11 16:04:21,386 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-76975109', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-76975109?flat'}
2025-08-11 16:04:21,386 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-76975109 is found in opserver
2025-08-11 16:04:21,397 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 16:04:21,402 - DEBUG - VRF ids for VN ctest-vn-76975109: {}
2025-08-11 16:04:21,403 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:04:21,408 - DEBUG - Requesting: http://10.0.0.22:8082/domain/643a94c5-4849-463a-a353-4619a162fafa
2025-08-11 16:04:21,419 - DEBUG - Requesting: http://10.0.0.22:8082/project/509d13a7-fe5a-4966-98a2-cd3110321832
2025-08-11 16:04:21,490 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7ea955ed-ae86-4dfd-afe6-f86581fc0066
2025-08-11 16:04:21,502 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7ea955ed-ae86-4dfd-afe6-f86581fc0066
2025-08-11 16:04:21,511 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3330ea5e-fae7-43b5-9f68-dacbfa2445d5
2025-08-11 16:04:21,518 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3330ea5e-fae7-43b5-9f68-dacbfa2445d5
2025-08-11 16:04:21,524 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/57273e23-8fdf-4930-9107-ae6edeef6024
2025-08-11 16:04:21,531 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 16:04:21,531 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7ea955ed-ae86-4dfd-afe6-f86581fc0066
2025-08-11 16:04:21,540 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3330ea5e-fae7-43b5-9f68-dacbfa2445d5
2025-08-11 16:04:21,554 - INFO - Verified VN network id 12 for VN 7ea955ed-ae86-4dfd-afe6-f86581fc0066
2025-08-11 16:04:21,554 - INFO - Verifications in API Server for VN ctest-vn-53912307 passed
2025-08-11 16:04:21,554 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7ea955ed-ae86-4dfd-afe6-f86581fc0066
2025-08-11 16:04:21,563 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3330ea5e-fae7-43b5-9f68-dacbfa2445d5
2025-08-11 16:04:21,570 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3330ea5e-fae7-43b5-9f68-dacbfa2445d5
2025-08-11 16:04:21,576 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/57273e23-8fdf-4930-9107-ae6edeef6024
2025-08-11 16:04:21,588 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-53912307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84780700', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9126920599166668285', 'uuid-lslong': '12675091316137001062'}, 'enable': 'true', 'created': '2025-08-11T16:04:19', 'last-modified': '2025-08-11T16:04:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453545'}
2025-08-11 16:04:21,595 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 16:04:21,595 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53912307 passed
2025-08-11 16:04:21,595 - DEBUG - ====Verifying policy data for ctest-vn-53912307 in API_Server ======
2025-08-11 16:04:21,595 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:04:21,600 - DEBUG - Requesting: http://10.0.0.22:8082/domain/643a94c5-4849-463a-a353-4619a162fafa
2025-08-11 16:04:21,611 - DEBUG - Requesting: http://10.0.0.22:8082/project/509d13a7-fe5a-4966-98a2-cd3110321832
2025-08-11 16:04:21,680 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7ea955ed-ae86-4dfd-afe6-f86581fc0066
2025-08-11 16:04:21,689 - DEBUG - ==>Verifying data for policy with id: 7eb2dffc-9133-490b-b9d3-bc05f6a4f313, fqn: ['default-domain', 'ctest-TestBasicPolicy-84780700', 'ctest-policy-allow-all-78304238']
2025-08-11 16:04:21,689 - INFO - VN ctest-vn-53912307 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 16:04:21,689 - DEBUG - Verifying the vn in opserver
2025-08-11 16:04:21,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-53912307 virtual network link through opserver 10.0.0.22
2025-08-11 16:04:21,689 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-11 16:04:21,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-53912307', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-53912307?flat'}
2025-08-11 16:04:21,700 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84780700:ctest-vn-53912307 is found in opserver
2025-08-11 16:04:21,711 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 16:04:21,716 - DEBUG - VRF ids for VN ctest-vn-53912307: {}
2025-08-11 16:04:21,774 - DEBUG - Services list from nova: [