2025-06-19 08:54:49,610 - INFO - Domain Default found not creating
2025-06-19 08:54:49,761 - INFO - Project ctest-TestBasicPolicy-09441752 not found, creating it
2025-06-19 08:54:50,229 - INFO - Created Project:ctest-TestBasicPolicy-09441752, ID : 10502713-6287-4129-ae8f-4658099cfce5
2025-06-19 08:54:51,723 - INFO - ================================================================================
2025-06-19 08:54:51,723 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 08:54:51,723 - 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-19 08:54:51,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2025-06-19 08:54:51,980 - INFO - Initial checks done. Running the testcase now
2025-06-19 08:54:51,980 - INFO -
2025-06-19 08:54:52,564 - DEBUG - Response for create_network : {'network': {'id': 'e17f897f-21ea-4c2d-81ce-cbd8b14eb108', 'name': 'ctest-vn-00969727', 'tenant_id': '1050271362874129ae8f4658099cfce5', 'project_id': '1050271362874129ae8f4658099cfce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09441752', 'ctest-vn-00969727'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:54:52,762 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad5ede92-9c69-415d-843d-62348181af84', 'name': '', 'tenant_id': '1050271362874129ae8f4658099cfce5', 'network_id': 'e17f897f-21ea-4c2d-81ce-cbd8b14eb108', 'ip_version': 4, 'cidr': '153.145.199.64/26', 'allocation_pools': [{'start': '153.145.199.66', 'end': '153.145.199.126'}], 'gateway_ip': '153.145.199.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.145.199.66', 'tags': [], 'project_id': '1050271362874129ae8f4658099cfce5'}}
2025-06-19 08:54:52,786 - INFO - Created VN ctest-vn-00969727
2025-06-19 08:54:52,838 - DEBUG - VN ctest-vn-00969727 UUID is e17f897f-21ea-4c2d-81ce-cbd8b14eb108
2025-06-19 08:54:53,171 - DEBUG - Response for create_network : {'network': {'id': 'cd642651-20eb-4906-99bf-8519ee266e40', 'name': 'ctest-vn-75495961', 'tenant_id': '1050271362874129ae8f4658099cfce5', 'project_id': '1050271362874129ae8f4658099cfce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09441752', 'ctest-vn-75495961'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:54:53,385 - DEBUG - Response for create_subnet : {'subnet': {'id': '135799cb-01bb-4be8-9be2-6d60cbcd5ca4', 'name': '', 'tenant_id': '1050271362874129ae8f4658099cfce5', 'network_id': 'cd642651-20eb-4906-99bf-8519ee266e40', 'ip_version': 4, 'cidr': '84.213.249.128/26', 'allocation_pools': [{'start': '84.213.249.130', 'end': '84.213.249.190'}], 'gateway_ip': '84.213.249.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.213.249.130', 'tags': [], 'project_id': '1050271362874129ae8f4658099cfce5'}}
2025-06-19 08:54:53,403 - INFO - Created VN ctest-vn-75495961
2025-06-19 08:54:53,458 - DEBUG - VN ctest-vn-75495961 UUID is cd642651-20eb-4906-99bf-8519ee266e40
2025-06-19 08:54:53,575 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-00969727, 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-09441752:ctest-vn-75495961, 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-19 08:54:53,888 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e17f897f-21ea-4c2d-81ce-cbd8b14eb108', 'name': 'ctest-vn-00969727', 'tenant_id': '1050271362874129ae8f4658099cfce5', 'project_id': '1050271362874129ae8f4658099cfce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad5ede92-9c69-415d-843d-62348181af84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09441752', 'ctest-vn-00969727'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09441752', 'ctest-policy-allow-all-11559272']], 'subnet_ipam': [{'subnet_cidr': '153.145.199.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:54:54,127 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd642651-20eb-4906-99bf-8519ee266e40', 'name': 'ctest-vn-75495961', 'tenant_id': '1050271362874129ae8f4658099cfce5', 'project_id': '1050271362874129ae8f4658099cfce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['135799cb-01bb-4be8-9be2-6d60cbcd5ca4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09441752', 'ctest-vn-75495961'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09441752', 'ctest-policy-allow-all-11559272']], 'subnet_ipam': [{'subnet_cidr': '84.213.249.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:54:54,306 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-19 08:54:54,610 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-19 08:54:54,639 - DEBUG - Requesting: http://10.0.0.19:8082/domain/408dd32d-7c76-46bb-a50e-934977827d89
2025-06-19 08:54:54,653 - DEBUG - Requesting: http://10.0.0.19:8082/project/10502713-6287-4129-ae8f-4658099cfce5
2025-06-19 08:54:54,729 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e17f897f-21ea-4c2d-81ce-cbd8b14eb108
2025-06-19 08:54:54,742 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e17f897f-21ea-4c2d-81ce-cbd8b14eb108
2025-06-19 08:54:54,753 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/706f0334-5e65-4fc8-a09a-ece420b0b341
2025-06-19 08:54:54,761 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/706f0334-5e65-4fc8-a09a-ece420b0b341
2025-06-19 08:54:54,769 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/080f087a-677a-455c-86c0-2bea8fdcbc29
2025-06-19 08:54:54,777 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 08:54:54,777 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e17f897f-21ea-4c2d-81ce-cbd8b14eb108
2025-06-19 08:54:54,787 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/706f0334-5e65-4fc8-a09a-ece420b0b341
2025-06-19 08:54:54,803 - INFO - Verified VN network id 8 for VN e17f897f-21ea-4c2d-81ce-cbd8b14eb108
2025-06-19 08:54:54,803 - INFO - Verifications in API Server for VN ctest-vn-00969727 passed
2025-06-19 08:54:54,803 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e17f897f-21ea-4c2d-81ce-cbd8b14eb108
2025-06-19 08:54:54,813 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/706f0334-5e65-4fc8-a09a-ece420b0b341
2025-06-19 08:54:54,821 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/706f0334-5e65-4fc8-a09a-ece420b0b341
2025-06-19 08:54:54,828 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/080f087a-677a-455c-86c0-2bea8fdcbc29
2025-06-19 08:54:54,843 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-00969727', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09441752', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16248857159698893869', 'uuid-lslong': '9353637607643197704'}, 'enable': 'true', 'created': '2025-06-19T08:54:52', 'last-modified': '2025-06-19T08:54:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987354'}
2025-06-19 08:54:54,850 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 08:54:54,850 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00969727 passed
2025-06-19 08:54:54,850 - DEBUG - ====Verifying policy data for ctest-vn-00969727 in API_Server ======
2025-06-19 08:54:54,851 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-19 08:54:54,857 - DEBUG - Requesting: http://10.0.0.19:8082/domain/408dd32d-7c76-46bb-a50e-934977827d89
2025-06-19 08:54:54,872 - DEBUG - Requesting: http://10.0.0.19:8082/project/10502713-6287-4129-ae8f-4658099cfce5
2025-06-19 08:54:54,946 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e17f897f-21ea-4c2d-81ce-cbd8b14eb108
2025-06-19 08:54:54,957 - DEBUG - ==>Verifying data for policy with id: fe2d89e8-315e-4362-8d7b-6c3b71335e90, fqn: ['default-domain', 'ctest-TestBasicPolicy-09441752', 'ctest-policy-allow-all-11559272']
2025-06-19 08:54:54,957 - INFO - VN ctest-vn-00969727 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 08:54:54,957 - DEBUG - Verifying the vn in opserver
2025-06-19 08:54:54,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-00969727 virtual network link through opserver 10.0.0.19
2025-06-19 08:54:54,957 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-19 08:54:55,249 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-19 08:54:55,315 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-00969727', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-00969727?flat'}
2025-06-19 08:54:55,315 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-00969727 is found in opserver
2025-06-19 08:54:55,328 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 08:54:55,334 - DEBUG - VRF ids for VN ctest-vn-00969727: {}
2025-06-19 08:54:55,334 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-19 08:54:55,347 - DEBUG - Requesting: http://10.0.0.19:8082/domain/408dd32d-7c76-46bb-a50e-934977827d89
2025-06-19 08:54:55,362 - DEBUG - Requesting: http://10.0.0.19:8082/project/10502713-6287-4129-ae8f-4658099cfce5
2025-06-19 08:54:55,442 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/cd642651-20eb-4906-99bf-8519ee266e40
2025-06-19 08:54:55,455 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/cd642651-20eb-4906-99bf-8519ee266e40
2025-06-19 08:54:55,465 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/38cd3aa0-a5c9-494c-a842-965e23d31ae0
2025-06-19 08:54:55,474 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/38cd3aa0-a5c9-494c-a842-965e23d31ae0
2025-06-19 08:54:55,483 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/59776a51-9bb8-4fe2-aef4-9ac0c755374d
2025-06-19 08:54:55,490 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 08:54:55,491 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/cd642651-20eb-4906-99bf-8519ee266e40
2025-06-19 08:54:55,504 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/38cd3aa0-a5c9-494c-a842-965e23d31ae0
2025-06-19 08:54:55,521 - INFO - Verified VN network id 9 for VN cd642651-20eb-4906-99bf-8519ee266e40
2025-06-19 08:54:55,521 - INFO - Verifications in API Server for VN ctest-vn-75495961 passed
2025-06-19 08:54:55,522 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/cd642651-20eb-4906-99bf-8519ee266e40
2025-06-19 08:54:55,532 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/38cd3aa0-a5c9-494c-a842-965e23d31ae0
2025-06-19 08:54:55,542 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/38cd3aa0-a5c9-494c-a842-965e23d31ae0
2025-06-19 08:54:55,551 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/59776a51-9bb8-4fe2-aef4-9ac0c755374d
2025-06-19 08:54:55,567 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-75495961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09441752', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14799996405332789510', 'uuid-lslong': '11078719954770882112'}, 'enable': 'true', 'created': '2025-06-19T08:54:53', 'last-modified': '2025-06-19T08:54:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.465896'}
2025-06-19 08:54:55,575 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 08:54:55,575 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75495961 passed
2025-06-19 08:54:55,575 - DEBUG - ====Verifying policy data for ctest-vn-75495961 in API_Server ======
2025-06-19 08:54:55,575 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-19 08:54:55,582 - DEBUG - Requesting: http://10.0.0.19:8082/domain/408dd32d-7c76-46bb-a50e-934977827d89
2025-06-19 08:54:55,596 - DEBUG - Requesting: http://10.0.0.19:8082/project/10502713-6287-4129-ae8f-4658099cfce5
2025-06-19 08:54:55,668 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/cd642651-20eb-4906-99bf-8519ee266e40
2025-06-19 08:54:55,682 - DEBUG - ==>Verifying data for policy with id: fe2d89e8-315e-4362-8d7b-6c3b71335e90, fqn: ['default-domain', 'ctest-TestBasicPolicy-09441752', 'ctest-policy-allow-all-11559272']
2025-06-19 08:54:55,682 - INFO - VN ctest-vn-75495961 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 08:54:55,682 - DEBUG - Verifying the vn in opserver
2025-06-19 08:54:55,683 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-75495961 virtual network link through opserver 10.0.0.19
2025-06-19 08:54:55,683 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-19 08:54:55,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-75495961', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-75495961?flat'}
2025-06-19 08:54:55,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09441752:ctest-vn-75495961 is found in opserver
2025-06-19 08:54:55,711 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 08:54:55,719 - DEBUG - VRF ids for VN ctest-vn-75495961: {}
2025-06-19 08:54:55,784 - DEBUG - Services list from nova: [