2025-06-26 23:09:36,811 - INFO - Domain Default found not creating
2025-06-26 23:09:36,960 - INFO - Project ctest-TestBasicPolicy-95913716 not found, creating it
2025-06-26 23:09:37,407 - INFO - Created Project:ctest-TestBasicPolicy-95913716, ID : c84476b8-7191-4f26-9466-99e6ffd777c1
2025-06-26 23:09:38,813 - INFO - ================================================================================
2025-06-26 23:09:38,813 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-26 23:09:38,813 - 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-06-26 23:09:39,067 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-06-26 23:09:39,068 - INFO - Initial checks done. Running the testcase now
2025-06-26 23:09:39,068 - INFO -
2025-06-26 23:09:39,621 - DEBUG - Response for create_network : {'network': {'id': 'e277f785-774f-459e-97f3-3a7a87493b46', 'name': 'ctest-vn-24636239', 'tenant_id': 'c84476b871914f26946699e6ffd777c1', 'project_id': 'c84476b871914f26946699e6ffd777c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95913716', 'ctest-vn-24636239'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 23:09:39,839 - DEBUG - Response for create_subnet : {'subnet': {'id': '712b8ded-f3ec-4543-95e8-8b056be82843', 'name': '', 'tenant_id': 'c84476b871914f26946699e6ffd777c1', 'network_id': 'e277f785-774f-459e-97f3-3a7a87493b46', 'ip_version': 4, 'cidr': '111.19.36.128/26', 'allocation_pools': [{'start': '111.19.36.130', 'end': '111.19.36.190'}], 'gateway_ip': '111.19.36.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.19.36.130', 'tags': [], 'project_id': 'c84476b871914f26946699e6ffd777c1'}}
2025-06-26 23:09:39,855 - INFO - Created VN ctest-vn-24636239
2025-06-26 23:09:39,906 - DEBUG - VN ctest-vn-24636239 UUID is e277f785-774f-459e-97f3-3a7a87493b46
2025-06-26 23:09:40,203 - DEBUG - Response for create_network : {'network': {'id': 'c331ded3-8255-4336-9068-fd51935b209a', 'name': 'ctest-vn-11418574', 'tenant_id': 'c84476b871914f26946699e6ffd777c1', 'project_id': 'c84476b871914f26946699e6ffd777c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95913716', 'ctest-vn-11418574'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 23:09:40,413 - DEBUG - Response for create_subnet : {'subnet': {'id': '39882297-2c3b-4e26-a828-93a7a98fa4a5', 'name': '', 'tenant_id': 'c84476b871914f26946699e6ffd777c1', 'network_id': 'c331ded3-8255-4336-9068-fd51935b209a', 'ip_version': 4, 'cidr': '65.68.237.192/26', 'allocation_pools': [{'start': '65.68.237.194', 'end': '65.68.237.254'}], 'gateway_ip': '65.68.237.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.68.237.194', 'tags': [], 'project_id': 'c84476b871914f26946699e6ffd777c1'}}
2025-06-26 23:09:40,431 - INFO - Created VN ctest-vn-11418574
2025-06-26 23:09:40,482 - DEBUG - VN ctest-vn-11418574 UUID is c331ded3-8255-4336-9068-fd51935b209a
2025-06-26 23:09:40,597 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-24636239, 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-95913716:ctest-vn-11418574, 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-06-26 23:09:40,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e277f785-774f-459e-97f3-3a7a87493b46', 'name': 'ctest-vn-24636239', 'tenant_id': 'c84476b871914f26946699e6ffd777c1', 'project_id': 'c84476b871914f26946699e6ffd777c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['712b8ded-f3ec-4543-95e8-8b056be82843'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95913716', 'ctest-vn-24636239'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95913716', 'ctest-policy-allow-all-71288264']], 'subnet_ipam': [{'subnet_cidr': '111.19.36.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 23:09:41,183 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c331ded3-8255-4336-9068-fd51935b209a', 'name': 'ctest-vn-11418574', 'tenant_id': 'c84476b871914f26946699e6ffd777c1', 'project_id': 'c84476b871914f26946699e6ffd777c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39882297-2c3b-4e26-a828-93a7a98fa4a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95913716', 'ctest-vn-11418574'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95913716', 'ctest-policy-allow-all-71288264']], 'subnet_ipam': [{'subnet_cidr': '65.68.237.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 23:09:41,342 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 23:09:41,644 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 23:09:41,676 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b7b4f77-64c7-4c51-9ca3-7b5819ec7e53
2025-06-26 23:09:41,693 - DEBUG - Requesting: http://10.0.0.38:8082/project/c84476b8-7191-4f26-9466-99e6ffd777c1
2025-06-26 23:09:41,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e277f785-774f-459e-97f3-3a7a87493b46
2025-06-26 23:09:41,785 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e277f785-774f-459e-97f3-3a7a87493b46
2025-06-26 23:09:41,798 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd2b7cf7-da50-488b-b359-4ad2cb902023
2025-06-26 23:09:41,806 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd2b7cf7-da50-488b-b359-4ad2cb902023
2025-06-26 23:09:41,814 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/61fbab14-39c1-4c61-9f3d-ea2428ee4a93
2025-06-26 23:09:41,821 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 23:09:41,821 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e277f785-774f-459e-97f3-3a7a87493b46
2025-06-26 23:09:41,831 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd2b7cf7-da50-488b-b359-4ad2cb902023
2025-06-26 23:09:41,846 - INFO - Verified VN network id 8 for VN e277f785-774f-459e-97f3-3a7a87493b46
2025-06-26 23:09:41,847 - INFO - Verifications in API Server for VN ctest-vn-24636239 passed
2025-06-26 23:09:41,847 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e277f785-774f-459e-97f3-3a7a87493b46
2025-06-26 23:09:41,858 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd2b7cf7-da50-488b-b359-4ad2cb902023
2025-06-26 23:09:41,866 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd2b7cf7-da50-488b-b359-4ad2cb902023
2025-06-26 23:09:41,874 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/61fbab14-39c1-4c61-9f3d-ea2428ee4a93
2025-06-26 23:09:41,890 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-24636239', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95913716', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16318783927404676510', 'uuid-lslong': '10949159416997952326'}, 'enable': 'true', 'created': '2025-06-26T23:09:39', 'last-modified': '2025-06-26T23:09:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016714'}
2025-06-26 23:09:41,899 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 23:09:41,899 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24636239 passed
2025-06-26 23:09:41,900 - DEBUG - ====Verifying policy data for ctest-vn-24636239 in API_Server ======
2025-06-26 23:09:41,900 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 23:09:41,906 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b7b4f77-64c7-4c51-9ca3-7b5819ec7e53
2025-06-26 23:09:41,919 - DEBUG - Requesting: http://10.0.0.38:8082/project/c84476b8-7191-4f26-9466-99e6ffd777c1
2025-06-26 23:09:41,996 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e277f785-774f-459e-97f3-3a7a87493b46
2025-06-26 23:09:42,006 - DEBUG - ==>Verifying data for policy with id: a98cfe03-8d4d-4015-a3ad-e96914caa273, fqn: ['default-domain', 'ctest-TestBasicPolicy-95913716', 'ctest-policy-allow-all-71288264']
2025-06-26 23:09:42,006 - INFO - VN ctest-vn-24636239 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 23:09:42,006 - DEBUG - Verifying the vn in opserver
2025-06-26 23:09:42,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-24636239 virtual network link through opserver 10.0.0.38
2025-06-26 23:09:42,007 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-26 23:09:42,300 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-26 23:09:42,353 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-24636239', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-24636239?flat'}
2025-06-26 23:09:42,353 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-24636239 is found in opserver
2025-06-26 23:09:42,363 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 23:09:42,368 - DEBUG - VRF ids for VN ctest-vn-24636239: {}
2025-06-26 23:09:42,368 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 23:09:42,375 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b7b4f77-64c7-4c51-9ca3-7b5819ec7e53
2025-06-26 23:09:42,386 - DEBUG - Requesting: http://10.0.0.38:8082/project/c84476b8-7191-4f26-9466-99e6ffd777c1
2025-06-26 23:09:42,457 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c331ded3-8255-4336-9068-fd51935b209a
2025-06-26 23:09:42,469 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c331ded3-8255-4336-9068-fd51935b209a
2025-06-26 23:09:42,479 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89d4050a-c904-4b88-ad30-3256f0d62291
2025-06-26 23:09:42,488 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89d4050a-c904-4b88-ad30-3256f0d62291
2025-06-26 23:09:42,495 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/16f6fc42-b66d-4fdc-880d-6d0de0b6cb6c
2025-06-26 23:09:42,502 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 23:09:42,502 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c331ded3-8255-4336-9068-fd51935b209a
2025-06-26 23:09:42,511 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89d4050a-c904-4b88-ad30-3256f0d62291
2025-06-26 23:09:42,525 - INFO - Verified VN network id 9 for VN c331ded3-8255-4336-9068-fd51935b209a
2025-06-26 23:09:42,525 - INFO - Verifications in API Server for VN ctest-vn-11418574 passed
2025-06-26 23:09:42,525 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c331ded3-8255-4336-9068-fd51935b209a
2025-06-26 23:09:42,535 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89d4050a-c904-4b88-ad30-3256f0d62291
2025-06-26 23:09:42,542 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89d4050a-c904-4b88-ad30-3256f0d62291
2025-06-26 23:09:42,551 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/16f6fc42-b66d-4fdc-880d-6d0de0b6cb6c
2025-06-26 23:09:42,565 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-11418574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95913716', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14065268111260861238', 'uuid-lslong': '10405845465845932186'}, 'enable': 'true', 'created': '2025-06-26T23:09:40', 'last-modified': '2025-06-26T23:09:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.452369'}
2025-06-26 23:09:42,571 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 23:09:42,571 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11418574 passed
2025-06-26 23:09:42,571 - DEBUG - ====Verifying policy data for ctest-vn-11418574 in API_Server ======
2025-06-26 23:09:42,571 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 23:09:42,576 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b7b4f77-64c7-4c51-9ca3-7b5819ec7e53
2025-06-26 23:09:42,588 - DEBUG - Requesting: http://10.0.0.38:8082/project/c84476b8-7191-4f26-9466-99e6ffd777c1
2025-06-26 23:09:42,663 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c331ded3-8255-4336-9068-fd51935b209a
2025-06-26 23:09:42,673 - DEBUG - ==>Verifying data for policy with id: a98cfe03-8d4d-4015-a3ad-e96914caa273, fqn: ['default-domain', 'ctest-TestBasicPolicy-95913716', 'ctest-policy-allow-all-71288264']
2025-06-26 23:09:42,673 - INFO - VN ctest-vn-11418574 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 23:09:42,673 - DEBUG - Verifying the vn in opserver
2025-06-26 23:09:42,673 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-11418574 virtual network link through opserver 10.0.0.38
2025-06-26 23:09:42,673 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-26 23:09:42,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-11418574', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-11418574?flat'}
2025-06-26 23:09:42,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95913716:ctest-vn-11418574 is found in opserver
2025-06-26 23:09:42,696 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 23:09:42,701 - DEBUG - VRF ids for VN ctest-vn-11418574: {}
2025-06-26 23:09:42,764 - DEBUG - Services list from nova: [