2025-03-27 15:29:20,213 - INFO - Domain Default found not creating
2025-03-27 15:29:20,440 - INFO - Project ctest-TestBasicPolicy-27849681 not found, creating it
2025-03-27 15:29:20,907 - INFO - Created Project:ctest-TestBasicPolicy-27849681, ID : dcfba59f-0190-4d90-b2a5-113a7b138508
2025-03-27 15:29:22,381 - INFO - ================================================================================
2025-03-27 15:29:22,381 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 15:29:22,381 - 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-03-27 15:29:22,642 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.11': '0'}} with
2025-03-27 15:29:22,642 - INFO - Initial checks done. Running the testcase now
2025-03-27 15:29:22,642 - INFO -
2025-03-27 15:29:23,206 - DEBUG - Response for create_network : {'network': {'id': '2c1b84b4-e186-4313-a67c-0680f63e6393', 'name': 'ctest-vn-59159279', 'tenant_id': 'dcfba59f01904d90b2a5113a7b138508', 'project_id': 'dcfba59f01904d90b2a5113a7b138508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27849681', 'ctest-vn-59159279'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 15:29:23,383 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff6ce5a7-1d65-4a05-a839-1a515604a4b3', 'name': '', 'tenant_id': 'dcfba59f01904d90b2a5113a7b138508', 'network_id': '2c1b84b4-e186-4313-a67c-0680f63e6393', 'ip_version': 4, 'cidr': '100.216.38.0/26', 'allocation_pools': [{'start': '100.216.38.2', 'end': '100.216.38.62'}], 'gateway_ip': '100.216.38.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.216.38.2', 'tags': [], 'project_id': 'dcfba59f01904d90b2a5113a7b138508'}}
2025-03-27 15:29:23,399 - INFO - Created VN ctest-vn-59159279
2025-03-27 15:29:23,452 - DEBUG - VN ctest-vn-59159279 UUID is 2c1b84b4-e186-4313-a67c-0680f63e6393
2025-03-27 15:29:23,745 - DEBUG - Response for create_network : {'network': {'id': '9c126a74-875b-4ca1-b674-c000cd9609dd', 'name': 'ctest-vn-81813549', 'tenant_id': 'dcfba59f01904d90b2a5113a7b138508', 'project_id': 'dcfba59f01904d90b2a5113a7b138508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27849681', 'ctest-vn-81813549'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 15:29:23,893 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cb98934-a08c-40ea-98e7-d79c6d1497b4', 'name': '', 'tenant_id': 'dcfba59f01904d90b2a5113a7b138508', 'network_id': '9c126a74-875b-4ca1-b674-c000cd9609dd', 'ip_version': 4, 'cidr': '125.38.110.128/26', 'allocation_pools': [{'start': '125.38.110.130', 'end': '125.38.110.190'}], 'gateway_ip': '125.38.110.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.38.110.130', 'tags': [], 'project_id': 'dcfba59f01904d90b2a5113a7b138508'}}
2025-03-27 15:29:23,909 - INFO - Created VN ctest-vn-81813549
2025-03-27 15:29:23,960 - DEBUG - VN ctest-vn-81813549 UUID is 9c126a74-875b-4ca1-b674-c000cd9609dd
2025-03-27 15:29:24,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-59159279, 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-27849681:ctest-vn-81813549, 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-03-27 15:29:24,397 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c1b84b4-e186-4313-a67c-0680f63e6393', 'name': 'ctest-vn-59159279', 'tenant_id': 'dcfba59f01904d90b2a5113a7b138508', 'project_id': 'dcfba59f01904d90b2a5113a7b138508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff6ce5a7-1d65-4a05-a839-1a515604a4b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27849681', 'ctest-vn-59159279'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27849681', 'ctest-policy-allow-all-45774139']], 'subnet_ipam': [{'subnet_cidr': '100.216.38.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 15:29:24,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c126a74-875b-4ca1-b674-c000cd9609dd', 'name': 'ctest-vn-81813549', 'tenant_id': 'dcfba59f01904d90b2a5113a7b138508', 'project_id': 'dcfba59f01904d90b2a5113a7b138508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3cb98934-a08c-40ea-98e7-d79c6d1497b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27849681', 'ctest-vn-81813549'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27849681', 'ctest-policy-allow-all-45774139']], 'subnet_ipam': [{'subnet_cidr': '125.38.110.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 15:29:24,768 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 15:29:25,068 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 15:29:25,095 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7a778c0f-a790-4959-8c02-e2281e34b5ed
2025-03-27 15:29:25,110 - DEBUG - Requesting: http://10.0.0.37:8082/project/dcfba59f-0190-4d90-b2a5-113a7b138508
2025-03-27 15:29:25,183 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2c1b84b4-e186-4313-a67c-0680f63e6393
2025-03-27 15:29:25,195 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2c1b84b4-e186-4313-a67c-0680f63e6393
2025-03-27 15:29:25,207 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66eecfe9-d5d5-45c5-a2a1-761418363f0e
2025-03-27 15:29:25,216 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66eecfe9-d5d5-45c5-a2a1-761418363f0e
2025-03-27 15:29:25,225 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/9447272a-83b6-498d-ad46-1fbb8018bbde
2025-03-27 15:29:25,233 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 15:29:25,233 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2c1b84b4-e186-4313-a67c-0680f63e6393
2025-03-27 15:29:25,244 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66eecfe9-d5d5-45c5-a2a1-761418363f0e
2025-03-27 15:29:25,261 - INFO - Verified VN network id 8 for VN 2c1b84b4-e186-4313-a67c-0680f63e6393
2025-03-27 15:29:25,262 - INFO - Verifications in API Server for VN ctest-vn-59159279 passed
2025-03-27 15:29:25,262 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2c1b84b4-e186-4313-a67c-0680f63e6393
2025-03-27 15:29:25,273 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66eecfe9-d5d5-45c5-a2a1-761418363f0e
2025-03-27 15:29:25,281 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66eecfe9-d5d5-45c5-a2a1-761418363f0e
2025-03-27 15:29:25,290 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/9447272a-83b6-498d-ad46-1fbb8018bbde
2025-03-27 15:29:25,304 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-59159279', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27849681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3178279874452669203', 'uuid-lslong': '11996470658365023123'}, 'enable': 'true', 'created': '2025-03-27T15:29:23', 'last-modified': '2025-03-27T15:29:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930681'}
2025-03-27 15:29:25,312 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 15:29:25,312 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59159279 passed
2025-03-27 15:29:25,312 - DEBUG - ====Verifying policy data for ctest-vn-59159279 in API_Server ======
2025-03-27 15:29:25,312 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 15:29:25,319 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7a778c0f-a790-4959-8c02-e2281e34b5ed
2025-03-27 15:29:25,331 - DEBUG - Requesting: http://10.0.0.37:8082/project/dcfba59f-0190-4d90-b2a5-113a7b138508
2025-03-27 15:29:25,409 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2c1b84b4-e186-4313-a67c-0680f63e6393
2025-03-27 15:29:25,424 - DEBUG - ==>Verifying data for policy with id: 81fdd451-ece7-4186-8ca3-b1010aaf374b, fqn: ['default-domain', 'ctest-TestBasicPolicy-27849681', 'ctest-policy-allow-all-45774139']
2025-03-27 15:29:25,424 - INFO - VN ctest-vn-59159279 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 15:29:25,424 - DEBUG - Verifying the vn in opserver
2025-03-27 15:29:25,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-59159279 virtual network link through opserver 10.0.0.37
2025-03-27 15:29:25,424 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-27 15:29:25,723 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-27 15:29:25,783 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-59159279', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-59159279?flat'}
2025-03-27 15:29:25,783 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-59159279 is found in opserver
2025-03-27 15:29:25,795 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 15:29:25,801 - DEBUG - VRF ids for VN ctest-vn-59159279: {}
2025-03-27 15:29:25,801 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 15:29:25,807 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7a778c0f-a790-4959-8c02-e2281e34b5ed
2025-03-27 15:29:25,819 - DEBUG - Requesting: http://10.0.0.37:8082/project/dcfba59f-0190-4d90-b2a5-113a7b138508
2025-03-27 15:29:25,895 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9c126a74-875b-4ca1-b674-c000cd9609dd
2025-03-27 15:29:25,908 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9c126a74-875b-4ca1-b674-c000cd9609dd
2025-03-27 15:29:25,918 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/19a9fb7c-449d-44d1-aa03-a4cbf8c5a089
2025-03-27 15:29:25,926 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/19a9fb7c-449d-44d1-aa03-a4cbf8c5a089
2025-03-27 15:29:25,934 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/a2d9b072-454a-485e-ace0-649153564540
2025-03-27 15:29:25,942 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 15:29:25,942 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9c126a74-875b-4ca1-b674-c000cd9609dd
2025-03-27 15:29:25,953 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/19a9fb7c-449d-44d1-aa03-a4cbf8c5a089
2025-03-27 15:29:25,970 - INFO - Verified VN network id 9 for VN 9c126a74-875b-4ca1-b674-c000cd9609dd
2025-03-27 15:29:25,970 - INFO - Verifications in API Server for VN ctest-vn-81813549 passed
2025-03-27 15:29:25,970 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9c126a74-875b-4ca1-b674-c000cd9609dd
2025-03-27 15:29:25,980 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/19a9fb7c-449d-44d1-aa03-a4cbf8c5a089
2025-03-27 15:29:25,989 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/19a9fb7c-449d-44d1-aa03-a4cbf8c5a089
2025-03-27 15:29:25,999 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/a2d9b072-454a-485e-ace0-649153564540
2025-03-27 15:29:26,012 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-81813549', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27849681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11246168268217207969', 'uuid-lslong': '13147344321883015645'}, 'enable': 'true', 'created': '2025-03-27T15:29:23', 'last-modified': '2025-03-27T15:29:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.442527'}
2025-03-27 15:29:26,019 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 15:29:26,019 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81813549 passed
2025-03-27 15:29:26,019 - DEBUG - ====Verifying policy data for ctest-vn-81813549 in API_Server ======
2025-03-27 15:29:26,020 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 15:29:26,026 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7a778c0f-a790-4959-8c02-e2281e34b5ed
2025-03-27 15:29:26,041 - DEBUG - Requesting: http://10.0.0.37:8082/project/dcfba59f-0190-4d90-b2a5-113a7b138508
2025-03-27 15:29:26,123 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9c126a74-875b-4ca1-b674-c000cd9609dd
2025-03-27 15:29:26,134 - DEBUG - ==>Verifying data for policy with id: 81fdd451-ece7-4186-8ca3-b1010aaf374b, fqn: ['default-domain', 'ctest-TestBasicPolicy-27849681', 'ctest-policy-allow-all-45774139']
2025-03-27 15:29:26,134 - INFO - VN ctest-vn-81813549 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 15:29:26,134 - DEBUG - Verifying the vn in opserver
2025-03-27 15:29:26,134 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-81813549 virtual network link through opserver 10.0.0.37
2025-03-27 15:29:26,134 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-27 15:29:26,147 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-81813549', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-81813549?flat'}
2025-03-27 15:29:26,147 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27849681:ctest-vn-81813549 is found in opserver
2025-03-27 15:29:26,158 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 15:29:26,165 - DEBUG - VRF ids for VN ctest-vn-81813549: {}
2025-03-27 15:29:26,222 - DEBUG - Services list from nova: [