2025-04-23 17:09:09,292 - INFO - Domain Default found not creating
2025-04-23 17:09:09,419 - INFO - Project ctest-TestBasicPolicy-79226274 not found, creating it
2025-04-23 17:09:09,849 - INFO - Created Project:ctest-TestBasicPolicy-79226274, ID : 7033606f-d9a2-4b33-829a-97beb59f03d5
2025-04-23 17:09:11,185 - INFO - ================================================================================
2025-04-23 17:09:11,185 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 17:09:11,186 - 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-04-23 17:09:11,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with
2025-04-23 17:09:11,441 - INFO - Initial checks done. Running the testcase now
2025-04-23 17:09:11,441 - INFO -
2025-04-23 17:09:11,958 - DEBUG - Response for create_network : {'network': {'id': '10f1d7d4-5548-4052-8f7f-844336af2be0', 'name': 'ctest-vn-73481417', 'tenant_id': '7033606fd9a24b33829a97beb59f03d5', 'project_id': '7033606fd9a24b33829a97beb59f03d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79226274', 'ctest-vn-73481417'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 17:09:12,111 - DEBUG - Response for create_subnet : {'subnet': {'id': '6cc00738-dc1b-41ca-9d8d-6b5c138696d1', 'name': '', 'tenant_id': '7033606fd9a24b33829a97beb59f03d5', 'network_id': '10f1d7d4-5548-4052-8f7f-844336af2be0', 'ip_version': 4, 'cidr': '122.206.193.192/26', 'allocation_pools': [{'start': '122.206.193.194', 'end': '122.206.193.254'}], 'gateway_ip': '122.206.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.206.193.194', 'tags': [], 'project_id': '7033606fd9a24b33829a97beb59f03d5'}}
2025-04-23 17:09:12,128 - INFO - Created VN ctest-vn-73481417
2025-04-23 17:09:12,181 - DEBUG - VN ctest-vn-73481417 UUID is 10f1d7d4-5548-4052-8f7f-844336af2be0
2025-04-23 17:09:12,488 - DEBUG - Response for create_network : {'network': {'id': '73da47a6-3ad1-400f-9a85-b85c8ae147a5', 'name': 'ctest-vn-93244449', 'tenant_id': '7033606fd9a24b33829a97beb59f03d5', 'project_id': '7033606fd9a24b33829a97beb59f03d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79226274', 'ctest-vn-93244449'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 17:09:12,633 - DEBUG - Response for create_subnet : {'subnet': {'id': '1eab5b7f-5166-4795-b0f1-f0026cc2e2af', 'name': '', 'tenant_id': '7033606fd9a24b33829a97beb59f03d5', 'network_id': '73da47a6-3ad1-400f-9a85-b85c8ae147a5', 'ip_version': 4, 'cidr': '80.124.150.128/26', 'allocation_pools': [{'start': '80.124.150.130', 'end': '80.124.150.190'}], 'gateway_ip': '80.124.150.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.124.150.130', 'tags': [], 'project_id': '7033606fd9a24b33829a97beb59f03d5'}}
2025-04-23 17:09:12,649 - INFO - Created VN ctest-vn-93244449
2025-04-23 17:09:12,701 - DEBUG - VN ctest-vn-93244449 UUID is 73da47a6-3ad1-400f-9a85-b85c8ae147a5
2025-04-23 17:09:12,845 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-73481417, 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-79226274:ctest-vn-93244449, 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-04-23 17:09:13,162 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10f1d7d4-5548-4052-8f7f-844336af2be0', 'name': 'ctest-vn-73481417', 'tenant_id': '7033606fd9a24b33829a97beb59f03d5', 'project_id': '7033606fd9a24b33829a97beb59f03d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6cc00738-dc1b-41ca-9d8d-6b5c138696d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79226274', 'ctest-vn-73481417'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79226274', 'ctest-policy-allow-all-85240498']], 'subnet_ipam': [{'subnet_cidr': '122.206.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 17:09:13,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73da47a6-3ad1-400f-9a85-b85c8ae147a5', 'name': 'ctest-vn-93244449', 'tenant_id': '7033606fd9a24b33829a97beb59f03d5', 'project_id': '7033606fd9a24b33829a97beb59f03d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1eab5b7f-5166-4795-b0f1-f0026cc2e2af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79226274', 'ctest-vn-93244449'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79226274', 'ctest-policy-allow-all-85240498']], 'subnet_ipam': [{'subnet_cidr': '80.124.150.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 17:09:13,493 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 17:09:13,798 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 17:09:13,825 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a951b5f7-ebdb-40f2-9a45-a38c2f5bcea4
2025-04-23 17:09:13,835 - DEBUG - Requesting: http://10.0.0.33:8082/project/7033606f-d9a2-4b33-829a-97beb59f03d5
2025-04-23 17:09:13,904 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10f1d7d4-5548-4052-8f7f-844336af2be0
2025-04-23 17:09:13,913 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10f1d7d4-5548-4052-8f7f-844336af2be0
2025-04-23 17:09:13,921 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77458e57-3348-4ed5-8820-40c5500fdd58
2025-04-23 17:09:13,926 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77458e57-3348-4ed5-8820-40c5500fdd58
2025-04-23 17:09:13,932 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/75e38b47-a00f-47a5-9a9e-db9d63d1d6c6
2025-04-23 17:09:13,937 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 17:09:13,937 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10f1d7d4-5548-4052-8f7f-844336af2be0
2025-04-23 17:09:13,947 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77458e57-3348-4ed5-8820-40c5500fdd58
2025-04-23 17:09:13,961 - INFO - Verified VN network id 8 for VN 10f1d7d4-5548-4052-8f7f-844336af2be0
2025-04-23 17:09:13,961 - INFO - Verifications in API Server for VN ctest-vn-73481417 passed
2025-04-23 17:09:13,961 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10f1d7d4-5548-4052-8f7f-844336af2be0
2025-04-23 17:09:13,970 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77458e57-3348-4ed5-8820-40c5500fdd58
2025-04-23 17:09:13,975 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/77458e57-3348-4ed5-8820-40c5500fdd58
2025-04-23 17:09:13,980 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/75e38b47-a00f-47a5-9a9e-db9d63d1d6c6
2025-04-23 17:09:13,991 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-73481417', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79226274', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1220994280957952082', 'uuid-lslong': '10340128693681073120'}, 'enable': 'true', 'created': '2025-04-23T17:09:11', 'last-modified': '2025-04-23T17:09:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.857874'}
2025-04-23 17:09:13,996 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 17:09:13,997 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73481417 passed
2025-04-23 17:09:13,997 - DEBUG - ====Verifying policy data for ctest-vn-73481417 in API_Server ======
2025-04-23 17:09:13,997 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 17:09:14,001 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a951b5f7-ebdb-40f2-9a45-a38c2f5bcea4
2025-04-23 17:09:14,011 - DEBUG - Requesting: http://10.0.0.33:8082/project/7033606f-d9a2-4b33-829a-97beb59f03d5
2025-04-23 17:09:14,076 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10f1d7d4-5548-4052-8f7f-844336af2be0
2025-04-23 17:09:14,086 - DEBUG - ==>Verifying data for policy with id: 522797c6-e41e-4951-a9d5-2c7b1c0f1547, fqn: ['default-domain', 'ctest-TestBasicPolicy-79226274', 'ctest-policy-allow-all-85240498']
2025-04-23 17:09:14,086 - INFO - VN ctest-vn-73481417 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 17:09:14,086 - DEBUG - Verifying the vn in opserver
2025-04-23 17:09:14,087 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-73481417 virtual network link through opserver 10.0.0.33
2025-04-23 17:09:14,087 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-23 17:09:14,381 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-23 17:09:14,428 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-73481417', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-73481417?flat'}
2025-04-23 17:09:14,428 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-73481417 is found in opserver
2025-04-23 17:09:14,438 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 17:09:14,442 - DEBUG - VRF ids for VN ctest-vn-73481417: {}
2025-04-23 17:09:14,442 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 17:09:14,447 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a951b5f7-ebdb-40f2-9a45-a38c2f5bcea4
2025-04-23 17:09:14,457 - DEBUG - Requesting: http://10.0.0.33:8082/project/7033606f-d9a2-4b33-829a-97beb59f03d5
2025-04-23 17:09:14,530 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/73da47a6-3ad1-400f-9a85-b85c8ae147a5
2025-04-23 17:09:14,546 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/73da47a6-3ad1-400f-9a85-b85c8ae147a5
2025-04-23 17:09:14,554 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4786fb-7d04-470d-b41f-9737a8a59330
2025-04-23 17:09:14,559 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4786fb-7d04-470d-b41f-9737a8a59330
2025-04-23 17:09:14,565 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ac587404-ad1e-4a6e-b4f4-ede4619c461a
2025-04-23 17:09:14,570 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 17:09:14,570 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/73da47a6-3ad1-400f-9a85-b85c8ae147a5
2025-04-23 17:09:14,578 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4786fb-7d04-470d-b41f-9737a8a59330
2025-04-23 17:09:14,590 - INFO - Verified VN network id 9 for VN 73da47a6-3ad1-400f-9a85-b85c8ae147a5
2025-04-23 17:09:14,590 - INFO - Verifications in API Server for VN ctest-vn-93244449 passed
2025-04-23 17:09:14,590 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/73da47a6-3ad1-400f-9a85-b85c8ae147a5
2025-04-23 17:09:14,600 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4786fb-7d04-470d-b41f-9737a8a59330
2025-04-23 17:09:14,607 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4786fb-7d04-470d-b41f-9737a8a59330
2025-04-23 17:09:14,613 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ac587404-ad1e-4a6e-b4f4-ede4619c461a
2025-04-23 17:09:14,623 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-93244449', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79226274', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8348063638561570831', 'uuid-lslong': '11134508361349941157'}, 'enable': 'true', 'created': '2025-04-23T17:09:12', 'last-modified': '2025-04-23T17:09:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.261275'}
2025-04-23 17:09:14,628 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 17:09:14,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93244449 passed
2025-04-23 17:09:14,628 - DEBUG - ====Verifying policy data for ctest-vn-93244449 in API_Server ======
2025-04-23 17:09:14,628 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 17:09:14,633 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a951b5f7-ebdb-40f2-9a45-a38c2f5bcea4
2025-04-23 17:09:14,642 - DEBUG - Requesting: http://10.0.0.33:8082/project/7033606f-d9a2-4b33-829a-97beb59f03d5
2025-04-23 17:09:14,716 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/73da47a6-3ad1-400f-9a85-b85c8ae147a5
2025-04-23 17:09:14,724 - DEBUG - ==>Verifying data for policy with id: 522797c6-e41e-4951-a9d5-2c7b1c0f1547, fqn: ['default-domain', 'ctest-TestBasicPolicy-79226274', 'ctest-policy-allow-all-85240498']
2025-04-23 17:09:14,724 - INFO - VN ctest-vn-93244449 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 17:09:14,724 - DEBUG - Verifying the vn in opserver
2025-04-23 17:09:14,724 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-93244449 virtual network link through opserver 10.0.0.33
2025-04-23 17:09:14,724 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-23 17:09:14,732 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-93244449', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-93244449?flat'}
2025-04-23 17:09:14,732 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79226274:ctest-vn-93244449 is found in opserver
2025-04-23 17:09:14,741 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 17:09:14,745 - DEBUG - VRF ids for VN ctest-vn-93244449: {}
2025-04-23 17:09:14,793 - DEBUG - Services list from nova: [