2025-11-12 09:08:08,484 - INFO - Domain Default found not creating
2025-11-12 09:08:08,641 - INFO - Project ctest-TestBasicPolicy-23397703 not found, creating it
2025-11-12 09:08:09,081 - INFO - Created Project:ctest-TestBasicPolicy-23397703, ID : a0bdb67d-d4d5-41bd-b30c-54ff78de0d83
2025-11-12 09:08:10,578 - INFO - ================================================================================
2025-11-12 09:08:10,579 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 09:08:10,579 - 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-12 09:08:10,832 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with
2025-11-12 09:08:10,833 - INFO - Initial checks done. Running the testcase now
2025-11-12 09:08:10,833 - INFO -
2025-11-12 09:08:11,362 - DEBUG - Response for create_network : {'network': {'id': 'a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4', 'name': 'ctest-vn-24734339', 'tenant_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'project_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23397703', 'ctest-vn-24734339'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 09:08:11,571 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dbad07f7-e3db-46b4-a4c2-751fb94d84dc', 'name': '', 'tenant_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'network_id': 'a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4', 'ip_version': 4, 'cidr': '53.194.65.64/26', 'allocation_pools': [{'start': '53.194.65.66', 'end': '53.194.65.126'}], 'gateway_ip': '53.194.65.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.194.65.66', 'tags': [], 'project_id': 'a0bdb67dd4d541bdb30c54ff78de0d83'}}
2025-11-12 09:08:11,588 - INFO - Created VN ctest-vn-24734339
2025-11-12 09:08:11,639 - DEBUG - VN ctest-vn-24734339 UUID is a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4
2025-11-12 09:08:11,927 - DEBUG - Response for create_network : {'network': {'id': '82a50aa7-17a3-4f4c-914b-068bb0aa8640', 'name': 'ctest-vn-48760332', 'tenant_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'project_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23397703', 'ctest-vn-48760332'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 09:08:12,100 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e569918e-8f8f-4d8f-a696-edbc6afc0762', 'name': '', 'tenant_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'network_id': '82a50aa7-17a3-4f4c-914b-068bb0aa8640', 'ip_version': 4, 'cidr': '103.125.255.128/26', 'allocation_pools': [{'start': '103.125.255.130', 'end': '103.125.255.190'}], 'gateway_ip': '103.125.255.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.125.255.130', 'tags': [], 'project_id': 'a0bdb67dd4d541bdb30c54ff78de0d83'}}
2025-11-12 09:08:12,119 - INFO - Created VN ctest-vn-48760332
2025-11-12 09:08:12,175 - DEBUG - VN ctest-vn-48760332 UUID is 82a50aa7-17a3-4f4c-914b-068bb0aa8640
2025-11-12 09:08:12,327 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-24734339, 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-23397703:ctest-vn-48760332, 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-12 09:08:12,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4', 'name': 'ctest-vn-24734339', 'tenant_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'project_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dbad07f7-e3db-46b4-a4c2-751fb94d84dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23397703', 'ctest-vn-24734339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23397703', 'ctest-policy-allow-all-17445368']], 'subnet_ipam': [{'subnet_cidr': '53.194.65.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 09:08:12,836 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82a50aa7-17a3-4f4c-914b-068bb0aa8640', 'name': 'ctest-vn-48760332', 'tenant_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'project_id': 'a0bdb67dd4d541bdb30c54ff78de0d83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e569918e-8f8f-4d8f-a696-edbc6afc0762'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23397703', 'ctest-vn-48760332'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23397703', 'ctest-policy-allow-all-17445368']], 'subnet_ipam': [{'subnet_cidr': '103.125.255.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 09:08:12,999 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-12 09:08:13,291 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-12 09:08:13,324 - DEBUG - Requesting: http://10.0.0.141:8082/domain/47f1f484-0068-4524-a363-215c61f1f77a
2025-11-12 09:08:13,338 - DEBUG - Requesting: http://10.0.0.141:8082/project/a0bdb67d-d4d5-41bd-b30c-54ff78de0d83
2025-11-12 09:08:13,415 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4
2025-11-12 09:08:13,424 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4
2025-11-12 09:08:13,432 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/91ee3801-5229-4454-9812-bc7603addcf1
2025-11-12 09:08:13,440 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/91ee3801-5229-4454-9812-bc7603addcf1
2025-11-12 09:08:13,447 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5627d0b4-79f1-4703-b093-ac493b7b6235
2025-11-12 09:08:13,454 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 09:08:13,454 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4
2025-11-12 09:08:13,464 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/91ee3801-5229-4454-9812-bc7603addcf1
2025-11-12 09:08:13,477 - INFO - Verified VN network id 11 for VN a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4
2025-11-12 09:08:13,477 - INFO - Verifications in API Server for VN ctest-vn-24734339 passed
2025-11-12 09:08:13,477 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4
2025-11-12 09:08:13,486 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/91ee3801-5229-4454-9812-bc7603addcf1
2025-11-12 09:08:13,492 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/91ee3801-5229-4454-9812-bc7603addcf1
2025-11-12 09:08:13,499 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5627d0b4-79f1-4703-b093-ac493b7b6235
2025-11-12 09:08:13,510 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-24734339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23397703', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11576192960325238969', 'uuid-lslong': '13606467300507701732'}, 'enable': 'true', 'created': '2025-11-12T09:08:11', 'last-modified': '2025-11-12T09:08:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918588'}
2025-11-12 09:08:13,515 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 09:08:13,515 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24734339 passed
2025-11-12 09:08:13,516 - DEBUG - ====Verifying policy data for ctest-vn-24734339 in API_Server ======
2025-11-12 09:08:13,516 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-12 09:08:13,521 - DEBUG - Requesting: http://10.0.0.141:8082/domain/47f1f484-0068-4524-a363-215c61f1f77a
2025-11-12 09:08:13,534 - DEBUG - Requesting: http://10.0.0.141:8082/project/a0bdb67d-d4d5-41bd-b30c-54ff78de0d83
2025-11-12 09:08:13,603 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a0a6e62a-0390-40b9-bcd3-e1eb6ebad1e4
2025-11-12 09:08:13,612 - DEBUG - ==>Verifying data for policy with id: 4c24fc54-5f55-4be6-b15f-cfe012079b44, fqn: ['default-domain', 'ctest-TestBasicPolicy-23397703', 'ctest-policy-allow-all-17445368']
2025-11-12 09:08:13,612 - INFO - VN ctest-vn-24734339 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 09:08:13,612 - DEBUG - Verifying the vn in opserver
2025-11-12 09:08:13,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-24734339 virtual network link through opserver 10.0.0.141
2025-11-12 09:08:13,612 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-12 09:08:13,903 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-12 09:08:13,954 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-24734339', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-24734339?flat'}
2025-11-12 09:08:13,954 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-24734339 is found in opserver
2025-11-12 09:08:13,963 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 09:08:13,967 - DEBUG - VRF ids for VN ctest-vn-24734339: {}
2025-11-12 09:08:13,967 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-12 09:08:13,973 - DEBUG - Requesting: http://10.0.0.141:8082/domain/47f1f484-0068-4524-a363-215c61f1f77a
2025-11-12 09:08:13,985 - DEBUG - Requesting: http://10.0.0.141:8082/project/a0bdb67d-d4d5-41bd-b30c-54ff78de0d83
2025-11-12 09:08:14,050 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/82a50aa7-17a3-4f4c-914b-068bb0aa8640
2025-11-12 09:08:14,060 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/82a50aa7-17a3-4f4c-914b-068bb0aa8640
2025-11-12 09:08:14,068 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f7d2a2a4-1a1a-4501-9264-09014a9343e1
2025-11-12 09:08:14,074 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f7d2a2a4-1a1a-4501-9264-09014a9343e1
2025-11-12 09:08:14,080 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fb760ba6-951d-4ab8-b9f2-1856c58b29fc
2025-11-12 09:08:14,086 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 09:08:14,086 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/82a50aa7-17a3-4f4c-914b-068bb0aa8640
2025-11-12 09:08:14,094 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f7d2a2a4-1a1a-4501-9264-09014a9343e1
2025-11-12 09:08:14,106 - INFO - Verified VN network id 12 for VN 82a50aa7-17a3-4f4c-914b-068bb0aa8640
2025-11-12 09:08:14,106 - INFO - Verifications in API Server for VN ctest-vn-48760332 passed
2025-11-12 09:08:14,106 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/82a50aa7-17a3-4f4c-914b-068bb0aa8640
2025-11-12 09:08:14,114 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f7d2a2a4-1a1a-4501-9264-09014a9343e1
2025-11-12 09:08:14,120 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f7d2a2a4-1a1a-4501-9264-09014a9343e1
2025-11-12 09:08:14,125 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fb760ba6-951d-4ab8-b9f2-1856c58b29fc
2025-11-12 09:08:14,135 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-48760332', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23397703', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9413942308860284748', 'uuid-lslong': '10469468955787036224'}, 'enable': 'true', 'created': '2025-11-12T09:08:11', 'last-modified': '2025-11-12T09:08:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314896'}
2025-11-12 09:08:14,141 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 09:08:14,141 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48760332 passed
2025-11-12 09:08:14,141 - DEBUG - ====Verifying policy data for ctest-vn-48760332 in API_Server ======
2025-11-12 09:08:14,141 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-12 09:08:14,148 - DEBUG - Requesting: http://10.0.0.141:8082/domain/47f1f484-0068-4524-a363-215c61f1f77a
2025-11-12 09:08:14,157 - DEBUG - Requesting: http://10.0.0.141:8082/project/a0bdb67d-d4d5-41bd-b30c-54ff78de0d83
2025-11-12 09:08:14,228 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/82a50aa7-17a3-4f4c-914b-068bb0aa8640
2025-11-12 09:08:14,238 - DEBUG - ==>Verifying data for policy with id: 4c24fc54-5f55-4be6-b15f-cfe012079b44, fqn: ['default-domain', 'ctest-TestBasicPolicy-23397703', 'ctest-policy-allow-all-17445368']
2025-11-12 09:08:14,238 - INFO - VN ctest-vn-48760332 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 09:08:14,238 - DEBUG - Verifying the vn in opserver
2025-11-12 09:08:14,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-48760332 virtual network link through opserver 10.0.0.141
2025-11-12 09:08:14,238 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-12 09:08:14,247 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-48760332', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-48760332?flat'}
2025-11-12 09:08:14,247 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23397703:ctest-vn-48760332 is found in opserver
2025-11-12 09:08:14,256 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 09:08:14,262 - DEBUG - VRF ids for VN ctest-vn-48760332: {}
2025-11-12 09:08:14,317 - DEBUG - Services list from nova: [