2025-04-27 16:51:52,767 - INFO - Domain Default found not creating
2025-04-27 16:51:52,871 - INFO - Project ctest-TestBasicPolicy-65503447 not found, creating it
2025-04-27 16:51:53,356 - INFO - Created Project:ctest-TestBasicPolicy-65503447, ID : 4b979b46-f9fb-42ab-9ea3-ea928ea9fdb3
2025-04-27 16:51:54,574 - INFO - ================================================================================
2025-04-27 16:51:54,574 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-27 16:51:54,574 - 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-04-27 16:51:54,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-27 16:51:54,824 - INFO - Initial checks done. Running the testcase now
2025-04-27 16:51:54,824 - INFO -
2025-04-27 16:51:55,299 - DEBUG - Response for create_network : {'network': {'id': 'f561864a-0fe3-4b55-b2ba-971b9b8166ee', 'name': 'ctest-vn-08362106', 'tenant_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'project_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65503447', 'ctest-vn-08362106'], 'port_security_enabled': True, 'description': ''}}
2025-04-27 16:51:55,431 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea02ca3a-f7c0-4a45-97e9-d7d3676c224d', 'name': '', 'tenant_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'network_id': 'f561864a-0fe3-4b55-b2ba-971b9b8166ee', 'ip_version': 4, 'cidr': '198.224.73.192/26', 'allocation_pools': [{'start': '198.224.73.194', 'end': '198.224.73.254'}], 'gateway_ip': '198.224.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.224.73.194', 'tags': [], 'project_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3'}}
2025-04-27 16:51:55,444 - INFO - Created VN ctest-vn-08362106
2025-04-27 16:51:55,495 - DEBUG - VN ctest-vn-08362106 UUID is f561864a-0fe3-4b55-b2ba-971b9b8166ee
2025-04-27 16:51:55,774 - DEBUG - Response for create_network : {'network': {'id': 'd1c60180-06ef-4588-943a-dbfc37abe563', 'name': 'ctest-vn-18423387', 'tenant_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'project_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65503447', 'ctest-vn-18423387'], 'port_security_enabled': True, 'description': ''}}
2025-04-27 16:51:56,010 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c99c9dc8-296f-4ffc-993f-53dee79a1321', 'name': '', 'tenant_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'network_id': 'd1c60180-06ef-4588-943a-dbfc37abe563', 'ip_version': 4, 'cidr': '123.130.246.128/26', 'allocation_pools': [{'start': '123.130.246.130', 'end': '123.130.246.190'}], 'gateway_ip': '123.130.246.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.130.246.130', 'tags': [], 'project_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3'}}
2025-04-27 16:51:56,024 - INFO - Created VN ctest-vn-18423387
2025-04-27 16:51:56,075 - DEBUG - VN ctest-vn-18423387 UUID is d1c60180-06ef-4588-943a-dbfc37abe563
2025-04-27 16:51:56,207 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-08362106, 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-65503447:ctest-vn-18423387, 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-04-27 16:51:56,467 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f561864a-0fe3-4b55-b2ba-971b9b8166ee', 'name': 'ctest-vn-08362106', 'tenant_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'project_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea02ca3a-f7c0-4a45-97e9-d7d3676c224d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65503447', 'ctest-vn-08362106'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65503447', 'ctest-policy-allow-all-61264051']], 'subnet_ipam': [{'subnet_cidr': '198.224.73.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-27 16:51:56,714 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1c60180-06ef-4588-943a-dbfc37abe563', 'name': 'ctest-vn-18423387', 'tenant_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'project_id': '4b979b46f9fb42ab9ea3ea928ea9fdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c99c9dc8-296f-4ffc-993f-53dee79a1321'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65503447', 'ctest-vn-18423387'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65503447', 'ctest-policy-allow-all-61264051']], 'subnet_ipam': [{'subnet_cidr': '123.130.246.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-27 16:51:56,868 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 16:51:57,126 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 16:51:57,154 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90bd626b-cf9a-4b40-9c73-769a4185e78a
2025-04-27 16:51:57,167 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b979b46-f9fb-42ab-9ea3-ea928ea9fdb3
2025-04-27 16:51:57,238 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f561864a-0fe3-4b55-b2ba-971b9b8166ee
2025-04-27 16:51:57,248 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f561864a-0fe3-4b55-b2ba-971b9b8166ee
2025-04-27 16:51:57,256 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1cc5bd3-156a-42a6-a956-ca703f473fd3
2025-04-27 16:51:57,261 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1cc5bd3-156a-42a6-a956-ca703f473fd3
2025-04-27 16:51:57,267 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a8ac507-7c02-4c40-be0d-27ab4289d1a1
2025-04-27 16:51:57,273 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-27 16:51:57,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f561864a-0fe3-4b55-b2ba-971b9b8166ee
2025-04-27 16:51:57,281 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1cc5bd3-156a-42a6-a956-ca703f473fd3
2025-04-27 16:51:57,293 - INFO - Verified VN network id 9 for VN f561864a-0fe3-4b55-b2ba-971b9b8166ee
2025-04-27 16:51:57,293 - INFO - Verifications in API Server for VN ctest-vn-08362106 passed
2025-04-27 16:51:57,293 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f561864a-0fe3-4b55-b2ba-971b9b8166ee
2025-04-27 16:51:57,301 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1cc5bd3-156a-42a6-a956-ca703f473fd3
2025-04-27 16:51:57,306 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1cc5bd3-156a-42a6-a956-ca703f473fd3
2025-04-27 16:51:57,312 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a8ac507-7c02-4c40-be0d-27ab4289d1a1
2025-04-27 16:51:57,322 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-08362106', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65503447', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17681561264685534037', 'uuid-lslong': '12878772229248214766'}, 'enable': 'true', 'created': '2025-04-27T16:51:55', 'last-modified': '2025-04-27T16:51:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.869159'}
2025-04-27 16:51:57,327 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-27 16:51:57,327 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08362106 passed
2025-04-27 16:51:57,327 - DEBUG - ====Verifying policy data for ctest-vn-08362106 in API_Server ======
2025-04-27 16:51:57,328 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 16:51:57,332 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90bd626b-cf9a-4b40-9c73-769a4185e78a
2025-04-27 16:51:57,341 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b979b46-f9fb-42ab-9ea3-ea928ea9fdb3
2025-04-27 16:51:57,418 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f561864a-0fe3-4b55-b2ba-971b9b8166ee
2025-04-27 16:51:57,426 - DEBUG - ==>Verifying data for policy with id: a3864487-1400-4af9-8361-27dee7cf0761, fqn: ['default-domain', 'ctest-TestBasicPolicy-65503447', 'ctest-policy-allow-all-61264051']
2025-04-27 16:51:57,426 - INFO - VN ctest-vn-08362106 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-27 16:51:57,426 - DEBUG - Verifying the vn in opserver
2025-04-27 16:51:57,426 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-08362106 virtual network link through opserver 10.0.0.38
2025-04-27 16:51:57,426 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-27 16:51:57,681 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-27 16:51:57,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-08362106', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-08362106?flat'}
2025-04-27 16:51:57,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-08362106 is found in opserver
2025-04-27 16:51:57,732 - DEBUG - Do not have enough data to verify VN in agent
2025-04-27 16:51:57,737 - DEBUG - VRF ids for VN ctest-vn-08362106: {}
2025-04-27 16:51:57,737 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 16:51:57,742 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90bd626b-cf9a-4b40-9c73-769a4185e78a
2025-04-27 16:51:57,751 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b979b46-f9fb-42ab-9ea3-ea928ea9fdb3
2025-04-27 16:51:57,823 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1c60180-06ef-4588-943a-dbfc37abe563
2025-04-27 16:51:57,833 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1c60180-06ef-4588-943a-dbfc37abe563
2025-04-27 16:51:57,841 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdbcde13-8cee-4859-a490-5900e551ef28
2025-04-27 16:51:57,846 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdbcde13-8cee-4859-a490-5900e551ef28
2025-04-27 16:51:57,852 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b5f6a77b-1747-4f96-82a1-de42e3758cbd
2025-04-27 16:51:57,856 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-27 16:51:57,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1c60180-06ef-4588-943a-dbfc37abe563
2025-04-27 16:51:57,863 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdbcde13-8cee-4859-a490-5900e551ef28
2025-04-27 16:51:57,874 - INFO - Verified VN network id 10 for VN d1c60180-06ef-4588-943a-dbfc37abe563
2025-04-27 16:51:57,874 - INFO - Verifications in API Server for VN ctest-vn-18423387 passed
2025-04-27 16:51:57,874 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1c60180-06ef-4588-943a-dbfc37abe563
2025-04-27 16:51:57,881 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdbcde13-8cee-4859-a490-5900e551ef28
2025-04-27 16:51:57,886 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdbcde13-8cee-4859-a490-5900e551ef28
2025-04-27 16:51:57,892 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b5f6a77b-1747-4f96-82a1-de42e3758cbd
2025-04-27 16:51:57,902 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-18423387', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65503447', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15115770848699434376', 'uuid-lslong': '10681091342574806371'}, 'enable': 'true', 'created': '2025-04-27T16:51:55', 'last-modified': '2025-04-27T16:51:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.246304'}
2025-04-27 16:51:57,907 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-27 16:51:57,907 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18423387 passed
2025-04-27 16:51:57,908 - DEBUG - ====Verifying policy data for ctest-vn-18423387 in API_Server ======
2025-04-27 16:51:57,908 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 16:51:57,911 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90bd626b-cf9a-4b40-9c73-769a4185e78a
2025-04-27 16:51:57,921 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b979b46-f9fb-42ab-9ea3-ea928ea9fdb3
2025-04-27 16:51:57,985 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1c60180-06ef-4588-943a-dbfc37abe563
2025-04-27 16:51:57,993 - DEBUG - ==>Verifying data for policy with id: a3864487-1400-4af9-8361-27dee7cf0761, fqn: ['default-domain', 'ctest-TestBasicPolicy-65503447', 'ctest-policy-allow-all-61264051']
2025-04-27 16:51:57,993 - INFO - VN ctest-vn-18423387 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-27 16:51:57,993 - DEBUG - Verifying the vn in opserver
2025-04-27 16:51:57,993 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-18423387 virtual network link through opserver 10.0.0.38
2025-04-27 16:51:57,993 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-27 16:51:58,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-18423387', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-18423387?flat'}
2025-04-27 16:51:58,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65503447:ctest-vn-18423387 is found in opserver
2025-04-27 16:51:58,012 - DEBUG - Do not have enough data to verify VN in agent
2025-04-27 16:51:58,016 - DEBUG - VRF ids for VN ctest-vn-18423387: {}
2025-04-27 16:51:58,062 - DEBUG - Services list from nova: [