2025-09-01 17:24:42,806 - INFO - Domain Default found not creating
2025-09-01 17:24:42,937 - INFO - Project ctest-TestBasicPolicy-80677158 not found, creating it
2025-09-01 17:24:43,365 - INFO - Created Project:ctest-TestBasicPolicy-80677158, ID : 1026fd3c-90d1-4ad4-bcab-f4664acfe21d
2025-09-01 17:24:44,683 - INFO - ================================================================================
2025-09-01 17:24:44,683 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-01 17:24:44,683 - 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-09-01 17:24:44,942 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-09-01 17:24:44,942 - INFO - Initial checks done. Running the testcase now
2025-09-01 17:24:44,942 - INFO -
2025-09-01 17:24:45,459 - DEBUG - Response for create_network : {'network': {'id': '3862bed1-2b84-40a2-a7ea-1585f86ad813', 'name': 'ctest-vn-39764625', 'tenant_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'project_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80677158', 'ctest-vn-39764625'], 'port_security_enabled': True, 'description': ''}}
2025-09-01 17:24:45,632 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4734887-d6ba-4050-8a68-e350bd9bb75a', 'name': '', 'tenant_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'network_id': '3862bed1-2b84-40a2-a7ea-1585f86ad813', 'ip_version': 4, 'cidr': '163.140.111.64/26', 'allocation_pools': [{'start': '163.140.111.66', 'end': '163.140.111.126'}], 'gateway_ip': '163.140.111.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.140.111.66', 'tags': [], 'project_id': '1026fd3c90d14ad4bcabf4664acfe21d'}}
2025-09-01 17:24:45,650 - INFO - Created VN ctest-vn-39764625
2025-09-01 17:24:45,701 - DEBUG - VN ctest-vn-39764625 UUID is 3862bed1-2b84-40a2-a7ea-1585f86ad813
2025-09-01 17:24:46,009 - DEBUG - Response for create_network : {'network': {'id': 'a83f88bc-f80d-4752-89a0-3b3be3f6afe0', 'name': 'ctest-vn-72477637', 'tenant_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'project_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80677158', 'ctest-vn-72477637'], 'port_security_enabled': True, 'description': ''}}
2025-09-01 17:24:46,196 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b3ee86f-1f4c-4191-833d-ecf7b920ebd9', 'name': '', 'tenant_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'network_id': 'a83f88bc-f80d-4752-89a0-3b3be3f6afe0', 'ip_version': 4, 'cidr': '46.243.183.128/26', 'allocation_pools': [{'start': '46.243.183.130', 'end': '46.243.183.190'}], 'gateway_ip': '46.243.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.243.183.130', 'tags': [], 'project_id': '1026fd3c90d14ad4bcabf4664acfe21d'}}
2025-09-01 17:24:46,212 - INFO - Created VN ctest-vn-72477637
2025-09-01 17:24:46,261 - DEBUG - VN ctest-vn-72477637 UUID is a83f88bc-f80d-4752-89a0-3b3be3f6afe0
2025-09-01 17:24:46,405 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-39764625, 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-80677158:ctest-vn-72477637, 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-09-01 17:24:46,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3862bed1-2b84-40a2-a7ea-1585f86ad813', 'name': 'ctest-vn-39764625', 'tenant_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'project_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4734887-d6ba-4050-8a68-e350bd9bb75a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80677158', 'ctest-vn-39764625'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80677158', 'ctest-policy-allow-all-85126081']], 'subnet_ipam': [{'subnet_cidr': '163.140.111.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-01 17:24:46,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a83f88bc-f80d-4752-89a0-3b3be3f6afe0', 'name': 'ctest-vn-72477637', 'tenant_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'project_id': '1026fd3c90d14ad4bcabf4664acfe21d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b3ee86f-1f4c-4191-833d-ecf7b920ebd9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80677158', 'ctest-vn-72477637'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80677158', 'ctest-policy-allow-all-85126081']], 'subnet_ipam': [{'subnet_cidr': '46.243.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-01 17:24:47,097 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 17:24:47,390 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 17:24:47,414 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d6560e76-09d1-41e6-a069-a36c86054403
2025-09-01 17:24:47,424 - DEBUG - Requesting: http://10.0.0.254:8082/project/1026fd3c-90d1-4ad4-bcab-f4664acfe21d
2025-09-01 17:24:47,490 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3862bed1-2b84-40a2-a7ea-1585f86ad813
2025-09-01 17:24:47,499 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3862bed1-2b84-40a2-a7ea-1585f86ad813
2025-09-01 17:24:47,506 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce7a5a53-97f2-4210-b5f7-7a71cf4fab79
2025-09-01 17:24:47,512 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce7a5a53-97f2-4210-b5f7-7a71cf4fab79
2025-09-01 17:24:47,517 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ef7371ea-8692-424c-ad2a-aa40ee0658aa
2025-09-01 17:24:47,521 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-01 17:24:47,522 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3862bed1-2b84-40a2-a7ea-1585f86ad813
2025-09-01 17:24:47,529 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce7a5a53-97f2-4210-b5f7-7a71cf4fab79
2025-09-01 17:24:47,539 - INFO - Verified VN network id 11 for VN 3862bed1-2b84-40a2-a7ea-1585f86ad813
2025-09-01 17:24:47,540 - INFO - Verifications in API Server for VN ctest-vn-39764625 passed
2025-09-01 17:24:47,540 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3862bed1-2b84-40a2-a7ea-1585f86ad813
2025-09-01 17:24:47,547 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce7a5a53-97f2-4210-b5f7-7a71cf4fab79
2025-09-01 17:24:47,552 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce7a5a53-97f2-4210-b5f7-7a71cf4fab79
2025-09-01 17:24:47,557 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ef7371ea-8692-424c-ad2a-aa40ee0658aa
2025-09-01 17:24:47,566 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-39764625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80677158', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4063019619429138594', 'uuid-lslong': '12099507014026844179'}, 'enable': 'true', 'created': '2025-09-01T17:24:45', 'last-modified': '2025-09-01T17:24:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894928'}
2025-09-01 17:24:47,570 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-01 17:24:47,570 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39764625 passed
2025-09-01 17:24:47,570 - DEBUG - ====Verifying policy data for ctest-vn-39764625 in API_Server ======
2025-09-01 17:24:47,571 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 17:24:47,574 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d6560e76-09d1-41e6-a069-a36c86054403
2025-09-01 17:24:47,582 - DEBUG - Requesting: http://10.0.0.254:8082/project/1026fd3c-90d1-4ad4-bcab-f4664acfe21d
2025-09-01 17:24:47,646 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3862bed1-2b84-40a2-a7ea-1585f86ad813
2025-09-01 17:24:47,654 - DEBUG - ==>Verifying data for policy with id: 6d091dfb-43ca-44cc-bcbc-acc3eba2488e, fqn: ['default-domain', 'ctest-TestBasicPolicy-80677158', 'ctest-policy-allow-all-85126081']
2025-09-01 17:24:47,654 - INFO - VN ctest-vn-39764625 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-01 17:24:47,654 - DEBUG - Verifying the vn in opserver
2025-09-01 17:24:47,654 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-39764625 virtual network link through opserver 10.0.0.254
2025-09-01 17:24:47,654 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-01 17:24:47,940 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-01 17:24:47,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-39764625', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-39764625?flat'}
2025-09-01 17:24:47,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-39764625 is found in opserver
2025-09-01 17:24:47,999 - DEBUG - Do not have enough data to verify VN in agent
2025-09-01 17:24:48,003 - DEBUG - VRF ids for VN ctest-vn-39764625: {}
2025-09-01 17:24:48,003 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 17:24:48,009 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d6560e76-09d1-41e6-a069-a36c86054403
2025-09-01 17:24:48,019 - DEBUG - Requesting: http://10.0.0.254:8082/project/1026fd3c-90d1-4ad4-bcab-f4664acfe21d
2025-09-01 17:24:48,090 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a83f88bc-f80d-4752-89a0-3b3be3f6afe0
2025-09-01 17:24:48,099 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a83f88bc-f80d-4752-89a0-3b3be3f6afe0
2025-09-01 17:24:48,106 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b8131ef-2d2d-4946-8f9e-b6d4d984eb1a
2025-09-01 17:24:48,112 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b8131ef-2d2d-4946-8f9e-b6d4d984eb1a
2025-09-01 17:24:48,118 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eb714a09-78aa-4ebd-aae4-767c624a5df5
2025-09-01 17:24:48,123 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-01 17:24:48,123 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a83f88bc-f80d-4752-89a0-3b3be3f6afe0
2025-09-01 17:24:48,129 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b8131ef-2d2d-4946-8f9e-b6d4d984eb1a
2025-09-01 17:24:48,139 - INFO - Verified VN network id 12 for VN a83f88bc-f80d-4752-89a0-3b3be3f6afe0
2025-09-01 17:24:48,139 - INFO - Verifications in API Server for VN ctest-vn-72477637 passed
2025-09-01 17:24:48,139 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a83f88bc-f80d-4752-89a0-3b3be3f6afe0
2025-09-01 17:24:48,145 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b8131ef-2d2d-4946-8f9e-b6d4d984eb1a
2025-09-01 17:24:48,150 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b8131ef-2d2d-4946-8f9e-b6d4d984eb1a
2025-09-01 17:24:48,154 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eb714a09-78aa-4ebd-aae4-767c624a5df5
2025-09-01 17:24:48,163 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-72477637', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80677158', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12123559067101513554', 'uuid-lslong': '9916991507883536352'}, 'enable': 'true', 'created': '2025-09-01T17:24:45', 'last-modified': '2025-09-01T17:24:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.272221'}
2025-09-01 17:24:48,167 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-01 17:24:48,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72477637 passed
2025-09-01 17:24:48,167 - DEBUG - ====Verifying policy data for ctest-vn-72477637 in API_Server ======
2025-09-01 17:24:48,167 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 17:24:48,172 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d6560e76-09d1-41e6-a069-a36c86054403
2025-09-01 17:24:48,180 - DEBUG - Requesting: http://10.0.0.254:8082/project/1026fd3c-90d1-4ad4-bcab-f4664acfe21d
2025-09-01 17:24:48,249 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a83f88bc-f80d-4752-89a0-3b3be3f6afe0
2025-09-01 17:24:48,258 - DEBUG - ==>Verifying data for policy with id: 6d091dfb-43ca-44cc-bcbc-acc3eba2488e, fqn: ['default-domain', 'ctest-TestBasicPolicy-80677158', 'ctest-policy-allow-all-85126081']
2025-09-01 17:24:48,258 - INFO - VN ctest-vn-72477637 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-01 17:24:48,258 - DEBUG - Verifying the vn in opserver
2025-09-01 17:24:48,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-72477637 virtual network link through opserver 10.0.0.254
2025-09-01 17:24:48,258 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-01 17:24:48,267 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-72477637', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-72477637?flat'}
2025-09-01 17:24:48,267 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80677158:ctest-vn-72477637 is found in opserver
2025-09-01 17:24:48,275 - DEBUG - Do not have enough data to verify VN in agent
2025-09-01 17:24:48,279 - DEBUG - VRF ids for VN ctest-vn-72477637: {}
2025-09-01 17:24:48,329 - DEBUG - Services list from nova: [