2025-10-09 20:59:24,068 - INFO - Domain Default found not creating
2025-10-09 20:59:24,184 - INFO - Project ctest-TestBasicPolicy-43971633 not found, creating it
2025-10-09 20:59:24,649 - INFO - Created Project:ctest-TestBasicPolicy-43971633, ID : e57d5f14-655e-4151-b616-c12e65961e55
2025-10-09 20:59:25,930 - INFO - ================================================================================
2025-10-09 20:59:25,930 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 20:59:25,930 - 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-09 20:59:26,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.193': '0'}} with
2025-10-09 20:59:26,180 - INFO - Initial checks done. Running the testcase now
2025-10-09 20:59:26,181 - INFO -
2025-10-09 20:59:26,683 - DEBUG - Response for create_network : {'network': {'id': '2748334e-7295-466a-9a07-14642e5bd40b', 'name': 'ctest-vn-81992647', 'tenant_id': 'e57d5f14655e4151b616c12e65961e55', 'project_id': 'e57d5f14655e4151b616c12e65961e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43971633', 'ctest-vn-81992647'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 20:59:26,889 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9fae12b-08e5-4ac4-a1b8-3710ff92bff4', 'name': '', 'tenant_id': 'e57d5f14655e4151b616c12e65961e55', 'network_id': '2748334e-7295-466a-9a07-14642e5bd40b', 'ip_version': 4, 'cidr': '75.137.121.64/26', 'allocation_pools': [{'start': '75.137.121.66', 'end': '75.137.121.126'}], 'gateway_ip': '75.137.121.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.137.121.66', 'tags': [], 'project_id': 'e57d5f14655e4151b616c12e65961e55'}}
2025-10-09 20:59:26,911 - INFO - Created VN ctest-vn-81992647
2025-10-09 20:59:26,961 - DEBUG - VN ctest-vn-81992647 UUID is 2748334e-7295-466a-9a07-14642e5bd40b
2025-10-09 20:59:27,246 - DEBUG - Response for create_network : {'network': {'id': '6aff4c01-f4e6-46ca-b2ac-1fc11755978b', 'name': 'ctest-vn-08502005', 'tenant_id': 'e57d5f14655e4151b616c12e65961e55', 'project_id': 'e57d5f14655e4151b616c12e65961e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43971633', 'ctest-vn-08502005'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 20:59:27,410 - DEBUG - Response for create_subnet : {'subnet': {'id': '61b6296b-a258-44a2-a184-52a08d95e7d9', 'name': '', 'tenant_id': 'e57d5f14655e4151b616c12e65961e55', 'network_id': '6aff4c01-f4e6-46ca-b2ac-1fc11755978b', 'ip_version': 4, 'cidr': '75.38.81.192/26', 'allocation_pools': [{'start': '75.38.81.194', 'end': '75.38.81.254'}], 'gateway_ip': '75.38.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.38.81.194', 'tags': [], 'project_id': 'e57d5f14655e4151b616c12e65961e55'}}
2025-10-09 20:59:27,424 - INFO - Created VN ctest-vn-08502005
2025-10-09 20:59:27,473 - DEBUG - VN ctest-vn-08502005 UUID is 6aff4c01-f4e6-46ca-b2ac-1fc11755978b
2025-10-09 20:59:27,609 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-81992647, 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-43971633:ctest-vn-08502005, 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-09 20:59:27,874 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2748334e-7295-466a-9a07-14642e5bd40b', 'name': 'ctest-vn-81992647', 'tenant_id': 'e57d5f14655e4151b616c12e65961e55', 'project_id': 'e57d5f14655e4151b616c12e65961e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9fae12b-08e5-4ac4-a1b8-3710ff92bff4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43971633', 'ctest-vn-81992647'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43971633', 'ctest-policy-allow-all-56755229']], 'subnet_ipam': [{'subnet_cidr': '75.137.121.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 20:59:28,091 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6aff4c01-f4e6-46ca-b2ac-1fc11755978b', 'name': 'ctest-vn-08502005', 'tenant_id': 'e57d5f14655e4151b616c12e65961e55', 'project_id': 'e57d5f14655e4151b616c12e65961e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61b6296b-a258-44a2-a184-52a08d95e7d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43971633', 'ctest-vn-08502005'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43971633', 'ctest-policy-allow-all-56755229']], 'subnet_ipam': [{'subnet_cidr': '75.38.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 20:59:28,229 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 20:59:28,520 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 20:59:28,543 - DEBUG - Requesting: http://10.0.0.131:8082/domain/0f10a47c-7a5b-4dae-9000-dfb201b5061a
2025-10-09 20:59:28,552 - DEBUG - Requesting: http://10.0.0.131:8082/project/e57d5f14-655e-4151-b616-c12e65961e55
2025-10-09 20:59:28,616 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2748334e-7295-466a-9a07-14642e5bd40b
2025-10-09 20:59:28,625 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2748334e-7295-466a-9a07-14642e5bd40b
2025-10-09 20:59:28,633 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/4713341e-995d-4efa-9d00-98c75bf83930
2025-10-09 20:59:28,638 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/4713341e-995d-4efa-9d00-98c75bf83930
2025-10-09 20:59:28,643 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/f279a060-5ed1-4dd9-a8a1-b8f080f9caab
2025-10-09 20:59:28,647 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 20:59:28,647 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2748334e-7295-466a-9a07-14642e5bd40b
2025-10-09 20:59:28,654 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/4713341e-995d-4efa-9d00-98c75bf83930
2025-10-09 20:59:28,666 - INFO - Verified VN network id 11 for VN 2748334e-7295-466a-9a07-14642e5bd40b
2025-10-09 20:59:28,666 - INFO - Verifications in API Server for VN ctest-vn-81992647 passed
2025-10-09 20:59:28,666 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2748334e-7295-466a-9a07-14642e5bd40b
2025-10-09 20:59:28,672 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/4713341e-995d-4efa-9d00-98c75bf83930
2025-10-09 20:59:28,677 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/4713341e-995d-4efa-9d00-98c75bf83930
2025-10-09 20:59:28,682 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/f279a060-5ed1-4dd9-a8a1-b8f080f9caab
2025-10-09 20:59:28,690 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-81992647', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43971633', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2830568777825207914', 'uuid-lslong': '11098862227184931851'}, 'enable': 'true', 'created': '2025-10-09T20:59:26', 'last-modified': '2025-10-09T20:59:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.836195'}
2025-10-09 20:59:28,695 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 20:59:28,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81992647 passed
2025-10-09 20:59:28,695 - DEBUG - ====Verifying policy data for ctest-vn-81992647 in API_Server ======
2025-10-09 20:59:28,695 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 20:59:28,699 - DEBUG - Requesting: http://10.0.0.131:8082/domain/0f10a47c-7a5b-4dae-9000-dfb201b5061a
2025-10-09 20:59:28,707 - DEBUG - Requesting: http://10.0.0.131:8082/project/e57d5f14-655e-4151-b616-c12e65961e55
2025-10-09 20:59:28,771 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2748334e-7295-466a-9a07-14642e5bd40b
2025-10-09 20:59:28,779 - DEBUG - ==>Verifying data for policy with id: 0c6f76c5-89b8-4a3a-bfad-381a7b36546c, fqn: ['default-domain', 'ctest-TestBasicPolicy-43971633', 'ctest-policy-allow-all-56755229']
2025-10-09 20:59:28,779 - INFO - VN ctest-vn-81992647 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 20:59:28,779 - DEBUG - Verifying the vn in opserver
2025-10-09 20:59:28,779 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-81992647 virtual network link through opserver 10.0.0.131
2025-10-09 20:59:28,779 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-09 20:59:29,064 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-09 20:59:29,110 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-81992647', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-81992647?flat'}
2025-10-09 20:59:29,110 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-81992647 is found in opserver
2025-10-09 20:59:29,118 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 20:59:29,121 - DEBUG - VRF ids for VN ctest-vn-81992647: {}
2025-10-09 20:59:29,121 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 20:59:29,126 - DEBUG - Requesting: http://10.0.0.131:8082/domain/0f10a47c-7a5b-4dae-9000-dfb201b5061a
2025-10-09 20:59:29,134 - DEBUG - Requesting: http://10.0.0.131:8082/project/e57d5f14-655e-4151-b616-c12e65961e55
2025-10-09 20:59:29,197 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/6aff4c01-f4e6-46ca-b2ac-1fc11755978b
2025-10-09 20:59:29,205 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/6aff4c01-f4e6-46ca-b2ac-1fc11755978b
2025-10-09 20:59:29,212 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5b53585d-83d3-4754-bd65-97b71406da11
2025-10-09 20:59:29,217 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5b53585d-83d3-4754-bd65-97b71406da11
2025-10-09 20:59:29,222 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/e938c454-e197-4358-8420-6525d0a616a1
2025-10-09 20:59:29,226 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 20:59:29,226 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/6aff4c01-f4e6-46ca-b2ac-1fc11755978b
2025-10-09 20:59:29,233 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5b53585d-83d3-4754-bd65-97b71406da11
2025-10-09 20:59:29,242 - INFO - Verified VN network id 12 for VN 6aff4c01-f4e6-46ca-b2ac-1fc11755978b
2025-10-09 20:59:29,242 - INFO - Verifications in API Server for VN ctest-vn-08502005 passed
2025-10-09 20:59:29,242 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/6aff4c01-f4e6-46ca-b2ac-1fc11755978b
2025-10-09 20:59:29,249 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5b53585d-83d3-4754-bd65-97b71406da11
2025-10-09 20:59:29,253 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5b53585d-83d3-4754-bd65-97b71406da11
2025-10-09 20:59:29,258 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/e938c454-e197-4358-8420-6525d0a616a1
2025-10-09 20:59:29,266 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-08502005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43971633', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7709964658368988874', 'uuid-lslong': '12874700348926039947'}, 'enable': 'true', 'created': '2025-10-09T20:59:27', 'last-modified': '2025-10-09T20:59:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.193685'}
2025-10-09 20:59:29,270 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 20:59:29,271 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08502005 passed
2025-10-09 20:59:29,271 - DEBUG - ====Verifying policy data for ctest-vn-08502005 in API_Server ======
2025-10-09 20:59:29,271 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 20:59:29,275 - DEBUG - Requesting: http://10.0.0.131:8082/domain/0f10a47c-7a5b-4dae-9000-dfb201b5061a
2025-10-09 20:59:29,282 - DEBUG - Requesting: http://10.0.0.131:8082/project/e57d5f14-655e-4151-b616-c12e65961e55
2025-10-09 20:59:29,347 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/6aff4c01-f4e6-46ca-b2ac-1fc11755978b
2025-10-09 20:59:29,354 - DEBUG - ==>Verifying data for policy with id: 0c6f76c5-89b8-4a3a-bfad-381a7b36546c, fqn: ['default-domain', 'ctest-TestBasicPolicy-43971633', 'ctest-policy-allow-all-56755229']
2025-10-09 20:59:29,354 - INFO - VN ctest-vn-08502005 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 20:59:29,354 - DEBUG - Verifying the vn in opserver
2025-10-09 20:59:29,354 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-08502005 virtual network link through opserver 10.0.0.131
2025-10-09 20:59:29,354 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-09 20:59:29,362 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-08502005', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-08502005?flat'}
2025-10-09 20:59:29,362 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43971633:ctest-vn-08502005 is found in opserver
2025-10-09 20:59:29,370 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 20:59:29,373 - DEBUG - VRF ids for VN ctest-vn-08502005: {}
2025-10-09 20:59:29,420 - DEBUG - Services list from nova: [