2025-10-17 22:47:49,841 - INFO - Reading existing Domain with UUID c2fab7b5-42f0-4b0e-a131-4c62931bf465
2025-10-17 22:47:49,851 - INFO - Using existing domain ['admin_domain'](c2fab7b5-42f0-4b0e-a131-4c62931bf465)
2025-10-17 22:47:50,063 - INFO - Project ctest-TestBasicPolicy-50155816 not found, creating it
2025-10-17 22:47:50,584 - INFO - Created Project:ctest-TestBasicPolicy-50155816, ID : 5ce71d09-b3c7-43a7-b8c7-f37e5a880833 
2025-10-17 22:47:52,342 - INFO - ================================================================================
2025-10-17 22:47:52,343 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-17 22:47:52,343 - 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-10-17 22:47:52,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.0.0.131': '0'}} with
2025-10-17 22:47:52,732 - INFO - Initial checks done. Running the testcase now
2025-10-17 22:47:52,732 - INFO - 
2025-10-17 22:47:53,528 - DEBUG - Response for create_network : {'network': {'id': '0d42cee1-e66f-4821-a638-ef854fa7be7e', 'name': 'ctest-vn-83070546', 'tenant_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'project_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-50155816', 'ctest-vn-83070546'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-17 22:47:53,780 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd90f54f0-01a9-469d-baba-40d2668ca90f', 'name': '', 'tenant_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'network_id': '0d42cee1-e66f-4821-a638-ef854fa7be7e', 'ip_version': 4, 'cidr': '180.204.128.128/26', 'allocation_pools': [{'start': '180.204.128.130', 'end': '180.204.128.190'}], 'gateway_ip': '180.204.128.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-17T22:47:53.647912', 'updated_at': '2025-10-17T22:47:53.647912', 'dns_server_address': '180.204.128.130', 'tags': [], 'project_id': '5ce71d09b3c743a7b8c7f37e5a880833'}}
2025-10-17 22:47:53,852 - INFO - Created VN ctest-vn-83070546
2025-10-17 22:47:53,907 - DEBUG - VN ctest-vn-83070546 UUID is 0d42cee1-e66f-4821-a638-ef854fa7be7e
2025-10-17 22:47:54,437 - DEBUG - Response for create_network : {'network': {'id': 'bf1b2b96-7a7b-48c2-bd20-76462af0902b', 'name': 'ctest-vn-69085258', 'tenant_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'project_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-50155816', 'ctest-vn-69085258'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-17 22:47:54,727 - DEBUG - Response for create_subnet : {'subnet': {'id': '19f0ce3d-bc20-42f8-b77a-412c02652b33', 'name': '', 'tenant_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'network_id': 'bf1b2b96-7a7b-48c2-bd20-76462af0902b', 'ip_version': 4, 'cidr': '91.156.136.128/26', 'allocation_pools': [{'start': '91.156.136.130', 'end': '91.156.136.190'}], 'gateway_ip': '91.156.136.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-17T22:47:54.609832', 'updated_at': '2025-10-17T22:47:54.609832', 'dns_server_address': '91.156.136.130', 'tags': [], 'project_id': '5ce71d09b3c743a7b8c7f37e5a880833'}}
2025-10-17 22:47:54,792 - INFO - Created VN ctest-vn-69085258
2025-10-17 22:47:54,846 - DEBUG - VN ctest-vn-69085258 UUID is bf1b2b96-7a7b-48c2-bd20-76462af0902b
2025-10-17 22:47:55,059 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-83070546, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-69085258, 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-10-17 22:47:55,482 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d42cee1-e66f-4821-a638-ef854fa7be7e', 'name': 'ctest-vn-83070546', 'tenant_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'project_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d90f54f0-01a9-469d-baba-40d2668ca90f'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-50155816', 'ctest-vn-83070546'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-50155816', 'ctest-policy-allow-all-89121172']], 'subnet_ipam': [{'subnet_cidr': '180.204.128.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-17T22:47:53.452959', 'updated_at': '2025-10-17T22:47:53.665350'}}
2025-10-17 22:47:55,870 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf1b2b96-7a7b-48c2-bd20-76462af0902b', 'name': 'ctest-vn-69085258', 'tenant_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'project_id': '5ce71d09b3c743a7b8c7f37e5a880833', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19f0ce3d-bc20-42f8-b77a-412c02652b33'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-50155816', 'ctest-vn-69085258'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-50155816', 'ctest-policy-allow-all-89121172']], 'subnet_ipam': [{'subnet_cidr': '91.156.136.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-17T22:47:54.361647', 'updated_at': '2025-10-17T22:47:54.630570'}}
2025-10-17 22:47:56,051 - DEBUG - Requesting: https://10.0.0.131:8082/domains
2025-10-17 22:47:56,392 - DEBUG - Requesting: https://10.0.0.131:8082/domains
2025-10-17 22:47:56,476 - DEBUG - Requesting: https://10.0.0.131:8082/domain/c2fab7b5-42f0-4b0e-a131-4c62931bf465
2025-10-17 22:47:56,540 - DEBUG - Requesting: https://10.0.0.131:8082/project/5ce71d09-b3c7-43a7-b8c7-f37e5a880833
2025-10-17 22:47:56,620 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/0d42cee1-e66f-4821-a638-ef854fa7be7e
2025-10-17 22:47:56,676 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/0d42cee1-e66f-4821-a638-ef854fa7be7e
2025-10-17 22:47:56,740 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/586e3e71-6dee-42e0-9c72-9673fb62cdde
2025-10-17 22:47:56,800 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/586e3e71-6dee-42e0-9c72-9673fb62cdde
2025-10-17 22:47:56,855 - DEBUG - Requesting: https://10.0.0.131:8082/route-target/e68fac33-e2bf-437a-847c-a3212cf59317
2025-10-17 22:47:56,907 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-17 22:47:56,907 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/0d42cee1-e66f-4821-a638-ef854fa7be7e
2025-10-17 22:47:56,968 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/586e3e71-6dee-42e0-9c72-9673fb62cdde
2025-10-17 22:47:57,032 - INFO - Verified VN network id 10 for VN 0d42cee1-e66f-4821-a638-ef854fa7be7e
2025-10-17 22:47:57,032 - INFO - Verifications in API Server for VN ctest-vn-83070546 passed
2025-10-17 22:47:57,032 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/0d42cee1-e66f-4821-a638-ef854fa7be7e
2025-10-17 22:47:57,088 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/586e3e71-6dee-42e0-9c72-9673fb62cdde
2025-10-17 22:47:57,140 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/586e3e71-6dee-42e0-9c72-9673fb62cdde
2025-10-17 22:47:57,192 - DEBUG - Requesting: https://10.0.0.131:8082/route-target/e68fac33-e2bf-437a-847c-a3212cf59317
2025-10-17 22:47:57,300 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-83070546', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50155816', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '955553540584982561', 'uuid-lslong': '11977586564837916286'}, 'enable': 'true', 'created': '2025-10-17T22:47:53', 'last-modified': '2025-10-17T22:47:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.840853'}
2025-10-17 22:47:57,353 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-17 22:47:57,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83070546 passed
2025-10-17 22:47:57,353 - DEBUG - ====Verifying policy data for ctest-vn-83070546 in API_Server ======
2025-10-17 22:47:57,353 - DEBUG - Requesting: https://10.0.0.131:8082/domains
2025-10-17 22:47:57,407 - DEBUG - Requesting: https://10.0.0.131:8082/domain/c2fab7b5-42f0-4b0e-a131-4c62931bf465
2025-10-17 22:47:57,468 - DEBUG - Requesting: https://10.0.0.131:8082/project/5ce71d09-b3c7-43a7-b8c7-f37e5a880833
2025-10-17 22:47:57,544 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/0d42cee1-e66f-4821-a638-ef854fa7be7e
2025-10-17 22:47:57,604 - DEBUG - ==>Verifying data for policy with id: 87808062-1a97-43bf-a9d4-156efe910f85, fqn: ['admin_domain', 'ctest-TestBasicPolicy-50155816', 'ctest-policy-allow-all-89121172']
2025-10-17 22:47:57,604 - INFO - VN ctest-vn-83070546 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-17 22:47:57,604 - DEBUG - Verifying the vn in opserver
2025-10-17 22:47:57,604 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-83070546 virtual network link  through opserver 10.0.0.131
2025-10-17 22:47:57,605 - DEBUG - Requesting: https://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-17 22:47:57,958 - DEBUG - Requesting: https://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-17 22:47:58,079 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-83070546', 'href': 'https://10.0.0.131:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-83070546?flat'}
2025-10-17 22:47:58,079 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-83070546 is found in opserver
2025-10-17 22:47:58,179 - DEBUG - Do not have enough data to verify VN in agent
2025-10-17 22:47:58,231 - DEBUG - VRF ids for VN ctest-vn-83070546: {}
2025-10-17 22:47:58,231 - DEBUG - Requesting: https://10.0.0.131:8082/domains
2025-10-17 22:47:58,283 - DEBUG - Requesting: https://10.0.0.131:8082/domain/c2fab7b5-42f0-4b0e-a131-4c62931bf465
2025-10-17 22:47:58,339 - DEBUG - Requesting: https://10.0.0.131:8082/project/5ce71d09-b3c7-43a7-b8c7-f37e5a880833
2025-10-17 22:47:58,416 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/bf1b2b96-7a7b-48c2-bd20-76462af0902b
2025-10-17 22:47:58,472 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/bf1b2b96-7a7b-48c2-bd20-76462af0902b
2025-10-17 22:47:58,532 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/3d703016-04be-4ac0-a37a-57cc346e5fe1
2025-10-17 22:47:58,583 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/3d703016-04be-4ac0-a37a-57cc346e5fe1
2025-10-17 22:47:58,635 - DEBUG - Requesting: https://10.0.0.131:8082/route-target/346d137c-640d-4444-b5f2-4d8611727516
2025-10-17 22:47:58,691 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-17 22:47:58,691 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/bf1b2b96-7a7b-48c2-bd20-76462af0902b
2025-10-17 22:47:58,748 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/3d703016-04be-4ac0-a37a-57cc346e5fe1
2025-10-17 22:47:58,812 - INFO - Verified VN network id 11 for VN bf1b2b96-7a7b-48c2-bd20-76462af0902b
2025-10-17 22:47:58,812 - INFO - Verifications in API Server for VN ctest-vn-69085258 passed
2025-10-17 22:47:58,812 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/bf1b2b96-7a7b-48c2-bd20-76462af0902b
2025-10-17 22:47:58,868 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/3d703016-04be-4ac0-a37a-57cc346e5fe1
2025-10-17 22:47:58,923 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/3d703016-04be-4ac0-a37a-57cc346e5fe1
2025-10-17 22:47:58,980 - DEBUG - Requesting: https://10.0.0.131:8082/route-target/346d137c-640d-4444-b5f2-4d8611727516
2025-10-17 22:47:59,083 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-69085258', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50155816', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13770648210915412162', 'uuid-lslong': '13628022516163317803'}, 'enable': 'true', 'created': '2025-10-17T22:47:54', 'last-modified': '2025-10-17T22:47:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.287559'}
2025-10-17 22:47:59,132 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-17 22:47:59,132 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69085258 passed
2025-10-17 22:47:59,133 - DEBUG - ====Verifying policy data for ctest-vn-69085258 in API_Server ======
2025-10-17 22:47:59,133 - DEBUG - Requesting: https://10.0.0.131:8082/domains
2025-10-17 22:47:59,183 - DEBUG - Requesting: https://10.0.0.131:8082/domain/c2fab7b5-42f0-4b0e-a131-4c62931bf465
2025-10-17 22:47:59,239 - DEBUG - Requesting: https://10.0.0.131:8082/project/5ce71d09-b3c7-43a7-b8c7-f37e5a880833
2025-10-17 22:47:59,320 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/bf1b2b96-7a7b-48c2-bd20-76462af0902b
2025-10-17 22:47:59,376 - DEBUG - ==>Verifying data for policy with id: 87808062-1a97-43bf-a9d4-156efe910f85, fqn: ['admin_domain', 'ctest-TestBasicPolicy-50155816', 'ctest-policy-allow-all-89121172']
2025-10-17 22:47:59,377 - INFO - VN ctest-vn-69085258 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-17 22:47:59,377 - DEBUG - Verifying the vn in opserver
2025-10-17 22:47:59,377 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-69085258 virtual network link  through opserver 10.0.0.131
2025-10-17 22:47:59,377 - DEBUG - Requesting: https://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-17 22:47:59,431 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-69085258', 'href': 'https://10.0.0.131:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-69085258?flat'}
2025-10-17 22:47:59,431 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-50155816:ctest-vn-69085258 is found in opserver
2025-10-17 22:47:59,527 - DEBUG - Do not have enough data to verify VN in agent
2025-10-17 22:47:59,575 - DEBUG - VRF ids for VN ctest-vn-69085258: {}
2025-10-17 22:47:59,639 - DEBUG - Services list from nova: [