2025-11-12 03:14:23,267 - INFO - Domain Default found not creating
2025-11-12 03:14:23,426 - INFO - Project ctest-TestBasicPolicy-97804517 not found, creating it
2025-11-12 03:14:23,894 - INFO - Created Project:ctest-TestBasicPolicy-97804517, ID : 8666b986-ce55-468a-bef0-5c43480e220b
2025-11-12 03:14:25,459 - INFO - ================================================================================
2025-11-12 03:14:25,459 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 03:14:25,459 - 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-11-12 03:14:25,720 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-11-12 03:14:25,720 - INFO - Initial checks done. Running the testcase now
2025-11-12 03:14:25,720 - INFO -
2025-11-12 03:14:26,338 - DEBUG - Response for create_network : {'network': {'id': '0a36683d-2e5f-4173-8900-7226be52e538', 'name': 'ctest-vn-76192077', 'tenant_id': '8666b986ce55468abef05c43480e220b', 'project_id': '8666b986ce55468abef05c43480e220b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97804517', 'ctest-vn-76192077'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 03:14:26,555 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9d87013-d5b4-44d3-b980-e53a8994add0', 'name': '', 'tenant_id': '8666b986ce55468abef05c43480e220b', 'network_id': '0a36683d-2e5f-4173-8900-7226be52e538', 'ip_version': 4, 'cidr': '150.245.166.192/26', 'allocation_pools': [{'start': '150.245.166.194', 'end': '150.245.166.254'}], 'gateway_ip': '150.245.166.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.245.166.194', 'tags': [], 'project_id': '8666b986ce55468abef05c43480e220b'}}
2025-11-12 03:14:26,578 - INFO - Created VN ctest-vn-76192077
2025-11-12 03:14:26,634 - DEBUG - VN ctest-vn-76192077 UUID is 0a36683d-2e5f-4173-8900-7226be52e538
2025-11-12 03:14:26,948 - DEBUG - Response for create_network : {'network': {'id': '6b3089be-3889-428b-a28b-92c54e45a66e', 'name': 'ctest-vn-30615241', 'tenant_id': '8666b986ce55468abef05c43480e220b', 'project_id': '8666b986ce55468abef05c43480e220b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97804517', 'ctest-vn-30615241'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 03:14:27,139 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2e0d4ae-0fe3-4b3d-ad77-dedc30b6c389', 'name': '', 'tenant_id': '8666b986ce55468abef05c43480e220b', 'network_id': '6b3089be-3889-428b-a28b-92c54e45a66e', 'ip_version': 4, 'cidr': '132.124.23.192/26', 'allocation_pools': [{'start': '132.124.23.194', 'end': '132.124.23.254'}], 'gateway_ip': '132.124.23.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.124.23.194', 'tags': [], 'project_id': '8666b986ce55468abef05c43480e220b'}}
2025-11-12 03:14:27,162 - INFO - Created VN ctest-vn-30615241
2025-11-12 03:14:27,218 - DEBUG - VN ctest-vn-30615241 UUID is 6b3089be-3889-428b-a28b-92c54e45a66e
2025-11-12 03:14:27,333 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-76192077, 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-97804517:ctest-vn-30615241, 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-11-12 03:14:27,617 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a36683d-2e5f-4173-8900-7226be52e538', 'name': 'ctest-vn-76192077', 'tenant_id': '8666b986ce55468abef05c43480e220b', 'project_id': '8666b986ce55468abef05c43480e220b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9d87013-d5b4-44d3-b980-e53a8994add0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97804517', 'ctest-vn-76192077'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97804517', 'ctest-policy-allow-all-77540696']], 'subnet_ipam': [{'subnet_cidr': '150.245.166.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 03:14:27,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b3089be-3889-428b-a28b-92c54e45a66e', 'name': 'ctest-vn-30615241', 'tenant_id': '8666b986ce55468abef05c43480e220b', 'project_id': '8666b986ce55468abef05c43480e220b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2e0d4ae-0fe3-4b3d-ad77-dedc30b6c389'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97804517', 'ctest-vn-30615241'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97804517', 'ctest-policy-allow-all-77540696']], 'subnet_ipam': [{'subnet_cidr': '132.124.23.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 03:14:28,006 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-12 03:14:28,348 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-12 03:14:28,381 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a8c13a3b-df6c-4946-80ad-716b1ed7a5a1
2025-11-12 03:14:28,394 - DEBUG - Requesting: http://10.0.0.249:8082/project/8666b986-ce55-468a-bef0-5c43480e220b
2025-11-12 03:14:28,469 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0a36683d-2e5f-4173-8900-7226be52e538
2025-11-12 03:14:28,481 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0a36683d-2e5f-4173-8900-7226be52e538
2025-11-12 03:14:28,492 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d5d8055a-1388-432d-95f5-b8fcd3836b85
2025-11-12 03:14:28,499 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d5d8055a-1388-432d-95f5-b8fcd3836b85
2025-11-12 03:14:28,507 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/50b43fdf-498a-4a9f-b1a0-e84aad4b0139
2025-11-12 03:14:28,513 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 03:14:28,513 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0a36683d-2e5f-4173-8900-7226be52e538
2025-11-12 03:14:28,522 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d5d8055a-1388-432d-95f5-b8fcd3836b85
2025-11-12 03:14:28,539 - INFO - Verified VN network id 11 for VN 0a36683d-2e5f-4173-8900-7226be52e538
2025-11-12 03:14:28,539 - INFO - Verifications in API Server for VN ctest-vn-76192077 passed
2025-11-12 03:14:28,539 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0a36683d-2e5f-4173-8900-7226be52e538
2025-11-12 03:14:28,548 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d5d8055a-1388-432d-95f5-b8fcd3836b85
2025-11-12 03:14:28,556 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d5d8055a-1388-432d-95f5-b8fcd3836b85
2025-11-12 03:14:28,563 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/50b43fdf-498a-4a9f-b1a0-e84aad4b0139
2025-11-12 03:14:28,575 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-76192077', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97804517', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '735890201101943155', 'uuid-lslong': '9872015893923554616'}, 'enable': 'true', 'created': '2025-11-12T03:14:26', 'last-modified': '2025-11-12T03:14:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977174'}
2025-11-12 03:14:28,581 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 03:14:28,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76192077 passed
2025-11-12 03:14:28,582 - DEBUG - ====Verifying policy data for ctest-vn-76192077 in API_Server ======
2025-11-12 03:14:28,582 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-12 03:14:28,588 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a8c13a3b-df6c-4946-80ad-716b1ed7a5a1
2025-11-12 03:14:28,600 - DEBUG - Requesting: http://10.0.0.249:8082/project/8666b986-ce55-468a-bef0-5c43480e220b
2025-11-12 03:14:28,674 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0a36683d-2e5f-4173-8900-7226be52e538
2025-11-12 03:14:28,683 - DEBUG - ==>Verifying data for policy with id: 6396647e-6d1f-4b2d-969e-9c52b29c340b, fqn: ['default-domain', 'ctest-TestBasicPolicy-97804517', 'ctest-policy-allow-all-77540696']
2025-11-12 03:14:28,684 - INFO - VN ctest-vn-76192077 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 03:14:28,684 - DEBUG - Verifying the vn in opserver
2025-11-12 03:14:28,684 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-76192077 virtual network link through opserver 10.0.0.249
2025-11-12 03:14:28,684 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-12 03:14:29,017 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-12 03:14:29,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-76192077', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-76192077?flat'}
2025-11-12 03:14:29,075 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-76192077 is found in opserver
2025-11-12 03:14:29,086 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 03:14:29,090 - DEBUG - VRF ids for VN ctest-vn-76192077: {}
2025-11-12 03:14:29,091 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-12 03:14:29,096 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a8c13a3b-df6c-4946-80ad-716b1ed7a5a1
2025-11-12 03:14:29,111 - DEBUG - Requesting: http://10.0.0.249:8082/project/8666b986-ce55-468a-bef0-5c43480e220b
2025-11-12 03:14:29,184 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b3089be-3889-428b-a28b-92c54e45a66e
2025-11-12 03:14:29,198 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b3089be-3889-428b-a28b-92c54e45a66e
2025-11-12 03:14:29,209 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/80f8e677-b060-488a-9131-cfcc3bac154c
2025-11-12 03:14:29,219 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/80f8e677-b060-488a-9131-cfcc3bac154c
2025-11-12 03:14:29,227 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/96e178db-60cc-4a73-95cf-8603ff23dd52
2025-11-12 03:14:29,236 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 03:14:29,236 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b3089be-3889-428b-a28b-92c54e45a66e
2025-11-12 03:14:29,247 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/80f8e677-b060-488a-9131-cfcc3bac154c
2025-11-12 03:14:29,262 - INFO - Verified VN network id 12 for VN 6b3089be-3889-428b-a28b-92c54e45a66e
2025-11-12 03:14:29,262 - INFO - Verifications in API Server for VN ctest-vn-30615241 passed
2025-11-12 03:14:29,262 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b3089be-3889-428b-a28b-92c54e45a66e
2025-11-12 03:14:29,272 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/80f8e677-b060-488a-9131-cfcc3bac154c
2025-11-12 03:14:29,279 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/80f8e677-b060-488a-9131-cfcc3bac154c
2025-11-12 03:14:29,287 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/96e178db-60cc-4a73-95cf-8603ff23dd52
2025-11-12 03:14:29,300 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-30615241', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97804517', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7723824811025711755', 'uuid-lslong': '11712616632026506862'}, 'enable': 'true', 'created': '2025-11-12T03:14:26', 'last-modified': '2025-11-12T03:14:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476658'}
2025-11-12 03:14:29,306 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 03:14:29,306 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30615241 passed
2025-11-12 03:14:29,307 - DEBUG - ====Verifying policy data for ctest-vn-30615241 in API_Server ======
2025-11-12 03:14:29,307 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-12 03:14:29,320 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a8c13a3b-df6c-4946-80ad-716b1ed7a5a1
2025-11-12 03:14:29,331 - DEBUG - Requesting: http://10.0.0.249:8082/project/8666b986-ce55-468a-bef0-5c43480e220b
2025-11-12 03:14:29,400 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b3089be-3889-428b-a28b-92c54e45a66e
2025-11-12 03:14:29,410 - DEBUG - ==>Verifying data for policy with id: 6396647e-6d1f-4b2d-969e-9c52b29c340b, fqn: ['default-domain', 'ctest-TestBasicPolicy-97804517', 'ctest-policy-allow-all-77540696']
2025-11-12 03:14:29,410 - INFO - VN ctest-vn-30615241 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 03:14:29,410 - DEBUG - Verifying the vn in opserver
2025-11-12 03:14:29,410 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-30615241 virtual network link through opserver 10.0.0.249
2025-11-12 03:14:29,410 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-12 03:14:29,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-30615241', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-30615241?flat'}
2025-11-12 03:14:29,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97804517:ctest-vn-30615241 is found in opserver
2025-11-12 03:14:29,430 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 03:14:29,435 - DEBUG - VRF ids for VN ctest-vn-30615241: {}
2025-11-12 03:14:29,502 - DEBUG - Services list from nova: [