2025-11-27 08:28:02,671 - INFO - Domain Default found not creating
2025-11-27 08:28:02,856 - INFO - Project ctest-TestBasicPolicy-26790554 not found, creating it
2025-11-27 08:28:03,341 - INFO - Created Project:ctest-TestBasicPolicy-26790554, ID : 8cd91023-4813-49f1-af94-f81a098a62b9
2025-11-27 08:28:05,009 - INFO - ================================================================================
2025-11-27 08:28:05,010 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-27 08:28:05,010 - 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-27 08:28:05,271 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-11-27 08:28:05,271 - INFO - Initial checks done. Running the testcase now
2025-11-27 08:28:05,271 - INFO -
2025-11-27 08:28:05,929 - DEBUG - Response for create_network : {'network': {'id': '6a7a855e-de65-4172-924b-314f35a4c524', 'name': 'ctest-vn-24720969', 'tenant_id': '8cd91023481349f1af94f81a098a62b9', 'project_id': '8cd91023481349f1af94f81a098a62b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26790554', 'ctest-vn-24720969'], 'port_security_enabled': True, 'description': ''}}
2025-11-27 08:28:06,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '66260cdd-3138-427a-995e-f70dadbbdead', 'name': '', 'tenant_id': '8cd91023481349f1af94f81a098a62b9', 'network_id': '6a7a855e-de65-4172-924b-314f35a4c524', 'ip_version': 4, 'cidr': '86.237.134.192/26', 'allocation_pools': [{'start': '86.237.134.194', 'end': '86.237.134.254'}], 'gateway_ip': '86.237.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.237.134.194', 'tags': [], 'project_id': '8cd91023481349f1af94f81a098a62b9'}}
2025-11-27 08:28:06,189 - INFO - Created VN ctest-vn-24720969
2025-11-27 08:28:06,242 - DEBUG - VN ctest-vn-24720969 UUID is 6a7a855e-de65-4172-924b-314f35a4c524
2025-11-27 08:28:06,564 - DEBUG - Response for create_network : {'network': {'id': '5c67fb63-235c-4acb-b3fa-c7e49a46bb06', 'name': 'ctest-vn-17776428', 'tenant_id': '8cd91023481349f1af94f81a098a62b9', 'project_id': '8cd91023481349f1af94f81a098a62b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26790554', 'ctest-vn-17776428'], 'port_security_enabled': True, 'description': ''}}
2025-11-27 08:28:06,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '836c2ab2-6852-42cb-86fb-200ac41126d7', 'name': '', 'tenant_id': '8cd91023481349f1af94f81a098a62b9', 'network_id': '5c67fb63-235c-4acb-b3fa-c7e49a46bb06', 'ip_version': 4, 'cidr': '110.166.191.128/26', 'allocation_pools': [{'start': '110.166.191.130', 'end': '110.166.191.190'}], 'gateway_ip': '110.166.191.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.166.191.130', 'tags': [], 'project_id': '8cd91023481349f1af94f81a098a62b9'}}
2025-11-27 08:28:06,788 - INFO - Created VN ctest-vn-17776428
2025-11-27 08:28:06,842 - DEBUG - VN ctest-vn-17776428 UUID is 5c67fb63-235c-4acb-b3fa-c7e49a46bb06
2025-11-27 08:28:06,977 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-24720969, 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-26790554:ctest-vn-17776428, 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-27 08:28:07,289 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a7a855e-de65-4172-924b-314f35a4c524', 'name': 'ctest-vn-24720969', 'tenant_id': '8cd91023481349f1af94f81a098a62b9', 'project_id': '8cd91023481349f1af94f81a098a62b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['66260cdd-3138-427a-995e-f70dadbbdead'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26790554', 'ctest-vn-24720969'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26790554', 'ctest-policy-allow-all-54062087']], 'subnet_ipam': [{'subnet_cidr': '86.237.134.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-27 08:28:07,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c67fb63-235c-4acb-b3fa-c7e49a46bb06', 'name': 'ctest-vn-17776428', 'tenant_id': '8cd91023481349f1af94f81a098a62b9', 'project_id': '8cd91023481349f1af94f81a098a62b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['836c2ab2-6852-42cb-86fb-200ac41126d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26790554', 'ctest-vn-17776428'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26790554', 'ctest-policy-allow-all-54062087']], 'subnet_ipam': [{'subnet_cidr': '110.166.191.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-27 08:28:07,698 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-27 08:28:08,038 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-27 08:28:08,073 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da942467-df54-4518-b91a-cef97911c724
2025-11-27 08:28:08,089 - DEBUG - Requesting: http://10.0.0.33:8082/project/8cd91023-4813-49f1-af94-f81a098a62b9
2025-11-27 08:28:08,165 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6a7a855e-de65-4172-924b-314f35a4c524
2025-11-27 08:28:08,177 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6a7a855e-de65-4172-924b-314f35a4c524
2025-11-27 08:28:08,188 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a66a64b5-6f38-467c-ba2b-0ae63d52ebda
2025-11-27 08:28:08,196 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a66a64b5-6f38-467c-ba2b-0ae63d52ebda
2025-11-27 08:28:08,204 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/51b5c938-dbc1-4cb8-a43f-e66b91344d96
2025-11-27 08:28:08,212 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-27 08:28:08,212 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6a7a855e-de65-4172-924b-314f35a4c524
2025-11-27 08:28:08,221 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a66a64b5-6f38-467c-ba2b-0ae63d52ebda
2025-11-27 08:28:08,238 - INFO - Verified VN network id 11 for VN 6a7a855e-de65-4172-924b-314f35a4c524
2025-11-27 08:28:08,238 - INFO - Verifications in API Server for VN ctest-vn-24720969 passed
2025-11-27 08:28:08,238 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6a7a855e-de65-4172-924b-314f35a4c524
2025-11-27 08:28:08,249 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a66a64b5-6f38-467c-ba2b-0ae63d52ebda
2025-11-27 08:28:08,257 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a66a64b5-6f38-467c-ba2b-0ae63d52ebda
2025-11-27 08:28:08,265 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/51b5c938-dbc1-4cb8-a43f-e66b91344d96
2025-11-27 08:28:08,278 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-24720969', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26790554', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7672591557683659122', 'uuid-lslong': '10541573569062946084'}, 'enable': 'true', 'created': '2025-11-27T08:28:05', 'last-modified': '2025-11-27T08:28:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018061'}
2025-11-27 08:28:08,284 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-27 08:28:08,284 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24720969 passed
2025-11-27 08:28:08,285 - DEBUG - ====Verifying policy data for ctest-vn-24720969 in API_Server ======
2025-11-27 08:28:08,285 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-27 08:28:08,292 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da942467-df54-4518-b91a-cef97911c724
2025-11-27 08:28:08,304 - DEBUG - Requesting: http://10.0.0.33:8082/project/8cd91023-4813-49f1-af94-f81a098a62b9
2025-11-27 08:28:08,377 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6a7a855e-de65-4172-924b-314f35a4c524
2025-11-27 08:28:08,389 - DEBUG - ==>Verifying data for policy with id: e9311d91-00d8-4d1b-be20-23410a3300b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-26790554', 'ctest-policy-allow-all-54062087']
2025-11-27 08:28:08,389 - INFO - VN ctest-vn-24720969 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-27 08:28:08,389 - DEBUG - Verifying the vn in opserver
2025-11-27 08:28:08,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-24720969 virtual network link through opserver 10.0.0.33
2025-11-27 08:28:08,389 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-27 08:28:08,727 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-27 08:28:08,797 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-24720969', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-24720969?flat'}
2025-11-27 08:28:08,797 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-24720969 is found in opserver
2025-11-27 08:28:08,807 - DEBUG - Do not have enough data to verify VN in agent
2025-11-27 08:28:08,813 - DEBUG - VRF ids for VN ctest-vn-24720969: {}
2025-11-27 08:28:08,814 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-27 08:28:08,820 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da942467-df54-4518-b91a-cef97911c724
2025-11-27 08:28:08,832 - DEBUG - Requesting: http://10.0.0.33:8082/project/8cd91023-4813-49f1-af94-f81a098a62b9
2025-11-27 08:28:08,905 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5c67fb63-235c-4acb-b3fa-c7e49a46bb06
2025-11-27 08:28:08,917 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5c67fb63-235c-4acb-b3fa-c7e49a46bb06
2025-11-27 08:28:08,930 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ded06738-cbe2-4381-9a9d-74dd8ce3c52d
2025-11-27 08:28:08,938 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ded06738-cbe2-4381-9a9d-74dd8ce3c52d
2025-11-27 08:28:08,946 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/224a769b-a54f-4134-8f43-45337199733d
2025-11-27 08:28:08,953 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-27 08:28:08,953 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5c67fb63-235c-4acb-b3fa-c7e49a46bb06
2025-11-27 08:28:08,963 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ded06738-cbe2-4381-9a9d-74dd8ce3c52d
2025-11-27 08:28:08,978 - INFO - Verified VN network id 12 for VN 5c67fb63-235c-4acb-b3fa-c7e49a46bb06
2025-11-27 08:28:08,978 - INFO - Verifications in API Server for VN ctest-vn-17776428 passed
2025-11-27 08:28:08,978 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5c67fb63-235c-4acb-b3fa-c7e49a46bb06
2025-11-27 08:28:08,987 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ded06738-cbe2-4381-9a9d-74dd8ce3c52d
2025-11-27 08:28:08,994 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ded06738-cbe2-4381-9a9d-74dd8ce3c52d
2025-11-27 08:28:09,002 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/224a769b-a54f-4134-8f43-45337199733d
2025-11-27 08:28:09,015 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-17776428', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26790554', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6658566977304152779', 'uuid-lslong': '12968897861621562118'}, 'enable': 'true', 'created': '2025-11-27T08:28:06', 'last-modified': '2025-11-27T08:28:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509226'}
2025-11-27 08:28:09,022 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-27 08:28:09,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17776428 passed
2025-11-27 08:28:09,022 - DEBUG - ====Verifying policy data for ctest-vn-17776428 in API_Server ======
2025-11-27 08:28:09,022 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-27 08:28:09,028 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da942467-df54-4518-b91a-cef97911c724
2025-11-27 08:28:09,040 - DEBUG - Requesting: http://10.0.0.33:8082/project/8cd91023-4813-49f1-af94-f81a098a62b9
2025-11-27 08:28:09,113 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5c67fb63-235c-4acb-b3fa-c7e49a46bb06
2025-11-27 08:28:09,125 - DEBUG - ==>Verifying data for policy with id: e9311d91-00d8-4d1b-be20-23410a3300b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-26790554', 'ctest-policy-allow-all-54062087']
2025-11-27 08:28:09,125 - INFO - VN ctest-vn-17776428 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-27 08:28:09,125 - DEBUG - Verifying the vn in opserver
2025-11-27 08:28:09,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-17776428 virtual network link through opserver 10.0.0.33
2025-11-27 08:28:09,125 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-27 08:28:09,135 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-17776428', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-17776428?flat'}
2025-11-27 08:28:09,135 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26790554:ctest-vn-17776428 is found in opserver
2025-11-27 08:28:09,145 - DEBUG - Do not have enough data to verify VN in agent
2025-11-27 08:28:09,150 - DEBUG - VRF ids for VN ctest-vn-17776428: {}
2025-11-27 08:28:09,215 - DEBUG - Services list from nova: [