2025-01-07 21:42:35,145 - INFO - Domain Default found not creating
2025-01-07 21:42:35,287 - INFO - Project ctest-TestBasicPolicy-24000514 not found, creating it
2025-01-07 21:42:35,767 - INFO - Created Project:ctest-TestBasicPolicy-24000514, ID : 06f1c199-54df-49a6-aebf-4a5fcbb34e86
2025-01-07 21:42:37,170 - INFO - ================================================================================
2025-01-07 21:42:37,170 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 21:42:37,170 - 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-01-07 21:42:37,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.10': '0'}} with
2025-01-07 21:42:37,423 - INFO - Initial checks done. Running the testcase now
2025-01-07 21:42:37,423 - INFO -
2025-01-07 21:42:37,964 - DEBUG - Response for create_network : {'network': {'id': '4c9aeabc-0ac6-46b0-8244-8ff0375b67f3', 'name': 'ctest-vn-32000427', 'tenant_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'project_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24000514', 'ctest-vn-32000427'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 21:42:38,146 - DEBUG - Response for create_subnet : {'subnet': {'id': '734fd237-7aed-4b4f-ba74-e04aa8b7fc8b', 'name': '', 'tenant_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'network_id': '4c9aeabc-0ac6-46b0-8244-8ff0375b67f3', 'ip_version': 4, 'cidr': '9.94.0.64/26', 'allocation_pools': [{'start': '9.94.0.66', 'end': '9.94.0.126'}], 'gateway_ip': '9.94.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.94.0.66', 'tags': [], 'project_id': '06f1c19954df49a6aebf4a5fcbb34e86'}}
2025-01-07 21:42:38,163 - INFO - Created VN ctest-vn-32000427
2025-01-07 21:42:38,218 - DEBUG - VN ctest-vn-32000427 UUID is 4c9aeabc-0ac6-46b0-8244-8ff0375b67f3
2025-01-07 21:42:38,551 - DEBUG - Response for create_network : {'network': {'id': '268f77f6-b764-4f7b-b39b-f0e259e804c2', 'name': 'ctest-vn-39145288', 'tenant_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'project_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24000514', 'ctest-vn-39145288'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 21:42:38,710 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b670a806-57db-40c4-b13c-6b9dff2511c0', 'name': '', 'tenant_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'network_id': '268f77f6-b764-4f7b-b39b-f0e259e804c2', 'ip_version': 4, 'cidr': '188.163.77.192/26', 'allocation_pools': [{'start': '188.163.77.194', 'end': '188.163.77.254'}], 'gateway_ip': '188.163.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.163.77.194', 'tags': [], 'project_id': '06f1c19954df49a6aebf4a5fcbb34e86'}}
2025-01-07 21:42:38,726 - INFO - Created VN ctest-vn-39145288
2025-01-07 21:42:38,781 - DEBUG - VN ctest-vn-39145288 UUID is 268f77f6-b764-4f7b-b39b-f0e259e804c2
2025-01-07 21:42:38,937 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-32000427, 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-24000514:ctest-vn-39145288, 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-01-07 21:42:39,223 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c9aeabc-0ac6-46b0-8244-8ff0375b67f3', 'name': 'ctest-vn-32000427', 'tenant_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'project_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['734fd237-7aed-4b4f-ba74-e04aa8b7fc8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24000514', 'ctest-vn-32000427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24000514', 'ctest-policy-allow-all-77334804']], 'subnet_ipam': [{'subnet_cidr': '9.94.0.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 21:42:39,446 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '268f77f6-b764-4f7b-b39b-f0e259e804c2', 'name': 'ctest-vn-39145288', 'tenant_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'project_id': '06f1c19954df49a6aebf4a5fcbb34e86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b670a806-57db-40c4-b13c-6b9dff2511c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24000514', 'ctest-vn-39145288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24000514', 'ctest-policy-allow-all-77334804']], 'subnet_ipam': [{'subnet_cidr': '188.163.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 21:42:39,602 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-07 21:42:39,890 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-07 21:42:39,921 - DEBUG - Requesting: http://10.0.0.22:8082/domain/faf70cf4-2622-407a-8aec-4964698ae642
2025-01-07 21:42:39,934 - DEBUG - Requesting: http://10.0.0.22:8082/project/06f1c199-54df-49a6-aebf-4a5fcbb34e86
2025-01-07 21:42:40,009 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c9aeabc-0ac6-46b0-8244-8ff0375b67f3
2025-01-07 21:42:40,020 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c9aeabc-0ac6-46b0-8244-8ff0375b67f3
2025-01-07 21:42:40,030 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f8e4999d-65d2-4c24-b9df-f0ed16bb2f71
2025-01-07 21:42:40,037 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f8e4999d-65d2-4c24-b9df-f0ed16bb2f71
2025-01-07 21:42:40,044 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ea0ffa15-a223-43f8-ad35-65e05ba02318
2025-01-07 21:42:40,050 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 21:42:40,050 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c9aeabc-0ac6-46b0-8244-8ff0375b67f3
2025-01-07 21:42:40,058 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f8e4999d-65d2-4c24-b9df-f0ed16bb2f71
2025-01-07 21:42:40,076 - INFO - Verified VN network id 7 for VN 4c9aeabc-0ac6-46b0-8244-8ff0375b67f3
2025-01-07 21:42:40,076 - INFO - Verifications in API Server for VN ctest-vn-32000427 passed
2025-01-07 21:42:40,077 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c9aeabc-0ac6-46b0-8244-8ff0375b67f3
2025-01-07 21:42:40,087 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f8e4999d-65d2-4c24-b9df-f0ed16bb2f71
2025-01-07 21:42:40,097 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f8e4999d-65d2-4c24-b9df-f0ed16bb2f71
2025-01-07 21:42:40,104 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ea0ffa15-a223-43f8-ad35-65e05ba02318
2025-01-07 21:42:40,115 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-32000427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24000514', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5519982386651481776', 'uuid-lslong': '9386785785230616563'}, 'enable': 'true', 'created': '2025-01-07T21:42:37', 'last-modified': '2025-01-07T21:42:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913588'}
2025-01-07 21:42:40,122 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 21:42:40,122 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32000427 passed
2025-01-07 21:42:40,122 - DEBUG - ====Verifying policy data for ctest-vn-32000427 in API_Server ======
2025-01-07 21:42:40,122 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-07 21:42:40,128 - DEBUG - Requesting: http://10.0.0.22:8082/domain/faf70cf4-2622-407a-8aec-4964698ae642
2025-01-07 21:42:40,139 - DEBUG - Requesting: http://10.0.0.22:8082/project/06f1c199-54df-49a6-aebf-4a5fcbb34e86
2025-01-07 21:42:40,215 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c9aeabc-0ac6-46b0-8244-8ff0375b67f3
2025-01-07 21:42:40,224 - DEBUG - ==>Verifying data for policy with id: d32ba34a-ee4e-461c-9278-943079664e69, fqn: ['default-domain', 'ctest-TestBasicPolicy-24000514', 'ctest-policy-allow-all-77334804']
2025-01-07 21:42:40,224 - INFO - VN ctest-vn-32000427 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 21:42:40,224 - DEBUG - Verifying the vn in opserver
2025-01-07 21:42:40,224 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-32000427 virtual network link through opserver 10.0.0.22
2025-01-07 21:42:40,224 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-07 21:42:40,519 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-07 21:42:40,573 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-32000427', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-32000427?flat'}
2025-01-07 21:42:40,573 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-32000427 is found in opserver
2025-01-07 21:42:40,583 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 21:42:40,588 - DEBUG - VRF ids for VN ctest-vn-32000427: {}
2025-01-07 21:42:40,588 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-07 21:42:40,594 - DEBUG - Requesting: http://10.0.0.22:8082/domain/faf70cf4-2622-407a-8aec-4964698ae642
2025-01-07 21:42:40,605 - DEBUG - Requesting: http://10.0.0.22:8082/project/06f1c199-54df-49a6-aebf-4a5fcbb34e86
2025-01-07 21:42:40,674 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/268f77f6-b764-4f7b-b39b-f0e259e804c2
2025-01-07 21:42:40,687 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/268f77f6-b764-4f7b-b39b-f0e259e804c2
2025-01-07 21:42:40,695 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8956c5fd-bbc4-4aee-8688-544d6fa88fcd
2025-01-07 21:42:40,702 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8956c5fd-bbc4-4aee-8688-544d6fa88fcd
2025-01-07 21:42:40,708 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e92704cf-afba-4a9c-8e36-bdb7602e2b80
2025-01-07 21:42:40,714 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 21:42:40,714 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/268f77f6-b764-4f7b-b39b-f0e259e804c2
2025-01-07 21:42:40,723 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8956c5fd-bbc4-4aee-8688-544d6fa88fcd
2025-01-07 21:42:40,735 - INFO - Verified VN network id 8 for VN 268f77f6-b764-4f7b-b39b-f0e259e804c2
2025-01-07 21:42:40,735 - INFO - Verifications in API Server for VN ctest-vn-39145288 passed
2025-01-07 21:42:40,735 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/268f77f6-b764-4f7b-b39b-f0e259e804c2
2025-01-07 21:42:40,745 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8956c5fd-bbc4-4aee-8688-544d6fa88fcd
2025-01-07 21:42:40,751 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8956c5fd-bbc4-4aee-8688-544d6fa88fcd
2025-01-07 21:42:40,758 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e92704cf-afba-4a9c-8e36-bdb7602e2b80
2025-01-07 21:42:40,771 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-39145288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24000514', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2778571396633350011', 'uuid-lslong': '12942202809140905154'}, 'enable': 'true', 'created': '2025-01-07T21:42:38', 'last-modified': '2025-01-07T21:42:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344777'}
2025-01-07 21:42:40,777 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 21:42:40,777 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39145288 passed
2025-01-07 21:42:40,777 - DEBUG - ====Verifying policy data for ctest-vn-39145288 in API_Server ======
2025-01-07 21:42:40,777 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-07 21:42:40,783 - DEBUG - Requesting: http://10.0.0.22:8082/domain/faf70cf4-2622-407a-8aec-4964698ae642
2025-01-07 21:42:40,793 - DEBUG - Requesting: http://10.0.0.22:8082/project/06f1c199-54df-49a6-aebf-4a5fcbb34e86
2025-01-07 21:42:40,871 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/268f77f6-b764-4f7b-b39b-f0e259e804c2
2025-01-07 21:42:40,881 - DEBUG - ==>Verifying data for policy with id: d32ba34a-ee4e-461c-9278-943079664e69, fqn: ['default-domain', 'ctest-TestBasicPolicy-24000514', 'ctest-policy-allow-all-77334804']
2025-01-07 21:42:40,881 - INFO - VN ctest-vn-39145288 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 21:42:40,881 - DEBUG - Verifying the vn in opserver
2025-01-07 21:42:40,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-39145288 virtual network link through opserver 10.0.0.22
2025-01-07 21:42:40,881 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-07 21:42:40,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-39145288', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-39145288?flat'}
2025-01-07 21:42:40,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24000514:ctest-vn-39145288 is found in opserver
2025-01-07 21:42:40,901 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 21:42:40,906 - DEBUG - VRF ids for VN ctest-vn-39145288: {}
2025-01-07 21:42:40,954 - DEBUG - Services list from nova: [