2025-08-13 17:03:15,711 - INFO - Domain Default found not creating
2025-08-13 17:03:15,834 - INFO - Project ctest-TestBasicPolicy-47936457 not found, creating it
2025-08-13 17:03:16,258 - INFO - Created Project:ctest-TestBasicPolicy-47936457, ID : 8dfc31fc-54f5-402e-982f-95732f31f11a
2025-08-13 17:03:17,858 - INFO - ================================================================================
2025-08-13 17:03:17,858 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-13 17:03:17,859 - 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-13 17:03:18,124 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-08-13 17:03:18,124 - INFO - Initial checks done. Running the testcase now
2025-08-13 17:03:18,124 - INFO -
2025-08-13 17:03:18,631 - DEBUG - Response for create_network : {'network': {'id': '642844c1-9ab2-40fe-8680-1fdfee264634', 'name': 'ctest-vn-50657536', 'tenant_id': '8dfc31fc54f5402e982f95732f31f11a', 'project_id': '8dfc31fc54f5402e982f95732f31f11a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47936457', 'ctest-vn-50657536'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 17:03:18,795 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd288ede1-b695-4f15-a2a9-7cb301b60fd7', 'name': '', 'tenant_id': '8dfc31fc54f5402e982f95732f31f11a', 'network_id': '642844c1-9ab2-40fe-8680-1fdfee264634', 'ip_version': 4, 'cidr': '32.76.138.0/26', 'allocation_pools': [{'start': '32.76.138.2', 'end': '32.76.138.62'}], 'gateway_ip': '32.76.138.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.76.138.2', 'tags': [], 'project_id': '8dfc31fc54f5402e982f95732f31f11a'}}
2025-08-13 17:03:18,814 - INFO - Created VN ctest-vn-50657536
2025-08-13 17:03:18,868 - DEBUG - VN ctest-vn-50657536 UUID is 642844c1-9ab2-40fe-8680-1fdfee264634
2025-08-13 17:03:19,154 - DEBUG - Response for create_network : {'network': {'id': 'd109e5d1-db45-4630-ab85-4bad893caf61', 'name': 'ctest-vn-04674674', 'tenant_id': '8dfc31fc54f5402e982f95732f31f11a', 'project_id': '8dfc31fc54f5402e982f95732f31f11a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47936457', 'ctest-vn-04674674'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 17:03:19,391 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3637783-e432-4846-86c9-82db171863b0', 'name': '', 'tenant_id': '8dfc31fc54f5402e982f95732f31f11a', 'network_id': 'd109e5d1-db45-4630-ab85-4bad893caf61', 'ip_version': 4, 'cidr': '119.210.11.192/26', 'allocation_pools': [{'start': '119.210.11.194', 'end': '119.210.11.254'}], 'gateway_ip': '119.210.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.210.11.194', 'tags': [], 'project_id': '8dfc31fc54f5402e982f95732f31f11a'}}
2025-08-13 17:03:19,409 - INFO - Created VN ctest-vn-04674674
2025-08-13 17:03:19,464 - DEBUG - VN ctest-vn-04674674 UUID is d109e5d1-db45-4630-ab85-4bad893caf61
2025-08-13 17:03:19,611 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-50657536, 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-47936457:ctest-vn-04674674, 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-13 17:03:19,946 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '642844c1-9ab2-40fe-8680-1fdfee264634', 'name': 'ctest-vn-50657536', 'tenant_id': '8dfc31fc54f5402e982f95732f31f11a', 'project_id': '8dfc31fc54f5402e982f95732f31f11a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d288ede1-b695-4f15-a2a9-7cb301b60fd7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47936457', 'ctest-vn-50657536'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47936457', 'ctest-policy-allow-all-19969000']], 'subnet_ipam': [{'subnet_cidr': '32.76.138.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 17:03:20,187 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd109e5d1-db45-4630-ab85-4bad893caf61', 'name': 'ctest-vn-04674674', 'tenant_id': '8dfc31fc54f5402e982f95732f31f11a', 'project_id': '8dfc31fc54f5402e982f95732f31f11a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3637783-e432-4846-86c9-82db171863b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47936457', 'ctest-vn-04674674'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47936457', 'ctest-policy-allow-all-19969000']], 'subnet_ipam': [{'subnet_cidr': '119.210.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 17:03:20,336 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-13 17:03:20,630 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-13 17:03:20,661 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7924a9f0-fc1e-4053-b166-d1cb1c326ffd
2025-08-13 17:03:20,673 - DEBUG - Requesting: http://10.0.0.254:8082/project/8dfc31fc-54f5-402e-982f-95732f31f11a
2025-08-13 17:03:20,747 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/642844c1-9ab2-40fe-8680-1fdfee264634
2025-08-13 17:03:20,760 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/642844c1-9ab2-40fe-8680-1fdfee264634
2025-08-13 17:03:20,768 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/148b0cc1-50f9-46f3-b228-42191be55897
2025-08-13 17:03:20,775 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/148b0cc1-50f9-46f3-b228-42191be55897
2025-08-13 17:03:20,782 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/889fc189-2242-4e09-a51d-fb4060c482a5
2025-08-13 17:03:20,788 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 17:03:20,788 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/642844c1-9ab2-40fe-8680-1fdfee264634
2025-08-13 17:03:20,797 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/148b0cc1-50f9-46f3-b228-42191be55897
2025-08-13 17:03:20,810 - INFO - Verified VN network id 11 for VN 642844c1-9ab2-40fe-8680-1fdfee264634
2025-08-13 17:03:20,810 - INFO - Verifications in API Server for VN ctest-vn-50657536 passed
2025-08-13 17:03:20,810 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/642844c1-9ab2-40fe-8680-1fdfee264634
2025-08-13 17:03:20,821 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/148b0cc1-50f9-46f3-b228-42191be55897
2025-08-13 17:03:20,828 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/148b0cc1-50f9-46f3-b228-42191be55897
2025-08-13 17:03:20,835 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/889fc189-2242-4e09-a51d-fb4060c482a5
2025-08-13 17:03:20,846 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-50657536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47936457', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7217094001175970046', 'uuid-lslong': '9691781444734961204'}, 'enable': 'true', 'created': '2025-08-13T17:03:18', 'last-modified': '2025-08-13T17:03:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947620'}
2025-08-13 17:03:20,851 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 17:03:20,851 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50657536 passed
2025-08-13 17:03:20,851 - DEBUG - ====Verifying policy data for ctest-vn-50657536 in API_Server ======
2025-08-13 17:03:20,851 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-13 17:03:20,859 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7924a9f0-fc1e-4053-b166-d1cb1c326ffd
2025-08-13 17:03:20,871 - DEBUG - Requesting: http://10.0.0.254:8082/project/8dfc31fc-54f5-402e-982f-95732f31f11a
2025-08-13 17:03:20,952 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/642844c1-9ab2-40fe-8680-1fdfee264634
2025-08-13 17:03:20,962 - DEBUG - ==>Verifying data for policy with id: e1dbd551-c624-445e-9056-13e66b7cb7e4, fqn: ['default-domain', 'ctest-TestBasicPolicy-47936457', 'ctest-policy-allow-all-19969000']
2025-08-13 17:03:20,962 - INFO - VN ctest-vn-50657536 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 17:03:20,962 - DEBUG - Verifying the vn in opserver
2025-08-13 17:03:20,962 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-50657536 virtual network link through opserver 10.0.0.254
2025-08-13 17:03:20,962 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-13 17:03:21,254 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-13 17:03:21,303 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-50657536', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-50657536?flat'}
2025-08-13 17:03:21,303 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-50657536 is found in opserver
2025-08-13 17:03:21,315 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 17:03:21,322 - DEBUG - VRF ids for VN ctest-vn-50657536: {}
2025-08-13 17:03:21,322 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-13 17:03:21,327 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7924a9f0-fc1e-4053-b166-d1cb1c326ffd
2025-08-13 17:03:21,337 - DEBUG - Requesting: http://10.0.0.254:8082/project/8dfc31fc-54f5-402e-982f-95732f31f11a
2025-08-13 17:03:21,410 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d109e5d1-db45-4630-ab85-4bad893caf61
2025-08-13 17:03:21,425 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d109e5d1-db45-4630-ab85-4bad893caf61
2025-08-13 17:03:21,436 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2df4379c-25b4-4643-9202-0b68ef234d45
2025-08-13 17:03:21,443 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2df4379c-25b4-4643-9202-0b68ef234d45
2025-08-13 17:03:21,450 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e6c982da-ed93-4296-af59-f251932c3684
2025-08-13 17:03:21,457 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 17:03:21,457 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d109e5d1-db45-4630-ab85-4bad893caf61
2025-08-13 17:03:21,468 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2df4379c-25b4-4643-9202-0b68ef234d45
2025-08-13 17:03:21,483 - INFO - Verified VN network id 12 for VN d109e5d1-db45-4630-ab85-4bad893caf61
2025-08-13 17:03:21,483 - INFO - Verifications in API Server for VN ctest-vn-04674674 passed
2025-08-13 17:03:21,483 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d109e5d1-db45-4630-ab85-4bad893caf61
2025-08-13 17:03:21,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2df4379c-25b4-4643-9202-0b68ef234d45
2025-08-13 17:03:21,501 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2df4379c-25b4-4643-9202-0b68ef234d45
2025-08-13 17:03:21,508 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e6c982da-ed93-4296-af59-f251932c3684
2025-08-13 17:03:21,520 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-04674674', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47936457', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15062823118207010352', 'uuid-lslong': '12359367961092075361'}, 'enable': 'true', 'created': '2025-08-13T17:03:19', 'last-modified': '2025-08-13T17:03:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.356221'}
2025-08-13 17:03:21,526 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 17:03:21,526 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04674674 passed
2025-08-13 17:03:21,526 - DEBUG - ====Verifying policy data for ctest-vn-04674674 in API_Server ======
2025-08-13 17:03:21,526 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-13 17:03:21,532 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7924a9f0-fc1e-4053-b166-d1cb1c326ffd
2025-08-13 17:03:21,546 - DEBUG - Requesting: http://10.0.0.254:8082/project/8dfc31fc-54f5-402e-982f-95732f31f11a
2025-08-13 17:03:21,625 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d109e5d1-db45-4630-ab85-4bad893caf61
2025-08-13 17:03:21,638 - DEBUG - ==>Verifying data for policy with id: e1dbd551-c624-445e-9056-13e66b7cb7e4, fqn: ['default-domain', 'ctest-TestBasicPolicy-47936457', 'ctest-policy-allow-all-19969000']
2025-08-13 17:03:21,638 - INFO - VN ctest-vn-04674674 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 17:03:21,639 - DEBUG - Verifying the vn in opserver
2025-08-13 17:03:21,639 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-04674674 virtual network link through opserver 10.0.0.254
2025-08-13 17:03:21,639 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-13 17:03:21,648 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-04674674', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-04674674?flat'}
2025-08-13 17:03:21,648 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47936457:ctest-vn-04674674 is found in opserver
2025-08-13 17:03:21,657 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 17:03:21,663 - DEBUG - VRF ids for VN ctest-vn-04674674: {}
2025-08-13 17:03:21,719 - DEBUG - Services list from nova: [