2025-11-14 07:51:35,026 - INFO - Domain Default found not creating
2025-11-14 07:51:35,184 - INFO - Project ctest-TestBasicPolicy-34704673 not found, creating it
2025-11-14 07:51:35,632 - INFO - Created Project:ctest-TestBasicPolicy-34704673, ID : 0970f9a8-8ee8-4339-a649-f1ca3aa6367a
2025-11-14 07:51:37,089 - INFO - ================================================================================
2025-11-14 07:51:37,089 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-14 07:51:37,089 - 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-14 07:51:37,348 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2025-11-14 07:51:37,348 - INFO - Initial checks done. Running the testcase now
2025-11-14 07:51:37,348 - INFO -
2025-11-14 07:51:37,914 - DEBUG - Response for create_network : {'network': {'id': 'e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2', 'name': 'ctest-vn-88078430', 'tenant_id': '0970f9a88ee84339a649f1ca3aa6367a', 'project_id': '0970f9a88ee84339a649f1ca3aa6367a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34704673', 'ctest-vn-88078430'], 'port_security_enabled': True, 'description': ''}}
2025-11-14 07:51:38,108 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee0eaae3-bd0c-4a30-a3ff-c6a202d30edf', 'name': '', 'tenant_id': '0970f9a88ee84339a649f1ca3aa6367a', 'network_id': 'e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2', 'ip_version': 4, 'cidr': '101.149.176.128/26', 'allocation_pools': [{'start': '101.149.176.130', 'end': '101.149.176.190'}], 'gateway_ip': '101.149.176.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.149.176.130', 'tags': [], 'project_id': '0970f9a88ee84339a649f1ca3aa6367a'}}
2025-11-14 07:51:38,123 - INFO - Created VN ctest-vn-88078430
2025-11-14 07:51:38,173 - DEBUG - VN ctest-vn-88078430 UUID is e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2
2025-11-14 07:51:38,488 - DEBUG - Response for create_network : {'network': {'id': 'c8538a13-6023-43fc-9265-be986314ef8c', 'name': 'ctest-vn-18992975', 'tenant_id': '0970f9a88ee84339a649f1ca3aa6367a', 'project_id': '0970f9a88ee84339a649f1ca3aa6367a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34704673', 'ctest-vn-18992975'], 'port_security_enabled': True, 'description': ''}}
2025-11-14 07:51:38,639 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f2f73de-135b-493d-8fcd-19e60ffb04c0', 'name': '', 'tenant_id': '0970f9a88ee84339a649f1ca3aa6367a', 'network_id': 'c8538a13-6023-43fc-9265-be986314ef8c', 'ip_version': 4, 'cidr': '67.97.97.128/26', 'allocation_pools': [{'start': '67.97.97.130', 'end': '67.97.97.190'}], 'gateway_ip': '67.97.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.97.97.130', 'tags': [], 'project_id': '0970f9a88ee84339a649f1ca3aa6367a'}}
2025-11-14 07:51:38,656 - INFO - Created VN ctest-vn-18992975
2025-11-14 07:51:38,705 - DEBUG - VN ctest-vn-18992975 UUID is c8538a13-6023-43fc-9265-be986314ef8c
2025-11-14 07:51:38,849 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-88078430, 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-34704673:ctest-vn-18992975, 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-14 07:51:39,139 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2', 'name': 'ctest-vn-88078430', 'tenant_id': '0970f9a88ee84339a649f1ca3aa6367a', 'project_id': '0970f9a88ee84339a649f1ca3aa6367a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee0eaae3-bd0c-4a30-a3ff-c6a202d30edf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34704673', 'ctest-vn-88078430'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34704673', 'ctest-policy-allow-all-62556167']], 'subnet_ipam': [{'subnet_cidr': '101.149.176.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-14 07:51:39,357 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8538a13-6023-43fc-9265-be986314ef8c', 'name': 'ctest-vn-18992975', 'tenant_id': '0970f9a88ee84339a649f1ca3aa6367a', 'project_id': '0970f9a88ee84339a649f1ca3aa6367a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f2f73de-135b-493d-8fcd-19e60ffb04c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34704673', 'ctest-vn-18992975'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34704673', 'ctest-policy-allow-all-62556167']], 'subnet_ipam': [{'subnet_cidr': '67.97.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-14 07:51:39,525 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-14 07:51:39,828 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-14 07:51:39,862 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cca70740-afe2-4c9c-87cf-b2c7b25a6d2c
2025-11-14 07:51:39,873 - DEBUG - Requesting: http://10.0.0.141:8082/project/0970f9a8-8ee8-4339-a649-f1ca3aa6367a
2025-11-14 07:51:39,950 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2
2025-11-14 07:51:39,960 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2
2025-11-14 07:51:39,969 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5f6dbef-a1a0-454b-93f0-3e56df7bf2cf
2025-11-14 07:51:39,976 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5f6dbef-a1a0-454b-93f0-3e56df7bf2cf
2025-11-14 07:51:39,982 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d85f4c94-320a-4460-9ea0-ab30d46cc352
2025-11-14 07:51:39,988 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-14 07:51:39,988 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2
2025-11-14 07:51:39,997 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5f6dbef-a1a0-454b-93f0-3e56df7bf2cf
2025-11-14 07:51:40,009 - INFO - Verified VN network id 11 for VN e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2
2025-11-14 07:51:40,010 - INFO - Verifications in API Server for VN ctest-vn-88078430 passed
2025-11-14 07:51:40,010 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2
2025-11-14 07:51:40,018 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5f6dbef-a1a0-454b-93f0-3e56df7bf2cf
2025-11-14 07:51:40,024 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5f6dbef-a1a0-454b-93f0-3e56df7bf2cf
2025-11-14 07:51:40,031 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d85f4c94-320a-4460-9ea0-ab30d46cc352
2025-11-14 07:51:40,043 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-88078430', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34704673', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16850699558559827304', 'uuid-lslong': '11437383890583537362'}, 'enable': 'true', 'created': '2025-11-14T07:51:37', 'last-modified': '2025-11-14T07:51:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924078'}
2025-11-14 07:51:40,049 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-14 07:51:40,049 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88078430 passed
2025-11-14 07:51:40,049 - DEBUG - ====Verifying policy data for ctest-vn-88078430 in API_Server ======
2025-11-14 07:51:40,050 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-14 07:51:40,055 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cca70740-afe2-4c9c-87cf-b2c7b25a6d2c
2025-11-14 07:51:40,068 - DEBUG - Requesting: http://10.0.0.141:8082/project/0970f9a8-8ee8-4339-a649-f1ca3aa6367a
2025-11-14 07:51:40,137 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e9d9b5f8-3cca-4568-9eb9-c00cf601c6d2
2025-11-14 07:51:40,146 - DEBUG - ==>Verifying data for policy with id: ee6c11cb-0cac-4aa6-9689-ce00e1baf6e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-34704673', 'ctest-policy-allow-all-62556167']
2025-11-14 07:51:40,146 - INFO - VN ctest-vn-88078430 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-14 07:51:40,146 - DEBUG - Verifying the vn in opserver
2025-11-14 07:51:40,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-88078430 virtual network link through opserver 10.0.0.141
2025-11-14 07:51:40,146 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-14 07:51:40,455 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-14 07:51:40,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-88078430', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-88078430?flat'}
2025-11-14 07:51:40,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-88078430 is found in opserver
2025-11-14 07:51:40,527 - DEBUG - Do not have enough data to verify VN in agent
2025-11-14 07:51:40,531 - DEBUG - VRF ids for VN ctest-vn-88078430: {}
2025-11-14 07:51:40,531 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-14 07:51:40,538 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cca70740-afe2-4c9c-87cf-b2c7b25a6d2c
2025-11-14 07:51:40,548 - DEBUG - Requesting: http://10.0.0.141:8082/project/0970f9a8-8ee8-4339-a649-f1ca3aa6367a
2025-11-14 07:51:40,618 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c8538a13-6023-43fc-9265-be986314ef8c
2025-11-14 07:51:40,628 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c8538a13-6023-43fc-9265-be986314ef8c
2025-11-14 07:51:40,637 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3823b512-642d-447c-8474-961f90333024
2025-11-14 07:51:40,644 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3823b512-642d-447c-8474-961f90333024
2025-11-14 07:51:40,652 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4d04a02c-0b9a-4f7d-9b66-453679c9b528
2025-11-14 07:51:40,659 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-14 07:51:40,659 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c8538a13-6023-43fc-9265-be986314ef8c
2025-11-14 07:51:40,667 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3823b512-642d-447c-8474-961f90333024
2025-11-14 07:51:40,681 - INFO - Verified VN network id 12 for VN c8538a13-6023-43fc-9265-be986314ef8c
2025-11-14 07:51:40,681 - INFO - Verifications in API Server for VN ctest-vn-18992975 passed
2025-11-14 07:51:40,681 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c8538a13-6023-43fc-9265-be986314ef8c
2025-11-14 07:51:40,691 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3823b512-642d-447c-8474-961f90333024
2025-11-14 07:51:40,698 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3823b512-642d-447c-8474-961f90333024
2025-11-14 07:51:40,704 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4d04a02c-0b9a-4f7d-9b66-453679c9b528
2025-11-14 07:51:40,715 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-18992975', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34704673', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14435033046474507260', 'uuid-lslong': '10549047263891877772'}, 'enable': 'true', 'created': '2025-11-14T07:51:38', 'last-modified': '2025-11-14T07:51:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.376562'}
2025-11-14 07:51:40,722 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-14 07:51:40,722 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18992975 passed
2025-11-14 07:51:40,722 - DEBUG - ====Verifying policy data for ctest-vn-18992975 in API_Server ======
2025-11-14 07:51:40,722 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-14 07:51:40,728 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cca70740-afe2-4c9c-87cf-b2c7b25a6d2c
2025-11-14 07:51:40,738 - DEBUG - Requesting: http://10.0.0.141:8082/project/0970f9a8-8ee8-4339-a649-f1ca3aa6367a
2025-11-14 07:51:40,806 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c8538a13-6023-43fc-9265-be986314ef8c
2025-11-14 07:51:40,815 - DEBUG - ==>Verifying data for policy with id: ee6c11cb-0cac-4aa6-9689-ce00e1baf6e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-34704673', 'ctest-policy-allow-all-62556167']
2025-11-14 07:51:40,815 - INFO - VN ctest-vn-18992975 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-14 07:51:40,815 - DEBUG - Verifying the vn in opserver
2025-11-14 07:51:40,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-18992975 virtual network link through opserver 10.0.0.141
2025-11-14 07:51:40,815 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-14 07:51:40,824 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-18992975', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-18992975?flat'}
2025-11-14 07:51:40,824 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34704673:ctest-vn-18992975 is found in opserver
2025-11-14 07:51:40,833 - DEBUG - Do not have enough data to verify VN in agent
2025-11-14 07:51:40,837 - DEBUG - VRF ids for VN ctest-vn-18992975: {}
2025-11-14 07:51:40,905 - DEBUG - Services list from nova: [