2025-07-03 02:14:21,565 - INFO - Domain Default found not creating
2025-07-03 02:14:21,726 - INFO - Project ctest-TestBasicPolicy-17118681 not found, creating it
2025-07-03 02:14:22,191 - INFO - Created Project:ctest-TestBasicPolicy-17118681, ID : ef2986ae-a97f-464f-8c52-4c695d4b8085
2025-07-03 02:14:23,647 - INFO - ================================================================================
2025-07-03 02:14:23,647 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-03 02:14:23,647 - 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-07-03 02:14:23,903 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with
2025-07-03 02:14:23,903 - INFO - Initial checks done. Running the testcase now
2025-07-03 02:14:23,903 - INFO -
2025-07-03 02:14:24,462 - DEBUG - Response for create_network : {'network': {'id': '1db225cb-170a-4041-95f0-c19aba5b3a1d', 'name': 'ctest-vn-72012264', 'tenant_id': 'ef2986aea97f464f8c524c695d4b8085', 'project_id': 'ef2986aea97f464f8c524c695d4b8085', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17118681', 'ctest-vn-72012264'], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:14:24,658 - DEBUG - Response for create_subnet : {'subnet': {'id': '974835d0-7832-4308-80e7-9a014b802b75', 'name': '', 'tenant_id': 'ef2986aea97f464f8c524c695d4b8085', 'network_id': '1db225cb-170a-4041-95f0-c19aba5b3a1d', 'ip_version': 4, 'cidr': '179.246.43.64/26', 'allocation_pools': [{'start': '179.246.43.66', 'end': '179.246.43.126'}], 'gateway_ip': '179.246.43.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.246.43.66', 'tags': [], 'project_id': 'ef2986aea97f464f8c524c695d4b8085'}}
2025-07-03 02:14:24,678 - INFO - Created VN ctest-vn-72012264
2025-07-03 02:14:24,741 - DEBUG - VN ctest-vn-72012264 UUID is 1db225cb-170a-4041-95f0-c19aba5b3a1d
2025-07-03 02:14:25,037 - DEBUG - Response for create_network : {'network': {'id': 'cae55693-c81f-4330-ad14-1ad9b8a17f8f', 'name': 'ctest-vn-78241808', 'tenant_id': 'ef2986aea97f464f8c524c695d4b8085', 'project_id': 'ef2986aea97f464f8c524c695d4b8085', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17118681', 'ctest-vn-78241808'], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:14:25,242 - DEBUG - Response for create_subnet : {'subnet': {'id': '691df2f8-bb77-4985-8c67-d91c70645e27', 'name': '', 'tenant_id': 'ef2986aea97f464f8c524c695d4b8085', 'network_id': 'cae55693-c81f-4330-ad14-1ad9b8a17f8f', 'ip_version': 4, 'cidr': '148.146.111.0/26', 'allocation_pools': [{'start': '148.146.111.2', 'end': '148.146.111.62'}], 'gateway_ip': '148.146.111.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.146.111.2', 'tags': [], 'project_id': 'ef2986aea97f464f8c524c695d4b8085'}}
2025-07-03 02:14:25,265 - INFO - Created VN ctest-vn-78241808
2025-07-03 02:14:25,321 - DEBUG - VN ctest-vn-78241808 UUID is cae55693-c81f-4330-ad14-1ad9b8a17f8f
2025-07-03 02:14:25,440 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-72012264, 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-17118681:ctest-vn-78241808, 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-07-03 02:14:25,779 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1db225cb-170a-4041-95f0-c19aba5b3a1d', 'name': 'ctest-vn-72012264', 'tenant_id': 'ef2986aea97f464f8c524c695d4b8085', 'project_id': 'ef2986aea97f464f8c524c695d4b8085', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['974835d0-7832-4308-80e7-9a014b802b75'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17118681', 'ctest-vn-72012264'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17118681', 'ctest-policy-allow-all-40227311']], 'subnet_ipam': [{'subnet_cidr': '179.246.43.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:14:26,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cae55693-c81f-4330-ad14-1ad9b8a17f8f', 'name': 'ctest-vn-78241808', 'tenant_id': 'ef2986aea97f464f8c524c695d4b8085', 'project_id': 'ef2986aea97f464f8c524c695d4b8085', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['691df2f8-bb77-4985-8c67-d91c70645e27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17118681', 'ctest-vn-78241808'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17118681', 'ctest-policy-allow-all-40227311']], 'subnet_ipam': [{'subnet_cidr': '148.146.111.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:14:26,193 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-03 02:14:26,488 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-03 02:14:26,518 - DEBUG - Requesting: http://10.0.0.33:8082/domain/67afbbb2-7bb6-42a3-98cc-dc44c2a894bc
2025-07-03 02:14:26,533 - DEBUG - Requesting: http://10.0.0.33:8082/project/ef2986ae-a97f-464f-8c52-4c695d4b8085
2025-07-03 02:14:26,632 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1db225cb-170a-4041-95f0-c19aba5b3a1d
2025-07-03 02:14:26,646 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1db225cb-170a-4041-95f0-c19aba5b3a1d
2025-07-03 02:14:26,658 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ee3b535-7102-4a2a-acd6-77d3f04c643d
2025-07-03 02:14:26,668 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ee3b535-7102-4a2a-acd6-77d3f04c643d
2025-07-03 02:14:26,676 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d1b4b385-5a12-4bd7-902a-d632ab7450ad
2025-07-03 02:14:26,683 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-03 02:14:26,683 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1db225cb-170a-4041-95f0-c19aba5b3a1d
2025-07-03 02:14:26,695 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ee3b535-7102-4a2a-acd6-77d3f04c643d
2025-07-03 02:14:26,716 - INFO - Verified VN network id 8 for VN 1db225cb-170a-4041-95f0-c19aba5b3a1d
2025-07-03 02:14:26,716 - INFO - Verifications in API Server for VN ctest-vn-72012264 passed
2025-07-03 02:14:26,716 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1db225cb-170a-4041-95f0-c19aba5b3a1d
2025-07-03 02:14:26,729 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ee3b535-7102-4a2a-acd6-77d3f04c643d
2025-07-03 02:14:26,739 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ee3b535-7102-4a2a-acd6-77d3f04c643d
2025-07-03 02:14:26,747 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d1b4b385-5a12-4bd7-902a-d632ab7450ad
2025-07-03 02:14:26,760 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-72012264', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17118681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2139814327149543489', 'uuid-lslong': '10804348376357485085'}, 'enable': 'true', 'created': '2025-07-03T02:14:24', 'last-modified': '2025-07-03T02:14:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015305'}
2025-07-03 02:14:26,767 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-03 02:14:26,767 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72012264 passed
2025-07-03 02:14:26,768 - DEBUG - ====Verifying policy data for ctest-vn-72012264 in API_Server ======
2025-07-03 02:14:26,768 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-03 02:14:26,774 - DEBUG - Requesting: http://10.0.0.33:8082/domain/67afbbb2-7bb6-42a3-98cc-dc44c2a894bc
2025-07-03 02:14:26,789 - DEBUG - Requesting: http://10.0.0.33:8082/project/ef2986ae-a97f-464f-8c52-4c695d4b8085
2025-07-03 02:14:26,866 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1db225cb-170a-4041-95f0-c19aba5b3a1d
2025-07-03 02:14:26,877 - DEBUG - ==>Verifying data for policy with id: 9f686428-20ee-4386-a93b-4ab269c81148, fqn: ['default-domain', 'ctest-TestBasicPolicy-17118681', 'ctest-policy-allow-all-40227311']
2025-07-03 02:14:26,877 - INFO - VN ctest-vn-72012264 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-03 02:14:26,877 - DEBUG - Verifying the vn in opserver
2025-07-03 02:14:26,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-72012264 virtual network link through opserver 10.0.0.33
2025-07-03 02:14:26,878 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-03 02:14:27,174 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-03 02:14:27,239 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-72012264', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-72012264?flat'}
2025-07-03 02:14:27,239 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-72012264 is found in opserver
2025-07-03 02:14:27,250 - DEBUG - Do not have enough data to verify VN in agent
2025-07-03 02:14:27,256 - DEBUG - VRF ids for VN ctest-vn-72012264: {}
2025-07-03 02:14:27,256 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-03 02:14:27,262 - DEBUG - Requesting: http://10.0.0.33:8082/domain/67afbbb2-7bb6-42a3-98cc-dc44c2a894bc
2025-07-03 02:14:27,277 - DEBUG - Requesting: http://10.0.0.33:8082/project/ef2986ae-a97f-464f-8c52-4c695d4b8085
2025-07-03 02:14:27,350 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cae55693-c81f-4330-ad14-1ad9b8a17f8f
2025-07-03 02:14:27,364 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cae55693-c81f-4330-ad14-1ad9b8a17f8f
2025-07-03 02:14:27,376 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b9fba20-3eec-47a0-b699-72e84e28d383
2025-07-03 02:14:27,384 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b9fba20-3eec-47a0-b699-72e84e28d383
2025-07-03 02:14:27,393 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b15d9c47-90db-4e09-a77f-414da7c19143
2025-07-03 02:14:27,402 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-03 02:14:27,403 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cae55693-c81f-4330-ad14-1ad9b8a17f8f
2025-07-03 02:14:27,416 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b9fba20-3eec-47a0-b699-72e84e28d383
2025-07-03 02:14:27,434 - INFO - Verified VN network id 9 for VN cae55693-c81f-4330-ad14-1ad9b8a17f8f
2025-07-03 02:14:27,434 - INFO - Verifications in API Server for VN ctest-vn-78241808 passed
2025-07-03 02:14:27,434 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cae55693-c81f-4330-ad14-1ad9b8a17f8f
2025-07-03 02:14:27,444 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b9fba20-3eec-47a0-b699-72e84e28d383
2025-07-03 02:14:27,452 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b9fba20-3eec-47a0-b699-72e84e28d383
2025-07-03 02:14:27,459 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b15d9c47-90db-4e09-a77f-414da7c19143
2025-07-03 02:14:27,472 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-78241808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17118681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14620186958045856560', 'uuid-lslong': '12471622790503563151'}, 'enable': 'true', 'created': '2025-07-03T02:14:25', 'last-modified': '2025-07-03T02:14:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479591'}
2025-07-03 02:14:27,480 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-03 02:14:27,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78241808 passed
2025-07-03 02:14:27,480 - DEBUG - ====Verifying policy data for ctest-vn-78241808 in API_Server ======
2025-07-03 02:14:27,480 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-03 02:14:27,487 - DEBUG - Requesting: http://10.0.0.33:8082/domain/67afbbb2-7bb6-42a3-98cc-dc44c2a894bc
2025-07-03 02:14:27,501 - DEBUG - Requesting: http://10.0.0.33:8082/project/ef2986ae-a97f-464f-8c52-4c695d4b8085
2025-07-03 02:14:27,581 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cae55693-c81f-4330-ad14-1ad9b8a17f8f
2025-07-03 02:14:27,594 - DEBUG - ==>Verifying data for policy with id: 9f686428-20ee-4386-a93b-4ab269c81148, fqn: ['default-domain', 'ctest-TestBasicPolicy-17118681', 'ctest-policy-allow-all-40227311']
2025-07-03 02:14:27,594 - INFO - VN ctest-vn-78241808 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-03 02:14:27,595 - DEBUG - Verifying the vn in opserver
2025-07-03 02:14:27,595 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-78241808 virtual network link through opserver 10.0.0.33
2025-07-03 02:14:27,595 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-03 02:14:27,609 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-78241808', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-78241808?flat'}
2025-07-03 02:14:27,609 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17118681:ctest-vn-78241808 is found in opserver
2025-07-03 02:14:27,623 - DEBUG - Do not have enough data to verify VN in agent
2025-07-03 02:14:27,629 - DEBUG - VRF ids for VN ctest-vn-78241808: {}
2025-07-03 02:14:27,692 - DEBUG - Services list from nova: [