2026-09-21 21:55:43,529 - INFO - Domain Default found not creating
2026-09-21 21:55:43,720 - INFO - Project ctest-TestBasicPolicy-28544775 not found, creating it
2026-09-21 21:55:44,292 - INFO - Created Project:ctest-TestBasicPolicy-28544775, ID : b05c474a-fcda-48ca-8a89-d74fd38aad0e
2026-09-21 21:55:46,984 - INFO - ================================================================================
2026-09-21 21:55:46,984 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-21 21:55:46,984 - 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-09-21 21:55:47,259 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-09-21 21:55:47,259 - INFO - Initial checks done. Running the testcase now
2026-09-21 21:55:47,259 - INFO -
2026-09-21 21:55:48,016 - DEBUG - Response for create_network : {'network': {'id': '196e1ae3-2eb8-4582-bc30-d429c5b35fd5', 'name': 'ctest-vn-45834307', 'tenant_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'project_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28544775', 'ctest-vn-45834307'], 'port_security_enabled': True, 'description': ''}}
2026-09-21 21:55:48,269 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf4bd488-dd87-4302-b41c-2f9b610ab70e', 'name': '', 'tenant_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'network_id': '196e1ae3-2eb8-4582-bc30-d429c5b35fd5', 'ip_version': 4, 'cidr': '91.66.204.192/26', 'allocation_pools': [{'start': '91.66.204.194', 'end': '91.66.204.254'}], 'gateway_ip': '91.66.204.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.66.204.194', 'tags': [], 'project_id': 'b05c474afcda48ca8a89d74fd38aad0e'}}
2026-09-21 21:55:48,293 - INFO - Created VN ctest-vn-45834307
2026-09-21 21:55:48,346 - DEBUG - VN ctest-vn-45834307 UUID is 196e1ae3-2eb8-4582-bc30-d429c5b35fd5
2026-09-21 21:55:48,714 - DEBUG - Response for create_network : {'network': {'id': 'b38bbf7c-e141-494a-a5cf-ca096b49532b', 'name': 'ctest-vn-77574597', 'tenant_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'project_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28544775', 'ctest-vn-77574597'], 'port_security_enabled': True, 'description': ''}}
2026-09-21 21:55:48,936 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2e3d5c0-d1fb-463f-b8f0-8fe6374ccd06', 'name': '', 'tenant_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'network_id': 'b38bbf7c-e141-494a-a5cf-ca096b49532b', 'ip_version': 4, 'cidr': '98.52.147.0/26', 'allocation_pools': [{'start': '98.52.147.2', 'end': '98.52.147.62'}], 'gateway_ip': '98.52.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.52.147.2', 'tags': [], 'project_id': 'b05c474afcda48ca8a89d74fd38aad0e'}}
2026-09-21 21:55:48,963 - INFO - Created VN ctest-vn-77574597
2026-09-21 21:55:49,018 - DEBUG - VN ctest-vn-77574597 UUID is b38bbf7c-e141-494a-a5cf-ca096b49532b
2026-09-21 21:55:49,149 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-45834307, 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-28544775:ctest-vn-77574597, 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-09-21 21:55:49,514 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '196e1ae3-2eb8-4582-bc30-d429c5b35fd5', 'name': 'ctest-vn-45834307', 'tenant_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'project_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['bf4bd488-dd87-4302-b41c-2f9b610ab70e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28544775', 'ctest-vn-45834307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28544775', 'ctest-policy-allow-all-86646725']], 'subnet_ipam': [{'subnet_cidr': '91.66.204.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-21 21:55:49,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b38bbf7c-e141-494a-a5cf-ca096b49532b', 'name': 'ctest-vn-77574597', 'tenant_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'project_id': 'b05c474afcda48ca8a89d74fd38aad0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d2e3d5c0-d1fb-463f-b8f0-8fe6374ccd06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28544775', 'ctest-vn-77574597'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28544775', 'ctest-policy-allow-all-86646725']], 'subnet_ipam': [{'subnet_cidr': '98.52.147.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-21 21:55:49,954 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 21:55:50,347 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 21:55:50,382 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ff1525e9-65bc-4bb1-ba43-a4fad53c01fa
2026-09-21 21:55:50,396 - DEBUG - Requesting: http://10.0.0.161:8082/project/b05c474a-fcda-48ca-8a89-d74fd38aad0e
2026-09-21 21:55:50,479 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/196e1ae3-2eb8-4582-bc30-d429c5b35fd5
2026-09-21 21:55:50,495 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/196e1ae3-2eb8-4582-bc30-d429c5b35fd5
2026-09-21 21:55:50,506 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89affec8-571a-4cfd-9a6d-a13944695eb4
2026-09-21 21:55:50,518 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89affec8-571a-4cfd-9a6d-a13944695eb4
2026-09-21 21:55:50,526 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/3f6e49ad-c91e-4229-8853-d40e22599c00
2026-09-21 21:55:50,534 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-21 21:55:50,534 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/196e1ae3-2eb8-4582-bc30-d429c5b35fd5
2026-09-21 21:55:50,545 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89affec8-571a-4cfd-9a6d-a13944695eb4
2026-09-21 21:55:50,563 - INFO - Verified VN network id 12 for VN 196e1ae3-2eb8-4582-bc30-d429c5b35fd5
2026-09-21 21:55:50,563 - INFO - Verifications in API Server for VN ctest-vn-45834307 passed
2026-09-21 21:55:50,563 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/196e1ae3-2eb8-4582-bc30-d429c5b35fd5
2026-09-21 21:55:50,575 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89affec8-571a-4cfd-9a6d-a13944695eb4
2026-09-21 21:55:50,585 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89affec8-571a-4cfd-9a6d-a13944695eb4
2026-09-21 21:55:50,595 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/3f6e49ad-c91e-4229-8853-d40e22599c00
2026-09-21 21:55:50,611 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-45834307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28544775', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1832431661430097282', 'uuid-lslong': '13560571753888178133'}, 'enable': 'true', 'created': '2026-09-21T21:55:47', 'last-modified': '2026-09-21T21:55:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.136422'}
2026-09-21 21:55:50,621 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-21 21:55:50,621 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45834307 passed
2026-09-21 21:55:50,621 - DEBUG - ====Verifying policy data for ctest-vn-45834307 in API_Server ======
2026-09-21 21:55:50,621 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 21:55:50,629 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ff1525e9-65bc-4bb1-ba43-a4fad53c01fa
2026-09-21 21:55:50,642 - DEBUG - Requesting: http://10.0.0.161:8082/project/b05c474a-fcda-48ca-8a89-d74fd38aad0e
2026-09-21 21:55:50,725 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/196e1ae3-2eb8-4582-bc30-d429c5b35fd5
2026-09-21 21:55:50,739 - DEBUG - ==>Verifying data for policy with id: aaf06421-08c1-434f-8e5f-40b2974b4620, fqn: ['default-domain', 'ctest-TestBasicPolicy-28544775', 'ctest-policy-allow-all-86646725']
2026-09-21 21:55:50,739 - INFO - VN ctest-vn-45834307 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-21 21:55:50,739 - DEBUG - Verifying the vn in opserver
2026-09-21 21:55:50,739 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-45834307 virtual network link through opserver 10.0.0.161
2026-09-21 21:55:50,739 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-21 21:55:51,126 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-21 21:55:51,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-45834307', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-45834307?flat'}
2026-09-21 21:55:51,188 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-45834307 is found in opserver
2026-09-21 21:55:51,199 - DEBUG - Do not have enough data to verify VN in agent
2026-09-21 21:55:51,204 - DEBUG - VRF ids for VN ctest-vn-45834307: {}
2026-09-21 21:55:51,204 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 21:55:51,210 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ff1525e9-65bc-4bb1-ba43-a4fad53c01fa
2026-09-21 21:55:51,222 - DEBUG - Requesting: http://10.0.0.161:8082/project/b05c474a-fcda-48ca-8a89-d74fd38aad0e
2026-09-21 21:55:51,307 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b38bbf7c-e141-494a-a5cf-ca096b49532b
2026-09-21 21:55:51,324 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b38bbf7c-e141-494a-a5cf-ca096b49532b
2026-09-21 21:55:51,336 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/416f3ee8-b15f-4478-ad56-3ec9b8441ae0
2026-09-21 21:55:51,347 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/416f3ee8-b15f-4478-ad56-3ec9b8441ae0
2026-09-21 21:55:51,356 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/84c82df9-3a52-4857-93ea-9273102d7346
2026-09-21 21:55:51,365 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-21 21:55:51,365 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b38bbf7c-e141-494a-a5cf-ca096b49532b
2026-09-21 21:55:51,378 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/416f3ee8-b15f-4478-ad56-3ec9b8441ae0
2026-09-21 21:55:51,397 - INFO - Verified VN network id 13 for VN b38bbf7c-e141-494a-a5cf-ca096b49532b
2026-09-21 21:55:51,397 - INFO - Verifications in API Server for VN ctest-vn-77574597 passed
2026-09-21 21:55:51,398 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b38bbf7c-e141-494a-a5cf-ca096b49532b
2026-09-21 21:55:51,414 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/416f3ee8-b15f-4478-ad56-3ec9b8441ae0
2026-09-21 21:55:51,423 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/416f3ee8-b15f-4478-ad56-3ec9b8441ae0
2026-09-21 21:55:51,434 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/84c82df9-3a52-4857-93ea-9273102d7346
2026-09-21 21:55:51,451 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-77574597', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28544775', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12937644897627883850', 'uuid-lslong': '11947990478240699179'}, 'enable': 'true', 'created': '2026-09-21T21:55:48', 'last-modified': '2026-09-21T21:55:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.697331'}
2026-09-21 21:55:51,459 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-21 21:55:51,459 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77574597 passed
2026-09-21 21:55:51,460 - DEBUG - ====Verifying policy data for ctest-vn-77574597 in API_Server ======
2026-09-21 21:55:51,460 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 21:55:51,468 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ff1525e9-65bc-4bb1-ba43-a4fad53c01fa
2026-09-21 21:55:51,481 - DEBUG - Requesting: http://10.0.0.161:8082/project/b05c474a-fcda-48ca-8a89-d74fd38aad0e
2026-09-21 21:55:51,573 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b38bbf7c-e141-494a-a5cf-ca096b49532b
2026-09-21 21:55:51,584 - DEBUG - ==>Verifying data for policy with id: aaf06421-08c1-434f-8e5f-40b2974b4620, fqn: ['default-domain', 'ctest-TestBasicPolicy-28544775', 'ctest-policy-allow-all-86646725']
2026-09-21 21:55:51,584 - INFO - VN ctest-vn-77574597 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-21 21:55:51,584 - DEBUG - Verifying the vn in opserver
2026-09-21 21:55:51,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-77574597 virtual network link through opserver 10.0.0.161
2026-09-21 21:55:51,584 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-21 21:55:51,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-77574597', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-77574597?flat'}
2026-09-21 21:55:51,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28544775:ctest-vn-77574597 is found in opserver
2026-09-21 21:55:51,612 - DEBUG - Do not have enough data to verify VN in agent
2026-09-21 21:55:51,619 - DEBUG - VRF ids for VN ctest-vn-77574597: {}
2026-09-21 21:55:51,705 - DEBUG - Services list from nova: [