2025-06-20 08:32:11,137 - INFO - Domain Default found not creating
2025-06-20 08:32:11,320 - INFO - Project ctest-TestBasicPolicy-62963883 not found, creating it
2025-06-20 08:32:11,797 - INFO - Created Project:ctest-TestBasicPolicy-62963883, ID : 7b9c8d93-3e6d-4842-bbe2-90b6c24208f7
2025-06-20 08:32:13,564 - INFO - ================================================================================
2025-06-20 08:32:13,564 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-20 08:32:13,564 - 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-20 08:32:13,826 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.14': '0'}} with
2025-06-20 08:32:13,826 - INFO - Initial checks done. Running the testcase now
2025-06-20 08:32:13,826 - INFO -
2025-06-20 08:32:14,482 - DEBUG - Response for create_network : {'network': {'id': '5b551b6f-969b-4f5e-a2d9-f172ecb54467', 'name': 'ctest-vn-87509741', 'tenant_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'project_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62963883', 'ctest-vn-87509741'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:32:14,691 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ab96c76-086a-4809-b37a-6ac96d8f3644', 'name': '', 'tenant_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'network_id': '5b551b6f-969b-4f5e-a2d9-f172ecb54467', 'ip_version': 4, 'cidr': '190.60.95.192/26', 'allocation_pools': [{'start': '190.60.95.194', 'end': '190.60.95.254'}], 'gateway_ip': '190.60.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.60.95.194', 'tags': [], 'project_id': '7b9c8d933e6d4842bbe290b6c24208f7'}}
2025-06-20 08:32:14,716 - INFO - Created VN ctest-vn-87509741
2025-06-20 08:32:14,772 - DEBUG - VN ctest-vn-87509741 UUID is 5b551b6f-969b-4f5e-a2d9-f172ecb54467
2025-06-20 08:32:15,164 - DEBUG - Response for create_network : {'network': {'id': '154943b0-b035-4de5-b1e1-f5db31eb4dae', 'name': 'ctest-vn-47141956', 'tenant_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'project_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62963883', 'ctest-vn-47141956'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:32:15,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '485e1c22-31da-435f-b4ee-1462ad5d8480', 'name': '', 'tenant_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'network_id': '154943b0-b035-4de5-b1e1-f5db31eb4dae', 'ip_version': 4, 'cidr': '96.213.110.64/26', 'allocation_pools': [{'start': '96.213.110.66', 'end': '96.213.110.126'}], 'gateway_ip': '96.213.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.213.110.66', 'tags': [], 'project_id': '7b9c8d933e6d4842bbe290b6c24208f7'}}
2025-06-20 08:32:15,393 - INFO - Created VN ctest-vn-47141956
2025-06-20 08:32:15,452 - DEBUG - VN ctest-vn-47141956 UUID is 154943b0-b035-4de5-b1e1-f5db31eb4dae
2025-06-20 08:32:15,593 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-87509741, 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-62963883:ctest-vn-47141956, 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-20 08:32:15,941 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b551b6f-969b-4f5e-a2d9-f172ecb54467', 'name': 'ctest-vn-87509741', 'tenant_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'project_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ab96c76-086a-4809-b37a-6ac96d8f3644'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62963883', 'ctest-vn-87509741'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62963883', 'ctest-policy-allow-all-63889958']], 'subnet_ipam': [{'subnet_cidr': '190.60.95.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:32:16,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '154943b0-b035-4de5-b1e1-f5db31eb4dae', 'name': 'ctest-vn-47141956', 'tenant_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'project_id': '7b9c8d933e6d4842bbe290b6c24208f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['485e1c22-31da-435f-b4ee-1462ad5d8480'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62963883', 'ctest-vn-47141956'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62963883', 'ctest-policy-allow-all-63889958']], 'subnet_ipam': [{'subnet_cidr': '96.213.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:32:16,408 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-20 08:32:16,724 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-20 08:32:16,763 - DEBUG - Requesting: http://10.0.0.240:8082/domain/d8080647-d0b0-4f04-848e-3931b9c38896
2025-06-20 08:32:16,779 - DEBUG - Requesting: http://10.0.0.240:8082/project/7b9c8d93-3e6d-4842-bbe2-90b6c24208f7
2025-06-20 08:32:16,864 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/5b551b6f-969b-4f5e-a2d9-f172ecb54467
2025-06-20 08:32:16,878 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/5b551b6f-969b-4f5e-a2d9-f172ecb54467
2025-06-20 08:32:16,891 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c8a8fd74-9e1a-4325-9360-344cf2ccb088
2025-06-20 08:32:16,900 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c8a8fd74-9e1a-4325-9360-344cf2ccb088
2025-06-20 08:32:16,909 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/74edbe9c-c2fd-4548-8757-526330d2b25d
2025-06-20 08:32:16,917 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 08:32:16,917 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/5b551b6f-969b-4f5e-a2d9-f172ecb54467
2025-06-20 08:32:16,928 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c8a8fd74-9e1a-4325-9360-344cf2ccb088
2025-06-20 08:32:16,950 - INFO - Verified VN network id 8 for VN 5b551b6f-969b-4f5e-a2d9-f172ecb54467
2025-06-20 08:32:16,950 - INFO - Verifications in API Server for VN ctest-vn-87509741 passed
2025-06-20 08:32:16,950 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/5b551b6f-969b-4f5e-a2d9-f172ecb54467
2025-06-20 08:32:16,962 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c8a8fd74-9e1a-4325-9360-344cf2ccb088
2025-06-20 08:32:16,972 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c8a8fd74-9e1a-4325-9360-344cf2ccb088
2025-06-20 08:32:16,981 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/74edbe9c-c2fd-4548-8757-526330d2b25d
2025-06-20 08:32:16,996 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-87509741', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62963883', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6581196596553928542', 'uuid-lslong': '11734675779990406247'}, 'enable': 'true', 'created': '2025-06-20T08:32:14', 'last-modified': '2025-06-20T08:32:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.088625'}
2025-06-20 08:32:17,003 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 08:32:17,004 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87509741 passed
2025-06-20 08:32:17,004 - DEBUG - ====Verifying policy data for ctest-vn-87509741 in API_Server ======
2025-06-20 08:32:17,004 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-20 08:32:17,011 - DEBUG - Requesting: http://10.0.0.240:8082/domain/d8080647-d0b0-4f04-848e-3931b9c38896
2025-06-20 08:32:17,024 - DEBUG - Requesting: http://10.0.0.240:8082/project/7b9c8d93-3e6d-4842-bbe2-90b6c24208f7
2025-06-20 08:32:17,104 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/5b551b6f-969b-4f5e-a2d9-f172ecb54467
2025-06-20 08:32:17,116 - DEBUG - ==>Verifying data for policy with id: 8a1adfc9-21d1-410d-9094-81057faf18ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-62963883', 'ctest-policy-allow-all-63889958']
2025-06-20 08:32:17,116 - INFO - VN ctest-vn-87509741 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 08:32:17,116 - DEBUG - Verifying the vn in opserver
2025-06-20 08:32:17,116 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-87509741 virtual network link through opserver 10.0.0.240
2025-06-20 08:32:17,116 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2025-06-20 08:32:17,426 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2025-06-20 08:32:17,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-87509741', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-87509741?flat'}
2025-06-20 08:32:17,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-87509741 is found in opserver
2025-06-20 08:32:17,520 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 08:32:17,526 - DEBUG - VRF ids for VN ctest-vn-87509741: {}
2025-06-20 08:32:17,526 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-20 08:32:17,535 - DEBUG - Requesting: http://10.0.0.240:8082/domain/d8080647-d0b0-4f04-848e-3931b9c38896
2025-06-20 08:32:17,552 - DEBUG - Requesting: http://10.0.0.240:8082/project/7b9c8d93-3e6d-4842-bbe2-90b6c24208f7
2025-06-20 08:32:17,638 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/154943b0-b035-4de5-b1e1-f5db31eb4dae
2025-06-20 08:32:17,658 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/154943b0-b035-4de5-b1e1-f5db31eb4dae
2025-06-20 08:32:17,672 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/38f28b68-1853-4bd6-9c23-c4f602db1270
2025-06-20 08:32:17,685 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/38f28b68-1853-4bd6-9c23-c4f602db1270
2025-06-20 08:32:17,695 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/a95bffe9-8e6d-4347-b1f5-ce1e6f7ace72
2025-06-20 08:32:17,705 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 08:32:17,705 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/154943b0-b035-4de5-b1e1-f5db31eb4dae
2025-06-20 08:32:17,716 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/38f28b68-1853-4bd6-9c23-c4f602db1270
2025-06-20 08:32:17,742 - INFO - Verified VN network id 9 for VN 154943b0-b035-4de5-b1e1-f5db31eb4dae
2025-06-20 08:32:17,742 - INFO - Verifications in API Server for VN ctest-vn-47141956 passed
2025-06-20 08:32:17,742 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/154943b0-b035-4de5-b1e1-f5db31eb4dae
2025-06-20 08:32:17,761 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/38f28b68-1853-4bd6-9c23-c4f602db1270
2025-06-20 08:32:17,775 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/38f28b68-1853-4bd6-9c23-c4f602db1270
2025-06-20 08:32:17,785 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/a95bffe9-8e6d-4347-b1f5-ce1e6f7ace72
2025-06-20 08:32:17,803 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-47141956', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62963883', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1533831574245952997', 'uuid-lslong': '12817796336257289646'}, 'enable': 'true', 'created': '2025-06-20T08:32:15', 'last-modified': '2025-06-20T08:32:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.636988'}
2025-06-20 08:32:17,810 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 08:32:17,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47141956 passed
2025-06-20 08:32:17,811 - DEBUG - ====Verifying policy data for ctest-vn-47141956 in API_Server ======
2025-06-20 08:32:17,811 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-20 08:32:17,827 - DEBUG - Requesting: http://10.0.0.240:8082/domain/d8080647-d0b0-4f04-848e-3931b9c38896
2025-06-20 08:32:17,842 - DEBUG - Requesting: http://10.0.0.240:8082/project/7b9c8d93-3e6d-4842-bbe2-90b6c24208f7
2025-06-20 08:32:17,921 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/154943b0-b035-4de5-b1e1-f5db31eb4dae
2025-06-20 08:32:17,933 - DEBUG - ==>Verifying data for policy with id: 8a1adfc9-21d1-410d-9094-81057faf18ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-62963883', 'ctest-policy-allow-all-63889958']
2025-06-20 08:32:17,933 - INFO - VN ctest-vn-47141956 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 08:32:17,933 - DEBUG - Verifying the vn in opserver
2025-06-20 08:32:17,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-47141956 virtual network link through opserver 10.0.0.240
2025-06-20 08:32:17,933 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2025-06-20 08:32:17,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-47141956', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-47141956?flat'}
2025-06-20 08:32:17,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62963883:ctest-vn-47141956 is found in opserver
2025-06-20 08:32:17,962 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 08:32:17,971 - DEBUG - VRF ids for VN ctest-vn-47141956: {}
2025-06-20 08:32:18,046 - DEBUG - Services list from nova: [