2025-11-13 12:33:48,987 - INFO - Domain Default found not creating
2025-11-13 12:33:49,142 - INFO - Project ctest-TestBasicPolicy-74221662 not found, creating it
2025-11-13 12:33:49,666 - INFO - Created Project:ctest-TestBasicPolicy-74221662, ID : 0a920d78-fc7c-4cbb-892a-03a43698003c
2025-11-13 12:33:51,233 - INFO - ================================================================================
2025-11-13 12:33:51,233 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 12:33:51,233 - 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-13 12:33:51,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-11-13 12:33:51,487 - INFO - Initial checks done. Running the testcase now
2025-11-13 12:33:51,487 - INFO -
2025-11-13 12:33:52,217 - DEBUG - Response for create_network : {'network': {'id': '4b0ecc6f-d9f0-4f89-8167-928308f8a310', 'name': 'ctest-vn-00493581', 'tenant_id': '0a920d78fc7c4cbb892a03a43698003c', 'project_id': '0a920d78fc7c4cbb892a03a43698003c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74221662', 'ctest-vn-00493581'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 12:33:52,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ed2b0bc-3f6d-4f90-8cb9-f7f8d94a3209', 'name': '', 'tenant_id': '0a920d78fc7c4cbb892a03a43698003c', 'network_id': '4b0ecc6f-d9f0-4f89-8167-928308f8a310', 'ip_version': 4, 'cidr': '31.238.15.64/26', 'allocation_pools': [{'start': '31.238.15.66', 'end': '31.238.15.126'}], 'gateway_ip': '31.238.15.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.238.15.66', 'tags': [], 'project_id': '0a920d78fc7c4cbb892a03a43698003c'}}
2025-11-13 12:33:52,400 - INFO - Created VN ctest-vn-00493581
2025-11-13 12:33:52,454 - DEBUG - VN ctest-vn-00493581 UUID is 4b0ecc6f-d9f0-4f89-8167-928308f8a310
2025-11-13 12:33:52,752 - DEBUG - Response for create_network : {'network': {'id': '2a835c16-74fa-4583-b282-ef15bd716e06', 'name': 'ctest-vn-15711755', 'tenant_id': '0a920d78fc7c4cbb892a03a43698003c', 'project_id': '0a920d78fc7c4cbb892a03a43698003c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74221662', 'ctest-vn-15711755'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 12:33:52,952 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c4ee132-8d97-44a2-82e3-59b106f7119a', 'name': '', 'tenant_id': '0a920d78fc7c4cbb892a03a43698003c', 'network_id': '2a835c16-74fa-4583-b282-ef15bd716e06', 'ip_version': 4, 'cidr': '124.5.233.64/26', 'allocation_pools': [{'start': '124.5.233.66', 'end': '124.5.233.126'}], 'gateway_ip': '124.5.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.5.233.66', 'tags': [], 'project_id': '0a920d78fc7c4cbb892a03a43698003c'}}
2025-11-13 12:33:52,969 - INFO - Created VN ctest-vn-15711755
2025-11-13 12:33:53,021 - DEBUG - VN ctest-vn-15711755 UUID is 2a835c16-74fa-4583-b282-ef15bd716e06
2025-11-13 12:33:53,173 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-00493581, 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-74221662:ctest-vn-15711755, 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-13 12:33:53,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b0ecc6f-d9f0-4f89-8167-928308f8a310', 'name': 'ctest-vn-00493581', 'tenant_id': '0a920d78fc7c4cbb892a03a43698003c', 'project_id': '0a920d78fc7c4cbb892a03a43698003c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ed2b0bc-3f6d-4f90-8cb9-f7f8d94a3209'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74221662', 'ctest-vn-00493581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74221662', 'ctest-policy-allow-all-42361704']], 'subnet_ipam': [{'subnet_cidr': '31.238.15.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 12:33:53,713 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a835c16-74fa-4583-b282-ef15bd716e06', 'name': 'ctest-vn-15711755', 'tenant_id': '0a920d78fc7c4cbb892a03a43698003c', 'project_id': '0a920d78fc7c4cbb892a03a43698003c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c4ee132-8d97-44a2-82e3-59b106f7119a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74221662', 'ctest-vn-15711755'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74221662', 'ctest-policy-allow-all-42361704']], 'subnet_ipam': [{'subnet_cidr': '124.5.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 12:33:53,878 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 12:33:54,207 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 12:33:54,239 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d9fb8260-1dc8-4878-808f-c45b262a8892
2025-11-13 12:33:54,251 - DEBUG - Requesting: http://10.0.0.22:8082/project/0a920d78-fc7c-4cbb-892a-03a43698003c
2025-11-13 12:33:54,328 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4b0ecc6f-d9f0-4f89-8167-928308f8a310
2025-11-13 12:33:54,339 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4b0ecc6f-d9f0-4f89-8167-928308f8a310
2025-11-13 12:33:54,348 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/df540cfd-6b3b-456e-953c-d314b507a471
2025-11-13 12:33:54,355 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/df540cfd-6b3b-456e-953c-d314b507a471
2025-11-13 12:33:54,363 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/67e4b9c0-a835-4740-8335-38645f7e7ac2
2025-11-13 12:33:54,371 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 12:33:54,371 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4b0ecc6f-d9f0-4f89-8167-928308f8a310
2025-11-13 12:33:54,382 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/df540cfd-6b3b-456e-953c-d314b507a471
2025-11-13 12:33:54,397 - INFO - Verified VN network id 12 for VN 4b0ecc6f-d9f0-4f89-8167-928308f8a310
2025-11-13 12:33:54,397 - INFO - Verifications in API Server for VN ctest-vn-00493581 passed
2025-11-13 12:33:54,397 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4b0ecc6f-d9f0-4f89-8167-928308f8a310
2025-11-13 12:33:54,407 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/df540cfd-6b3b-456e-953c-d314b507a471
2025-11-13 12:33:54,415 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/df540cfd-6b3b-456e-953c-d314b507a471
2025-11-13 12:33:54,424 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/67e4b9c0-a835-4740-8335-38645f7e7ac2
2025-11-13 12:33:54,437 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-00493581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74221662', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5408484983288385417', 'uuid-lslong': '9324582644982784784'}, 'enable': 'true', 'created': '2025-11-13T12:33:52', 'last-modified': '2025-11-13T12:33:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984649'}
2025-11-13 12:33:54,443 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 12:33:54,443 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00493581 passed
2025-11-13 12:33:54,443 - DEBUG - ====Verifying policy data for ctest-vn-00493581 in API_Server ======
2025-11-13 12:33:54,443 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 12:33:54,449 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d9fb8260-1dc8-4878-808f-c45b262a8892
2025-11-13 12:33:54,461 - DEBUG - Requesting: http://10.0.0.22:8082/project/0a920d78-fc7c-4cbb-892a-03a43698003c
2025-11-13 12:33:54,533 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4b0ecc6f-d9f0-4f89-8167-928308f8a310
2025-11-13 12:33:54,542 - DEBUG - ==>Verifying data for policy with id: 5b6d3441-71ee-4a38-82ba-2cc5e21f088b, fqn: ['default-domain', 'ctest-TestBasicPolicy-74221662', 'ctest-policy-allow-all-42361704']
2025-11-13 12:33:54,542 - INFO - VN ctest-vn-00493581 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 12:33:54,542 - DEBUG - Verifying the vn in opserver
2025-11-13 12:33:54,542 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-00493581 virtual network link through opserver 10.0.0.22
2025-11-13 12:33:54,543 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 12:33:54,863 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 12:33:54,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-00493581', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-00493581?flat'}
2025-11-13 12:33:54,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-00493581 is found in opserver
2025-11-13 12:33:54,939 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 12:33:54,944 - DEBUG - VRF ids for VN ctest-vn-00493581: {}
2025-11-13 12:33:54,944 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 12:33:54,951 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d9fb8260-1dc8-4878-808f-c45b262a8892
2025-11-13 12:33:54,968 - DEBUG - Requesting: http://10.0.0.22:8082/project/0a920d78-fc7c-4cbb-892a-03a43698003c
2025-11-13 12:33:55,051 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a835c16-74fa-4583-b282-ef15bd716e06
2025-11-13 12:33:55,066 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a835c16-74fa-4583-b282-ef15bd716e06
2025-11-13 12:33:55,077 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0a90f49-7acd-4c3c-a39b-21415094903f
2025-11-13 12:33:55,085 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0a90f49-7acd-4c3c-a39b-21415094903f
2025-11-13 12:33:55,093 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8cec0e0c-005a-4f3b-8b62-c2ab993ac69c
2025-11-13 12:33:55,100 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 12:33:55,100 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a835c16-74fa-4583-b282-ef15bd716e06
2025-11-13 12:33:55,110 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0a90f49-7acd-4c3c-a39b-21415094903f
2025-11-13 12:33:55,127 - INFO - Verified VN network id 13 for VN 2a835c16-74fa-4583-b282-ef15bd716e06
2025-11-13 12:33:55,127 - INFO - Verifications in API Server for VN ctest-vn-15711755 passed
2025-11-13 12:33:55,127 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a835c16-74fa-4583-b282-ef15bd716e06
2025-11-13 12:33:55,138 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0a90f49-7acd-4c3c-a39b-21415094903f
2025-11-13 12:33:55,149 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0a90f49-7acd-4c3c-a39b-21415094903f
2025-11-13 12:33:55,159 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8cec0e0c-005a-4f3b-8b62-c2ab993ac69c
2025-11-13 12:33:55,174 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-15711755', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74221662', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3063393423063664003', 'uuid-lslong': '12863106362375237126'}, 'enable': 'true', 'created': '2025-11-13T12:33:52', 'last-modified': '2025-11-13T12:33:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488056'}
2025-11-13 12:33:55,181 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 12:33:55,181 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15711755 passed
2025-11-13 12:33:55,181 - DEBUG - ====Verifying policy data for ctest-vn-15711755 in API_Server ======
2025-11-13 12:33:55,181 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 12:33:55,188 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d9fb8260-1dc8-4878-808f-c45b262a8892
2025-11-13 12:33:55,199 - DEBUG - Requesting: http://10.0.0.22:8082/project/0a920d78-fc7c-4cbb-892a-03a43698003c
2025-11-13 12:33:55,277 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a835c16-74fa-4583-b282-ef15bd716e06
2025-11-13 12:33:55,286 - DEBUG - ==>Verifying data for policy with id: 5b6d3441-71ee-4a38-82ba-2cc5e21f088b, fqn: ['default-domain', 'ctest-TestBasicPolicy-74221662', 'ctest-policy-allow-all-42361704']
2025-11-13 12:33:55,286 - INFO - VN ctest-vn-15711755 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 12:33:55,286 - DEBUG - Verifying the vn in opserver
2025-11-13 12:33:55,286 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-15711755 virtual network link through opserver 10.0.0.22
2025-11-13 12:33:55,287 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 12:33:55,297 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-15711755', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-15711755?flat'}
2025-11-13 12:33:55,297 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74221662:ctest-vn-15711755 is found in opserver
2025-11-13 12:33:55,306 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 12:33:55,311 - DEBUG - VRF ids for VN ctest-vn-15711755: {}
2025-11-13 12:33:55,371 - DEBUG - Services list from nova: [