2025-08-14 02:05:12,883 - INFO - Domain Default found not creating
2025-08-14 02:05:13,035 - INFO - Project ctest-TestBasicPolicy-60245747 not found, creating it
2025-08-14 02:05:13,477 - INFO - Created Project:ctest-TestBasicPolicy-60245747, ID : 7b415a21-4433-4933-bf38-50ac3d1dccd2
2025-08-14 02:05:14,953 - INFO - ================================================================================
2025-08-14 02:05:14,953 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-14 02:05:14,953 - 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-08-14 02:05:15,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-08-14 02:05:15,209 - INFO - Initial checks done. Running the testcase now
2025-08-14 02:05:15,210 - INFO -
2025-08-14 02:05:15,745 - DEBUG - Response for create_network : {'network': {'id': 'fdccf5c4-9804-4934-b62c-2db8e1051d87', 'name': 'ctest-vn-12568315', 'tenant_id': '7b415a2144334933bf3850ac3d1dccd2', 'project_id': '7b415a2144334933bf3850ac3d1dccd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60245747', 'ctest-vn-12568315'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 02:05:15,934 - DEBUG - Response for create_subnet : {'subnet': {'id': '87ba7a37-c83a-4729-88e1-7b8f0a43e133', 'name': '', 'tenant_id': '7b415a2144334933bf3850ac3d1dccd2', 'network_id': 'fdccf5c4-9804-4934-b62c-2db8e1051d87', 'ip_version': 4, 'cidr': '99.72.149.0/26', 'allocation_pools': [{'start': '99.72.149.2', 'end': '99.72.149.62'}], 'gateway_ip': '99.72.149.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.72.149.2', 'tags': [], 'project_id': '7b415a2144334933bf3850ac3d1dccd2'}}
2025-08-14 02:05:15,953 - INFO - Created VN ctest-vn-12568315
2025-08-14 02:05:16,008 - DEBUG - VN ctest-vn-12568315 UUID is fdccf5c4-9804-4934-b62c-2db8e1051d87
2025-08-14 02:05:16,340 - DEBUG - Response for create_network : {'network': {'id': 'e537bce7-0e64-4e07-a7fe-22142d3208cd', 'name': 'ctest-vn-44904535', 'tenant_id': '7b415a2144334933bf3850ac3d1dccd2', 'project_id': '7b415a2144334933bf3850ac3d1dccd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60245747', 'ctest-vn-44904535'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 02:05:16,540 - DEBUG - Response for create_subnet : {'subnet': {'id': '034942f2-90f1-4a19-8232-366e347e24f4', 'name': '', 'tenant_id': '7b415a2144334933bf3850ac3d1dccd2', 'network_id': 'e537bce7-0e64-4e07-a7fe-22142d3208cd', 'ip_version': 4, 'cidr': '50.151.81.64/26', 'allocation_pools': [{'start': '50.151.81.66', 'end': '50.151.81.126'}], 'gateway_ip': '50.151.81.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.151.81.66', 'tags': [], 'project_id': '7b415a2144334933bf3850ac3d1dccd2'}}
2025-08-14 02:05:16,558 - INFO - Created VN ctest-vn-44904535
2025-08-14 02:05:16,612 - DEBUG - VN ctest-vn-44904535 UUID is e537bce7-0e64-4e07-a7fe-22142d3208cd
2025-08-14 02:05:16,723 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-12568315, 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-60245747:ctest-vn-44904535, 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-08-14 02:05:17,006 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fdccf5c4-9804-4934-b62c-2db8e1051d87', 'name': 'ctest-vn-12568315', 'tenant_id': '7b415a2144334933bf3850ac3d1dccd2', 'project_id': '7b415a2144334933bf3850ac3d1dccd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87ba7a37-c83a-4729-88e1-7b8f0a43e133'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60245747', 'ctest-vn-12568315'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60245747', 'ctest-policy-allow-all-34798687']], 'subnet_ipam': [{'subnet_cidr': '99.72.149.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 02:05:17,246 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e537bce7-0e64-4e07-a7fe-22142d3208cd', 'name': 'ctest-vn-44904535', 'tenant_id': '7b415a2144334933bf3850ac3d1dccd2', 'project_id': '7b415a2144334933bf3850ac3d1dccd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['034942f2-90f1-4a19-8232-366e347e24f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60245747', 'ctest-vn-44904535'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60245747', 'ctest-policy-allow-all-34798687']], 'subnet_ipam': [{'subnet_cidr': '50.151.81.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 02:05:17,444 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-14 02:05:17,742 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-14 02:05:17,771 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5857e3c6-2d3a-4b17-9399-2a57870ab094
2025-08-14 02:05:17,786 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b415a21-4433-4933-bf38-50ac3d1dccd2
2025-08-14 02:05:17,860 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdccf5c4-9804-4934-b62c-2db8e1051d87
2025-08-14 02:05:17,871 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdccf5c4-9804-4934-b62c-2db8e1051d87
2025-08-14 02:05:17,880 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fcda856-1e86-41e5-bb1a-a5fee9a65fd3
2025-08-14 02:05:17,887 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fcda856-1e86-41e5-bb1a-a5fee9a65fd3
2025-08-14 02:05:17,894 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4dd55c3a-da43-4cee-873a-e4850a63d199
2025-08-14 02:05:17,901 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 02:05:17,901 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdccf5c4-9804-4934-b62c-2db8e1051d87
2025-08-14 02:05:17,910 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fcda856-1e86-41e5-bb1a-a5fee9a65fd3
2025-08-14 02:05:17,922 - INFO - Verified VN network id 12 for VN fdccf5c4-9804-4934-b62c-2db8e1051d87
2025-08-14 02:05:17,923 - INFO - Verifications in API Server for VN ctest-vn-12568315 passed
2025-08-14 02:05:17,923 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdccf5c4-9804-4934-b62c-2db8e1051d87
2025-08-14 02:05:17,932 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fcda856-1e86-41e5-bb1a-a5fee9a65fd3
2025-08-14 02:05:17,939 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fcda856-1e86-41e5-bb1a-a5fee9a65fd3
2025-08-14 02:05:17,946 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4dd55c3a-da43-4cee-873a-e4850a63d199
2025-08-14 02:05:17,958 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-12568315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60245747', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18288262411557554484', 'uuid-lslong': '13126917285950594439'}, 'enable': 'true', 'created': '2025-08-14T02:05:15', 'last-modified': '2025-08-14T02:05:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968272'}
2025-08-14 02:05:17,964 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 02:05:17,964 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12568315 passed
2025-08-14 02:05:17,965 - DEBUG - ====Verifying policy data for ctest-vn-12568315 in API_Server ======
2025-08-14 02:05:17,965 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-14 02:05:17,970 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5857e3c6-2d3a-4b17-9399-2a57870ab094
2025-08-14 02:05:17,982 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b415a21-4433-4933-bf38-50ac3d1dccd2
2025-08-14 02:05:18,056 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdccf5c4-9804-4934-b62c-2db8e1051d87
2025-08-14 02:05:18,066 - DEBUG - ==>Verifying data for policy with id: 3d21e3d6-92c0-4cc5-911f-0866377ad57e, fqn: ['default-domain', 'ctest-TestBasicPolicy-60245747', 'ctest-policy-allow-all-34798687']
2025-08-14 02:05:18,066 - INFO - VN ctest-vn-12568315 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 02:05:18,066 - DEBUG - Verifying the vn in opserver
2025-08-14 02:05:18,066 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-12568315 virtual network link through opserver 10.0.0.50
2025-08-14 02:05:18,066 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-14 02:05:18,355 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-14 02:05:18,406 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-12568315', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-12568315?flat'}
2025-08-14 02:05:18,406 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-12568315 is found in opserver
2025-08-14 02:05:18,416 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 02:05:18,421 - DEBUG - VRF ids for VN ctest-vn-12568315: {}
2025-08-14 02:05:18,421 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-14 02:05:18,427 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5857e3c6-2d3a-4b17-9399-2a57870ab094
2025-08-14 02:05:18,438 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b415a21-4433-4933-bf38-50ac3d1dccd2
2025-08-14 02:05:18,506 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e537bce7-0e64-4e07-a7fe-22142d3208cd
2025-08-14 02:05:18,518 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e537bce7-0e64-4e07-a7fe-22142d3208cd
2025-08-14 02:05:18,528 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9dc8efc5-7dbe-44b3-b03b-7ec12f7542f4
2025-08-14 02:05:18,537 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9dc8efc5-7dbe-44b3-b03b-7ec12f7542f4
2025-08-14 02:05:18,544 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b40605a-3534-4db4-970d-8ebac36ccb70
2025-08-14 02:05:18,552 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 02:05:18,552 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e537bce7-0e64-4e07-a7fe-22142d3208cd
2025-08-14 02:05:18,562 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9dc8efc5-7dbe-44b3-b03b-7ec12f7542f4
2025-08-14 02:05:18,582 - INFO - Verified VN network id 13 for VN e537bce7-0e64-4e07-a7fe-22142d3208cd
2025-08-14 02:05:18,582 - INFO - Verifications in API Server for VN ctest-vn-44904535 passed
2025-08-14 02:05:18,582 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e537bce7-0e64-4e07-a7fe-22142d3208cd
2025-08-14 02:05:18,592 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9dc8efc5-7dbe-44b3-b03b-7ec12f7542f4
2025-08-14 02:05:18,600 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9dc8efc5-7dbe-44b3-b03b-7ec12f7542f4
2025-08-14 02:05:18,607 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b40605a-3534-4db4-970d-8ebac36ccb70
2025-08-14 02:05:18,620 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-44904535', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60245747', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16516877858969505287', 'uuid-lslong': '12105150318471416013'}, 'enable': 'true', 'created': '2025-08-14T02:05:16', 'last-modified': '2025-08-14T02:05:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399545'}
2025-08-14 02:05:18,626 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 02:05:18,626 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44904535 passed
2025-08-14 02:05:18,626 - DEBUG - ====Verifying policy data for ctest-vn-44904535 in API_Server ======
2025-08-14 02:05:18,626 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-14 02:05:18,632 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5857e3c6-2d3a-4b17-9399-2a57870ab094
2025-08-14 02:05:18,644 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b415a21-4433-4933-bf38-50ac3d1dccd2
2025-08-14 02:05:18,718 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e537bce7-0e64-4e07-a7fe-22142d3208cd
2025-08-14 02:05:18,728 - DEBUG - ==>Verifying data for policy with id: 3d21e3d6-92c0-4cc5-911f-0866377ad57e, fqn: ['default-domain', 'ctest-TestBasicPolicy-60245747', 'ctest-policy-allow-all-34798687']
2025-08-14 02:05:18,728 - INFO - VN ctest-vn-44904535 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 02:05:18,728 - DEBUG - Verifying the vn in opserver
2025-08-14 02:05:18,728 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-44904535 virtual network link through opserver 10.0.0.50
2025-08-14 02:05:18,728 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-14 02:05:18,739 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-44904535', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-44904535?flat'}
2025-08-14 02:05:18,739 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60245747:ctest-vn-44904535 is found in opserver
2025-08-14 02:05:18,750 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 02:05:18,755 - DEBUG - VRF ids for VN ctest-vn-44904535: {}
2025-08-14 02:05:18,810 - DEBUG - Services list from nova: [