2025-10-31 20:04:18,912 - INFO - Domain Default found not creating
2025-10-31 20:04:19,062 - INFO - Project ctest-TestBasicPolicy-71758473 not found, creating it
2025-10-31 20:04:19,508 - INFO - Created Project:ctest-TestBasicPolicy-71758473, ID : 9d404459-9067-48b8-af1c-e07ab2a31039
2025-10-31 20:04:20,863 - INFO - ================================================================================
2025-10-31 20:04:20,863 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 20:04:20,863 - 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-31 20:04:21,119 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-10-31 20:04:21,119 - INFO - Initial checks done. Running the testcase now
2025-10-31 20:04:21,119 - INFO -
2025-10-31 20:04:21,651 - DEBUG - Response for create_network : {'network': {'id': '706e841b-75f0-4374-80f7-75dd572bcc6c', 'name': 'ctest-vn-59233859', 'tenant_id': '9d404459906748b8af1ce07ab2a31039', 'project_id': '9d404459906748b8af1ce07ab2a31039', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71758473', 'ctest-vn-59233859'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 20:04:21,806 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e98cf3d-2e62-4b06-a5c8-2406190c25c4', 'name': '', 'tenant_id': '9d404459906748b8af1ce07ab2a31039', 'network_id': '706e841b-75f0-4374-80f7-75dd572bcc6c', 'ip_version': 4, 'cidr': '80.190.147.128/26', 'allocation_pools': [{'start': '80.190.147.130', 'end': '80.190.147.190'}], 'gateway_ip': '80.190.147.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.190.147.130', 'tags': [], 'project_id': '9d404459906748b8af1ce07ab2a31039'}}
2025-10-31 20:04:21,821 - INFO - Created VN ctest-vn-59233859
2025-10-31 20:04:21,878 - DEBUG - VN ctest-vn-59233859 UUID is 706e841b-75f0-4374-80f7-75dd572bcc6c
2025-10-31 20:04:22,200 - DEBUG - Response for create_network : {'network': {'id': '44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7', 'name': 'ctest-vn-59092389', 'tenant_id': '9d404459906748b8af1ce07ab2a31039', 'project_id': '9d404459906748b8af1ce07ab2a31039', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71758473', 'ctest-vn-59092389'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 20:04:22,392 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5a6f1c1-ecce-4db8-9029-b8bed210ffe2', 'name': '', 'tenant_id': '9d404459906748b8af1ce07ab2a31039', 'network_id': '44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7', 'ip_version': 4, 'cidr': '16.5.56.128/26', 'allocation_pools': [{'start': '16.5.56.130', 'end': '16.5.56.190'}], 'gateway_ip': '16.5.56.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.5.56.130', 'tags': [], 'project_id': '9d404459906748b8af1ce07ab2a31039'}}
2025-10-31 20:04:22,409 - INFO - Created VN ctest-vn-59092389
2025-10-31 20:04:22,458 - DEBUG - VN ctest-vn-59092389 UUID is 44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7
2025-10-31 20:04:22,614 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59233859, 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-71758473:ctest-vn-59092389, 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-31 20:04:22,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '706e841b-75f0-4374-80f7-75dd572bcc6c', 'name': 'ctest-vn-59233859', 'tenant_id': '9d404459906748b8af1ce07ab2a31039', 'project_id': '9d404459906748b8af1ce07ab2a31039', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e98cf3d-2e62-4b06-a5c8-2406190c25c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71758473', 'ctest-vn-59233859'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71758473', 'ctest-policy-allow-all-85897924']], 'subnet_ipam': [{'subnet_cidr': '80.190.147.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 20:04:23,161 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7', 'name': 'ctest-vn-59092389', 'tenant_id': '9d404459906748b8af1ce07ab2a31039', 'project_id': '9d404459906748b8af1ce07ab2a31039', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5a6f1c1-ecce-4db8-9029-b8bed210ffe2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71758473', 'ctest-vn-59092389'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71758473', 'ctest-policy-allow-all-85897924']], 'subnet_ipam': [{'subnet_cidr': '16.5.56.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 20:04:23,304 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-31 20:04:23,599 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-31 20:04:23,623 - DEBUG - Requesting: http://10.0.0.38:8082/domain/31b540fc-c57c-42a1-8936-6ccb3de9022b
2025-10-31 20:04:23,633 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d404459-9067-48b8-af1c-e07ab2a31039
2025-10-31 20:04:23,704 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/706e841b-75f0-4374-80f7-75dd572bcc6c
2025-10-31 20:04:23,712 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/706e841b-75f0-4374-80f7-75dd572bcc6c
2025-10-31 20:04:23,720 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1630b689-ebf7-4dad-8da5-375ebcf08b3f
2025-10-31 20:04:23,725 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1630b689-ebf7-4dad-8da5-375ebcf08b3f
2025-10-31 20:04:23,731 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c1722419-dcf0-44d7-9f3f-ecdcb675a4af
2025-10-31 20:04:23,736 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 20:04:23,736 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/706e841b-75f0-4374-80f7-75dd572bcc6c
2025-10-31 20:04:23,744 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1630b689-ebf7-4dad-8da5-375ebcf08b3f
2025-10-31 20:04:23,755 - INFO - Verified VN network id 10 for VN 706e841b-75f0-4374-80f7-75dd572bcc6c
2025-10-31 20:04:23,756 - INFO - Verifications in API Server for VN ctest-vn-59233859 passed
2025-10-31 20:04:23,756 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/706e841b-75f0-4374-80f7-75dd572bcc6c
2025-10-31 20:04:23,763 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1630b689-ebf7-4dad-8da5-375ebcf08b3f
2025-10-31 20:04:23,768 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1630b689-ebf7-4dad-8da5-375ebcf08b3f
2025-10-31 20:04:23,774 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c1722419-dcf0-44d7-9f3f-ecdcb675a4af
2025-10-31 20:04:23,784 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59233859', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71758473', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8101558033163764596', 'uuid-lslong': '9293025949613018220'}, 'enable': 'true', 'created': '2025-10-31T20:04:21', 'last-modified': '2025-10-31T20:04:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904135'}
2025-10-31 20:04:23,790 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 20:04:23,790 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59233859 passed
2025-10-31 20:04:23,790 - DEBUG - ====Verifying policy data for ctest-vn-59233859 in API_Server ======
2025-10-31 20:04:23,791 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-31 20:04:23,794 - DEBUG - Requesting: http://10.0.0.38:8082/domain/31b540fc-c57c-42a1-8936-6ccb3de9022b
2025-10-31 20:04:23,803 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d404459-9067-48b8-af1c-e07ab2a31039
2025-10-31 20:04:23,873 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/706e841b-75f0-4374-80f7-75dd572bcc6c
2025-10-31 20:04:23,881 - DEBUG - ==>Verifying data for policy with id: a3474ba6-5abc-41c1-a478-d7bd5d9b75ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-71758473', 'ctest-policy-allow-all-85897924']
2025-10-31 20:04:23,881 - INFO - VN ctest-vn-59233859 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 20:04:23,881 - DEBUG - Verifying the vn in opserver
2025-10-31 20:04:23,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59233859 virtual network link through opserver 10.0.0.38
2025-10-31 20:04:23,881 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-31 20:04:24,167 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-31 20:04:24,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59233859', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59233859?flat'}
2025-10-31 20:04:24,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59233859 is found in opserver
2025-10-31 20:04:24,226 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 20:04:24,230 - DEBUG - VRF ids for VN ctest-vn-59233859: {}
2025-10-31 20:04:24,230 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-31 20:04:24,235 - DEBUG - Requesting: http://10.0.0.38:8082/domain/31b540fc-c57c-42a1-8936-6ccb3de9022b
2025-10-31 20:04:24,244 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d404459-9067-48b8-af1c-e07ab2a31039
2025-10-31 20:04:24,307 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7
2025-10-31 20:04:24,318 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7
2025-10-31 20:04:24,326 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c60f9b68-d67a-4ced-8e2b-302f77091fa9
2025-10-31 20:04:24,332 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c60f9b68-d67a-4ced-8e2b-302f77091fa9
2025-10-31 20:04:24,337 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/17de929a-34d7-41be-bbfa-0266ff953d6d
2025-10-31 20:04:24,342 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 20:04:24,343 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7
2025-10-31 20:04:24,350 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c60f9b68-d67a-4ced-8e2b-302f77091fa9
2025-10-31 20:04:24,362 - INFO - Verified VN network id 11 for VN 44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7
2025-10-31 20:04:24,362 - INFO - Verifications in API Server for VN ctest-vn-59092389 passed
2025-10-31 20:04:24,362 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7
2025-10-31 20:04:24,369 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c60f9b68-d67a-4ced-8e2b-302f77091fa9
2025-10-31 20:04:24,375 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c60f9b68-d67a-4ced-8e2b-302f77091fa9
2025-10-31 20:04:24,381 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/17de929a-34d7-41be-bbfa-0266ff953d6d
2025-10-31 20:04:24,391 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59092389', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71758473', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4956828996955032442', 'uuid-lslong': '10591967934246506743'}, 'enable': 'true', 'created': '2025-10-31T20:04:22', 'last-modified': '2025-10-31T20:04:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.293198'}
2025-10-31 20:04:24,395 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 20:04:24,395 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59092389 passed
2025-10-31 20:04:24,396 - DEBUG - ====Verifying policy data for ctest-vn-59092389 in API_Server ======
2025-10-31 20:04:24,396 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-31 20:04:24,400 - DEBUG - Requesting: http://10.0.0.38:8082/domain/31b540fc-c57c-42a1-8936-6ccb3de9022b
2025-10-31 20:04:24,409 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d404459-9067-48b8-af1c-e07ab2a31039
2025-10-31 20:04:24,479 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44ca31b5-d7dc-4b7a-92fe-3ab7b11750f7
2025-10-31 20:04:24,487 - DEBUG - ==>Verifying data for policy with id: a3474ba6-5abc-41c1-a478-d7bd5d9b75ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-71758473', 'ctest-policy-allow-all-85897924']
2025-10-31 20:04:24,487 - INFO - VN ctest-vn-59092389 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 20:04:24,487 - DEBUG - Verifying the vn in opserver
2025-10-31 20:04:24,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59092389 virtual network link through opserver 10.0.0.38
2025-10-31 20:04:24,487 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-31 20:04:24,495 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59092389', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59092389?flat'}
2025-10-31 20:04:24,495 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71758473:ctest-vn-59092389 is found in opserver
2025-10-31 20:04:24,503 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 20:04:24,507 - DEBUG - VRF ids for VN ctest-vn-59092389: {}
2025-10-31 20:04:24,561 - DEBUG - Services list from nova: [