2025-09-24 11:07:30,323 - INFO - Domain Default found not creating
2025-09-24 11:07:30,473 - INFO - Project ctest-TestBasicPolicy-78384531 not found, creating it
2025-09-24 11:07:30,935 - INFO - Created Project:ctest-TestBasicPolicy-78384531, ID : 29b1dc29-90dd-4685-abc5-ee18eb923956
2025-09-24 11:07:32,485 - INFO - ================================================================================
2025-09-24 11:07:32,486 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-24 11:07:32,486 - 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-09-24 11:07:32,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-09-24 11:07:32,741 - INFO - Initial checks done. Running the testcase now
2025-09-24 11:07:32,741 - INFO -
2025-09-24 11:07:33,326 - DEBUG - Response for create_network : {'network': {'id': 'fbae0c8b-3adf-4bc7-adb1-37b301dec7c7', 'name': 'ctest-vn-69194087', 'tenant_id': '29b1dc2990dd4685abc5ee18eb923956', 'project_id': '29b1dc2990dd4685abc5ee18eb923956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78384531', 'ctest-vn-69194087'], 'port_security_enabled': True, 'description': ''}}
2025-09-24 11:07:33,498 - DEBUG - Response for create_subnet : {'subnet': {'id': '0db5be6c-57ce-41ae-b367-26a0ac90a1f4', 'name': '', 'tenant_id': '29b1dc2990dd4685abc5ee18eb923956', 'network_id': 'fbae0c8b-3adf-4bc7-adb1-37b301dec7c7', 'ip_version': 4, 'cidr': '167.147.153.64/26', 'allocation_pools': [{'start': '167.147.153.66', 'end': '167.147.153.126'}], 'gateway_ip': '167.147.153.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.147.153.66', 'tags': [], 'project_id': '29b1dc2990dd4685abc5ee18eb923956'}}
2025-09-24 11:07:33,539 - INFO - Created VN ctest-vn-69194087
2025-09-24 11:07:33,594 - DEBUG - VN ctest-vn-69194087 UUID is fbae0c8b-3adf-4bc7-adb1-37b301dec7c7
2025-09-24 11:07:33,922 - DEBUG - Response for create_network : {'network': {'id': 'b712ecdc-1070-42cd-8a86-a1dfe6229b4e', 'name': 'ctest-vn-34548816', 'tenant_id': '29b1dc2990dd4685abc5ee18eb923956', 'project_id': '29b1dc2990dd4685abc5ee18eb923956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78384531', 'ctest-vn-34548816'], 'port_security_enabled': True, 'description': ''}}
2025-09-24 11:07:34,105 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b9f9476-a083-4e3e-b60a-ee59f9f5834d', 'name': '', 'tenant_id': '29b1dc2990dd4685abc5ee18eb923956', 'network_id': 'b712ecdc-1070-42cd-8a86-a1dfe6229b4e', 'ip_version': 4, 'cidr': '45.93.250.192/26', 'allocation_pools': [{'start': '45.93.250.194', 'end': '45.93.250.254'}], 'gateway_ip': '45.93.250.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.93.250.194', 'tags': [], 'project_id': '29b1dc2990dd4685abc5ee18eb923956'}}
2025-09-24 11:07:34,125 - INFO - Created VN ctest-vn-34548816
2025-09-24 11:07:34,178 - DEBUG - VN ctest-vn-34548816 UUID is b712ecdc-1070-42cd-8a86-a1dfe6229b4e
2025-09-24 11:07:34,297 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-69194087, 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-78384531:ctest-vn-34548816, 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-09-24 11:07:34,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fbae0c8b-3adf-4bc7-adb1-37b301dec7c7', 'name': 'ctest-vn-69194087', 'tenant_id': '29b1dc2990dd4685abc5ee18eb923956', 'project_id': '29b1dc2990dd4685abc5ee18eb923956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0db5be6c-57ce-41ae-b367-26a0ac90a1f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78384531', 'ctest-vn-69194087'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78384531', 'ctest-policy-allow-all-39249627']], 'subnet_ipam': [{'subnet_cidr': '167.147.153.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-24 11:07:34,821 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b712ecdc-1070-42cd-8a86-a1dfe6229b4e', 'name': 'ctest-vn-34548816', 'tenant_id': '29b1dc2990dd4685abc5ee18eb923956', 'project_id': '29b1dc2990dd4685abc5ee18eb923956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b9f9476-a083-4e3e-b60a-ee59f9f5834d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78384531', 'ctest-vn-34548816'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78384531', 'ctest-policy-allow-all-39249627']], 'subnet_ipam': [{'subnet_cidr': '45.93.250.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-24 11:07:34,990 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 11:07:35,326 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 11:07:35,357 - DEBUG - Requesting: http://10.0.0.57:8082/domain/2dfe3689-9f60-45a1-82b4-a62ffe58aa8c
2025-09-24 11:07:35,369 - DEBUG - Requesting: http://10.0.0.57:8082/project/29b1dc29-90dd-4685-abc5-ee18eb923956
2025-09-24 11:07:35,449 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fbae0c8b-3adf-4bc7-adb1-37b301dec7c7
2025-09-24 11:07:35,460 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fbae0c8b-3adf-4bc7-adb1-37b301dec7c7
2025-09-24 11:07:35,469 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/30f0ed3a-3643-4023-9e35-f2fb9271df20
2025-09-24 11:07:35,476 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/30f0ed3a-3643-4023-9e35-f2fb9271df20
2025-09-24 11:07:35,484 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4f250b4b-1e67-4ab8-8cf6-7c4d75b501a9
2025-09-24 11:07:35,490 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-24 11:07:35,490 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fbae0c8b-3adf-4bc7-adb1-37b301dec7c7
2025-09-24 11:07:35,498 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/30f0ed3a-3643-4023-9e35-f2fb9271df20
2025-09-24 11:07:35,511 - INFO - Verified VN network id 11 for VN fbae0c8b-3adf-4bc7-adb1-37b301dec7c7
2025-09-24 11:07:35,511 - INFO - Verifications in API Server for VN ctest-vn-69194087 passed
2025-09-24 11:07:35,511 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fbae0c8b-3adf-4bc7-adb1-37b301dec7c7
2025-09-24 11:07:35,519 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/30f0ed3a-3643-4023-9e35-f2fb9271df20
2025-09-24 11:07:35,525 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/30f0ed3a-3643-4023-9e35-f2fb9271df20
2025-09-24 11:07:35,531 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4f250b4b-1e67-4ab8-8cf6-7c4d75b501a9
2025-09-24 11:07:35,541 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-69194087', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78384531', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18135446541595265991', 'uuid-lslong': '12515846081409370055'}, 'enable': 'true', 'created': '2025-09-24T11:07:33', 'last-modified': '2025-09-24T11:07:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962962'}
2025-09-24 11:07:35,550 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-24 11:07:35,550 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69194087 passed
2025-09-24 11:07:35,550 - DEBUG - ====Verifying policy data for ctest-vn-69194087 in API_Server ======
2025-09-24 11:07:35,550 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 11:07:35,556 - DEBUG - Requesting: http://10.0.0.57:8082/domain/2dfe3689-9f60-45a1-82b4-a62ffe58aa8c
2025-09-24 11:07:35,568 - DEBUG - Requesting: http://10.0.0.57:8082/project/29b1dc29-90dd-4685-abc5-ee18eb923956
2025-09-24 11:07:35,638 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fbae0c8b-3adf-4bc7-adb1-37b301dec7c7
2025-09-24 11:07:35,647 - DEBUG - ==>Verifying data for policy with id: 07c234b4-3728-42a4-90be-e45a1e2a8c16, fqn: ['default-domain', 'ctest-TestBasicPolicy-78384531', 'ctest-policy-allow-all-39249627']
2025-09-24 11:07:35,647 - INFO - VN ctest-vn-69194087 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-24 11:07:35,647 - DEBUG - Verifying the vn in opserver
2025-09-24 11:07:35,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-69194087 virtual network link through opserver 10.0.0.57
2025-09-24 11:07:35,647 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 11:07:35,984 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 11:07:36,045 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-69194087', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-69194087?flat'}
2025-09-24 11:07:36,045 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-69194087 is found in opserver
2025-09-24 11:07:36,055 - DEBUG - Do not have enough data to verify VN in agent
2025-09-24 11:07:36,059 - DEBUG - VRF ids for VN ctest-vn-69194087: {}
2025-09-24 11:07:36,059 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 11:07:36,066 - DEBUG - Requesting: http://10.0.0.57:8082/domain/2dfe3689-9f60-45a1-82b4-a62ffe58aa8c
2025-09-24 11:07:36,076 - DEBUG - Requesting: http://10.0.0.57:8082/project/29b1dc29-90dd-4685-abc5-ee18eb923956
2025-09-24 11:07:36,159 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b712ecdc-1070-42cd-8a86-a1dfe6229b4e
2025-09-24 11:07:36,174 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b712ecdc-1070-42cd-8a86-a1dfe6229b4e
2025-09-24 11:07:36,183 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0cba5cbe-1011-4128-ae57-1c3215fd3259
2025-09-24 11:07:36,190 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0cba5cbe-1011-4128-ae57-1c3215fd3259
2025-09-24 11:07:36,197 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/0aecb5c0-f6d3-4f05-b8ad-9ef41260eaa8
2025-09-24 11:07:36,204 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-24 11:07:36,204 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b712ecdc-1070-42cd-8a86-a1dfe6229b4e
2025-09-24 11:07:36,214 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0cba5cbe-1011-4128-ae57-1c3215fd3259
2025-09-24 11:07:36,227 - INFO - Verified VN network id 12 for VN b712ecdc-1070-42cd-8a86-a1dfe6229b4e
2025-09-24 11:07:36,227 - INFO - Verifications in API Server for VN ctest-vn-34548816 passed
2025-09-24 11:07:36,227 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b712ecdc-1070-42cd-8a86-a1dfe6229b4e
2025-09-24 11:07:36,237 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0cba5cbe-1011-4128-ae57-1c3215fd3259
2025-09-24 11:07:36,244 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0cba5cbe-1011-4128-ae57-1c3215fd3259
2025-09-24 11:07:36,250 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/0aecb5c0-f6d3-4f05-b8ad-9ef41260eaa8
2025-09-24 11:07:36,261 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-34548816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78384531', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13191866688434356941', 'uuid-lslong': '9981843607124089678'}, 'enable': 'true', 'created': '2025-09-24T11:07:33', 'last-modified': '2025-09-24T11:07:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.459920'}
2025-09-24 11:07:36,266 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-24 11:07:36,266 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34548816 passed
2025-09-24 11:07:36,266 - DEBUG - ====Verifying policy data for ctest-vn-34548816 in API_Server ======
2025-09-24 11:07:36,266 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 11:07:36,271 - DEBUG - Requesting: http://10.0.0.57:8082/domain/2dfe3689-9f60-45a1-82b4-a62ffe58aa8c
2025-09-24 11:07:36,280 - DEBUG - Requesting: http://10.0.0.57:8082/project/29b1dc29-90dd-4685-abc5-ee18eb923956
2025-09-24 11:07:36,348 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b712ecdc-1070-42cd-8a86-a1dfe6229b4e
2025-09-24 11:07:36,359 - DEBUG - ==>Verifying data for policy with id: 07c234b4-3728-42a4-90be-e45a1e2a8c16, fqn: ['default-domain', 'ctest-TestBasicPolicy-78384531', 'ctest-policy-allow-all-39249627']
2025-09-24 11:07:36,359 - INFO - VN ctest-vn-34548816 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-24 11:07:36,360 - DEBUG - Verifying the vn in opserver
2025-09-24 11:07:36,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-34548816 virtual network link through opserver 10.0.0.57
2025-09-24 11:07:36,360 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 11:07:36,369 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-34548816', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-34548816?flat'}
2025-09-24 11:07:36,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78384531:ctest-vn-34548816 is found in opserver
2025-09-24 11:07:36,380 - DEBUG - Do not have enough data to verify VN in agent
2025-09-24 11:07:36,386 - DEBUG - VRF ids for VN ctest-vn-34548816: {}
2025-09-24 11:07:36,450 - DEBUG - Services list from nova: [