2025-09-16 12:04:19,300 - INFO - Domain Default found not creating
2025-09-16 12:04:19,433 - INFO - Project ctest-TestBasicPolicy-27109876 not found, creating it
2025-09-16 12:04:19,864 - INFO - Created Project:ctest-TestBasicPolicy-27109876, ID : bed215a2-2b3a-4d7b-b18c-926f3ec3230c
2025-09-16 12:04:21,221 - INFO - ================================================================================
2025-09-16 12:04:21,221 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-16 12:04:21,221 - 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-09-16 12:04:21,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-09-16 12:04:21,475 - INFO - Initial checks done. Running the testcase now
2025-09-16 12:04:21,475 - INFO -
2025-09-16 12:04:21,987 - DEBUG - Response for create_network : {'network': {'id': '174cc801-0992-4c61-8b54-c46e5dbd9750', 'name': 'ctest-vn-41671654', 'tenant_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'project_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27109876', 'ctest-vn-41671654'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 12:04:22,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '09b25408-55aa-4e09-b454-671ce7e85a19', 'name': '', 'tenant_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'network_id': '174cc801-0992-4c61-8b54-c46e5dbd9750', 'ip_version': 4, 'cidr': '129.141.210.0/26', 'allocation_pools': [{'start': '129.141.210.2', 'end': '129.141.210.62'}], 'gateway_ip': '129.141.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.141.210.2', 'tags': [], 'project_id': 'bed215a22b3a4d7bb18c926f3ec3230c'}}
2025-09-16 12:04:22,175 - INFO - Created VN ctest-vn-41671654
2025-09-16 12:04:22,225 - DEBUG - VN ctest-vn-41671654 UUID is 174cc801-0992-4c61-8b54-c46e5dbd9750
2025-09-16 12:04:22,526 - DEBUG - Response for create_network : {'network': {'id': '63c7e553-2512-4fd8-a77e-d4e5f3309ece', 'name': 'ctest-vn-91798077', 'tenant_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'project_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27109876', 'ctest-vn-91798077'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 12:04:22,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd2582da-c595-499a-b421-100f66c0045d', 'name': '', 'tenant_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'network_id': '63c7e553-2512-4fd8-a77e-d4e5f3309ece', 'ip_version': 4, 'cidr': '71.5.208.64/26', 'allocation_pools': [{'start': '71.5.208.66', 'end': '71.5.208.126'}], 'gateway_ip': '71.5.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.5.208.66', 'tags': [], 'project_id': 'bed215a22b3a4d7bb18c926f3ec3230c'}}
2025-09-16 12:04:22,706 - INFO - Created VN ctest-vn-91798077
2025-09-16 12:04:22,761 - DEBUG - VN ctest-vn-91798077 UUID is 63c7e553-2512-4fd8-a77e-d4e5f3309ece
2025-09-16 12:04:22,909 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-41671654, 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-27109876:ctest-vn-91798077, 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-09-16 12:04:23,189 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '174cc801-0992-4c61-8b54-c46e5dbd9750', 'name': 'ctest-vn-41671654', 'tenant_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'project_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09b25408-55aa-4e09-b454-671ce7e85a19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27109876', 'ctest-vn-41671654'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27109876', 'ctest-policy-allow-all-50105154']], 'subnet_ipam': [{'subnet_cidr': '129.141.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 12:04:23,412 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63c7e553-2512-4fd8-a77e-d4e5f3309ece', 'name': 'ctest-vn-91798077', 'tenant_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'project_id': 'bed215a22b3a4d7bb18c926f3ec3230c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd2582da-c595-499a-b421-100f66c0045d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27109876', 'ctest-vn-91798077'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27109876', 'ctest-policy-allow-all-50105154']], 'subnet_ipam': [{'subnet_cidr': '71.5.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 12:04:23,573 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-16 12:04:23,862 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-16 12:04:23,887 - DEBUG - Requesting: http://10.0.0.50:8082/domain/457b366e-c28a-4292-9228-3b0449ec22cc
2025-09-16 12:04:23,897 - DEBUG - Requesting: http://10.0.0.50:8082/project/bed215a2-2b3a-4d7b-b18c-926f3ec3230c
2025-09-16 12:04:23,969 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/174cc801-0992-4c61-8b54-c46e5dbd9750
2025-09-16 12:04:23,978 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/174cc801-0992-4c61-8b54-c46e5dbd9750
2025-09-16 12:04:23,985 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/baf5e4dc-defc-48f4-832f-48cdfe4876db
2025-09-16 12:04:23,991 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/baf5e4dc-defc-48f4-832f-48cdfe4876db
2025-09-16 12:04:23,996 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cab57aff-9825-47f9-aa62-6be8ef7d2237
2025-09-16 12:04:24,000 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 12:04:24,000 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/174cc801-0992-4c61-8b54-c46e5dbd9750
2025-09-16 12:04:24,007 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/baf5e4dc-defc-48f4-832f-48cdfe4876db
2025-09-16 12:04:24,018 - INFO - Verified VN network id 12 for VN 174cc801-0992-4c61-8b54-c46e5dbd9750
2025-09-16 12:04:24,018 - INFO - Verifications in API Server for VN ctest-vn-41671654 passed
2025-09-16 12:04:24,018 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/174cc801-0992-4c61-8b54-c46e5dbd9750
2025-09-16 12:04:24,025 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/baf5e4dc-defc-48f4-832f-48cdfe4876db
2025-09-16 12:04:24,031 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/baf5e4dc-defc-48f4-832f-48cdfe4876db
2025-09-16 12:04:24,036 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cab57aff-9825-47f9-aa62-6be8ef7d2237
2025-09-16 12:04:24,045 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-41671654', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27109876', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1678936667883457633', 'uuid-lslong': '10039865447613830992'}, 'enable': 'true', 'created': '2025-09-16T12:04:21', 'last-modified': '2025-09-16T12:04:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.875123'}
2025-09-16 12:04:24,050 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 12:04:24,050 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41671654 passed
2025-09-16 12:04:24,050 - DEBUG - ====Verifying policy data for ctest-vn-41671654 in API_Server ======
2025-09-16 12:04:24,050 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-16 12:04:24,055 - DEBUG - Requesting: http://10.0.0.50:8082/domain/457b366e-c28a-4292-9228-3b0449ec22cc
2025-09-16 12:04:24,067 - DEBUG - Requesting: http://10.0.0.50:8082/project/bed215a2-2b3a-4d7b-b18c-926f3ec3230c
2025-09-16 12:04:24,130 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/174cc801-0992-4c61-8b54-c46e5dbd9750
2025-09-16 12:04:24,138 - DEBUG - ==>Verifying data for policy with id: fac3581c-d9a2-4c02-8022-8d67e26f55df, fqn: ['default-domain', 'ctest-TestBasicPolicy-27109876', 'ctest-policy-allow-all-50105154']
2025-09-16 12:04:24,138 - INFO - VN ctest-vn-41671654 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 12:04:24,138 - DEBUG - Verifying the vn in opserver
2025-09-16 12:04:24,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-41671654 virtual network link through opserver 10.0.0.50
2025-09-16 12:04:24,138 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-16 12:04:24,451 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-16 12:04:24,512 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-41671654', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-41671654?flat'}
2025-09-16 12:04:24,512 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-41671654 is found in opserver
2025-09-16 12:04:24,521 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 12:04:24,525 - DEBUG - VRF ids for VN ctest-vn-41671654: {}
2025-09-16 12:04:24,525 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-16 12:04:24,530 - DEBUG - Requesting: http://10.0.0.50:8082/domain/457b366e-c28a-4292-9228-3b0449ec22cc
2025-09-16 12:04:24,540 - DEBUG - Requesting: http://10.0.0.50:8082/project/bed215a2-2b3a-4d7b-b18c-926f3ec3230c
2025-09-16 12:04:24,610 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/63c7e553-2512-4fd8-a77e-d4e5f3309ece
2025-09-16 12:04:24,621 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/63c7e553-2512-4fd8-a77e-d4e5f3309ece
2025-09-16 12:04:24,629 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/66847951-78f9-4203-b049-934071072134
2025-09-16 12:04:24,634 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/66847951-78f9-4203-b049-934071072134
2025-09-16 12:04:24,640 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/10488c78-7860-4364-bc5e-a5db28a2c9d7
2025-09-16 12:04:24,645 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 12:04:24,645 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/63c7e553-2512-4fd8-a77e-d4e5f3309ece
2025-09-16 12:04:24,653 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/66847951-78f9-4203-b049-934071072134
2025-09-16 12:04:24,666 - INFO - Verified VN network id 13 for VN 63c7e553-2512-4fd8-a77e-d4e5f3309ece
2025-09-16 12:04:24,666 - INFO - Verifications in API Server for VN ctest-vn-91798077 passed
2025-09-16 12:04:24,667 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/63c7e553-2512-4fd8-a77e-d4e5f3309ece
2025-09-16 12:04:24,675 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/66847951-78f9-4203-b049-934071072134
2025-09-16 12:04:24,681 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/66847951-78f9-4203-b049-934071072134
2025-09-16 12:04:24,687 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/10488c78-7860-4364-bc5e-a5db28a2c9d7
2025-09-16 12:04:24,697 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-91798077', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27109876', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7189967475387289560', 'uuid-lslong': '12069318135492157134'}, 'enable': 'true', 'created': '2025-09-16T12:04:22', 'last-modified': '2025-09-16T12:04:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.305505'}
2025-09-16 12:04:24,704 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 12:04:24,704 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91798077 passed
2025-09-16 12:04:24,704 - DEBUG - ====Verifying policy data for ctest-vn-91798077 in API_Server ======
2025-09-16 12:04:24,704 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-16 12:04:24,711 - DEBUG - Requesting: http://10.0.0.50:8082/domain/457b366e-c28a-4292-9228-3b0449ec22cc
2025-09-16 12:04:24,721 - DEBUG - Requesting: http://10.0.0.50:8082/project/bed215a2-2b3a-4d7b-b18c-926f3ec3230c
2025-09-16 12:04:24,793 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/63c7e553-2512-4fd8-a77e-d4e5f3309ece
2025-09-16 12:04:24,804 - DEBUG - ==>Verifying data for policy with id: fac3581c-d9a2-4c02-8022-8d67e26f55df, fqn: ['default-domain', 'ctest-TestBasicPolicy-27109876', 'ctest-policy-allow-all-50105154']
2025-09-16 12:04:24,804 - INFO - VN ctest-vn-91798077 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 12:04:24,804 - DEBUG - Verifying the vn in opserver
2025-09-16 12:04:24,804 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-91798077 virtual network link through opserver 10.0.0.50
2025-09-16 12:04:24,804 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-16 12:04:24,813 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-91798077', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-91798077?flat'}
2025-09-16 12:04:24,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27109876:ctest-vn-91798077 is found in opserver
2025-09-16 12:04:24,821 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 12:04:24,824 - DEBUG - VRF ids for VN ctest-vn-91798077: {}
2025-09-16 12:04:24,873 - DEBUG - Services list from nova: [