2025-11-01 07:42:45,085 - INFO - Domain Default found not creating
2025-11-01 07:42:45,271 - INFO - Project ctest-TestBasicPolicy-69653770 not found, creating it
2025-11-01 07:42:45,770 - INFO - Created Project:ctest-TestBasicPolicy-69653770, ID : d9732b4d-98b9-4474-9f73-42cb9716f7b8
2025-11-01 07:42:47,554 - INFO - ================================================================================
2025-11-01 07:42:47,555 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-01 07:42:47,555 - 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-01 07:42:47,847 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-11-01 07:42:47,847 - INFO - Initial checks done. Running the testcase now
2025-11-01 07:42:47,847 - INFO -
2025-11-01 07:42:48,492 - DEBUG - Response for create_network : {'network': {'id': '5a4debc7-8f33-4e81-8ee5-c10679a74904', 'name': 'ctest-vn-29357249', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'project_id': 'd9732b4d98b944749f7342cb9716f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-vn-29357249'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 07:42:48,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a4d7c35-7159-4918-a966-7d086223aa3b', 'name': '', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'network_id': '5a4debc7-8f33-4e81-8ee5-c10679a74904', 'ip_version': 4, 'cidr': '22.17.71.128/26', 'allocation_pools': [{'start': '22.17.71.130', 'end': '22.17.71.190'}], 'gateway_ip': '22.17.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.17.71.130', 'tags': [], 'project_id': 'd9732b4d98b944749f7342cb9716f7b8'}}
2025-11-01 07:42:48,756 - INFO - Created VN ctest-vn-29357249
2025-11-01 07:42:48,811 - DEBUG - VN ctest-vn-29357249 UUID is 5a4debc7-8f33-4e81-8ee5-c10679a74904
2025-11-01 07:42:49,336 - DEBUG - Response for create_network : {'network': {'id': '184fbbce-9422-4595-bbf8-abcc8de05516', 'name': 'ctest-vn-55483853', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'project_id': 'd9732b4d98b944749f7342cb9716f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-vn-55483853'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 07:42:49,677 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db8822f3-93ab-4616-bc9d-eadad2d4c995', 'name': '', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'network_id': '184fbbce-9422-4595-bbf8-abcc8de05516', 'ip_version': 4, 'cidr': '167.133.205.192/26', 'allocation_pools': [{'start': '167.133.205.194', 'end': '167.133.205.254'}], 'gateway_ip': '167.133.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.133.205.194', 'tags': [], 'project_id': 'd9732b4d98b944749f7342cb9716f7b8'}}
2025-11-01 07:42:49,707 - INFO - Created VN ctest-vn-55483853
2025-11-01 07:42:49,765 - DEBUG - VN ctest-vn-55483853 UUID is 184fbbce-9422-4595-bbf8-abcc8de05516
2025-11-01 07:42:49,898 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249, 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-69653770:ctest-vn-55483853, 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-01 07:42:50,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a4debc7-8f33-4e81-8ee5-c10679a74904', 'name': 'ctest-vn-29357249', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'project_id': 'd9732b4d98b944749f7342cb9716f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a4d7c35-7159-4918-a966-7d086223aa3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-vn-29357249'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-policy-allow-all-93133342']], 'subnet_ipam': [{'subnet_cidr': '22.17.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 07:42:50,514 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '184fbbce-9422-4595-bbf8-abcc8de05516', 'name': 'ctest-vn-55483853', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'project_id': 'd9732b4d98b944749f7342cb9716f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db8822f3-93ab-4616-bc9d-eadad2d4c995'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-vn-55483853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-policy-allow-all-93133342']], 'subnet_ipam': [{'subnet_cidr': '167.133.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 07:42:50,679 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 07:42:50,992 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 07:42:51,027 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947
2025-11-01 07:42:51,048 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8
2025-11-01 07:42:51,140 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904
2025-11-01 07:42:51,159 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904
2025-11-01 07:42:51,176 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc
2025-11-01 07:42:51,188 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc
2025-11-01 07:42:51,201 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83a12a70-92f9-4594-b530-0e9f374c23e9
2025-11-01 07:42:51,209 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 07:42:51,209 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904
2025-11-01 07:42:51,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc
2025-11-01 07:42:51,246 - INFO - Verified VN network id 11 for VN 5a4debc7-8f33-4e81-8ee5-c10679a74904
2025-11-01 07:42:51,246 - INFO - Verifications in API Server for VN ctest-vn-29357249 passed
2025-11-01 07:42:51,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904
2025-11-01 07:42:51,258 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc
2025-11-01 07:42:51,269 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc
2025-11-01 07:42:51,276 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83a12a70-92f9-4594-b530-0e9f374c23e9
2025-11-01 07:42:51,291 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69653770', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6507116278953758337', 'uuid-lslong': '10296848356607478020'}, 'enable': 'true', 'created': '2025-11-01T07:42:48', 'last-modified': '2025-11-01T07:42:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087982'}
2025-11-01 07:42:51,299 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 07:42:51,299 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29357249 passed
2025-11-01 07:42:51,300 - DEBUG - ====Verifying policy data for ctest-vn-29357249 in API_Server ======
2025-11-01 07:42:51,300 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 07:42:51,307 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947
2025-11-01 07:42:51,325 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8
2025-11-01 07:42:51,434 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904
2025-11-01 07:42:51,461 - DEBUG - ==>Verifying data for policy with id: 15cbb774-f957-4029-ad14-596446d5f576, fqn: ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-policy-allow-all-93133342']
2025-11-01 07:42:51,461 - INFO - VN ctest-vn-29357249 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 07:42:51,461 - DEBUG - Verifying the vn in opserver
2025-11-01 07:42:51,461 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249 virtual network link through opserver 10.0.0.38
2025-11-01 07:42:51,462 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-01 07:42:51,794 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-01 07:42:51,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249?flat'}
2025-11-01 07:42:51,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249 is found in opserver
2025-11-01 07:42:51,899 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 07:42:51,912 - DEBUG - VRF ids for VN ctest-vn-29357249: {}
2025-11-01 07:42:51,912 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 07:42:51,921 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947
2025-11-01 07:42:51,940 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8
2025-11-01 07:42:52,026 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516
2025-11-01 07:42:52,042 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516
2025-11-01 07:42:52,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828
2025-11-01 07:42:52,071 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828
2025-11-01 07:42:52,083 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5b10cefe-9d7a-442a-a025-049543bc54ff
2025-11-01 07:42:52,092 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 07:42:52,093 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516
2025-11-01 07:42:52,107 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828
2025-11-01 07:42:52,127 - INFO - Verified VN network id 12 for VN 184fbbce-9422-4595-bbf8-abcc8de05516
2025-11-01 07:42:52,128 - INFO - Verifications in API Server for VN ctest-vn-55483853 passed
2025-11-01 07:42:52,128 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516
2025-11-01 07:42:52,142 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828
2025-11-01 07:42:52,151 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828
2025-11-01 07:42:52,161 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5b10cefe-9d7a-442a-a025-049543bc54ff
2025-11-01 07:42:52,176 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69653770', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1751825275993343381', 'uuid-lslong': '13544764774358734102'}, 'enable': 'true', 'created': '2025-11-01T07:42:49', 'last-modified': '2025-11-01T07:42:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.693528'}
2025-11-01 07:42:52,186 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 07:42:52,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55483853 passed
2025-11-01 07:42:52,186 - DEBUG - ====Verifying policy data for ctest-vn-55483853 in API_Server ======
2025-11-01 07:42:52,187 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 07:42:52,195 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947
2025-11-01 07:42:52,215 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8
2025-11-01 07:42:52,304 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516
2025-11-01 07:42:52,321 - DEBUG - ==>Verifying data for policy with id: 15cbb774-f957-4029-ad14-596446d5f576, fqn: ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-policy-allow-all-93133342']
2025-11-01 07:42:52,321 - INFO - VN ctest-vn-55483853 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 07:42:52,321 - DEBUG - Verifying the vn in opserver
2025-11-01 07:42:52,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853 virtual network link through opserver 10.0.0.38
2025-11-01 07:42:52,321 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-01 07:42:52,337 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853?flat'}
2025-11-01 07:42:52,337 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853 is found in opserver
2025-11-01 07:42:52,352 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 07:42:52,359 - DEBUG - VRF ids for VN ctest-vn-55483853: {}
2025-11-01 07:42:52,452 - DEBUG - Services list from nova: [