2025-10-30 14:49:57,347 - INFO - Domain Default found not creating
2025-10-30 14:49:57,504 - INFO - Project ctest-TestBasicPolicy-45895596 not found, creating it
2025-10-30 14:49:57,944 - INFO - Created Project:ctest-TestBasicPolicy-45895596, ID : 9e7d5c62-313c-46d8-af2a-9150c10bf575
2025-10-30 14:49:59,346 - INFO - ================================================================================
2025-10-30 14:49:59,346 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 14:49:59,346 - 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-30 14:49:59,598 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-10-30 14:49:59,598 - INFO - Initial checks done. Running the testcase now
2025-10-30 14:49:59,599 - INFO -
2025-10-30 14:50:00,127 - DEBUG - Response for create_network : {'network': {'id': '6df903df-dd68-41b0-a488-be7d5397b383', 'name': 'ctest-vn-79919499', 'tenant_id': '9e7d5c62313c46d8af2a9150c10bf575', 'project_id': '9e7d5c62313c46d8af2a9150c10bf575', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45895596', 'ctest-vn-79919499'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 14:50:00,311 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9d3fc41-c633-4d88-87f3-48543a1f8a9c', 'name': '', 'tenant_id': '9e7d5c62313c46d8af2a9150c10bf575', 'network_id': '6df903df-dd68-41b0-a488-be7d5397b383', 'ip_version': 4, 'cidr': '193.201.17.128/26', 'allocation_pools': [{'start': '193.201.17.130', 'end': '193.201.17.190'}], 'gateway_ip': '193.201.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.201.17.130', 'tags': [], 'project_id': '9e7d5c62313c46d8af2a9150c10bf575'}}
2025-10-30 14:50:00,331 - INFO - Created VN ctest-vn-79919499
2025-10-30 14:50:00,382 - DEBUG - VN ctest-vn-79919499 UUID is 6df903df-dd68-41b0-a488-be7d5397b383
2025-10-30 14:50:00,683 - DEBUG - Response for create_network : {'network': {'id': 'efb47fe5-a622-412e-a672-c4aed26ba941', 'name': 'ctest-vn-08164375', 'tenant_id': '9e7d5c62313c46d8af2a9150c10bf575', 'project_id': '9e7d5c62313c46d8af2a9150c10bf575', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45895596', 'ctest-vn-08164375'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 14:50:00,907 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f624219a-e5c7-4008-85ce-c308de2cdb4a', 'name': '', 'tenant_id': '9e7d5c62313c46d8af2a9150c10bf575', 'network_id': 'efb47fe5-a622-412e-a672-c4aed26ba941', 'ip_version': 4, 'cidr': '36.210.209.0/26', 'allocation_pools': [{'start': '36.210.209.2', 'end': '36.210.209.62'}], 'gateway_ip': '36.210.209.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.210.209.2', 'tags': [], 'project_id': '9e7d5c62313c46d8af2a9150c10bf575'}}
2025-10-30 14:50:00,924 - INFO - Created VN ctest-vn-08164375
2025-10-30 14:50:00,978 - DEBUG - VN ctest-vn-08164375 UUID is efb47fe5-a622-412e-a672-c4aed26ba941
2025-10-30 14:50:01,134 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-79919499, 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-45895596:ctest-vn-08164375, 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-30 14:50:01,422 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6df903df-dd68-41b0-a488-be7d5397b383', 'name': 'ctest-vn-79919499', 'tenant_id': '9e7d5c62313c46d8af2a9150c10bf575', 'project_id': '9e7d5c62313c46d8af2a9150c10bf575', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9d3fc41-c633-4d88-87f3-48543a1f8a9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45895596', 'ctest-vn-79919499'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45895596', 'ctest-policy-allow-all-32189527']], 'subnet_ipam': [{'subnet_cidr': '193.201.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 14:50:01,648 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'efb47fe5-a622-412e-a672-c4aed26ba941', 'name': 'ctest-vn-08164375', 'tenant_id': '9e7d5c62313c46d8af2a9150c10bf575', 'project_id': '9e7d5c62313c46d8af2a9150c10bf575', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f624219a-e5c7-4008-85ce-c308de2cdb4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45895596', 'ctest-vn-08164375'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45895596', 'ctest-policy-allow-all-32189527']], 'subnet_ipam': [{'subnet_cidr': '36.210.209.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 14:50:01,814 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 14:50:02,118 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 14:50:02,147 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96b3946d-8a02-4320-9910-96053494a04a
2025-10-30 14:50:02,158 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e7d5c62-313c-46d8-af2a-9150c10bf575
2025-10-30 14:50:02,229 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6df903df-dd68-41b0-a488-be7d5397b383
2025-10-30 14:50:02,239 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6df903df-dd68-41b0-a488-be7d5397b383
2025-10-30 14:50:02,248 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64caa58e-df10-4c87-923f-81b3c2902946
2025-10-30 14:50:02,254 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64caa58e-df10-4c87-923f-81b3c2902946
2025-10-30 14:50:02,261 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c2448821-06eb-4c34-9ab5-c299474e1509
2025-10-30 14:50:02,267 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 14:50:02,267 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6df903df-dd68-41b0-a488-be7d5397b383
2025-10-30 14:50:02,276 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64caa58e-df10-4c87-923f-81b3c2902946
2025-10-30 14:50:02,288 - INFO - Verified VN network id 11 for VN 6df903df-dd68-41b0-a488-be7d5397b383
2025-10-30 14:50:02,288 - INFO - Verifications in API Server for VN ctest-vn-79919499 passed
2025-10-30 14:50:02,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6df903df-dd68-41b0-a488-be7d5397b383
2025-10-30 14:50:02,299 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64caa58e-df10-4c87-923f-81b3c2902946
2025-10-30 14:50:02,306 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64caa58e-df10-4c87-923f-81b3c2902946
2025-10-30 14:50:02,313 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c2448821-06eb-4c34-9ab5-c299474e1509
2025-10-30 14:50:02,326 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-79919499', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45895596', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7924369279362286000', 'uuid-lslong': '11855935464535470979'}, 'enable': 'true', 'created': '2025-10-30T14:50:00', 'last-modified': '2025-10-30T14:50:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924215'}
2025-10-30 14:50:02,333 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 14:50:02,333 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79919499 passed
2025-10-30 14:50:02,334 - DEBUG - ====Verifying policy data for ctest-vn-79919499 in API_Server ======
2025-10-30 14:50:02,334 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 14:50:02,339 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96b3946d-8a02-4320-9910-96053494a04a
2025-10-30 14:50:02,350 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e7d5c62-313c-46d8-af2a-9150c10bf575
2025-10-30 14:50:02,418 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6df903df-dd68-41b0-a488-be7d5397b383
2025-10-30 14:50:02,426 - DEBUG - ==>Verifying data for policy with id: f4956c05-ac45-441e-b982-745a8e3f7389, fqn: ['default-domain', 'ctest-TestBasicPolicy-45895596', 'ctest-policy-allow-all-32189527']
2025-10-30 14:50:02,426 - INFO - VN ctest-vn-79919499 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 14:50:02,426 - DEBUG - Verifying the vn in opserver
2025-10-30 14:50:02,426 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-79919499 virtual network link through opserver 10.0.0.38
2025-10-30 14:50:02,426 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 14:50:02,716 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 14:50:02,782 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-79919499', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-79919499?flat'}
2025-10-30 14:50:02,782 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-79919499 is found in opserver
2025-10-30 14:50:02,792 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 14:50:02,797 - DEBUG - VRF ids for VN ctest-vn-79919499: {}
2025-10-30 14:50:02,797 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 14:50:02,803 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96b3946d-8a02-4320-9910-96053494a04a
2025-10-30 14:50:02,814 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e7d5c62-313c-46d8-af2a-9150c10bf575
2025-10-30 14:50:02,883 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efb47fe5-a622-412e-a672-c4aed26ba941
2025-10-30 14:50:02,894 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efb47fe5-a622-412e-a672-c4aed26ba941
2025-10-30 14:50:02,902 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/72cfdd1e-b4c8-4dc2-a2bc-6d1e813c0f84
2025-10-30 14:50:02,909 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/72cfdd1e-b4c8-4dc2-a2bc-6d1e813c0f84
2025-10-30 14:50:02,915 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/98696681-a6e4-4043-9cfe-16f78c4f9618
2025-10-30 14:50:02,920 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 14:50:02,920 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efb47fe5-a622-412e-a672-c4aed26ba941
2025-10-30 14:50:02,929 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/72cfdd1e-b4c8-4dc2-a2bc-6d1e813c0f84
2025-10-30 14:50:02,943 - INFO - Verified VN network id 12 for VN efb47fe5-a622-412e-a672-c4aed26ba941
2025-10-30 14:50:02,943 - INFO - Verifications in API Server for VN ctest-vn-08164375 passed
2025-10-30 14:50:02,943 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efb47fe5-a622-412e-a672-c4aed26ba941
2025-10-30 14:50:02,953 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/72cfdd1e-b4c8-4dc2-a2bc-6d1e813c0f84
2025-10-30 14:50:02,961 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/72cfdd1e-b4c8-4dc2-a2bc-6d1e813c0f84
2025-10-30 14:50:02,968 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/98696681-a6e4-4043-9cfe-16f78c4f9618
2025-10-30 14:50:02,979 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-08164375', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45895596', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17272571095184195886', 'uuid-lslong': '11993865012774676801'}, 'enable': 'true', 'created': '2025-10-30T14:50:00', 'last-modified': '2025-10-30T14:50:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351114'}
2025-10-30 14:50:02,986 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 14:50:02,986 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08164375 passed
2025-10-30 14:50:02,986 - DEBUG - ====Verifying policy data for ctest-vn-08164375 in API_Server ======
2025-10-30 14:50:02,986 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 14:50:02,991 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96b3946d-8a02-4320-9910-96053494a04a
2025-10-30 14:50:03,002 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e7d5c62-313c-46d8-af2a-9150c10bf575
2025-10-30 14:50:03,073 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efb47fe5-a622-412e-a672-c4aed26ba941
2025-10-30 14:50:03,081 - DEBUG - ==>Verifying data for policy with id: f4956c05-ac45-441e-b982-745a8e3f7389, fqn: ['default-domain', 'ctest-TestBasicPolicy-45895596', 'ctest-policy-allow-all-32189527']
2025-10-30 14:50:03,081 - INFO - VN ctest-vn-08164375 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 14:50:03,081 - DEBUG - Verifying the vn in opserver
2025-10-30 14:50:03,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-08164375 virtual network link through opserver 10.0.0.38
2025-10-30 14:50:03,082 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 14:50:03,090 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-08164375', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-08164375?flat'}
2025-10-30 14:50:03,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45895596:ctest-vn-08164375 is found in opserver
2025-10-30 14:50:03,099 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 14:50:03,103 - DEBUG - VRF ids for VN ctest-vn-08164375: {}
2025-10-30 14:50:03,165 - DEBUG - Services list from nova: [