2025-10-16 09:22:38,418 - INFO - Domain Default found not creating
2025-10-16 09:22:38,570 - INFO - Project ctest-TestBasicPolicy-17938228 not found, creating it
2025-10-16 09:22:39,005 - INFO - Created Project:ctest-TestBasicPolicy-17938228, ID : 9c7f4f0b-10f4-4292-ba83-5f5afdf2a61f
2025-10-16 09:22:40,440 - INFO - ================================================================================
2025-10-16 09:22:40,440 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-16 09:22:40,440 - 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-16 09:22:40,695 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with
2025-10-16 09:22:40,695 - INFO - Initial checks done. Running the testcase now
2025-10-16 09:22:40,695 - INFO -
2025-10-16 09:22:41,209 - DEBUG - Response for create_network : {'network': {'id': '6434a8bd-5914-4ade-a526-d26ba6cb708b', 'name': 'ctest-vn-48294044', 'tenant_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'project_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17938228', 'ctest-vn-48294044'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 09:22:41,361 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1ae843b-b7f2-40b6-8864-f040b2e23a40', 'name': '', 'tenant_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'network_id': '6434a8bd-5914-4ade-a526-d26ba6cb708b', 'ip_version': 4, 'cidr': '221.172.163.0/26', 'allocation_pools': [{'start': '221.172.163.2', 'end': '221.172.163.62'}], 'gateway_ip': '221.172.163.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.172.163.2', 'tags': [], 'project_id': '9c7f4f0b10f44292ba835f5afdf2a61f'}}
2025-10-16 09:22:41,376 - INFO - Created VN ctest-vn-48294044
2025-10-16 09:22:41,427 - DEBUG - VN ctest-vn-48294044 UUID is 6434a8bd-5914-4ade-a526-d26ba6cb708b
2025-10-16 09:22:41,795 - DEBUG - Response for create_network : {'network': {'id': 'b504f8aa-cf46-43b7-8ac6-8d03265c2375', 'name': 'ctest-vn-47282047', 'tenant_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'project_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17938228', 'ctest-vn-47282047'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 09:22:41,971 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2377e7f-3ac5-4a39-8306-284a6f1def12', 'name': '', 'tenant_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'network_id': 'b504f8aa-cf46-43b7-8ac6-8d03265c2375', 'ip_version': 4, 'cidr': '116.232.200.192/26', 'allocation_pools': [{'start': '116.232.200.194', 'end': '116.232.200.254'}], 'gateway_ip': '116.232.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.232.200.194', 'tags': [], 'project_id': '9c7f4f0b10f44292ba835f5afdf2a61f'}}
2025-10-16 09:22:41,987 - INFO - Created VN ctest-vn-47282047
2025-10-16 09:22:42,043 - DEBUG - VN ctest-vn-47282047 UUID is b504f8aa-cf46-43b7-8ac6-8d03265c2375
2025-10-16 09:22:42,187 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-48294044, 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-17938228:ctest-vn-47282047, 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-16 09:22:42,477 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6434a8bd-5914-4ade-a526-d26ba6cb708b', 'name': 'ctest-vn-48294044', 'tenant_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'project_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1ae843b-b7f2-40b6-8864-f040b2e23a40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17938228', 'ctest-vn-48294044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17938228', 'ctest-policy-allow-all-67459697']], 'subnet_ipam': [{'subnet_cidr': '221.172.163.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 09:22:42,743 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b504f8aa-cf46-43b7-8ac6-8d03265c2375', 'name': 'ctest-vn-47282047', 'tenant_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'project_id': '9c7f4f0b10f44292ba835f5afdf2a61f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2377e7f-3ac5-4a39-8306-284a6f1def12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17938228', 'ctest-vn-47282047'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17938228', 'ctest-policy-allow-all-67459697']], 'subnet_ipam': [{'subnet_cidr': '116.232.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 09:22:42,895 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-16 09:22:43,188 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-16 09:22:43,218 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b53048f0-a7d0-4124-b2a6-87242c09df1e
2025-10-16 09:22:43,230 - DEBUG - Requesting: http://10.0.0.130:8082/project/9c7f4f0b-10f4-4292-ba83-5f5afdf2a61f
2025-10-16 09:22:43,303 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6434a8bd-5914-4ade-a526-d26ba6cb708b
2025-10-16 09:22:43,314 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6434a8bd-5914-4ade-a526-d26ba6cb708b
2025-10-16 09:22:43,323 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/080ac8b5-4615-4285-b586-d5fe85a2a68c
2025-10-16 09:22:43,329 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/080ac8b5-4615-4285-b586-d5fe85a2a68c
2025-10-16 09:22:43,335 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f21f3a9f-ba06-406b-a8ab-367db6393cee
2025-10-16 09:22:43,341 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 09:22:43,341 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6434a8bd-5914-4ade-a526-d26ba6cb708b
2025-10-16 09:22:43,348 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/080ac8b5-4615-4285-b586-d5fe85a2a68c
2025-10-16 09:22:43,360 - INFO - Verified VN network id 9 for VN 6434a8bd-5914-4ade-a526-d26ba6cb708b
2025-10-16 09:22:43,360 - INFO - Verifications in API Server for VN ctest-vn-48294044 passed
2025-10-16 09:22:43,360 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6434a8bd-5914-4ade-a526-d26ba6cb708b
2025-10-16 09:22:43,369 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/080ac8b5-4615-4285-b586-d5fe85a2a68c
2025-10-16 09:22:43,375 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/080ac8b5-4615-4285-b586-d5fe85a2a68c
2025-10-16 09:22:43,381 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f21f3a9f-ba06-406b-a8ab-367db6393cee
2025-10-16 09:22:43,391 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-48294044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17938228', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7220581633778535134', 'uuid-lslong': '11900430425174798475'}, 'enable': 'true', 'created': '2025-10-16T09:22:41', 'last-modified': '2025-10-16T09:22:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932834'}
2025-10-16 09:22:43,397 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 09:22:43,398 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48294044 passed
2025-10-16 09:22:43,398 - DEBUG - ====Verifying policy data for ctest-vn-48294044 in API_Server ======
2025-10-16 09:22:43,398 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-16 09:22:43,403 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b53048f0-a7d0-4124-b2a6-87242c09df1e
2025-10-16 09:22:43,412 - DEBUG - Requesting: http://10.0.0.130:8082/project/9c7f4f0b-10f4-4292-ba83-5f5afdf2a61f
2025-10-16 09:22:43,480 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6434a8bd-5914-4ade-a526-d26ba6cb708b
2025-10-16 09:22:43,488 - DEBUG - ==>Verifying data for policy with id: 5161ed42-c156-4f9e-8751-79e43c5f23d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-17938228', 'ctest-policy-allow-all-67459697']
2025-10-16 09:22:43,488 - INFO - VN ctest-vn-48294044 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 09:22:43,488 - DEBUG - Verifying the vn in opserver
2025-10-16 09:22:43,488 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-48294044 virtual network link through opserver 10.0.0.130
2025-10-16 09:22:43,488 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-16 09:22:43,777 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-16 09:22:43,836 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-48294044', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-48294044?flat'}
2025-10-16 09:22:43,836 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-48294044 is found in opserver
2025-10-16 09:22:43,846 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 09:22:43,850 - DEBUG - VRF ids for VN ctest-vn-48294044: {}
2025-10-16 09:22:43,850 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-16 09:22:43,855 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b53048f0-a7d0-4124-b2a6-87242c09df1e
2025-10-16 09:22:43,866 - DEBUG - Requesting: http://10.0.0.130:8082/project/9c7f4f0b-10f4-4292-ba83-5f5afdf2a61f
2025-10-16 09:22:43,959 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b504f8aa-cf46-43b7-8ac6-8d03265c2375
2025-10-16 09:22:43,969 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b504f8aa-cf46-43b7-8ac6-8d03265c2375
2025-10-16 09:22:43,977 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/509b0f3b-27ad-4e8d-9b2e-b31a90c8d4f3
2025-10-16 09:22:43,982 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/509b0f3b-27ad-4e8d-9b2e-b31a90c8d4f3
2025-10-16 09:22:43,987 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a44621f9-8a0e-4259-ac6c-27464cde48c5
2025-10-16 09:22:43,993 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 09:22:43,993 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b504f8aa-cf46-43b7-8ac6-8d03265c2375
2025-10-16 09:22:44,000 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/509b0f3b-27ad-4e8d-9b2e-b31a90c8d4f3
2025-10-16 09:22:44,013 - INFO - Verified VN network id 10 for VN b504f8aa-cf46-43b7-8ac6-8d03265c2375
2025-10-16 09:22:44,013 - INFO - Verifications in API Server for VN ctest-vn-47282047 passed
2025-10-16 09:22:44,013 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b504f8aa-cf46-43b7-8ac6-8d03265c2375
2025-10-16 09:22:44,022 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/509b0f3b-27ad-4e8d-9b2e-b31a90c8d4f3
2025-10-16 09:22:44,029 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/509b0f3b-27ad-4e8d-9b2e-b31a90c8d4f3
2025-10-16 09:22:44,036 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a44621f9-8a0e-4259-ac6c-27464cde48c5
2025-10-16 09:22:44,048 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-47282047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17938228', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13043823833277416375', 'uuid-lslong': '9999835067290755957'}, 'enable': 'true', 'created': '2025-10-16T09:22:41', 'last-modified': '2025-10-16T09:22:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368439'}
2025-10-16 09:22:44,054 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 09:22:44,055 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47282047 passed
2025-10-16 09:22:44,055 - DEBUG - ====Verifying policy data for ctest-vn-47282047 in API_Server ======
2025-10-16 09:22:44,055 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-16 09:22:44,060 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b53048f0-a7d0-4124-b2a6-87242c09df1e
2025-10-16 09:22:44,072 - DEBUG - Requesting: http://10.0.0.130:8082/project/9c7f4f0b-10f4-4292-ba83-5f5afdf2a61f
2025-10-16 09:22:44,136 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b504f8aa-cf46-43b7-8ac6-8d03265c2375
2025-10-16 09:22:44,144 - DEBUG - ==>Verifying data for policy with id: 5161ed42-c156-4f9e-8751-79e43c5f23d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-17938228', 'ctest-policy-allow-all-67459697']
2025-10-16 09:22:44,144 - INFO - VN ctest-vn-47282047 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 09:22:44,144 - DEBUG - Verifying the vn in opserver
2025-10-16 09:22:44,144 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-47282047 virtual network link through opserver 10.0.0.130
2025-10-16 09:22:44,144 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-16 09:22:44,153 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-47282047', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-47282047?flat'}
2025-10-16 09:22:44,153 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17938228:ctest-vn-47282047 is found in opserver
2025-10-16 09:22:44,163 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 09:22:44,168 - DEBUG - VRF ids for VN ctest-vn-47282047: {}
2025-10-16 09:22:44,224 - DEBUG - Services list from nova: [