2025-03-26 00:52:37,463 - INFO - Domain Default found not creating
2025-03-26 00:52:37,621 - INFO - Project ctest-TestBasicPolicy-77562062 not found, creating it
2025-03-26 00:52:38,122 - INFO - Created Project:ctest-TestBasicPolicy-77562062, ID : 37a3ff81-d1cd-4530-bb24-bdeef0cc080f
2025-03-26 00:52:39,764 - INFO - ================================================================================
2025-03-26 00:52:39,764 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-26 00:52:39,764 - 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-26 00:52:40,033 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.12': '0'}} with
2025-03-26 00:52:40,033 - INFO - Initial checks done. Running the testcase now
2025-03-26 00:52:40,034 - INFO -
2025-03-26 00:52:40,656 - DEBUG - Response for create_network : {'network': {'id': '0c22b426-2bc2-4d23-9e4a-fabc42d222ca', 'name': 'ctest-vn-74104717', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-vn-74104717'], 'port_security_enabled': True, 'description': ''}}
2025-03-26 00:52:40,850 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a30932b-f2d1-4966-ac97-79fe307e0e29', 'name': '', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'network_id': '0c22b426-2bc2-4d23-9e4a-fabc42d222ca', 'ip_version': 4, 'cidr': '134.50.243.0/26', 'allocation_pools': [{'start': '134.50.243.2', 'end': '134.50.243.62'}], 'gateway_ip': '134.50.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.50.243.2', 'tags': [], 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f'}}
2025-03-26 00:52:40,871 - INFO - Created VN ctest-vn-74104717
2025-03-26 00:52:40,928 - DEBUG - VN ctest-vn-74104717 UUID is 0c22b426-2bc2-4d23-9e4a-fabc42d222ca
2025-03-26 00:52:41,246 - DEBUG - Response for create_network : {'network': {'id': '33653f60-c0a9-4914-bd60-5178e7306e17', 'name': 'ctest-vn-03821116', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-vn-03821116'], 'port_security_enabled': True, 'description': ''}}
2025-03-26 00:52:41,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '981b35e9-a0b6-4561-b2b1-80ba8396ba77', 'name': '', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'network_id': '33653f60-c0a9-4914-bd60-5178e7306e17', 'ip_version': 4, 'cidr': '211.223.203.64/26', 'allocation_pools': [{'start': '211.223.203.66', 'end': '211.223.203.126'}], 'gateway_ip': '211.223.203.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.223.203.66', 'tags': [], 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f'}}
2025-03-26 00:52:41,453 - INFO - Created VN ctest-vn-03821116
2025-03-26 00:52:41,508 - DEBUG - VN ctest-vn-03821116 UUID is 33653f60-c0a9-4914-bd60-5178e7306e17
2025-03-26 00:52:41,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717, 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-77562062:ctest-vn-03821116, 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-26 00:52:41,979 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c22b426-2bc2-4d23-9e4a-fabc42d222ca', 'name': 'ctest-vn-74104717', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a30932b-f2d1-4966-ac97-79fe307e0e29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-vn-74104717'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-policy-allow-all-14498307']], 'subnet_ipam': [{'subnet_cidr': '134.50.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-26 00:52:42,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33653f60-c0a9-4914-bd60-5178e7306e17', 'name': 'ctest-vn-03821116', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['981b35e9-a0b6-4561-b2b1-80ba8396ba77'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-vn-03821116'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-policy-allow-all-14498307']], 'subnet_ipam': [{'subnet_cidr': '211.223.203.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-26 00:52:42,444 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-26 00:52:42,785 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-26 00:52:42,818 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377
2025-03-26 00:52:42,835 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f
2025-03-26 00:52:42,919 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca
2025-03-26 00:52:42,937 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca
2025-03-26 00:52:42,952 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04
2025-03-26 00:52:42,961 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04
2025-03-26 00:52:42,975 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/5560cac0-4541-4a7d-bd76-2df0164ca8c7
2025-03-26 00:52:42,983 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-26 00:52:42,984 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca
2025-03-26 00:52:42,998 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04
2025-03-26 00:52:43,021 - INFO - Verified VN network id 9 for VN 0c22b426-2bc2-4d23-9e4a-fabc42d222ca
2025-03-26 00:52:43,021 - INFO - Verifications in API Server for VN ctest-vn-74104717 passed
2025-03-26 00:52:43,021 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca
2025-03-26 00:52:43,035 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04
2025-03-26 00:52:43,044 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04
2025-03-26 00:52:43,053 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/5560cac0-4541-4a7d-bd76-2df0164ca8c7
2025-03-26 00:52:43,068 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77562062', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '874459353699208483', 'uuid-lslong': '11406204692751065802'}, 'enable': 'true', 'created': '2025-03-26T00:52:40', 'last-modified': '2025-03-26T00:52:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.117877'}
2025-03-26 00:52:43,076 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-26 00:52:43,076 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74104717 passed
2025-03-26 00:52:43,076 - DEBUG - ====Verifying policy data for ctest-vn-74104717 in API_Server ======
2025-03-26 00:52:43,076 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-26 00:52:43,083 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377
2025-03-26 00:52:43,097 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f
2025-03-26 00:52:43,235 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca
2025-03-26 00:52:43,252 - DEBUG - ==>Verifying data for policy with id: 132fd800-553b-45fb-ad38-61ffe54fbcce, fqn: ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-policy-allow-all-14498307']
2025-03-26 00:52:43,252 - INFO - VN ctest-vn-74104717 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-26 00:52:43,252 - DEBUG - Verifying the vn in opserver
2025-03-26 00:52:43,252 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717 virtual network link through opserver 10.0.0.24
2025-03-26 00:52:43,252 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-03-26 00:52:43,641 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-03-26 00:52:43,757 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717?flat'}
2025-03-26 00:52:43,757 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717 is found in opserver
2025-03-26 00:52:43,775 - DEBUG - Do not have enough data to verify VN in agent
2025-03-26 00:52:43,781 - DEBUG - VRF ids for VN ctest-vn-74104717: {}
2025-03-26 00:52:43,781 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-26 00:52:43,801 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377
2025-03-26 00:52:43,826 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f
2025-03-26 00:52:43,971 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17
2025-03-26 00:52:44,005 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17
2025-03-26 00:52:44,020 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848
2025-03-26 00:52:44,034 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848
2025-03-26 00:52:44,055 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/383cf568-3a37-48e3-90a1-e3f14cefb3e0
2025-03-26 00:52:44,076 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-26 00:52:44,076 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17
2025-03-26 00:52:44,090 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848
2025-03-26 00:52:44,119 - INFO - Verified VN network id 10 for VN 33653f60-c0a9-4914-bd60-5178e7306e17
2025-03-26 00:52:44,120 - INFO - Verifications in API Server for VN ctest-vn-03821116 passed
2025-03-26 00:52:44,120 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17
2025-03-26 00:52:44,134 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848
2025-03-26 00:52:44,145 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848
2025-03-26 00:52:44,158 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/383cf568-3a37-48e3-90a1-e3f14cefb3e0
2025-03-26 00:52:44,178 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77562062', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3703435953363831060', 'uuid-lslong': '13645996450649239063'}, 'enable': 'true', 'created': '2025-03-26T00:52:41', 'last-modified': '2025-03-26T00:52:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.948486'}
2025-03-26 00:52:44,188 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-26 00:52:44,188 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03821116 passed
2025-03-26 00:52:44,189 - DEBUG - ====Verifying policy data for ctest-vn-03821116 in API_Server ======
2025-03-26 00:52:44,189 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-26 00:52:44,197 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377
2025-03-26 00:52:44,213 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f
2025-03-26 00:52:44,290 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17
2025-03-26 00:52:44,303 - DEBUG - ==>Verifying data for policy with id: 132fd800-553b-45fb-ad38-61ffe54fbcce, fqn: ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-policy-allow-all-14498307']
2025-03-26 00:52:44,303 - INFO - VN ctest-vn-03821116 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-26 00:52:44,303 - DEBUG - Verifying the vn in opserver
2025-03-26 00:52:44,303 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116 virtual network link through opserver 10.0.0.24
2025-03-26 00:52:44,303 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-03-26 00:52:44,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116?flat'}
2025-03-26 00:52:44,317 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116 is found in opserver
2025-03-26 00:52:44,329 - DEBUG - Do not have enough data to verify VN in agent
2025-03-26 00:52:44,335 - DEBUG - VRF ids for VN ctest-vn-03821116: {}
2025-03-26 00:52:44,402 - DEBUG - Services list from nova: [