2025-10-27 20:33:05,410 - INFO - Domain Default found not creating
2025-10-27 20:33:05,556 - INFO - Project ctest-TestBasicPolicy-42892245 not found, creating it
2025-10-27 20:33:06,002 - INFO - Created Project:ctest-TestBasicPolicy-42892245, ID : 715e585f-2c30-4f27-8fd3-5cbb1634246f
2025-10-27 20:33:07,412 - INFO - ================================================================================
2025-10-27 20:33:07,412 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 20:33:07,412 - 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-27 20:33:07,667 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-27 20:33:07,667 - INFO - Initial checks done. Running the testcase now
2025-10-27 20:33:07,667 - INFO -
2025-10-27 20:33:08,184 - DEBUG - Response for create_network : {'network': {'id': 'db424e97-1e6f-4ff8-a673-e877fc6e4514', 'name': 'ctest-vn-75246259', 'tenant_id': '715e585f2c304f278fd35cbb1634246f', 'project_id': '715e585f2c304f278fd35cbb1634246f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42892245', 'ctest-vn-75246259'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 20:33:08,373 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6eb46b6-4d80-47af-8e0a-fa3216ae60a1', 'name': '', 'tenant_id': '715e585f2c304f278fd35cbb1634246f', 'network_id': 'db424e97-1e6f-4ff8-a673-e877fc6e4514', 'ip_version': 4, 'cidr': '166.47.251.128/26', 'allocation_pools': [{'start': '166.47.251.130', 'end': '166.47.251.190'}], 'gateway_ip': '166.47.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.47.251.130', 'tags': [], 'project_id': '715e585f2c304f278fd35cbb1634246f'}}
2025-10-27 20:33:08,389 - INFO - Created VN ctest-vn-75246259
2025-10-27 20:33:08,442 - DEBUG - VN ctest-vn-75246259 UUID is db424e97-1e6f-4ff8-a673-e877fc6e4514
2025-10-27 20:33:08,765 - DEBUG - Response for create_network : {'network': {'id': '335d4104-c85f-40a9-9d88-ebc2edcb7900', 'name': 'ctest-vn-90463059', 'tenant_id': '715e585f2c304f278fd35cbb1634246f', 'project_id': '715e585f2c304f278fd35cbb1634246f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42892245', 'ctest-vn-90463059'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 20:33:08,920 - DEBUG - Response for create_subnet : {'subnet': {'id': '75af70fb-2355-4291-833b-7d22056c749f', 'name': '', 'tenant_id': '715e585f2c304f278fd35cbb1634246f', 'network_id': '335d4104-c85f-40a9-9d88-ebc2edcb7900', 'ip_version': 4, 'cidr': '38.229.157.128/26', 'allocation_pools': [{'start': '38.229.157.130', 'end': '38.229.157.190'}], 'gateway_ip': '38.229.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.229.157.130', 'tags': [], 'project_id': '715e585f2c304f278fd35cbb1634246f'}}
2025-10-27 20:33:08,937 - INFO - Created VN ctest-vn-90463059
2025-10-27 20:33:08,990 - DEBUG - VN ctest-vn-90463059 UUID is 335d4104-c85f-40a9-9d88-ebc2edcb7900
2025-10-27 20:33:09,112 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-75246259, 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-42892245:ctest-vn-90463059, 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-27 20:33:09,407 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db424e97-1e6f-4ff8-a673-e877fc6e4514', 'name': 'ctest-vn-75246259', 'tenant_id': '715e585f2c304f278fd35cbb1634246f', 'project_id': '715e585f2c304f278fd35cbb1634246f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6eb46b6-4d80-47af-8e0a-fa3216ae60a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42892245', 'ctest-vn-75246259'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42892245', 'ctest-policy-allow-all-54349225']], 'subnet_ipam': [{'subnet_cidr': '166.47.251.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 20:33:09,645 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '335d4104-c85f-40a9-9d88-ebc2edcb7900', 'name': 'ctest-vn-90463059', 'tenant_id': '715e585f2c304f278fd35cbb1634246f', 'project_id': '715e585f2c304f278fd35cbb1634246f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75af70fb-2355-4291-833b-7d22056c749f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42892245', 'ctest-vn-90463059'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42892245', 'ctest-policy-allow-all-54349225']], 'subnet_ipam': [{'subnet_cidr': '38.229.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 20:33:09,814 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 20:33:10,107 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 20:33:10,133 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2e47e640-8f8e-4871-bd9a-90fac508bcd4
2025-10-27 20:33:10,144 - DEBUG - Requesting: http://10.0.0.254:8082/project/715e585f-2c30-4f27-8fd3-5cbb1634246f
2025-10-27 20:33:10,212 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/db424e97-1e6f-4ff8-a673-e877fc6e4514
2025-10-27 20:33:10,222 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/db424e97-1e6f-4ff8-a673-e877fc6e4514
2025-10-27 20:33:10,230 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3b35e449-7d44-4e71-8d10-5195083f0346
2025-10-27 20:33:10,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3b35e449-7d44-4e71-8d10-5195083f0346
2025-10-27 20:33:10,243 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d12ffd70-5153-40b9-ae3e-863db65c6dcd
2025-10-27 20:33:10,248 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 20:33:10,248 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/db424e97-1e6f-4ff8-a673-e877fc6e4514
2025-10-27 20:33:10,256 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3b35e449-7d44-4e71-8d10-5195083f0346
2025-10-27 20:33:10,269 - INFO - Verified VN network id 11 for VN db424e97-1e6f-4ff8-a673-e877fc6e4514
2025-10-27 20:33:10,269 - INFO - Verifications in API Server for VN ctest-vn-75246259 passed
2025-10-27 20:33:10,269 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/db424e97-1e6f-4ff8-a673-e877fc6e4514
2025-10-27 20:33:10,277 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3b35e449-7d44-4e71-8d10-5195083f0346
2025-10-27 20:33:10,284 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3b35e449-7d44-4e71-8d10-5195083f0346
2025-10-27 20:33:10,291 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d12ffd70-5153-40b9-ae3e-863db65c6dcd
2025-10-27 20:33:10,303 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-75246259', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42892245', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15799276853726760952', 'uuid-lslong': '11994185834651600148'}, 'enable': 'true', 'created': '2025-10-27T20:33:08', 'last-modified': '2025-10-27T20:33:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915895'}
2025-10-27 20:33:10,310 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 20:33:10,310 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75246259 passed
2025-10-27 20:33:10,310 - DEBUG - ====Verifying policy data for ctest-vn-75246259 in API_Server ======
2025-10-27 20:33:10,310 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 20:33:10,316 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2e47e640-8f8e-4871-bd9a-90fac508bcd4
2025-10-27 20:33:10,329 - DEBUG - Requesting: http://10.0.0.254:8082/project/715e585f-2c30-4f27-8fd3-5cbb1634246f
2025-10-27 20:33:10,399 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/db424e97-1e6f-4ff8-a673-e877fc6e4514
2025-10-27 20:33:10,408 - DEBUG - ==>Verifying data for policy with id: 5a223919-3f38-4fcf-a065-f2fb5246f92b, fqn: ['default-domain', 'ctest-TestBasicPolicy-42892245', 'ctest-policy-allow-all-54349225']
2025-10-27 20:33:10,408 - INFO - VN ctest-vn-75246259 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 20:33:10,408 - DEBUG - Verifying the vn in opserver
2025-10-27 20:33:10,408 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-75246259 virtual network link through opserver 10.0.0.254
2025-10-27 20:33:10,409 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-27 20:33:10,696 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-27 20:33:10,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-75246259', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-75246259?flat'}
2025-10-27 20:33:10,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-75246259 is found in opserver
2025-10-27 20:33:10,759 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 20:33:10,763 - DEBUG - VRF ids for VN ctest-vn-75246259: {}
2025-10-27 20:33:10,763 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 20:33:10,768 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2e47e640-8f8e-4871-bd9a-90fac508bcd4
2025-10-27 20:33:10,779 - DEBUG - Requesting: http://10.0.0.254:8082/project/715e585f-2c30-4f27-8fd3-5cbb1634246f
2025-10-27 20:33:10,848 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/335d4104-c85f-40a9-9d88-ebc2edcb7900
2025-10-27 20:33:10,858 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/335d4104-c85f-40a9-9d88-ebc2edcb7900
2025-10-27 20:33:10,867 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/959fc976-63bd-438d-acd1-068a609a79c5
2025-10-27 20:33:10,874 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/959fc976-63bd-438d-acd1-068a609a79c5
2025-10-27 20:33:10,880 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0d14c496-45c0-416d-9641-3262c1406987
2025-10-27 20:33:10,886 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 20:33:10,886 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/335d4104-c85f-40a9-9d88-ebc2edcb7900
2025-10-27 20:33:10,894 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/959fc976-63bd-438d-acd1-068a609a79c5
2025-10-27 20:33:10,906 - INFO - Verified VN network id 12 for VN 335d4104-c85f-40a9-9d88-ebc2edcb7900
2025-10-27 20:33:10,906 - INFO - Verifications in API Server for VN ctest-vn-90463059 passed
2025-10-27 20:33:10,906 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/335d4104-c85f-40a9-9d88-ebc2edcb7900
2025-10-27 20:33:10,915 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/959fc976-63bd-438d-acd1-068a609a79c5
2025-10-27 20:33:10,922 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/959fc976-63bd-438d-acd1-068a609a79c5
2025-10-27 20:33:10,929 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0d14c496-45c0-416d-9641-3262c1406987
2025-10-27 20:33:10,940 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-90463059', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42892245', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3701185957565776041', 'uuid-lslong': '11351582083233052928'}, 'enable': 'true', 'created': '2025-10-27T20:33:08', 'last-modified': '2025-10-27T20:33:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318332'}
2025-10-27 20:33:10,947 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 20:33:10,947 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90463059 passed
2025-10-27 20:33:10,947 - DEBUG - ====Verifying policy data for ctest-vn-90463059 in API_Server ======
2025-10-27 20:33:10,948 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 20:33:10,953 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2e47e640-8f8e-4871-bd9a-90fac508bcd4
2025-10-27 20:33:10,963 - DEBUG - Requesting: http://10.0.0.254:8082/project/715e585f-2c30-4f27-8fd3-5cbb1634246f
2025-10-27 20:33:11,035 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/335d4104-c85f-40a9-9d88-ebc2edcb7900
2025-10-27 20:33:11,045 - DEBUG - ==>Verifying data for policy with id: 5a223919-3f38-4fcf-a065-f2fb5246f92b, fqn: ['default-domain', 'ctest-TestBasicPolicy-42892245', 'ctest-policy-allow-all-54349225']
2025-10-27 20:33:11,045 - INFO - VN ctest-vn-90463059 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 20:33:11,045 - DEBUG - Verifying the vn in opserver
2025-10-27 20:33:11,045 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-90463059 virtual network link through opserver 10.0.0.254
2025-10-27 20:33:11,045 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-27 20:33:11,056 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-90463059', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-90463059?flat'}
2025-10-27 20:33:11,056 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42892245:ctest-vn-90463059 is found in opserver
2025-10-27 20:33:11,067 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 20:33:11,071 - DEBUG - VRF ids for VN ctest-vn-90463059: {}
2025-10-27 20:33:11,128 - DEBUG - Services list from nova: [