2025-10-22 14:13:35,089 - INFO - Domain Default found not creating
2025-10-22 14:13:35,239 - INFO - Project ctest-TestBasicPolicy-47014920 not found, creating it
2025-10-22 14:13:35,673 - INFO - Created Project:ctest-TestBasicPolicy-47014920, ID : f71e1bed-4bb7-450c-9282-ec7df5800a09
2025-10-22 14:13:37,088 - INFO - ================================================================================
2025-10-22 14:13:37,089 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 14:13:37,089 - 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-10-22 14:13:37,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0'}} with
2025-10-22 14:13:37,342 - INFO - Initial checks done. Running the testcase now
2025-10-22 14:13:37,342 - INFO -
2025-10-22 14:13:37,924 - DEBUG - Response for create_network : {'network': {'id': '51c96a38-69cf-4d9b-9e43-f993fcb5b504', 'name': 'ctest-vn-51367859', 'tenant_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'project_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47014920', 'ctest-vn-51367859'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:13:38,077 - DEBUG - Response for create_subnet : {'subnet': {'id': '596927ed-918e-469f-b5f6-0878708abd59', 'name': '', 'tenant_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'network_id': '51c96a38-69cf-4d9b-9e43-f993fcb5b504', 'ip_version': 4, 'cidr': '64.46.204.128/26', 'allocation_pools': [{'start': '64.46.204.130', 'end': '64.46.204.190'}], 'gateway_ip': '64.46.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.46.204.130', 'tags': [], 'project_id': 'f71e1bed4bb7450c9282ec7df5800a09'}}
2025-10-22 14:13:38,095 - INFO - Created VN ctest-vn-51367859
2025-10-22 14:13:38,148 - DEBUG - VN ctest-vn-51367859 UUID is 51c96a38-69cf-4d9b-9e43-f993fcb5b504
2025-10-22 14:13:38,453 - DEBUG - Response for create_network : {'network': {'id': 'e919d66d-b2f2-459f-9919-53d861294250', 'name': 'ctest-vn-79000841', 'tenant_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'project_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47014920', 'ctest-vn-79000841'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:13:38,612 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0309f75-7790-488c-a856-d652d8a0b06a', 'name': '', 'tenant_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'network_id': 'e919d66d-b2f2-459f-9919-53d861294250', 'ip_version': 4, 'cidr': '57.157.5.192/26', 'allocation_pools': [{'start': '57.157.5.194', 'end': '57.157.5.254'}], 'gateway_ip': '57.157.5.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.157.5.194', 'tags': [], 'project_id': 'f71e1bed4bb7450c9282ec7df5800a09'}}
2025-10-22 14:13:38,628 - INFO - Created VN ctest-vn-79000841
2025-10-22 14:13:38,680 - DEBUG - VN ctest-vn-79000841 UUID is e919d66d-b2f2-459f-9919-53d861294250
2025-10-22 14:13:38,832 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-51367859, 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-47014920:ctest-vn-79000841, 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-10-22 14:13:39,128 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '51c96a38-69cf-4d9b-9e43-f993fcb5b504', 'name': 'ctest-vn-51367859', 'tenant_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'project_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['596927ed-918e-469f-b5f6-0878708abd59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47014920', 'ctest-vn-51367859'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47014920', 'ctest-policy-allow-all-19884659']], 'subnet_ipam': [{'subnet_cidr': '64.46.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:13:39,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e919d66d-b2f2-459f-9919-53d861294250', 'name': 'ctest-vn-79000841', 'tenant_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'project_id': 'f71e1bed4bb7450c9282ec7df5800a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0309f75-7790-488c-a856-d652d8a0b06a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47014920', 'ctest-vn-79000841'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47014920', 'ctest-policy-allow-all-19884659']], 'subnet_ipam': [{'subnet_cidr': '57.157.5.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:13:39,532 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-22 14:13:39,824 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-22 14:13:39,852 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cb7a9fa9-9290-4e39-899a-230e0e4468c3
2025-10-22 14:13:39,863 - DEBUG - Requesting: http://10.0.0.49:8082/project/f71e1bed-4bb7-450c-9282-ec7df5800a09
2025-10-22 14:13:39,937 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/51c96a38-69cf-4d9b-9e43-f993fcb5b504
2025-10-22 14:13:39,947 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/51c96a38-69cf-4d9b-9e43-f993fcb5b504
2025-10-22 14:13:39,956 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/707ef803-4234-43b1-8b82-11846f993d25
2025-10-22 14:13:39,963 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/707ef803-4234-43b1-8b82-11846f993d25
2025-10-22 14:13:39,969 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/2f3d90fc-9962-46f7-9768-9a68a2c351e6
2025-10-22 14:13:39,974 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 14:13:39,974 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/51c96a38-69cf-4d9b-9e43-f993fcb5b504
2025-10-22 14:13:39,982 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/707ef803-4234-43b1-8b82-11846f993d25
2025-10-22 14:13:39,994 - INFO - Verified VN network id 11 for VN 51c96a38-69cf-4d9b-9e43-f993fcb5b504
2025-10-22 14:13:39,994 - INFO - Verifications in API Server for VN ctest-vn-51367859 passed
2025-10-22 14:13:39,995 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/51c96a38-69cf-4d9b-9e43-f993fcb5b504
2025-10-22 14:13:40,004 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/707ef803-4234-43b1-8b82-11846f993d25
2025-10-22 14:13:40,011 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/707ef803-4234-43b1-8b82-11846f993d25
2025-10-22 14:13:40,017 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/2f3d90fc-9962-46f7-9768-9a68a2c351e6
2025-10-22 14:13:40,027 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-51367859', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47014920', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5893358377916911003', 'uuid-lslong': '11404233095427503364'}, 'enable': 'true', 'created': '2025-10-22T14:13:37', 'last-modified': '2025-10-22T14:13:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919266'}
2025-10-22 14:13:40,033 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 14:13:40,033 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51367859 passed
2025-10-22 14:13:40,033 - DEBUG - ====Verifying policy data for ctest-vn-51367859 in API_Server ======
2025-10-22 14:13:40,033 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-22 14:13:40,038 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cb7a9fa9-9290-4e39-899a-230e0e4468c3
2025-10-22 14:13:40,048 - DEBUG - Requesting: http://10.0.0.49:8082/project/f71e1bed-4bb7-450c-9282-ec7df5800a09
2025-10-22 14:13:40,121 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/51c96a38-69cf-4d9b-9e43-f993fcb5b504
2025-10-22 14:13:40,129 - DEBUG - ==>Verifying data for policy with id: 603424bf-0613-4abb-b9a2-4d3442691aed, fqn: ['default-domain', 'ctest-TestBasicPolicy-47014920', 'ctest-policy-allow-all-19884659']
2025-10-22 14:13:40,129 - INFO - VN ctest-vn-51367859 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 14:13:40,129 - DEBUG - Verifying the vn in opserver
2025-10-22 14:13:40,130 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-51367859 virtual network link through opserver 10.0.0.49
2025-10-22 14:13:40,130 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-10-22 14:13:40,424 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-10-22 14:13:40,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-51367859', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-51367859?flat'}
2025-10-22 14:13:40,477 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-51367859 is found in opserver
2025-10-22 14:13:40,486 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 14:13:40,491 - DEBUG - VRF ids for VN ctest-vn-51367859: {}
2025-10-22 14:13:40,491 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-22 14:13:40,495 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cb7a9fa9-9290-4e39-899a-230e0e4468c3
2025-10-22 14:13:40,505 - DEBUG - Requesting: http://10.0.0.49:8082/project/f71e1bed-4bb7-450c-9282-ec7df5800a09
2025-10-22 14:13:40,571 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e919d66d-b2f2-459f-9919-53d861294250
2025-10-22 14:13:40,582 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e919d66d-b2f2-459f-9919-53d861294250
2025-10-22 14:13:40,590 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a4c613ff-ccbd-4ee6-92ab-624fd044e2e1
2025-10-22 14:13:40,597 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a4c613ff-ccbd-4ee6-92ab-624fd044e2e1
2025-10-22 14:13:40,604 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/94627d04-d50f-42f0-bf78-99492fad991c
2025-10-22 14:13:40,610 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 14:13:40,610 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e919d66d-b2f2-459f-9919-53d861294250
2025-10-22 14:13:40,620 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a4c613ff-ccbd-4ee6-92ab-624fd044e2e1
2025-10-22 14:13:40,635 - INFO - Verified VN network id 12 for VN e919d66d-b2f2-459f-9919-53d861294250
2025-10-22 14:13:40,635 - INFO - Verifications in API Server for VN ctest-vn-79000841 passed
2025-10-22 14:13:40,635 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e919d66d-b2f2-459f-9919-53d861294250
2025-10-22 14:13:40,643 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a4c613ff-ccbd-4ee6-92ab-624fd044e2e1
2025-10-22 14:13:40,649 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a4c613ff-ccbd-4ee6-92ab-624fd044e2e1
2025-10-22 14:13:40,655 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/94627d04-d50f-42f0-bf78-99492fad991c
2025-10-22 14:13:40,668 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-79000841', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47014920', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16796692051896976799', 'uuid-lslong': '11031940951028875856'}, 'enable': 'true', 'created': '2025-10-22T14:13:38', 'last-modified': '2025-10-22T14:13:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326872'}
2025-10-22 14:13:40,674 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 14:13:40,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79000841 passed
2025-10-22 14:13:40,674 - DEBUG - ====Verifying policy data for ctest-vn-79000841 in API_Server ======
2025-10-22 14:13:40,674 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-22 14:13:40,684 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cb7a9fa9-9290-4e39-899a-230e0e4468c3
2025-10-22 14:13:40,695 - DEBUG - Requesting: http://10.0.0.49:8082/project/f71e1bed-4bb7-450c-9282-ec7df5800a09
2025-10-22 14:13:40,790 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e919d66d-b2f2-459f-9919-53d861294250
2025-10-22 14:13:40,801 - DEBUG - ==>Verifying data for policy with id: 603424bf-0613-4abb-b9a2-4d3442691aed, fqn: ['default-domain', 'ctest-TestBasicPolicy-47014920', 'ctest-policy-allow-all-19884659']
2025-10-22 14:13:40,801 - INFO - VN ctest-vn-79000841 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 14:13:40,801 - DEBUG - Verifying the vn in opserver
2025-10-22 14:13:40,801 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-79000841 virtual network link through opserver 10.0.0.49
2025-10-22 14:13:40,801 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-10-22 14:13:40,811 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-79000841', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-79000841?flat'}
2025-10-22 14:13:40,811 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47014920:ctest-vn-79000841 is found in opserver
2025-10-22 14:13:40,822 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 14:13:40,828 - DEBUG - VRF ids for VN ctest-vn-79000841: {}
2025-10-22 14:13:40,886 - DEBUG - Services list from nova: [