2025-10-30 18:45:40,840 - INFO - Domain Default found not creating
2025-10-30 18:45:41,231 - INFO - Project ctest-TestBasicPolicy-34417953 not found, creating it
2025-10-30 18:45:41,927 - INFO - Created Project:ctest-TestBasicPolicy-34417953, ID : 15894628-0ee8-494c-8875-cbda4f442c51 
2025-10-30 18:45:43,972 - INFO - ================================================================================
2025-10-30 18:45:43,972 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-30 18:45:43,972 - 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-30 18:45:44,308 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.241': '0'}} with
2025-10-30 18:45:44,308 - INFO - Initial checks done. Running the testcase now
2025-10-30 18:45:44,309 - INFO - 
2025-10-30 18:45:45,105 - DEBUG - Response for create_network : {'network': {'id': '5210d5a3-e39a-45e4-8767-cc8c8512c5dc', 'name': 'ctest-vn-64447011', 'tenant_id': '158946280ee8494c8875cbda4f442c51', 'project_id': '158946280ee8494c8875cbda4f442c51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34417953', 'ctest-vn-64447011'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 18:45:45,304 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8a44107-8162-4d57-b49f-050bbdd9dc8e', 'name': '', 'tenant_id': '158946280ee8494c8875cbda4f442c51', 'network_id': '5210d5a3-e39a-45e4-8767-cc8c8512c5dc', 'ip_version': 4, 'cidr': '40.196.140.0/26', 'allocation_pools': [{'start': '40.196.140.2', 'end': '40.196.140.62'}], 'gateway_ip': '40.196.140.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.196.140.2', 'tags': [], 'project_id': '158946280ee8494c8875cbda4f442c51'}}
2025-10-30 18:45:45,328 - INFO - Created VN ctest-vn-64447011
2025-10-30 18:45:45,383 - DEBUG - VN ctest-vn-64447011 UUID is 5210d5a3-e39a-45e4-8767-cc8c8512c5dc
2025-10-30 18:45:45,865 - DEBUG - Response for create_network : {'network': {'id': '9d194b73-7469-4b9f-80af-911809d9f831', 'name': 'ctest-vn-07363494', 'tenant_id': '158946280ee8494c8875cbda4f442c51', 'project_id': '158946280ee8494c8875cbda4f442c51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34417953', 'ctest-vn-07363494'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 18:45:46,166 - DEBUG - Response for create_subnet : {'subnet': {'id': '76436073-6eb6-4567-8968-0facb57a7388', 'name': '', 'tenant_id': '158946280ee8494c8875cbda4f442c51', 'network_id': '9d194b73-7469-4b9f-80af-911809d9f831', 'ip_version': 4, 'cidr': '119.243.202.192/26', 'allocation_pools': [{'start': '119.243.202.194', 'end': '119.243.202.254'}], 'gateway_ip': '119.243.202.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.243.202.194', 'tags': [], 'project_id': '158946280ee8494c8875cbda4f442c51'}}
2025-10-30 18:45:46,199 - INFO - Created VN ctest-vn-07363494
2025-10-30 18:45:46,267 - DEBUG - VN ctest-vn-07363494 UUID is 9d194b73-7469-4b9f-80af-911809d9f831
2025-10-30 18:45:46,448 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-64447011, 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-34417953:ctest-vn-07363494, 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-30 18:45:46,917 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5210d5a3-e39a-45e4-8767-cc8c8512c5dc', 'name': 'ctest-vn-64447011', 'tenant_id': '158946280ee8494c8875cbda4f442c51', 'project_id': '158946280ee8494c8875cbda4f442c51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8a44107-8162-4d57-b49f-050bbdd9dc8e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34417953', 'ctest-vn-64447011'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34417953', 'ctest-policy-allow-all-42083688']], 'subnet_ipam': [{'subnet_cidr': '40.196.140.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 18:45:47,272 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d194b73-7469-4b9f-80af-911809d9f831', 'name': 'ctest-vn-07363494', 'tenant_id': '158946280ee8494c8875cbda4f442c51', 'project_id': '158946280ee8494c8875cbda4f442c51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76436073-6eb6-4567-8968-0facb57a7388'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34417953', 'ctest-vn-07363494'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34417953', 'ctest-policy-allow-all-42083688']], 'subnet_ipam': [{'subnet_cidr': '119.243.202.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 18:45:47,487 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 18:45:47,804 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 18:45:47,868 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b04f434-8ca8-42af-a1bc-adb00be83f0b
2025-10-30 18:45:47,894 - DEBUG - Requesting: http://10.0.0.38:8082/project/15894628-0ee8-494c-8875-cbda4f442c51
2025-10-30 18:45:48,005 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5210d5a3-e39a-45e4-8767-cc8c8512c5dc
2025-10-30 18:45:48,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5210d5a3-e39a-45e4-8767-cc8c8512c5dc
2025-10-30 18:45:48,052 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29ba659e-a091-4c86-aa58-dc24625e70bd
2025-10-30 18:45:48,067 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29ba659e-a091-4c86-aa58-dc24625e70bd
2025-10-30 18:45:48,080 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/414d64a8-6cbb-450e-a900-94eaad3dcb71
2025-10-30 18:45:48,094 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 18:45:48,094 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5210d5a3-e39a-45e4-8767-cc8c8512c5dc
2025-10-30 18:45:48,117 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29ba659e-a091-4c86-aa58-dc24625e70bd
2025-10-30 18:45:48,155 - INFO - Verified VN network id 11 for VN 5210d5a3-e39a-45e4-8767-cc8c8512c5dc
2025-10-30 18:45:48,155 - INFO - Verifications in API Server for VN ctest-vn-64447011 passed
2025-10-30 18:45:48,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5210d5a3-e39a-45e4-8767-cc8c8512c5dc
2025-10-30 18:45:48,183 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29ba659e-a091-4c86-aa58-dc24625e70bd
2025-10-30 18:45:48,204 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29ba659e-a091-4c86-aa58-dc24625e70bd
2025-10-30 18:45:48,226 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/414d64a8-6cbb-450e-a900-94eaad3dcb71
2025-10-30 18:45:48,251 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-64447011', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34417953', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5913461210612385252', 'uuid-lslong': '9756992021621556700'}, 'enable': 'true', 'created': '2025-10-30T18:45:45', 'last-modified': '2025-10-30T18:45:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379892'}
2025-10-30 18:45:48,262 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 18:45:48,263 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64447011 passed
2025-10-30 18:45:48,263 - DEBUG - ====Verifying policy data for ctest-vn-64447011 in API_Server ======
2025-10-30 18:45:48,263 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 18:45:48,276 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b04f434-8ca8-42af-a1bc-adb00be83f0b
2025-10-30 18:45:48,300 - DEBUG - Requesting: http://10.0.0.38:8082/project/15894628-0ee8-494c-8875-cbda4f442c51
2025-10-30 18:45:48,401 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5210d5a3-e39a-45e4-8767-cc8c8512c5dc
2025-10-30 18:45:48,419 - DEBUG - ==>Verifying data for policy with id: e1f67e8f-30c4-4693-8069-09b352f91472, fqn: ['default-domain', 'ctest-TestBasicPolicy-34417953', 'ctest-policy-allow-all-42083688']
2025-10-30 18:45:48,419 - INFO - VN ctest-vn-64447011 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 18:45:48,419 - DEBUG - Verifying the vn in opserver
2025-10-30 18:45:48,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-64447011 virtual network link  through opserver 10.0.0.38
2025-10-30 18:45:48,420 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 18:45:48,732 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 18:45:48,818 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-64447011', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-64447011?flat'}
2025-10-30 18:45:48,818 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-64447011 is found in opserver
2025-10-30 18:45:48,837 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 18:45:48,845 - DEBUG - VRF ids for VN ctest-vn-64447011: {}
2025-10-30 18:45:48,845 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 18:45:48,856 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b04f434-8ca8-42af-a1bc-adb00be83f0b
2025-10-30 18:45:48,877 - DEBUG - Requesting: http://10.0.0.38:8082/project/15894628-0ee8-494c-8875-cbda4f442c51
2025-10-30 18:45:48,992 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d194b73-7469-4b9f-80af-911809d9f831
2025-10-30 18:45:49,025 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d194b73-7469-4b9f-80af-911809d9f831
2025-10-30 18:45:49,056 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/05b416c7-298c-4a28-83ce-7d1311318753
2025-10-30 18:45:49,073 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/05b416c7-298c-4a28-83ce-7d1311318753
2025-10-30 18:45:49,108 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6eda64ae-577a-41ba-8d59-c768dad1b2ea
2025-10-30 18:45:49,143 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 18:45:49,143 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d194b73-7469-4b9f-80af-911809d9f831
2025-10-30 18:45:49,164 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/05b416c7-298c-4a28-83ce-7d1311318753
2025-10-30 18:45:49,205 - INFO - Verified VN network id 12 for VN 9d194b73-7469-4b9f-80af-911809d9f831
2025-10-30 18:45:49,205 - INFO - Verifications in API Server for VN ctest-vn-07363494 passed
2025-10-30 18:45:49,205 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d194b73-7469-4b9f-80af-911809d9f831
2025-10-30 18:45:49,247 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/05b416c7-298c-4a28-83ce-7d1311318753
2025-10-30 18:45:49,263 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/05b416c7-298c-4a28-83ce-7d1311318753
2025-10-30 18:45:49,274 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6eda64ae-577a-41ba-8d59-c768dad1b2ea
2025-10-30 18:45:49,308 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-07363494', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34417953', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11320162097618832287', 'uuid-lslong': '9272789690209663025'}, 'enable': 'true', 'created': '2025-10-30T18:45:45', 'last-modified': '2025-10-30T18:45:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.099148'}
2025-10-30 18:45:49,317 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 18:45:49,318 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07363494 passed
2025-10-30 18:45:49,318 - DEBUG - ====Verifying policy data for ctest-vn-07363494 in API_Server ======
2025-10-30 18:45:49,318 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 18:45:49,324 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b04f434-8ca8-42af-a1bc-adb00be83f0b
2025-10-30 18:45:49,335 - DEBUG - Requesting: http://10.0.0.38:8082/project/15894628-0ee8-494c-8875-cbda4f442c51
2025-10-30 18:45:49,421 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d194b73-7469-4b9f-80af-911809d9f831
2025-10-30 18:45:49,434 - DEBUG - ==>Verifying data for policy with id: e1f67e8f-30c4-4693-8069-09b352f91472, fqn: ['default-domain', 'ctest-TestBasicPolicy-34417953', 'ctest-policy-allow-all-42083688']
2025-10-30 18:45:49,434 - INFO - VN ctest-vn-07363494 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 18:45:49,434 - DEBUG - Verifying the vn in opserver
2025-10-30 18:45:49,434 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-07363494 virtual network link  through opserver 10.0.0.38
2025-10-30 18:45:49,434 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 18:45:49,454 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-07363494', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-07363494?flat'}
2025-10-30 18:45:49,454 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34417953:ctest-vn-07363494 is found in opserver
2025-10-30 18:45:49,467 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 18:45:49,474 - DEBUG - VRF ids for VN ctest-vn-07363494: {}
2025-10-30 18:45:49,548 - DEBUG - Services list from nova: [