2026-01-06 21:30:56,718 - INFO - Domain Default found not creating
2026-01-06 21:30:56,868 - INFO - Project ctest-TestBasicPolicy-39650316 not found, creating it
2026-01-06 21:30:57,303 - INFO - Created Project:ctest-TestBasicPolicy-39650316, ID : 4b7b3547-dcdf-4e0b-a94b-60cce7b883aa
2026-01-06 21:30:58,689 - INFO - ================================================================================
2026-01-06 21:30:58,689 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-06 21:30:58,689 - 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
2026-01-06 21:30:58,944 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-01-06 21:30:58,944 - INFO - Initial checks done. Running the testcase now
2026-01-06 21:30:58,944 - INFO -
2026-01-06 21:30:59,469 - DEBUG - Response for create_network : {'network': {'id': 'd7439b08-547e-4844-98a9-caf64371faa9', 'name': 'ctest-vn-43224038', 'tenant_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'project_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39650316', 'ctest-vn-43224038'], 'port_security_enabled': True, 'description': ''}}
2026-01-06 21:30:59,653 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9085846-b376-46e8-accb-2c50a36f243d', 'name': '', 'tenant_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'network_id': 'd7439b08-547e-4844-98a9-caf64371faa9', 'ip_version': 4, 'cidr': '20.189.169.64/26', 'allocation_pools': [{'start': '20.189.169.66', 'end': '20.189.169.126'}], 'gateway_ip': '20.189.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.189.169.66', 'tags': [], 'project_id': '4b7b3547dcdf4e0ba94b60cce7b883aa'}}
2026-01-06 21:30:59,671 - INFO - Created VN ctest-vn-43224038
2026-01-06 21:30:59,722 - DEBUG - VN ctest-vn-43224038 UUID is d7439b08-547e-4844-98a9-caf64371faa9
2026-01-06 21:31:00,017 - DEBUG - Response for create_network : {'network': {'id': '4124bdeb-4494-4146-88cf-9073329e8c16', 'name': 'ctest-vn-43749567', 'tenant_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'project_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39650316', 'ctest-vn-43749567'], 'port_security_enabled': True, 'description': ''}}
2026-01-06 21:31:00,218 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3bf5640-b1c6-46d7-b6b4-386a68dc3e60', 'name': '', 'tenant_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'network_id': '4124bdeb-4494-4146-88cf-9073329e8c16', 'ip_version': 4, 'cidr': '56.213.243.64/26', 'allocation_pools': [{'start': '56.213.243.66', 'end': '56.213.243.126'}], 'gateway_ip': '56.213.243.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.213.243.66', 'tags': [], 'project_id': '4b7b3547dcdf4e0ba94b60cce7b883aa'}}
2026-01-06 21:31:00,235 - INFO - Created VN ctest-vn-43749567
2026-01-06 21:31:00,286 - DEBUG - VN ctest-vn-43749567 UUID is 4124bdeb-4494-4146-88cf-9073329e8c16
2026-01-06 21:31:00,434 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43224038, 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-39650316:ctest-vn-43749567, 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]
2026-01-06 21:31:00,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7439b08-547e-4844-98a9-caf64371faa9', 'name': 'ctest-vn-43224038', 'tenant_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'project_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9085846-b376-46e8-accb-2c50a36f243d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39650316', 'ctest-vn-43224038'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39650316', 'ctest-policy-allow-all-59076798']], 'subnet_ipam': [{'subnet_cidr': '20.189.169.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-06 21:31:00,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4124bdeb-4494-4146-88cf-9073329e8c16', 'name': 'ctest-vn-43749567', 'tenant_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'project_id': '4b7b3547dcdf4e0ba94b60cce7b883aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3bf5640-b1c6-46d7-b6b4-386a68dc3e60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39650316', 'ctest-vn-43749567'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39650316', 'ctest-policy-allow-all-59076798']], 'subnet_ipam': [{'subnet_cidr': '56.213.243.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-06 21:31:01,118 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-06 21:31:01,414 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-06 21:31:01,446 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fbcdf6be-b5f8-431e-a264-092baff9d852
2026-01-06 21:31:01,458 - DEBUG - Requesting: http://10.0.0.249:8082/project/4b7b3547-dcdf-4e0b-a94b-60cce7b883aa
2026-01-06 21:31:01,531 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d7439b08-547e-4844-98a9-caf64371faa9
2026-01-06 21:31:01,542 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d7439b08-547e-4844-98a9-caf64371faa9
2026-01-06 21:31:01,551 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4bc20fcb-df23-4e9c-b1ba-61de0a8b1e34
2026-01-06 21:31:01,558 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4bc20fcb-df23-4e9c-b1ba-61de0a8b1e34
2026-01-06 21:31:01,565 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f498fdcf-77cd-44a2-a934-f9dcc7ba3b4f
2026-01-06 21:31:01,571 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-06 21:31:01,571 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d7439b08-547e-4844-98a9-caf64371faa9
2026-01-06 21:31:01,579 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4bc20fcb-df23-4e9c-b1ba-61de0a8b1e34
2026-01-06 21:31:01,592 - INFO - Verified VN network id 12 for VN d7439b08-547e-4844-98a9-caf64371faa9
2026-01-06 21:31:01,592 - INFO - Verifications in API Server for VN ctest-vn-43224038 passed
2026-01-06 21:31:01,592 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d7439b08-547e-4844-98a9-caf64371faa9
2026-01-06 21:31:01,601 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4bc20fcb-df23-4e9c-b1ba-61de0a8b1e34
2026-01-06 21:31:01,607 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4bc20fcb-df23-4e9c-b1ba-61de0a8b1e34
2026-01-06 21:31:01,614 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f498fdcf-77cd-44a2-a934-f9dcc7ba3b4f
2026-01-06 21:31:01,626 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43224038', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39650316', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15511412001673726020', 'uuid-lslong': '11000546723871455913'}, 'enable': 'true', 'created': '2026-01-06T21:30:59', 'last-modified': '2026-01-06T21:31:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927536'}
2026-01-06 21:31:01,632 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-06 21:31:01,632 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43224038 passed
2026-01-06 21:31:01,633 - DEBUG - ====Verifying policy data for ctest-vn-43224038 in API_Server ======
2026-01-06 21:31:01,633 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-06 21:31:01,637 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fbcdf6be-b5f8-431e-a264-092baff9d852
2026-01-06 21:31:01,647 - DEBUG - Requesting: http://10.0.0.249:8082/project/4b7b3547-dcdf-4e0b-a94b-60cce7b883aa
2026-01-06 21:31:01,718 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d7439b08-547e-4844-98a9-caf64371faa9
2026-01-06 21:31:01,728 - DEBUG - ==>Verifying data for policy with id: 6cfe3791-5ec4-4ce6-9627-f65578548f20, fqn: ['default-domain', 'ctest-TestBasicPolicy-39650316', 'ctest-policy-allow-all-59076798']
2026-01-06 21:31:01,728 - INFO - VN ctest-vn-43224038 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-06 21:31:01,728 - DEBUG - Verifying the vn in opserver
2026-01-06 21:31:01,728 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43224038 virtual network link through opserver 10.0.0.249
2026-01-06 21:31:01,728 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-06 21:31:02,024 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-06 21:31:02,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43224038', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43224038?flat'}
2026-01-06 21:31:02,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43224038 is found in opserver
2026-01-06 21:31:02,098 - DEBUG - Do not have enough data to verify VN in agent
2026-01-06 21:31:02,102 - DEBUG - VRF ids for VN ctest-vn-43224038: {}
2026-01-06 21:31:02,102 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-06 21:31:02,106 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fbcdf6be-b5f8-431e-a264-092baff9d852
2026-01-06 21:31:02,118 - DEBUG - Requesting: http://10.0.0.249:8082/project/4b7b3547-dcdf-4e0b-a94b-60cce7b883aa
2026-01-06 21:31:02,186 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4124bdeb-4494-4146-88cf-9073329e8c16
2026-01-06 21:31:02,197 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4124bdeb-4494-4146-88cf-9073329e8c16
2026-01-06 21:31:02,206 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/09d02bfc-2bbf-4e09-825e-6449e8a6121e
2026-01-06 21:31:02,212 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/09d02bfc-2bbf-4e09-825e-6449e8a6121e
2026-01-06 21:31:02,219 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2458c65f-602e-4560-a109-1219240874e7
2026-01-06 21:31:02,225 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-06 21:31:02,225 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4124bdeb-4494-4146-88cf-9073329e8c16
2026-01-06 21:31:02,233 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/09d02bfc-2bbf-4e09-825e-6449e8a6121e
2026-01-06 21:31:02,248 - INFO - Verified VN network id 13 for VN 4124bdeb-4494-4146-88cf-9073329e8c16
2026-01-06 21:31:02,248 - INFO - Verifications in API Server for VN ctest-vn-43749567 passed
2026-01-06 21:31:02,248 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4124bdeb-4494-4146-88cf-9073329e8c16
2026-01-06 21:31:02,256 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/09d02bfc-2bbf-4e09-825e-6449e8a6121e
2026-01-06 21:31:02,263 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/09d02bfc-2bbf-4e09-825e-6449e8a6121e
2026-01-06 21:31:02,269 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2458c65f-602e-4560-a109-1219240874e7
2026-01-06 21:31:02,281 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43749567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39650316', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4694085529792430406', 'uuid-lslong': '9858256933782195222'}, 'enable': 'true', 'created': '2026-01-06T21:30:59', 'last-modified': '2026-01-06T21:31:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.359974'}
2026-01-06 21:31:02,288 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-06 21:31:02,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43749567 passed
2026-01-06 21:31:02,288 - DEBUG - ====Verifying policy data for ctest-vn-43749567 in API_Server ======
2026-01-06 21:31:02,288 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-06 21:31:02,296 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fbcdf6be-b5f8-431e-a264-092baff9d852
2026-01-06 21:31:02,308 - DEBUG - Requesting: http://10.0.0.249:8082/project/4b7b3547-dcdf-4e0b-a94b-60cce7b883aa
2026-01-06 21:31:02,382 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4124bdeb-4494-4146-88cf-9073329e8c16
2026-01-06 21:31:02,391 - DEBUG - ==>Verifying data for policy with id: 6cfe3791-5ec4-4ce6-9627-f65578548f20, fqn: ['default-domain', 'ctest-TestBasicPolicy-39650316', 'ctest-policy-allow-all-59076798']
2026-01-06 21:31:02,391 - INFO - VN ctest-vn-43749567 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-06 21:31:02,391 - DEBUG - Verifying the vn in opserver
2026-01-06 21:31:02,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43749567 virtual network link through opserver 10.0.0.249
2026-01-06 21:31:02,391 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-06 21:31:02,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43749567', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43749567?flat'}
2026-01-06 21:31:02,400 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39650316:ctest-vn-43749567 is found in opserver
2026-01-06 21:31:02,410 - DEBUG - Do not have enough data to verify VN in agent
2026-01-06 21:31:02,415 - DEBUG - VRF ids for VN ctest-vn-43749567: {}
2026-01-06 21:31:02,482 - DEBUG - Services list from nova: [