2025-06-24 08:20:01,767 - INFO - Domain Default found not creating
2025-06-24 08:20:01,912 - INFO - Project ctest-TestBasicPolicy-63557987 not found, creating it
2025-06-24 08:20:02,400 - INFO - Created Project:ctest-TestBasicPolicy-63557987, ID : 2192d533-7b58-4fb4-b5aa-c39e6c447aa0
2025-06-24 08:20:03,882 - INFO - ================================================================================
2025-06-24 08:20:03,882 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 08:20:03,882 - 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-24 08:20:04,137 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-24 08:20:04,137 - INFO - Initial checks done. Running the testcase now
2025-06-24 08:20:04,138 - INFO -
2025-06-24 08:20:04,714 - DEBUG - Response for create_network : {'network': {'id': 'b66ba374-8727-4fdb-84ac-4709ac69c92b', 'name': 'ctest-vn-74674935', 'tenant_id': '2192d5337b584fb4b5aac39e6c447aa0', 'project_id': '2192d5337b584fb4b5aac39e6c447aa0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63557987', 'ctest-vn-74674935'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 08:20:04,862 - DEBUG - Response for create_subnet : {'subnet': {'id': '195c342b-a516-405a-8098-2e4215dc2d09', 'name': '', 'tenant_id': '2192d5337b584fb4b5aac39e6c447aa0', 'network_id': 'b66ba374-8727-4fdb-84ac-4709ac69c92b', 'ip_version': 4, 'cidr': '88.74.72.192/26', 'allocation_pools': [{'start': '88.74.72.194', 'end': '88.74.72.254'}], 'gateway_ip': '88.74.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.74.72.194', 'tags': [], 'project_id': '2192d5337b584fb4b5aac39e6c447aa0'}}
2025-06-24 08:20:04,879 - INFO - Created VN ctest-vn-74674935
2025-06-24 08:20:04,930 - DEBUG - VN ctest-vn-74674935 UUID is b66ba374-8727-4fdb-84ac-4709ac69c92b
2025-06-24 08:20:05,232 - DEBUG - Response for create_network : {'network': {'id': 'aceac293-e627-4e26-b7d5-bfc07c45e8b5', 'name': 'ctest-vn-49215765', 'tenant_id': '2192d5337b584fb4b5aac39e6c447aa0', 'project_id': '2192d5337b584fb4b5aac39e6c447aa0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63557987', 'ctest-vn-49215765'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 08:20:05,382 - DEBUG - Response for create_subnet : {'subnet': {'id': '26ad9218-892c-4c6d-8dc3-1e1535847d27', 'name': '', 'tenant_id': '2192d5337b584fb4b5aac39e6c447aa0', 'network_id': 'aceac293-e627-4e26-b7d5-bfc07c45e8b5', 'ip_version': 4, 'cidr': '97.174.119.0/26', 'allocation_pools': [{'start': '97.174.119.2', 'end': '97.174.119.62'}], 'gateway_ip': '97.174.119.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.174.119.2', 'tags': [], 'project_id': '2192d5337b584fb4b5aac39e6c447aa0'}}
2025-06-24 08:20:05,402 - INFO - Created VN ctest-vn-49215765
2025-06-24 08:20:05,454 - DEBUG - VN ctest-vn-49215765 UUID is aceac293-e627-4e26-b7d5-bfc07c45e8b5
2025-06-24 08:20:05,650 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-74674935, 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-63557987:ctest-vn-49215765, 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-24 08:20:05,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b66ba374-8727-4fdb-84ac-4709ac69c92b', 'name': 'ctest-vn-74674935', 'tenant_id': '2192d5337b584fb4b5aac39e6c447aa0', 'project_id': '2192d5337b584fb4b5aac39e6c447aa0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['195c342b-a516-405a-8098-2e4215dc2d09'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63557987', 'ctest-vn-74674935'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63557987', 'ctest-policy-allow-all-87549427']], 'subnet_ipam': [{'subnet_cidr': '88.74.72.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 08:20:06,197 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aceac293-e627-4e26-b7d5-bfc07c45e8b5', 'name': 'ctest-vn-49215765', 'tenant_id': '2192d5337b584fb4b5aac39e6c447aa0', 'project_id': '2192d5337b584fb4b5aac39e6c447aa0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['26ad9218-892c-4c6d-8dc3-1e1535847d27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63557987', 'ctest-vn-49215765'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63557987', 'ctest-policy-allow-all-87549427']], 'subnet_ipam': [{'subnet_cidr': '97.174.119.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 08:20:06,342 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 08:20:06,639 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 08:20:06,676 - DEBUG - Requesting: http://10.0.0.254:8082/domain/14210f07-1765-43e6-a2d7-50969d466334
2025-06-24 08:20:06,690 - DEBUG - Requesting: http://10.0.0.254:8082/project/2192d533-7b58-4fb4-b5aa-c39e6c447aa0
2025-06-24 08:20:06,768 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b66ba374-8727-4fdb-84ac-4709ac69c92b
2025-06-24 08:20:06,782 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b66ba374-8727-4fdb-84ac-4709ac69c92b
2025-06-24 08:20:06,798 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc441d65-a58e-40ad-aeaa-8dc40249c6c8
2025-06-24 08:20:06,807 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc441d65-a58e-40ad-aeaa-8dc40249c6c8
2025-06-24 08:20:06,816 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/18325c9b-8fe2-4e25-ad76-16773e28468c
2025-06-24 08:20:06,824 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 08:20:06,825 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b66ba374-8727-4fdb-84ac-4709ac69c92b
2025-06-24 08:20:06,837 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc441d65-a58e-40ad-aeaa-8dc40249c6c8
2025-06-24 08:20:06,854 - INFO - Verified VN network id 8 for VN b66ba374-8727-4fdb-84ac-4709ac69c92b
2025-06-24 08:20:06,854 - INFO - Verifications in API Server for VN ctest-vn-74674935 passed
2025-06-24 08:20:06,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b66ba374-8727-4fdb-84ac-4709ac69c92b
2025-06-24 08:20:06,866 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc441d65-a58e-40ad-aeaa-8dc40249c6c8
2025-06-24 08:20:06,876 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc441d65-a58e-40ad-aeaa-8dc40249c6c8
2025-06-24 08:20:06,883 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/18325c9b-8fe2-4e25-ad76-16773e28468c
2025-06-24 08:20:06,897 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-74674935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63557987', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13144779658289958875', 'uuid-lslong': '9560094215873612075'}, 'enable': 'true', 'created': '2025-06-24T08:20:04', 'last-modified': '2025-06-24T08:20:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.973617'}
2025-06-24 08:20:06,904 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 08:20:06,904 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74674935 passed
2025-06-24 08:20:06,904 - DEBUG - ====Verifying policy data for ctest-vn-74674935 in API_Server ======
2025-06-24 08:20:06,904 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 08:20:06,910 - DEBUG - Requesting: http://10.0.0.254:8082/domain/14210f07-1765-43e6-a2d7-50969d466334
2025-06-24 08:20:06,924 - DEBUG - Requesting: http://10.0.0.254:8082/project/2192d533-7b58-4fb4-b5aa-c39e6c447aa0
2025-06-24 08:20:07,002 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b66ba374-8727-4fdb-84ac-4709ac69c92b
2025-06-24 08:20:07,014 - DEBUG - ==>Verifying data for policy with id: 4f130bfa-8612-48b8-8799-c47b53518277, fqn: ['default-domain', 'ctest-TestBasicPolicy-63557987', 'ctest-policy-allow-all-87549427']
2025-06-24 08:20:07,014 - INFO - VN ctest-vn-74674935 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 08:20:07,014 - DEBUG - Verifying the vn in opserver
2025-06-24 08:20:07,014 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-74674935 virtual network link through opserver 10.0.0.254
2025-06-24 08:20:07,014 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-24 08:20:07,304 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-24 08:20:07,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-74674935', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-74674935?flat'}
2025-06-24 08:20:07,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-74674935 is found in opserver
2025-06-24 08:20:07,368 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 08:20:07,372 - DEBUG - VRF ids for VN ctest-vn-74674935: {}
2025-06-24 08:20:07,372 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 08:20:07,378 - DEBUG - Requesting: http://10.0.0.254:8082/domain/14210f07-1765-43e6-a2d7-50969d466334
2025-06-24 08:20:07,393 - DEBUG - Requesting: http://10.0.0.254:8082/project/2192d533-7b58-4fb4-b5aa-c39e6c447aa0
2025-06-24 08:20:07,470 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aceac293-e627-4e26-b7d5-bfc07c45e8b5
2025-06-24 08:20:07,484 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aceac293-e627-4e26-b7d5-bfc07c45e8b5
2025-06-24 08:20:07,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/135ac3b9-f82f-495e-adc8-a604c1bccea7
2025-06-24 08:20:07,501 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/135ac3b9-f82f-495e-adc8-a604c1bccea7
2025-06-24 08:20:07,509 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4ae5c8b1-1416-43b9-b5d7-29f7ae14c93a
2025-06-24 08:20:07,516 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 08:20:07,516 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aceac293-e627-4e26-b7d5-bfc07c45e8b5
2025-06-24 08:20:07,525 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/135ac3b9-f82f-495e-adc8-a604c1bccea7
2025-06-24 08:20:07,540 - INFO - Verified VN network id 9 for VN aceac293-e627-4e26-b7d5-bfc07c45e8b5
2025-06-24 08:20:07,540 - INFO - Verifications in API Server for VN ctest-vn-49215765 passed
2025-06-24 08:20:07,540 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aceac293-e627-4e26-b7d5-bfc07c45e8b5
2025-06-24 08:20:07,551 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/135ac3b9-f82f-495e-adc8-a604c1bccea7
2025-06-24 08:20:07,559 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/135ac3b9-f82f-495e-adc8-a604c1bccea7
2025-06-24 08:20:07,567 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4ae5c8b1-1416-43b9-b5d7-29f7ae14c93a
2025-06-24 08:20:07,581 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-49215765', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63557987', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12459985259551215142', 'uuid-lslong': '13246704712419764405'}, 'enable': 'true', 'created': '2025-06-24T08:20:05', 'last-modified': '2025-06-24T08:20:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.408756'}
2025-06-24 08:20:07,587 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 08:20:07,587 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49215765 passed
2025-06-24 08:20:07,588 - DEBUG - ====Verifying policy data for ctest-vn-49215765 in API_Server ======
2025-06-24 08:20:07,588 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 08:20:07,594 - DEBUG - Requesting: http://10.0.0.254:8082/domain/14210f07-1765-43e6-a2d7-50969d466334
2025-06-24 08:20:07,606 - DEBUG - Requesting: http://10.0.0.254:8082/project/2192d533-7b58-4fb4-b5aa-c39e6c447aa0
2025-06-24 08:20:07,680 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aceac293-e627-4e26-b7d5-bfc07c45e8b5
2025-06-24 08:20:07,693 - DEBUG - ==>Verifying data for policy with id: 4f130bfa-8612-48b8-8799-c47b53518277, fqn: ['default-domain', 'ctest-TestBasicPolicy-63557987', 'ctest-policy-allow-all-87549427']
2025-06-24 08:20:07,693 - INFO - VN ctest-vn-49215765 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 08:20:07,693 - DEBUG - Verifying the vn in opserver
2025-06-24 08:20:07,693 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-49215765 virtual network link through opserver 10.0.0.254
2025-06-24 08:20:07,693 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-24 08:20:07,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-49215765', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-49215765?flat'}
2025-06-24 08:20:07,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63557987:ctest-vn-49215765 is found in opserver
2025-06-24 08:20:07,713 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 08:20:07,718 - DEBUG - VRF ids for VN ctest-vn-49215765: {}
2025-06-24 08:20:07,774 - DEBUG - Services list from nova: [