2026-01-28 16:38:32,867 - INFO - Domain Default found not creating
2026-01-28 16:38:33,037 - INFO - Project ctest-TestBasicPolicy-43967686 not found, creating it
2026-01-28 16:38:33,503 - INFO - Created Project:ctest-TestBasicPolicy-43967686, ID : e0c5dabf-3494-40da-b3bf-e68b9efdf221
2026-01-28 16:38:34,917 - INFO - ================================================================================
2026-01-28 16:38:34,917 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 16:38:34,917 - 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-28 16:38:35,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with
2026-01-28 16:38:35,170 - INFO - Initial checks done. Running the testcase now
2026-01-28 16:38:35,170 - INFO -
2026-01-28 16:38:35,693 - DEBUG - Response for create_network : {'network': {'id': '8bd7b8c9-b635-49aa-bea3-e1aea19bfd98', 'name': 'ctest-vn-54908915', 'tenant_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'project_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43967686', 'ctest-vn-54908915'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 16:38:35,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '56a79382-39e3-4a03-ac35-889cf87ccc34', 'name': '', 'tenant_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'network_id': '8bd7b8c9-b635-49aa-bea3-e1aea19bfd98', 'ip_version': 4, 'cidr': '155.56.97.192/26', 'allocation_pools': [{'start': '155.56.97.194', 'end': '155.56.97.254'}], 'gateway_ip': '155.56.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.56.97.194', 'tags': [], 'project_id': 'e0c5dabf349440dab3bfe68b9efdf221'}}
2026-01-28 16:38:35,883 - INFO - Created VN ctest-vn-54908915
2026-01-28 16:38:35,932 - DEBUG - VN ctest-vn-54908915 UUID is 8bd7b8c9-b635-49aa-bea3-e1aea19bfd98
2026-01-28 16:38:36,241 - DEBUG - Response for create_network : {'network': {'id': '611ab767-8d04-4405-8cba-e7fbf87b081a', 'name': 'ctest-vn-83454653', 'tenant_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'project_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43967686', 'ctest-vn-83454653'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 16:38:36,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca27923b-4a04-4627-b920-43e70164ebe0', 'name': '', 'tenant_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'network_id': '611ab767-8d04-4405-8cba-e7fbf87b081a', 'ip_version': 4, 'cidr': '54.91.94.0/26', 'allocation_pools': [{'start': '54.91.94.2', 'end': '54.91.94.62'}], 'gateway_ip': '54.91.94.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.91.94.2', 'tags': [], 'project_id': 'e0c5dabf349440dab3bfe68b9efdf221'}}
2026-01-28 16:38:36,469 - INFO - Created VN ctest-vn-83454653
2026-01-28 16:38:36,520 - DEBUG - VN ctest-vn-83454653 UUID is 611ab767-8d04-4405-8cba-e7fbf87b081a
2026-01-28 16:38:36,668 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-54908915, 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-43967686:ctest-vn-83454653, 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-28 16:38:36,956 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8bd7b8c9-b635-49aa-bea3-e1aea19bfd98', 'name': 'ctest-vn-54908915', 'tenant_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'project_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56a79382-39e3-4a03-ac35-889cf87ccc34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43967686', 'ctest-vn-54908915'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43967686', 'ctest-policy-allow-all-92118795']], 'subnet_ipam': [{'subnet_cidr': '155.56.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 16:38:37,278 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '611ab767-8d04-4405-8cba-e7fbf87b081a', 'name': 'ctest-vn-83454653', 'tenant_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'project_id': 'e0c5dabf349440dab3bfe68b9efdf221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca27923b-4a04-4627-b920-43e70164ebe0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43967686', 'ctest-vn-83454653'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43967686', 'ctest-policy-allow-all-92118795']], 'subnet_ipam': [{'subnet_cidr': '54.91.94.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 16:38:37,404 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 16:38:37,725 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 16:38:37,767 - DEBUG - Requesting: http://10.0.0.242:8082/domain/06a5bb4d-fb89-450d-8f27-1a43db41b1d6
2026-01-28 16:38:37,786 - DEBUG - Requesting: http://10.0.0.242:8082/project/e0c5dabf-3494-40da-b3bf-e68b9efdf221
2026-01-28 16:38:37,861 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8bd7b8c9-b635-49aa-bea3-e1aea19bfd98
2026-01-28 16:38:37,872 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8bd7b8c9-b635-49aa-bea3-e1aea19bfd98
2026-01-28 16:38:37,880 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d718af70-2bab-401e-93ad-b207f18659ce
2026-01-28 16:38:37,886 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d718af70-2bab-401e-93ad-b207f18659ce
2026-01-28 16:38:37,891 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/08cd2738-3cc8-4c16-98b3-598ecf5a8d54
2026-01-28 16:38:37,896 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 16:38:37,896 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8bd7b8c9-b635-49aa-bea3-e1aea19bfd98
2026-01-28 16:38:37,903 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d718af70-2bab-401e-93ad-b207f18659ce
2026-01-28 16:38:37,914 - INFO - Verified VN network id 9 for VN 8bd7b8c9-b635-49aa-bea3-e1aea19bfd98
2026-01-28 16:38:37,915 - INFO - Verifications in API Server for VN ctest-vn-54908915 passed
2026-01-28 16:38:37,915 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8bd7b8c9-b635-49aa-bea3-e1aea19bfd98
2026-01-28 16:38:37,922 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d718af70-2bab-401e-93ad-b207f18659ce
2026-01-28 16:38:37,928 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d718af70-2bab-401e-93ad-b207f18659ce
2026-01-28 16:38:37,935 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/08cd2738-3cc8-4c16-98b3-598ecf5a8d54
2026-01-28 16:38:37,945 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-54908915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43967686', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10076725867749657002', 'uuid-lslong': '13737071428562058648'}, 'enable': 'true', 'created': '2026-01-28T16:38:35', 'last-modified': '2026-01-28T16:38:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016603'}
2026-01-28 16:38:37,949 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 16:38:37,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54908915 passed
2026-01-28 16:38:37,950 - DEBUG - ====Verifying policy data for ctest-vn-54908915 in API_Server ======
2026-01-28 16:38:37,950 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 16:38:37,954 - DEBUG - Requesting: http://10.0.0.242:8082/domain/06a5bb4d-fb89-450d-8f27-1a43db41b1d6
2026-01-28 16:38:37,963 - DEBUG - Requesting: http://10.0.0.242:8082/project/e0c5dabf-3494-40da-b3bf-e68b9efdf221
2026-01-28 16:38:38,027 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8bd7b8c9-b635-49aa-bea3-e1aea19bfd98
2026-01-28 16:38:38,035 - DEBUG - ==>Verifying data for policy with id: cffd7dd1-e4e0-445f-a7c3-64dfe69ec346, fqn: ['default-domain', 'ctest-TestBasicPolicy-43967686', 'ctest-policy-allow-all-92118795']
2026-01-28 16:38:38,035 - INFO - VN ctest-vn-54908915 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 16:38:38,035 - DEBUG - Verifying the vn in opserver
2026-01-28 16:38:38,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-54908915 virtual network link through opserver 10.0.0.242
2026-01-28 16:38:38,035 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-28 16:38:38,325 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-28 16:38:38,378 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-54908915', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-54908915?flat'}
2026-01-28 16:38:38,378 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-54908915 is found in opserver
2026-01-28 16:38:38,386 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 16:38:38,390 - DEBUG - VRF ids for VN ctest-vn-54908915: {}
2026-01-28 16:38:38,390 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 16:38:38,394 - DEBUG - Requesting: http://10.0.0.242:8082/domain/06a5bb4d-fb89-450d-8f27-1a43db41b1d6
2026-01-28 16:38:38,403 - DEBUG - Requesting: http://10.0.0.242:8082/project/e0c5dabf-3494-40da-b3bf-e68b9efdf221
2026-01-28 16:38:38,469 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/611ab767-8d04-4405-8cba-e7fbf87b081a
2026-01-28 16:38:38,479 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/611ab767-8d04-4405-8cba-e7fbf87b081a
2026-01-28 16:38:38,486 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/70de20da-1619-481a-9657-56351ed741fd
2026-01-28 16:38:38,492 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/70de20da-1619-481a-9657-56351ed741fd
2026-01-28 16:38:38,497 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2fae05a8-36e3-41bc-9cde-06a5acb38150
2026-01-28 16:38:38,502 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 16:38:38,503 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/611ab767-8d04-4405-8cba-e7fbf87b081a
2026-01-28 16:38:38,509 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/70de20da-1619-481a-9657-56351ed741fd
2026-01-28 16:38:38,520 - INFO - Verified VN network id 10 for VN 611ab767-8d04-4405-8cba-e7fbf87b081a
2026-01-28 16:38:38,520 - INFO - Verifications in API Server for VN ctest-vn-83454653 passed
2026-01-28 16:38:38,520 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/611ab767-8d04-4405-8cba-e7fbf87b081a
2026-01-28 16:38:38,527 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/70de20da-1619-481a-9657-56351ed741fd
2026-01-28 16:38:38,533 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/70de20da-1619-481a-9657-56351ed741fd
2026-01-28 16:38:38,537 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2fae05a8-36e3-41bc-9cde-06a5acb38150
2026-01-28 16:38:38,547 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-83454653', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43967686', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6997106626448868357', 'uuid-lslong': '10140672580369713178'}, 'enable': 'true', 'created': '2026-01-28T16:38:36', 'last-modified': '2026-01-28T16:38:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.342016'}
2026-01-28 16:38:38,552 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 16:38:38,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83454653 passed
2026-01-28 16:38:38,553 - DEBUG - ====Verifying policy data for ctest-vn-83454653 in API_Server ======
2026-01-28 16:38:38,553 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 16:38:38,557 - DEBUG - Requesting: http://10.0.0.242:8082/domain/06a5bb4d-fb89-450d-8f27-1a43db41b1d6
2026-01-28 16:38:38,565 - DEBUG - Requesting: http://10.0.0.242:8082/project/e0c5dabf-3494-40da-b3bf-e68b9efdf221
2026-01-28 16:38:38,635 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/611ab767-8d04-4405-8cba-e7fbf87b081a
2026-01-28 16:38:38,643 - DEBUG - ==>Verifying data for policy with id: cffd7dd1-e4e0-445f-a7c3-64dfe69ec346, fqn: ['default-domain', 'ctest-TestBasicPolicy-43967686', 'ctest-policy-allow-all-92118795']
2026-01-28 16:38:38,643 - INFO - VN ctest-vn-83454653 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 16:38:38,643 - DEBUG - Verifying the vn in opserver
2026-01-28 16:38:38,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-83454653 virtual network link through opserver 10.0.0.242
2026-01-28 16:38:38,643 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-28 16:38:38,651 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-83454653', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-83454653?flat'}
2026-01-28 16:38:38,651 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43967686:ctest-vn-83454653 is found in opserver
2026-01-28 16:38:38,659 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 16:38:38,663 - DEBUG - VRF ids for VN ctest-vn-83454653: {}
2026-01-28 16:38:38,714 - DEBUG - Services list from nova: [