2025-06-23 08:15:13,508 - INFO - Domain Default found not creating
2025-06-23 08:15:13,684 - INFO - Project ctest-TestBasicPolicy-07869813 not found, creating it
2025-06-23 08:15:14,186 - INFO - Created Project:ctest-TestBasicPolicy-07869813, ID : 909b1db7-6fd7-4eed-9025-9b4bab3c216b
2025-06-23 08:15:15,653 - INFO - ================================================================================
2025-06-23 08:15:15,653 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 08:15:15,653 - 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-23 08:15:15,910 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-23 08:15:15,910 - INFO - Initial checks done. Running the testcase now
2025-06-23 08:15:15,910 - INFO -
2025-06-23 08:15:16,497 - DEBUG - Response for create_network : {'network': {'id': 'a4d89ae9-745c-4d56-80fe-0fbad971fbd5', 'name': 'ctest-vn-51021771', 'tenant_id': '909b1db76fd74eed90259b4bab3c216b', 'project_id': '909b1db76fd74eed90259b4bab3c216b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07869813', 'ctest-vn-51021771'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 08:15:16,699 - DEBUG - Response for create_subnet : {'subnet': {'id': '8947c023-af62-45c3-9b6b-f470bddace26', 'name': '', 'tenant_id': '909b1db76fd74eed90259b4bab3c216b', 'network_id': 'a4d89ae9-745c-4d56-80fe-0fbad971fbd5', 'ip_version': 4, 'cidr': '109.226.180.192/26', 'allocation_pools': [{'start': '109.226.180.194', 'end': '109.226.180.254'}], 'gateway_ip': '109.226.180.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.226.180.194', 'tags': [], 'project_id': '909b1db76fd74eed90259b4bab3c216b'}}
2025-06-23 08:15:16,719 - INFO - Created VN ctest-vn-51021771
2025-06-23 08:15:16,772 - DEBUG - VN ctest-vn-51021771 UUID is a4d89ae9-745c-4d56-80fe-0fbad971fbd5
2025-06-23 08:15:17,104 - DEBUG - Response for create_network : {'network': {'id': '035d0a64-88c5-405a-af7e-07b29198213b', 'name': 'ctest-vn-47544798', 'tenant_id': '909b1db76fd74eed90259b4bab3c216b', 'project_id': '909b1db76fd74eed90259b4bab3c216b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07869813', 'ctest-vn-47544798'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 08:15:17,286 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eaade527-1721-4186-aac6-da4e36d25bc5', 'name': '', 'tenant_id': '909b1db76fd74eed90259b4bab3c216b', 'network_id': '035d0a64-88c5-405a-af7e-07b29198213b', 'ip_version': 4, 'cidr': '185.207.247.128/26', 'allocation_pools': [{'start': '185.207.247.130', 'end': '185.207.247.190'}], 'gateway_ip': '185.207.247.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.207.247.130', 'tags': [], 'project_id': '909b1db76fd74eed90259b4bab3c216b'}}
2025-06-23 08:15:17,438 - INFO - Created VN ctest-vn-47544798
2025-06-23 08:15:17,492 - DEBUG - VN ctest-vn-47544798 UUID is 035d0a64-88c5-405a-af7e-07b29198213b
2025-06-23 08:15:17,606 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-51021771, 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-07869813:ctest-vn-47544798, 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-23 08:15:17,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4d89ae9-745c-4d56-80fe-0fbad971fbd5', 'name': 'ctest-vn-51021771', 'tenant_id': '909b1db76fd74eed90259b4bab3c216b', 'project_id': '909b1db76fd74eed90259b4bab3c216b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8947c023-af62-45c3-9b6b-f470bddace26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07869813', 'ctest-vn-51021771'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07869813', 'ctest-policy-allow-all-55347773']], 'subnet_ipam': [{'subnet_cidr': '109.226.180.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 08:15:18,164 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '035d0a64-88c5-405a-af7e-07b29198213b', 'name': 'ctest-vn-47544798', 'tenant_id': '909b1db76fd74eed90259b4bab3c216b', 'project_id': '909b1db76fd74eed90259b4bab3c216b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eaade527-1721-4186-aac6-da4e36d25bc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07869813', 'ctest-vn-47544798'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07869813', 'ctest-policy-allow-all-55347773']], 'subnet_ipam': [{'subnet_cidr': '185.207.247.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 08:15:18,336 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 08:15:18,633 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 08:15:18,661 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0044fada-e9e3-450a-8c0d-4f26ba462a6b
2025-06-23 08:15:18,674 - DEBUG - Requesting: http://10.0.0.254:8082/project/909b1db7-6fd7-4eed-9025-9b4bab3c216b
2025-06-23 08:15:18,752 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4d89ae9-745c-4d56-80fe-0fbad971fbd5
2025-06-23 08:15:18,764 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4d89ae9-745c-4d56-80fe-0fbad971fbd5
2025-06-23 08:15:18,777 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a4f1bb8-3f7c-4f06-bd18-89e72cdfa53a
2025-06-23 08:15:18,788 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a4f1bb8-3f7c-4f06-bd18-89e72cdfa53a
2025-06-23 08:15:18,798 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1e4aa28b-20e1-46b7-986b-6970cf46f642
2025-06-23 08:15:18,806 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 08:15:18,806 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4d89ae9-745c-4d56-80fe-0fbad971fbd5
2025-06-23 08:15:18,818 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a4f1bb8-3f7c-4f06-bd18-89e72cdfa53a
2025-06-23 08:15:18,835 - INFO - Verified VN network id 8 for VN a4d89ae9-745c-4d56-80fe-0fbad971fbd5
2025-06-23 08:15:18,835 - INFO - Verifications in API Server for VN ctest-vn-51021771 passed
2025-06-23 08:15:18,835 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4d89ae9-745c-4d56-80fe-0fbad971fbd5
2025-06-23 08:15:18,847 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a4f1bb8-3f7c-4f06-bd18-89e72cdfa53a
2025-06-23 08:15:18,858 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a4f1bb8-3f7c-4f06-bd18-89e72cdfa53a
2025-06-23 08:15:18,867 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1e4aa28b-20e1-46b7-986b-6970cf46f642
2025-06-23 08:15:18,885 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-51021771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07869813', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11878414344659946838', 'uuid-lslong': '9294883976125742037'}, 'enable': 'true', 'created': '2025-06-23T08:15:16', 'last-modified': '2025-06-23T08:15:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989345'}
2025-06-23 08:15:18,893 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 08:15:18,894 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51021771 passed
2025-06-23 08:15:18,894 - DEBUG - ====Verifying policy data for ctest-vn-51021771 in API_Server ======
2025-06-23 08:15:18,894 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 08:15:18,901 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0044fada-e9e3-450a-8c0d-4f26ba462a6b
2025-06-23 08:15:18,929 - DEBUG - Requesting: http://10.0.0.254:8082/project/909b1db7-6fd7-4eed-9025-9b4bab3c216b
2025-06-23 08:15:19,009 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4d89ae9-745c-4d56-80fe-0fbad971fbd5
2025-06-23 08:15:19,021 - DEBUG - ==>Verifying data for policy with id: fc22cff0-7b9e-445d-b6ed-e373950ca632, fqn: ['default-domain', 'ctest-TestBasicPolicy-07869813', 'ctest-policy-allow-all-55347773']
2025-06-23 08:15:19,021 - INFO - VN ctest-vn-51021771 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 08:15:19,021 - DEBUG - Verifying the vn in opserver
2025-06-23 08:15:19,021 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-51021771 virtual network link through opserver 10.0.0.254
2025-06-23 08:15:19,021 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 08:15:19,322 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 08:15:19,386 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-51021771', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-51021771?flat'}
2025-06-23 08:15:19,386 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-51021771 is found in opserver
2025-06-23 08:15:19,396 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 08:15:19,401 - DEBUG - VRF ids for VN ctest-vn-51021771: {}
2025-06-23 08:15:19,401 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 08:15:19,407 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0044fada-e9e3-450a-8c0d-4f26ba462a6b
2025-06-23 08:15:19,419 - DEBUG - Requesting: http://10.0.0.254:8082/project/909b1db7-6fd7-4eed-9025-9b4bab3c216b
2025-06-23 08:15:19,499 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/035d0a64-88c5-405a-af7e-07b29198213b
2025-06-23 08:15:19,514 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/035d0a64-88c5-405a-af7e-07b29198213b
2025-06-23 08:15:19,526 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f33a955d-bfbe-4e75-bfc6-211edc7815a4
2025-06-23 08:15:19,535 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f33a955d-bfbe-4e75-bfc6-211edc7815a4
2025-06-23 08:15:19,543 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d1185790-bb6f-4f66-b093-40fe6eb8cf02
2025-06-23 08:15:19,550 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 08:15:19,551 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/035d0a64-88c5-405a-af7e-07b29198213b
2025-06-23 08:15:19,562 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f33a955d-bfbe-4e75-bfc6-211edc7815a4
2025-06-23 08:15:19,579 - INFO - Verified VN network id 9 for VN 035d0a64-88c5-405a-af7e-07b29198213b
2025-06-23 08:15:19,579 - INFO - Verifications in API Server for VN ctest-vn-47544798 passed
2025-06-23 08:15:19,579 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/035d0a64-88c5-405a-af7e-07b29198213b
2025-06-23 08:15:19,590 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f33a955d-bfbe-4e75-bfc6-211edc7815a4
2025-06-23 08:15:19,598 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f33a955d-bfbe-4e75-bfc6-211edc7815a4
2025-06-23 08:15:19,606 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d1185790-bb6f-4f66-b093-40fe6eb8cf02
2025-06-23 08:15:19,620 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-47544798', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07869813', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '242361381855510618', 'uuid-lslong': '12645553267231170875'}, 'enable': 'true', 'created': '2025-06-23T08:15:17', 'last-modified': '2025-06-23T08:15:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.482417'}
2025-06-23 08:15:19,627 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 08:15:19,627 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47544798 passed
2025-06-23 08:15:19,627 - DEBUG - ====Verifying policy data for ctest-vn-47544798 in API_Server ======
2025-06-23 08:15:19,627 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 08:15:19,634 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0044fada-e9e3-450a-8c0d-4f26ba462a6b
2025-06-23 08:15:19,649 - DEBUG - Requesting: http://10.0.0.254:8082/project/909b1db7-6fd7-4eed-9025-9b4bab3c216b
2025-06-23 08:15:19,729 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/035d0a64-88c5-405a-af7e-07b29198213b
2025-06-23 08:15:19,739 - DEBUG - ==>Verifying data for policy with id: fc22cff0-7b9e-445d-b6ed-e373950ca632, fqn: ['default-domain', 'ctest-TestBasicPolicy-07869813', 'ctest-policy-allow-all-55347773']
2025-06-23 08:15:19,739 - INFO - VN ctest-vn-47544798 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 08:15:19,739 - DEBUG - Verifying the vn in opserver
2025-06-23 08:15:19,739 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-47544798 virtual network link through opserver 10.0.0.254
2025-06-23 08:15:19,739 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 08:15:19,751 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-47544798', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-47544798?flat'}
2025-06-23 08:15:19,751 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07869813:ctest-vn-47544798 is found in opserver
2025-06-23 08:15:19,765 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 08:15:19,772 - DEBUG - VRF ids for VN ctest-vn-47544798: {}
2025-06-23 08:15:19,827 - DEBUG - Services list from nova: [