2026-01-09 16:01:21,519 - INFO - Domain Default found not creating
2026-01-09 16:01:21,707 - INFO - Project ctest-TestBasicPolicy-63390348 not found, creating it
2026-01-09 16:01:22,182 - INFO - Created Project:ctest-TestBasicPolicy-63390348, ID : 4f8f77a3-2a00-46c4-8a4f-a671555f5412
2026-01-09 16:01:23,695 - INFO - ================================================================================
2026-01-09 16:01:23,695 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-09 16:01:23,695 - 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
2026-01-09 16:01:23,948 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-09 16:01:23,948 - INFO - Initial checks done. Running the testcase now
2026-01-09 16:01:23,948 - INFO -
2026-01-09 16:01:24,520 - DEBUG - Response for create_network : {'network': {'id': '61fd2cc9-865f-42d7-90a2-86cb96f2907b', 'name': 'ctest-vn-59164953', 'tenant_id': '4f8f77a32a0046c48a4fa671555f5412', 'project_id': '4f8f77a32a0046c48a4fa671555f5412', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63390348', 'ctest-vn-59164953'], 'port_security_enabled': True, 'description': ''}}
2026-01-09 16:01:24,708 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f9acba8-c036-428c-a2ea-3cc74d19958b', 'name': '', 'tenant_id': '4f8f77a32a0046c48a4fa671555f5412', 'network_id': '61fd2cc9-865f-42d7-90a2-86cb96f2907b', 'ip_version': 4, 'cidr': '49.87.38.0/26', 'allocation_pools': [{'start': '49.87.38.2', 'end': '49.87.38.62'}], 'gateway_ip': '49.87.38.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.87.38.2', 'tags': [], 'project_id': '4f8f77a32a0046c48a4fa671555f5412'}}
2026-01-09 16:01:24,725 - INFO - Created VN ctest-vn-59164953
2026-01-09 16:01:24,775 - DEBUG - VN ctest-vn-59164953 UUID is 61fd2cc9-865f-42d7-90a2-86cb96f2907b
2026-01-09 16:01:25,098 - DEBUG - Response for create_network : {'network': {'id': '020e976d-c29e-40bb-ab3a-5b1808aab196', 'name': 'ctest-vn-00579141', 'tenant_id': '4f8f77a32a0046c48a4fa671555f5412', 'project_id': '4f8f77a32a0046c48a4fa671555f5412', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63390348', 'ctest-vn-00579141'], 'port_security_enabled': True, 'description': ''}}
2026-01-09 16:01:25,255 - DEBUG - Response for create_subnet : {'subnet': {'id': '8640b04a-54e2-4327-aed7-cf3027d88369', 'name': '', 'tenant_id': '4f8f77a32a0046c48a4fa671555f5412', 'network_id': '020e976d-c29e-40bb-ab3a-5b1808aab196', 'ip_version': 4, 'cidr': '141.12.225.192/26', 'allocation_pools': [{'start': '141.12.225.194', 'end': '141.12.225.254'}], 'gateway_ip': '141.12.225.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.12.225.194', 'tags': [], 'project_id': '4f8f77a32a0046c48a4fa671555f5412'}}
2026-01-09 16:01:25,278 - INFO - Created VN ctest-vn-00579141
2026-01-09 16:01:25,331 - DEBUG - VN ctest-vn-00579141 UUID is 020e976d-c29e-40bb-ab3a-5b1808aab196
2026-01-09 16:01:25,451 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-59164953, 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-63390348:ctest-vn-00579141, 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]
2026-01-09 16:01:25,738 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61fd2cc9-865f-42d7-90a2-86cb96f2907b', 'name': 'ctest-vn-59164953', 'tenant_id': '4f8f77a32a0046c48a4fa671555f5412', 'project_id': '4f8f77a32a0046c48a4fa671555f5412', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f9acba8-c036-428c-a2ea-3cc74d19958b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63390348', 'ctest-vn-59164953'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63390348', 'ctest-policy-allow-all-80568165']], 'subnet_ipam': [{'subnet_cidr': '49.87.38.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-09 16:01:25,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '020e976d-c29e-40bb-ab3a-5b1808aab196', 'name': 'ctest-vn-00579141', 'tenant_id': '4f8f77a32a0046c48a4fa671555f5412', 'project_id': '4f8f77a32a0046c48a4fa671555f5412', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8640b04a-54e2-4327-aed7-cf3027d88369'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63390348', 'ctest-vn-00579141'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63390348', 'ctest-policy-allow-all-80568165']], 'subnet_ipam': [{'subnet_cidr': '141.12.225.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-09 16:01:26,131 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-09 16:01:26,425 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-09 16:01:26,456 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a3ca9cd7-63c0-45e2-a704-54d5ebd478e3
2026-01-09 16:01:26,468 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8f77a3-2a00-46c4-8a4f-a671555f5412
2026-01-09 16:01:26,547 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61fd2cc9-865f-42d7-90a2-86cb96f2907b
2026-01-09 16:01:26,558 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61fd2cc9-865f-42d7-90a2-86cb96f2907b
2026-01-09 16:01:26,567 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/428e5d03-8024-4245-908c-b77675b91fc7
2026-01-09 16:01:26,574 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/428e5d03-8024-4245-908c-b77675b91fc7
2026-01-09 16:01:26,581 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f88cc998-72bc-4a4c-ac5a-1c2fbf65e2bf
2026-01-09 16:01:26,588 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-09 16:01:26,588 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61fd2cc9-865f-42d7-90a2-86cb96f2907b
2026-01-09 16:01:26,596 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/428e5d03-8024-4245-908c-b77675b91fc7
2026-01-09 16:01:26,608 - INFO - Verified VN network id 11 for VN 61fd2cc9-865f-42d7-90a2-86cb96f2907b
2026-01-09 16:01:26,608 - INFO - Verifications in API Server for VN ctest-vn-59164953 passed
2026-01-09 16:01:26,609 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61fd2cc9-865f-42d7-90a2-86cb96f2907b
2026-01-09 16:01:26,617 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/428e5d03-8024-4245-908c-b77675b91fc7
2026-01-09 16:01:26,624 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/428e5d03-8024-4245-908c-b77675b91fc7
2026-01-09 16:01:26,631 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f88cc998-72bc-4a4c-ac5a-1c2fbf65e2bf
2026-01-09 16:01:26,644 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-59164953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63390348', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7060849034841244375', 'uuid-lslong': '10422040696657711227'}, 'enable': 'true', 'created': '2026-01-09T16:01:24', 'last-modified': '2026-01-09T16:01:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924658'}
2026-01-09 16:01:26,651 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-09 16:01:26,651 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59164953 passed
2026-01-09 16:01:26,651 - DEBUG - ====Verifying policy data for ctest-vn-59164953 in API_Server ======
2026-01-09 16:01:26,651 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-09 16:01:26,656 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a3ca9cd7-63c0-45e2-a704-54d5ebd478e3
2026-01-09 16:01:26,666 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8f77a3-2a00-46c4-8a4f-a671555f5412
2026-01-09 16:01:26,733 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61fd2cc9-865f-42d7-90a2-86cb96f2907b
2026-01-09 16:01:26,742 - DEBUG - ==>Verifying data for policy with id: 2b71cb58-855e-43c0-bd8b-26bf941f1ed1, fqn: ['default-domain', 'ctest-TestBasicPolicy-63390348', 'ctest-policy-allow-all-80568165']
2026-01-09 16:01:26,742 - INFO - VN ctest-vn-59164953 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-09 16:01:26,742 - DEBUG - Verifying the vn in opserver
2026-01-09 16:01:26,742 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-59164953 virtual network link through opserver 10.0.0.38
2026-01-09 16:01:26,742 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-09 16:01:27,038 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-09 16:01:27,099 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-59164953', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-59164953?flat'}
2026-01-09 16:01:27,099 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-59164953 is found in opserver
2026-01-09 16:01:27,109 - DEBUG - Do not have enough data to verify VN in agent
2026-01-09 16:01:27,113 - DEBUG - VRF ids for VN ctest-vn-59164953: {}
2026-01-09 16:01:27,113 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-09 16:01:27,119 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a3ca9cd7-63c0-45e2-a704-54d5ebd478e3
2026-01-09 16:01:27,131 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8f77a3-2a00-46c4-8a4f-a671555f5412
2026-01-09 16:01:27,201 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/020e976d-c29e-40bb-ab3a-5b1808aab196
2026-01-09 16:01:27,213 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/020e976d-c29e-40bb-ab3a-5b1808aab196
2026-01-09 16:01:27,222 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c037e827-b9b7-4d65-b1ca-f9d4c3bc009e
2026-01-09 16:01:27,230 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c037e827-b9b7-4d65-b1ca-f9d4c3bc009e
2026-01-09 16:01:27,238 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0e0d8eb8-9344-48ad-8ff0-cc5ebb809051
2026-01-09 16:01:27,244 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-09 16:01:27,244 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/020e976d-c29e-40bb-ab3a-5b1808aab196
2026-01-09 16:01:27,252 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c037e827-b9b7-4d65-b1ca-f9d4c3bc009e
2026-01-09 16:01:27,265 - INFO - Verified VN network id 12 for VN 020e976d-c29e-40bb-ab3a-5b1808aab196
2026-01-09 16:01:27,265 - INFO - Verifications in API Server for VN ctest-vn-00579141 passed
2026-01-09 16:01:27,265 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/020e976d-c29e-40bb-ab3a-5b1808aab196
2026-01-09 16:01:27,273 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c037e827-b9b7-4d65-b1ca-f9d4c3bc009e
2026-01-09 16:01:27,279 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c037e827-b9b7-4d65-b1ca-f9d4c3bc009e
2026-01-09 16:01:27,285 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0e0d8eb8-9344-48ad-8ff0-cc5ebb809051
2026-01-09 16:01:27,296 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-00579141', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63390348', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '148222335422185659', 'uuid-lslong': '12338274287917642134'}, 'enable': 'true', 'created': '2026-01-09T16:01:25', 'last-modified': '2026-01-09T16:01:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.354462'}
2026-01-09 16:01:27,303 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-09 16:01:27,303 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00579141 passed
2026-01-09 16:01:27,303 - DEBUG - ====Verifying policy data for ctest-vn-00579141 in API_Server ======
2026-01-09 16:01:27,303 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-09 16:01:27,308 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a3ca9cd7-63c0-45e2-a704-54d5ebd478e3
2026-01-09 16:01:27,318 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8f77a3-2a00-46c4-8a4f-a671555f5412
2026-01-09 16:01:27,385 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/020e976d-c29e-40bb-ab3a-5b1808aab196
2026-01-09 16:01:27,394 - DEBUG - ==>Verifying data for policy with id: 2b71cb58-855e-43c0-bd8b-26bf941f1ed1, fqn: ['default-domain', 'ctest-TestBasicPolicy-63390348', 'ctest-policy-allow-all-80568165']
2026-01-09 16:01:27,394 - INFO - VN ctest-vn-00579141 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-09 16:01:27,394 - DEBUG - Verifying the vn in opserver
2026-01-09 16:01:27,394 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-00579141 virtual network link through opserver 10.0.0.38
2026-01-09 16:01:27,394 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-09 16:01:27,403 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-00579141', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-00579141?flat'}
2026-01-09 16:01:27,403 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63390348:ctest-vn-00579141 is found in opserver
2026-01-09 16:01:27,412 - DEBUG - Do not have enough data to verify VN in agent
2026-01-09 16:01:27,417 - DEBUG - VRF ids for VN ctest-vn-00579141: {}
2026-01-09 16:01:27,472 - DEBUG - Services list from nova: [