2025-03-27 02:36:11,665 - INFO - Domain Default found not creating
2025-03-27 02:36:11,835 - INFO - Project ctest-TestBasicPolicy-77137807 not found, creating it
2025-03-27 02:36:12,346 - INFO - Created Project:ctest-TestBasicPolicy-77137807, ID : 089bab92-8af5-4bf7-9ee0-4b4aa852c4c5
2025-03-27 02:36:13,863 - INFO - ================================================================================
2025-03-27 02:36:13,863 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 02:36:13,863 - 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-27 02:36:14,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.11': '0'}} with
2025-03-27 02:36:14,122 - INFO - Initial checks done. Running the testcase now
2025-03-27 02:36:14,122 - INFO -
2025-03-27 02:36:14,670 - DEBUG - Response for create_network : {'network': {'id': 'c535263e-7b31-403f-87e2-d2d5ebb8827e', 'name': 'ctest-vn-76284013', 'tenant_id': '089bab928af54bf79ee04b4aa852c4c5', 'project_id': '089bab928af54bf79ee04b4aa852c4c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77137807', 'ctest-vn-76284013'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:36:14,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '3241c5c3-21cc-45fa-9a90-3e7ebb4c41bd', 'name': '', 'tenant_id': '089bab928af54bf79ee04b4aa852c4c5', 'network_id': 'c535263e-7b31-403f-87e2-d2d5ebb8827e', 'ip_version': 4, 'cidr': '159.137.43.0/26', 'allocation_pools': [{'start': '159.137.43.2', 'end': '159.137.43.62'}], 'gateway_ip': '159.137.43.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.137.43.2', 'tags': [], 'project_id': '089bab928af54bf79ee04b4aa852c4c5'}}
2025-03-27 02:36:14,920 - INFO - Created VN ctest-vn-76284013
2025-03-27 02:36:14,975 - DEBUG - VN ctest-vn-76284013 UUID is c535263e-7b31-403f-87e2-d2d5ebb8827e
2025-03-27 02:36:15,269 - DEBUG - Response for create_network : {'network': {'id': '351ff54b-f840-4b66-a4dc-216435bca4fd', 'name': 'ctest-vn-00703327', 'tenant_id': '089bab928af54bf79ee04b4aa852c4c5', 'project_id': '089bab928af54bf79ee04b4aa852c4c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77137807', 'ctest-vn-00703327'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:36:15,492 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7d69477-b424-47e2-a325-ee47d28925f0', 'name': '', 'tenant_id': '089bab928af54bf79ee04b4aa852c4c5', 'network_id': '351ff54b-f840-4b66-a4dc-216435bca4fd', 'ip_version': 4, 'cidr': '54.48.34.64/26', 'allocation_pools': [{'start': '54.48.34.66', 'end': '54.48.34.126'}], 'gateway_ip': '54.48.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.48.34.66', 'tags': [], 'project_id': '089bab928af54bf79ee04b4aa852c4c5'}}
2025-03-27 02:36:15,511 - INFO - Created VN ctest-vn-00703327
2025-03-27 02:36:15,563 - DEBUG - VN ctest-vn-00703327 UUID is 351ff54b-f840-4b66-a4dc-216435bca4fd
2025-03-27 02:36:15,677 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-76284013, 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-77137807:ctest-vn-00703327, 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-27 02:36:16,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c535263e-7b31-403f-87e2-d2d5ebb8827e', 'name': 'ctest-vn-76284013', 'tenant_id': '089bab928af54bf79ee04b4aa852c4c5', 'project_id': '089bab928af54bf79ee04b4aa852c4c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3241c5c3-21cc-45fa-9a90-3e7ebb4c41bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77137807', 'ctest-vn-76284013'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77137807', 'ctest-policy-allow-all-21605628']], 'subnet_ipam': [{'subnet_cidr': '159.137.43.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:36:16,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '351ff54b-f840-4b66-a4dc-216435bca4fd', 'name': 'ctest-vn-00703327', 'tenant_id': '089bab928af54bf79ee04b4aa852c4c5', 'project_id': '089bab928af54bf79ee04b4aa852c4c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7d69477-b424-47e2-a325-ee47d28925f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77137807', 'ctest-vn-00703327'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77137807', 'ctest-policy-allow-all-21605628']], 'subnet_ipam': [{'subnet_cidr': '54.48.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:36:16,447 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-27 02:36:16,744 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-27 02:36:16,775 - DEBUG - Requesting: http://10.0.0.29:8082/domain/40269a6d-bc96-4c17-b703-967fa56e290c
2025-03-27 02:36:16,788 - DEBUG - Requesting: http://10.0.0.29:8082/project/089bab92-8af5-4bf7-9ee0-4b4aa852c4c5
2025-03-27 02:36:16,872 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c535263e-7b31-403f-87e2-d2d5ebb8827e
2025-03-27 02:36:16,886 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c535263e-7b31-403f-87e2-d2d5ebb8827e
2025-03-27 02:36:16,899 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/bba9d13e-72cf-4b43-a408-fa071068e0ce
2025-03-27 02:36:16,909 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/bba9d13e-72cf-4b43-a408-fa071068e0ce
2025-03-27 02:36:16,917 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/38fb54bd-9611-4d79-b192-f1f9584afb3e
2025-03-27 02:36:16,925 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 02:36:16,925 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c535263e-7b31-403f-87e2-d2d5ebb8827e
2025-03-27 02:36:16,936 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/bba9d13e-72cf-4b43-a408-fa071068e0ce
2025-03-27 02:36:16,953 - INFO - Verified VN network id 8 for VN c535263e-7b31-403f-87e2-d2d5ebb8827e
2025-03-27 02:36:16,953 - INFO - Verifications in API Server for VN ctest-vn-76284013 passed
2025-03-27 02:36:16,953 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c535263e-7b31-403f-87e2-d2d5ebb8827e
2025-03-27 02:36:16,964 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/bba9d13e-72cf-4b43-a408-fa071068e0ce
2025-03-27 02:36:16,971 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/bba9d13e-72cf-4b43-a408-fa071068e0ce
2025-03-27 02:36:16,978 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/38fb54bd-9611-4d79-b192-f1f9584afb3e
2025-03-27 02:36:16,992 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-76284013', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77137807', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14210306249034121279', 'uuid-lslong': '9791620356081484414'}, 'enable': 'true', 'created': '2025-03-27T02:36:14', 'last-modified': '2025-03-27T02:36:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021185'}
2025-03-27 02:36:17,001 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 02:36:17,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76284013 passed
2025-03-27 02:36:17,001 - DEBUG - ====Verifying policy data for ctest-vn-76284013 in API_Server ======
2025-03-27 02:36:17,001 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-27 02:36:17,008 - DEBUG - Requesting: http://10.0.0.29:8082/domain/40269a6d-bc96-4c17-b703-967fa56e290c
2025-03-27 02:36:17,020 - DEBUG - Requesting: http://10.0.0.29:8082/project/089bab92-8af5-4bf7-9ee0-4b4aa852c4c5
2025-03-27 02:36:17,104 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c535263e-7b31-403f-87e2-d2d5ebb8827e
2025-03-27 02:36:17,120 - DEBUG - ==>Verifying data for policy with id: 99f5e1d4-9587-4818-8e71-a3d450102f9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-77137807', 'ctest-policy-allow-all-21605628']
2025-03-27 02:36:17,120 - INFO - VN ctest-vn-76284013 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 02:36:17,120 - DEBUG - Verifying the vn in opserver
2025-03-27 02:36:17,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-76284013 virtual network link through opserver 10.0.0.29
2025-03-27 02:36:17,120 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-03-27 02:36:17,419 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-03-27 02:36:17,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-76284013', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-76284013?flat'}
2025-03-27 02:36:17,477 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-76284013 is found in opserver
2025-03-27 02:36:17,489 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 02:36:17,495 - DEBUG - VRF ids for VN ctest-vn-76284013: {}
2025-03-27 02:36:17,495 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-27 02:36:17,501 - DEBUG - Requesting: http://10.0.0.29:8082/domain/40269a6d-bc96-4c17-b703-967fa56e290c
2025-03-27 02:36:17,512 - DEBUG - Requesting: http://10.0.0.29:8082/project/089bab92-8af5-4bf7-9ee0-4b4aa852c4c5
2025-03-27 02:36:17,584 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/351ff54b-f840-4b66-a4dc-216435bca4fd
2025-03-27 02:36:17,595 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/351ff54b-f840-4b66-a4dc-216435bca4fd
2025-03-27 02:36:17,606 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/8911275b-4904-4e8f-930b-bd060e99c9f5
2025-03-27 02:36:17,614 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/8911275b-4904-4e8f-930b-bd060e99c9f5
2025-03-27 02:36:17,621 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/3d0e8918-2624-457e-9d41-38c7dd9114c8
2025-03-27 02:36:17,629 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 02:36:17,629 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/351ff54b-f840-4b66-a4dc-216435bca4fd
2025-03-27 02:36:17,639 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/8911275b-4904-4e8f-930b-bd060e99c9f5
2025-03-27 02:36:17,658 - INFO - Verified VN network id 9 for VN 351ff54b-f840-4b66-a4dc-216435bca4fd
2025-03-27 02:36:17,658 - INFO - Verifications in API Server for VN ctest-vn-00703327 passed
2025-03-27 02:36:17,658 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/351ff54b-f840-4b66-a4dc-216435bca4fd
2025-03-27 02:36:17,671 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/8911275b-4904-4e8f-930b-bd060e99c9f5
2025-03-27 02:36:17,681 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/8911275b-4904-4e8f-930b-bd060e99c9f5
2025-03-27 02:36:17,688 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/3d0e8918-2624-457e-9d41-38c7dd9114c8
2025-03-27 02:36:17,702 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-00703327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77137807', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3828047914924526438', 'uuid-lslong': '11879406631378527485'}, 'enable': 'true', 'created': '2025-03-27T02:36:15', 'last-modified': '2025-03-27T02:36:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.483439'}
2025-03-27 02:36:17,711 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 02:36:17,711 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00703327 passed
2025-03-27 02:36:17,711 - DEBUG - ====Verifying policy data for ctest-vn-00703327 in API_Server ======
2025-03-27 02:36:17,711 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-27 02:36:17,717 - DEBUG - Requesting: http://10.0.0.29:8082/domain/40269a6d-bc96-4c17-b703-967fa56e290c
2025-03-27 02:36:17,729 - DEBUG - Requesting: http://10.0.0.29:8082/project/089bab92-8af5-4bf7-9ee0-4b4aa852c4c5
2025-03-27 02:36:17,807 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/351ff54b-f840-4b66-a4dc-216435bca4fd
2025-03-27 02:36:17,817 - DEBUG - ==>Verifying data for policy with id: 99f5e1d4-9587-4818-8e71-a3d450102f9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-77137807', 'ctest-policy-allow-all-21605628']
2025-03-27 02:36:17,817 - INFO - VN ctest-vn-00703327 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 02:36:17,817 - DEBUG - Verifying the vn in opserver
2025-03-27 02:36:17,818 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-00703327 virtual network link through opserver 10.0.0.29
2025-03-27 02:36:17,818 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-03-27 02:36:17,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-00703327', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-00703327?flat'}
2025-03-27 02:36:17,830 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77137807:ctest-vn-00703327 is found in opserver
2025-03-27 02:36:17,843 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 02:36:17,849 - DEBUG - VRF ids for VN ctest-vn-00703327: {}
2025-03-27 02:36:17,911 - DEBUG - Services list from nova: [