2025-11-04 17:09:08,537 - INFO - Domain Default found not creating
2025-11-04 17:09:08,669 - INFO - Project ctest-TestBasicPolicy-96515780 not found, creating it
2025-11-04 17:09:09,095 - INFO - Created Project:ctest-TestBasicPolicy-96515780, ID : 948c5eda-cd60-46f9-83bb-858794101987
2025-11-04 17:09:10,609 - INFO - ================================================================================
2025-11-04 17:09:10,609 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 17:09:10,609 - 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-11-04 17:09:10,863 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-11-04 17:09:10,863 - INFO - Initial checks done. Running the testcase now
2025-11-04 17:09:10,863 - INFO -
2025-11-04 17:09:11,397 - DEBUG - Response for create_network : {'network': {'id': 'dc2fb522-a073-4102-a68e-c6ae61ef0144', 'name': 'ctest-vn-06819878', 'tenant_id': '948c5edacd6046f983bb858794101987', 'project_id': '948c5edacd6046f983bb858794101987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96515780', 'ctest-vn-06819878'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 17:09:11,588 - DEBUG - Response for create_subnet : {'subnet': {'id': '32314605-e903-45f2-9113-9c074b678326', 'name': '', 'tenant_id': '948c5edacd6046f983bb858794101987', 'network_id': 'dc2fb522-a073-4102-a68e-c6ae61ef0144', 'ip_version': 4, 'cidr': '38.105.75.64/26', 'allocation_pools': [{'start': '38.105.75.66', 'end': '38.105.75.126'}], 'gateway_ip': '38.105.75.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.105.75.66', 'tags': [], 'project_id': '948c5edacd6046f983bb858794101987'}}
2025-11-04 17:09:11,603 - INFO - Created VN ctest-vn-06819878
2025-11-04 17:09:11,653 - DEBUG - VN ctest-vn-06819878 UUID is dc2fb522-a073-4102-a68e-c6ae61ef0144
2025-11-04 17:09:11,942 - DEBUG - Response for create_network : {'network': {'id': '41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2', 'name': 'ctest-vn-33483965', 'tenant_id': '948c5edacd6046f983bb858794101987', 'project_id': '948c5edacd6046f983bb858794101987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96515780', 'ctest-vn-33483965'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 17:09:12,134 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de2db99e-c6e3-4e8f-a159-c6b214a05431', 'name': '', 'tenant_id': '948c5edacd6046f983bb858794101987', 'network_id': '41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2', 'ip_version': 4, 'cidr': '146.179.190.128/26', 'allocation_pools': [{'start': '146.179.190.130', 'end': '146.179.190.190'}], 'gateway_ip': '146.179.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.179.190.130', 'tags': [], 'project_id': '948c5edacd6046f983bb858794101987'}}
2025-11-04 17:09:12,151 - INFO - Created VN ctest-vn-33483965
2025-11-04 17:09:12,201 - DEBUG - VN ctest-vn-33483965 UUID is 41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2
2025-11-04 17:09:12,353 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-06819878, 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-96515780:ctest-vn-33483965, 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-11-04 17:09:12,630 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc2fb522-a073-4102-a68e-c6ae61ef0144', 'name': 'ctest-vn-06819878', 'tenant_id': '948c5edacd6046f983bb858794101987', 'project_id': '948c5edacd6046f983bb858794101987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['32314605-e903-45f2-9113-9c074b678326'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96515780', 'ctest-vn-06819878'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96515780', 'ctest-policy-allow-all-53502834']], 'subnet_ipam': [{'subnet_cidr': '38.105.75.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 17:09:12,849 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2', 'name': 'ctest-vn-33483965', 'tenant_id': '948c5edacd6046f983bb858794101987', 'project_id': '948c5edacd6046f983bb858794101987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de2db99e-c6e3-4e8f-a159-c6b214a05431'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96515780', 'ctest-vn-33483965'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96515780', 'ctest-policy-allow-all-53502834']], 'subnet_ipam': [{'subnet_cidr': '146.179.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 17:09:13,001 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-04 17:09:13,318 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-04 17:09:13,342 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7bd482da-67f0-4209-9057-9d2ffb000f9b
2025-11-04 17:09:13,354 - DEBUG - Requesting: http://10.0.0.22:8082/project/948c5eda-cd60-46f9-83bb-858794101987
2025-11-04 17:09:13,430 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dc2fb522-a073-4102-a68e-c6ae61ef0144
2025-11-04 17:09:13,439 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dc2fb522-a073-4102-a68e-c6ae61ef0144
2025-11-04 17:09:13,447 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/575589f3-f93f-46f4-9045-f74ee5d8a85e
2025-11-04 17:09:13,454 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/575589f3-f93f-46f4-9045-f74ee5d8a85e
2025-11-04 17:09:13,460 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/628eb9f9-0a5e-43f7-8b40-de7fb9f2e8a8
2025-11-04 17:09:13,466 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 17:09:13,466 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dc2fb522-a073-4102-a68e-c6ae61ef0144
2025-11-04 17:09:13,474 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/575589f3-f93f-46f4-9045-f74ee5d8a85e
2025-11-04 17:09:13,485 - INFO - Verified VN network id 11 for VN dc2fb522-a073-4102-a68e-c6ae61ef0144
2025-11-04 17:09:13,486 - INFO - Verifications in API Server for VN ctest-vn-06819878 passed
2025-11-04 17:09:13,486 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dc2fb522-a073-4102-a68e-c6ae61ef0144
2025-11-04 17:09:13,493 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/575589f3-f93f-46f4-9045-f74ee5d8a85e
2025-11-04 17:09:13,500 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/575589f3-f93f-46f4-9045-f74ee5d8a85e
2025-11-04 17:09:13,506 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/628eb9f9-0a5e-43f7-8b40-de7fb9f2e8a8
2025-11-04 17:09:13,516 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-06819878', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96515780', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15866099172574970114', 'uuid-lslong': '12001748509258613060'}, 'enable': 'true', 'created': '2025-11-04T17:09:11', 'last-modified': '2025-11-04T17:09:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905298'}
2025-11-04 17:09:13,522 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 17:09:13,522 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06819878 passed
2025-11-04 17:09:13,522 - DEBUG - ====Verifying policy data for ctest-vn-06819878 in API_Server ======
2025-11-04 17:09:13,522 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-04 17:09:13,527 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7bd482da-67f0-4209-9057-9d2ffb000f9b
2025-11-04 17:09:13,536 - DEBUG - Requesting: http://10.0.0.22:8082/project/948c5eda-cd60-46f9-83bb-858794101987
2025-11-04 17:09:13,604 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dc2fb522-a073-4102-a68e-c6ae61ef0144
2025-11-04 17:09:13,612 - DEBUG - ==>Verifying data for policy with id: fadea267-d879-42ec-b997-405c29985326, fqn: ['default-domain', 'ctest-TestBasicPolicy-96515780', 'ctest-policy-allow-all-53502834']
2025-11-04 17:09:13,612 - INFO - VN ctest-vn-06819878 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 17:09:13,613 - DEBUG - Verifying the vn in opserver
2025-11-04 17:09:13,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-06819878 virtual network link through opserver 10.0.0.22
2025-11-04 17:09:13,613 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-04 17:09:13,924 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-04 17:09:13,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-06819878', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-06819878?flat'}
2025-11-04 17:09:13,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-06819878 is found in opserver
2025-11-04 17:09:13,981 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 17:09:13,985 - DEBUG - VRF ids for VN ctest-vn-06819878: {}
2025-11-04 17:09:13,985 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-04 17:09:13,990 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7bd482da-67f0-4209-9057-9d2ffb000f9b
2025-11-04 17:09:13,999 - DEBUG - Requesting: http://10.0.0.22:8082/project/948c5eda-cd60-46f9-83bb-858794101987
2025-11-04 17:09:14,065 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2
2025-11-04 17:09:14,076 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2
2025-11-04 17:09:14,085 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/36fb7596-0432-44a7-b6bb-1958abf35762
2025-11-04 17:09:14,092 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/36fb7596-0432-44a7-b6bb-1958abf35762
2025-11-04 17:09:14,098 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2033b3de-399d-4ffc-9fa3-2f209a2e1d77
2025-11-04 17:09:14,103 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 17:09:14,103 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2
2025-11-04 17:09:14,111 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/36fb7596-0432-44a7-b6bb-1958abf35762
2025-11-04 17:09:14,124 - INFO - Verified VN network id 12 for VN 41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2
2025-11-04 17:09:14,125 - INFO - Verifications in API Server for VN ctest-vn-33483965 passed
2025-11-04 17:09:14,125 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2
2025-11-04 17:09:14,133 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/36fb7596-0432-44a7-b6bb-1958abf35762
2025-11-04 17:09:14,139 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/36fb7596-0432-44a7-b6bb-1958abf35762
2025-11-04 17:09:14,146 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2033b3de-399d-4ffc-9fa3-2f209a2e1d77
2025-11-04 17:09:14,157 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-33483965', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96515780', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4735175274749447677', 'uuid-lslong': '12854361161249444594'}, 'enable': 'true', 'created': '2025-11-04T17:09:11', 'last-modified': '2025-11-04T17:09:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326912'}
2025-11-04 17:09:14,161 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 17:09:14,162 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33483965 passed
2025-11-04 17:09:14,162 - DEBUG - ====Verifying policy data for ctest-vn-33483965 in API_Server ======
2025-11-04 17:09:14,162 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-04 17:09:14,168 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7bd482da-67f0-4209-9057-9d2ffb000f9b
2025-11-04 17:09:14,179 - DEBUG - Requesting: http://10.0.0.22:8082/project/948c5eda-cd60-46f9-83bb-858794101987
2025-11-04 17:09:14,246 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/41b6b8d3-08a7-4dfd-b263-dd5eeed9d2f2
2025-11-04 17:09:14,254 - DEBUG - ==>Verifying data for policy with id: fadea267-d879-42ec-b997-405c29985326, fqn: ['default-domain', 'ctest-TestBasicPolicy-96515780', 'ctest-policy-allow-all-53502834']
2025-11-04 17:09:14,254 - INFO - VN ctest-vn-33483965 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 17:09:14,254 - DEBUG - Verifying the vn in opserver
2025-11-04 17:09:14,254 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-33483965 virtual network link through opserver 10.0.0.22
2025-11-04 17:09:14,254 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-04 17:09:14,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-33483965', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-33483965?flat'}
2025-11-04 17:09:14,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96515780:ctest-vn-33483965 is found in opserver
2025-11-04 17:09:14,271 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 17:09:14,275 - DEBUG - VRF ids for VN ctest-vn-33483965: {}
2025-11-04 17:09:14,330 - DEBUG - Services list from nova: [