2025-11-06 08:50:44,173 - INFO - Domain Default found not creating
2025-11-06 08:50:44,324 - INFO - Project ctest-TestBasicPolicy-52079135 not found, creating it
2025-11-06 08:50:44,776 - INFO - Created Project:ctest-TestBasicPolicy-52079135, ID : a7265684-88fa-431d-a4e1-8725b52406f5
2025-11-06 08:50:46,393 - INFO - ================================================================================
2025-11-06 08:50:46,394 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-06 08:50:46,394 - 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-06 08:50:46,659 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-11-06 08:50:46,659 - INFO - Initial checks done. Running the testcase now
2025-11-06 08:50:46,659 - INFO -
2025-11-06 08:50:47,242 - DEBUG - Response for create_network : {'network': {'id': 'd1614d6a-a129-4942-a9eb-ca8792ffdbba', 'name': 'ctest-vn-78707136', 'tenant_id': 'a726568488fa431da4e18725b52406f5', 'project_id': 'a726568488fa431da4e18725b52406f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52079135', 'ctest-vn-78707136'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 08:50:47,438 - DEBUG - Response for create_subnet : {'subnet': {'id': '99c06c96-0c4c-4843-9310-4e7065e774f6', 'name': '', 'tenant_id': 'a726568488fa431da4e18725b52406f5', 'network_id': 'd1614d6a-a129-4942-a9eb-ca8792ffdbba', 'ip_version': 4, 'cidr': '69.49.138.64/26', 'allocation_pools': [{'start': '69.49.138.66', 'end': '69.49.138.126'}], 'gateway_ip': '69.49.138.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.49.138.66', 'tags': [], 'project_id': 'a726568488fa431da4e18725b52406f5'}}
2025-11-06 08:50:47,456 - INFO - Created VN ctest-vn-78707136
2025-11-06 08:50:47,509 - DEBUG - VN ctest-vn-78707136 UUID is d1614d6a-a129-4942-a9eb-ca8792ffdbba
2025-11-06 08:50:47,834 - DEBUG - Response for create_network : {'network': {'id': '6d7fccac-873a-4294-b9f9-a961decdd6c1', 'name': 'ctest-vn-28795113', 'tenant_id': 'a726568488fa431da4e18725b52406f5', 'project_id': 'a726568488fa431da4e18725b52406f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52079135', 'ctest-vn-28795113'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 08:50:48,062 - DEBUG - Response for create_subnet : {'subnet': {'id': '50155b17-161c-4d24-b62f-b4ac37ee3369', 'name': '', 'tenant_id': 'a726568488fa431da4e18725b52406f5', 'network_id': '6d7fccac-873a-4294-b9f9-a961decdd6c1', 'ip_version': 4, 'cidr': '116.220.53.0/26', 'allocation_pools': [{'start': '116.220.53.2', 'end': '116.220.53.62'}], 'gateway_ip': '116.220.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.220.53.2', 'tags': [], 'project_id': 'a726568488fa431da4e18725b52406f5'}}
2025-11-06 08:50:48,083 - INFO - Created VN ctest-vn-28795113
2025-11-06 08:50:48,136 - DEBUG - VN ctest-vn-28795113 UUID is 6d7fccac-873a-4294-b9f9-a961decdd6c1
2025-11-06 08:50:48,251 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-78707136, 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-52079135:ctest-vn-28795113, 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-06 08:50:48,552 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1614d6a-a129-4942-a9eb-ca8792ffdbba', 'name': 'ctest-vn-78707136', 'tenant_id': 'a726568488fa431da4e18725b52406f5', 'project_id': 'a726568488fa431da4e18725b52406f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99c06c96-0c4c-4843-9310-4e7065e774f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52079135', 'ctest-vn-78707136'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52079135', 'ctest-policy-allow-all-45299504']], 'subnet_ipam': [{'subnet_cidr': '69.49.138.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 08:50:48,795 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d7fccac-873a-4294-b9f9-a961decdd6c1', 'name': 'ctest-vn-28795113', 'tenant_id': 'a726568488fa431da4e18725b52406f5', 'project_id': 'a726568488fa431da4e18725b52406f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50155b17-161c-4d24-b62f-b4ac37ee3369'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52079135', 'ctest-vn-28795113'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52079135', 'ctest-policy-allow-all-45299504']], 'subnet_ipam': [{'subnet_cidr': '116.220.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 08:50:48,972 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 08:50:49,312 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 08:50:49,339 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd2fc3ff-8240-4fbd-a6d1-860150bbabad
2025-11-06 08:50:49,350 - DEBUG - Requesting: http://10.0.0.38:8082/project/a7265684-88fa-431d-a4e1-8725b52406f5
2025-11-06 08:50:49,420 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1614d6a-a129-4942-a9eb-ca8792ffdbba
2025-11-06 08:50:49,430 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1614d6a-a129-4942-a9eb-ca8792ffdbba
2025-11-06 08:50:49,442 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bd95800-6f43-4986-af85-6380118401df
2025-11-06 08:50:49,450 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bd95800-6f43-4986-af85-6380118401df
2025-11-06 08:50:49,458 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/05d51719-e58a-4b83-b0d4-8ace00516456
2025-11-06 08:50:49,466 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 08:50:49,466 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1614d6a-a129-4942-a9eb-ca8792ffdbba
2025-11-06 08:50:49,478 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bd95800-6f43-4986-af85-6380118401df
2025-11-06 08:50:49,494 - INFO - Verified VN network id 11 for VN d1614d6a-a129-4942-a9eb-ca8792ffdbba
2025-11-06 08:50:49,495 - INFO - Verifications in API Server for VN ctest-vn-78707136 passed
2025-11-06 08:50:49,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1614d6a-a129-4942-a9eb-ca8792ffdbba
2025-11-06 08:50:49,504 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bd95800-6f43-4986-af85-6380118401df
2025-11-06 08:50:49,510 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bd95800-6f43-4986-af85-6380118401df
2025-11-06 08:50:49,518 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/05d51719-e58a-4b83-b0d4-8ace00516456
2025-11-06 08:50:49,528 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-78707136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52079135', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15087425347033581890', 'uuid-lslong': '12244102695572462522'}, 'enable': 'true', 'created': '2025-11-06T08:50:47', 'last-modified': '2025-11-06T08:50:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004512'}
2025-11-06 08:50:49,533 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 08:50:49,533 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78707136 passed
2025-11-06 08:50:49,534 - DEBUG - ====Verifying policy data for ctest-vn-78707136 in API_Server ======
2025-11-06 08:50:49,534 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 08:50:49,539 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd2fc3ff-8240-4fbd-a6d1-860150bbabad
2025-11-06 08:50:49,549 - DEBUG - Requesting: http://10.0.0.38:8082/project/a7265684-88fa-431d-a4e1-8725b52406f5
2025-11-06 08:50:49,618 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1614d6a-a129-4942-a9eb-ca8792ffdbba
2025-11-06 08:50:49,627 - DEBUG - ==>Verifying data for policy with id: 06430444-3d76-4daa-bfbc-2904956c8c7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-52079135', 'ctest-policy-allow-all-45299504']
2025-11-06 08:50:49,627 - INFO - VN ctest-vn-78707136 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 08:50:49,627 - DEBUG - Verifying the vn in opserver
2025-11-06 08:50:49,627 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-78707136 virtual network link through opserver 10.0.0.38
2025-11-06 08:50:49,627 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-06 08:50:49,961 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-06 08:50:50,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-78707136', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-78707136?flat'}
2025-11-06 08:50:50,016 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-78707136 is found in opserver
2025-11-06 08:50:50,026 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 08:50:50,031 - DEBUG - VRF ids for VN ctest-vn-78707136: {}
2025-11-06 08:50:50,031 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 08:50:50,037 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd2fc3ff-8240-4fbd-a6d1-860150bbabad
2025-11-06 08:50:50,049 - DEBUG - Requesting: http://10.0.0.38:8082/project/a7265684-88fa-431d-a4e1-8725b52406f5
2025-11-06 08:50:50,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d7fccac-873a-4294-b9f9-a961decdd6c1
2025-11-06 08:50:50,129 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d7fccac-873a-4294-b9f9-a961decdd6c1
2025-11-06 08:50:50,141 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d784cd6-29e4-4b83-9bc7-e8899bbbe88c
2025-11-06 08:50:50,150 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d784cd6-29e4-4b83-9bc7-e8899bbbe88c
2025-11-06 08:50:50,158 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/208204d6-ff72-43bc-ac02-dd631c069eec
2025-11-06 08:50:50,166 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 08:50:50,166 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d7fccac-873a-4294-b9f9-a961decdd6c1
2025-11-06 08:50:50,177 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d784cd6-29e4-4b83-9bc7-e8899bbbe88c
2025-11-06 08:50:50,194 - INFO - Verified VN network id 12 for VN 6d7fccac-873a-4294-b9f9-a961decdd6c1
2025-11-06 08:50:50,194 - INFO - Verifications in API Server for VN ctest-vn-28795113 passed
2025-11-06 08:50:50,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d7fccac-873a-4294-b9f9-a961decdd6c1
2025-11-06 08:50:50,205 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d784cd6-29e4-4b83-9bc7-e8899bbbe88c
2025-11-06 08:50:50,213 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d784cd6-29e4-4b83-9bc7-e8899bbbe88c
2025-11-06 08:50:50,222 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/208204d6-ff72-43bc-ac02-dd631c069eec
2025-11-06 08:50:50,236 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-28795113', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52079135', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7890250113551581844', 'uuid-lslong': '13400928404032575169'}, 'enable': 'true', 'created': '2025-11-06T08:50:47', 'last-modified': '2025-11-06T08:50:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.468347'}
2025-11-06 08:50:50,243 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 08:50:50,243 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28795113 passed
2025-11-06 08:50:50,243 - DEBUG - ====Verifying policy data for ctest-vn-28795113 in API_Server ======
2025-11-06 08:50:50,244 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 08:50:50,250 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd2fc3ff-8240-4fbd-a6d1-860150bbabad
2025-11-06 08:50:50,262 - DEBUG - Requesting: http://10.0.0.38:8082/project/a7265684-88fa-431d-a4e1-8725b52406f5
2025-11-06 08:50:50,336 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d7fccac-873a-4294-b9f9-a961decdd6c1
2025-11-06 08:50:50,347 - DEBUG - ==>Verifying data for policy with id: 06430444-3d76-4daa-bfbc-2904956c8c7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-52079135', 'ctest-policy-allow-all-45299504']
2025-11-06 08:50:50,347 - INFO - VN ctest-vn-28795113 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 08:50:50,347 - DEBUG - Verifying the vn in opserver
2025-11-06 08:50:50,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-28795113 virtual network link through opserver 10.0.0.38
2025-11-06 08:50:50,347 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-06 08:50:50,358 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-28795113', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-28795113?flat'}
2025-11-06 08:50:50,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52079135:ctest-vn-28795113 is found in opserver
2025-11-06 08:50:50,368 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 08:50:50,373 - DEBUG - VRF ids for VN ctest-vn-28795113: {}
2025-11-06 08:50:50,434 - DEBUG - Services list from nova: [