2026-01-06 14:09:12,930 - INFO - Domain Default found not creating
2026-01-06 14:09:13,079 - INFO - Project ctest-TestBasicPolicy-02295513 not found, creating it
2026-01-06 14:09:13,501 - INFO - Created Project:ctest-TestBasicPolicy-02295513, ID : 9434cc5f-a1ba-434e-8137-6bbb4af52011
2026-01-06 14:09:14,954 - INFO - ================================================================================
2026-01-06 14:09:14,954 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-06 14:09:14,954 - 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-06 14:09:15,210 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-06 14:09:15,210 - INFO - Initial checks done. Running the testcase now
2026-01-06 14:09:15,210 - INFO -
2026-01-06 14:09:15,731 - DEBUG - Response for create_network : {'network': {'id': '5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6', 'name': 'ctest-vn-38177725', 'tenant_id': '9434cc5fa1ba434e81376bbb4af52011', 'project_id': '9434cc5fa1ba434e81376bbb4af52011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02295513', 'ctest-vn-38177725'], 'port_security_enabled': True, 'description': ''}}
2026-01-06 14:09:15,924 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb1b0816-1bb5-4cf5-9c89-6e4ec414c814', 'name': '', 'tenant_id': '9434cc5fa1ba434e81376bbb4af52011', 'network_id': '5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6', 'ip_version': 4, 'cidr': '77.39.1.128/26', 'allocation_pools': [{'start': '77.39.1.130', 'end': '77.39.1.190'}], 'gateway_ip': '77.39.1.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.39.1.130', 'tags': [], 'project_id': '9434cc5fa1ba434e81376bbb4af52011'}}
2026-01-06 14:09:15,940 - INFO - Created VN ctest-vn-38177725
2026-01-06 14:09:15,992 - DEBUG - VN ctest-vn-38177725 UUID is 5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6
2026-01-06 14:09:16,303 - DEBUG - Response for create_network : {'network': {'id': '310c5267-7108-4794-937a-8701938e8fba', 'name': 'ctest-vn-99452432', 'tenant_id': '9434cc5fa1ba434e81376bbb4af52011', 'project_id': '9434cc5fa1ba434e81376bbb4af52011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02295513', 'ctest-vn-99452432'], 'port_security_enabled': True, 'description': ''}}
2026-01-06 14:09:16,480 - DEBUG - Response for create_subnet : {'subnet': {'id': '259ca0f2-7d51-41ad-b531-ab2d5ae68e51', 'name': '', 'tenant_id': '9434cc5fa1ba434e81376bbb4af52011', 'network_id': '310c5267-7108-4794-937a-8701938e8fba', 'ip_version': 4, 'cidr': '214.142.223.0/26', 'allocation_pools': [{'start': '214.142.223.2', 'end': '214.142.223.62'}], 'gateway_ip': '214.142.223.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.142.223.2', 'tags': [], 'project_id': '9434cc5fa1ba434e81376bbb4af52011'}}
2026-01-06 14:09:16,498 - INFO - Created VN ctest-vn-99452432
2026-01-06 14:09:16,548 - DEBUG - VN ctest-vn-99452432 UUID is 310c5267-7108-4794-937a-8701938e8fba
2026-01-06 14:09:16,692 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-38177725, 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-02295513:ctest-vn-99452432, 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-06 14:09:16,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6', 'name': 'ctest-vn-38177725', 'tenant_id': '9434cc5fa1ba434e81376bbb4af52011', 'project_id': '9434cc5fa1ba434e81376bbb4af52011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb1b0816-1bb5-4cf5-9c89-6e4ec414c814'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02295513', 'ctest-vn-38177725'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02295513', 'ctest-policy-allow-all-21086227']], 'subnet_ipam': [{'subnet_cidr': '77.39.1.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-06 14:09:17,190 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '310c5267-7108-4794-937a-8701938e8fba', 'name': 'ctest-vn-99452432', 'tenant_id': '9434cc5fa1ba434e81376bbb4af52011', 'project_id': '9434cc5fa1ba434e81376bbb4af52011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['259ca0f2-7d51-41ad-b531-ab2d5ae68e51'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02295513', 'ctest-vn-99452432'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02295513', 'ctest-policy-allow-all-21086227']], 'subnet_ipam': [{'subnet_cidr': '214.142.223.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-06 14:09:17,348 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 14:09:17,641 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 14:09:17,669 - DEBUG - Requesting: http://10.0.0.38:8082/domain/65ec345c-9b48-4231-96b9-1badb46d1b06
2026-01-06 14:09:17,680 - DEBUG - Requesting: http://10.0.0.38:8082/project/9434cc5f-a1ba-434e-8137-6bbb4af52011
2026-01-06 14:09:17,750 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6
2026-01-06 14:09:17,763 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6
2026-01-06 14:09:17,771 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf35e92a-ef7c-4ab0-953c-c287400ee55a
2026-01-06 14:09:17,777 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf35e92a-ef7c-4ab0-953c-c287400ee55a
2026-01-06 14:09:17,783 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e5a2ee3e-e5e1-42c1-9c53-88cf971dc5f2
2026-01-06 14:09:17,788 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-06 14:09:17,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6
2026-01-06 14:09:17,795 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf35e92a-ef7c-4ab0-953c-c287400ee55a
2026-01-06 14:09:17,809 - INFO - Verified VN network id 11 for VN 5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6
2026-01-06 14:09:17,809 - INFO - Verifications in API Server for VN ctest-vn-38177725 passed
2026-01-06 14:09:17,809 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6
2026-01-06 14:09:17,817 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf35e92a-ef7c-4ab0-953c-c287400ee55a
2026-01-06 14:09:17,823 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf35e92a-ef7c-4ab0-953c-c287400ee55a
2026-01-06 14:09:17,829 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e5a2ee3e-e5e1-42c1-9c53-88cf971dc5f2
2026-01-06 14:09:17,839 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-38177725', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02295513', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6846800127969673416', 'uuid-lslong': '10154332795903839446'}, 'enable': 'true', 'created': '2026-01-06T14:09:15', 'last-modified': '2026-01-06T14:09:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885472'}
2026-01-06 14:09:17,844 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-06 14:09:17,844 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38177725 passed
2026-01-06 14:09:17,844 - DEBUG - ====Verifying policy data for ctest-vn-38177725 in API_Server ======
2026-01-06 14:09:17,844 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 14:09:17,849 - DEBUG - Requesting: http://10.0.0.38:8082/domain/65ec345c-9b48-4231-96b9-1badb46d1b06
2026-01-06 14:09:17,860 - DEBUG - Requesting: http://10.0.0.38:8082/project/9434cc5f-a1ba-434e-8137-6bbb4af52011
2026-01-06 14:09:17,929 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f04b870-c3bb-40c8-8ceb-6fe0bef28cd6
2026-01-06 14:09:17,937 - DEBUG - ==>Verifying data for policy with id: 4dcf3b57-4de1-41d1-aa82-4aa1665ef95c, fqn: ['default-domain', 'ctest-TestBasicPolicy-02295513', 'ctest-policy-allow-all-21086227']
2026-01-06 14:09:17,937 - INFO - VN ctest-vn-38177725 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-06 14:09:17,938 - DEBUG - Verifying the vn in opserver
2026-01-06 14:09:17,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-38177725 virtual network link through opserver 10.0.0.38
2026-01-06 14:09:17,938 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-06 14:09:18,226 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-06 14:09:18,281 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-38177725', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-38177725?flat'}
2026-01-06 14:09:18,281 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-38177725 is found in opserver
2026-01-06 14:09:18,289 - DEBUG - Do not have enough data to verify VN in agent
2026-01-06 14:09:18,293 - DEBUG - VRF ids for VN ctest-vn-38177725: {}
2026-01-06 14:09:18,293 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 14:09:18,297 - DEBUG - Requesting: http://10.0.0.38:8082/domain/65ec345c-9b48-4231-96b9-1badb46d1b06
2026-01-06 14:09:18,306 - DEBUG - Requesting: http://10.0.0.38:8082/project/9434cc5f-a1ba-434e-8137-6bbb4af52011
2026-01-06 14:09:18,372 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/310c5267-7108-4794-937a-8701938e8fba
2026-01-06 14:09:18,381 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/310c5267-7108-4794-937a-8701938e8fba
2026-01-06 14:09:18,388 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ca3109-41ec-4d63-97bd-8239d367e5fd
2026-01-06 14:09:18,394 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ca3109-41ec-4d63-97bd-8239d367e5fd
2026-01-06 14:09:18,400 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4d8fa5f8-4be7-4972-bbd1-3ae7568e76ee
2026-01-06 14:09:18,405 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-06 14:09:18,405 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/310c5267-7108-4794-937a-8701938e8fba
2026-01-06 14:09:18,412 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ca3109-41ec-4d63-97bd-8239d367e5fd
2026-01-06 14:09:18,422 - INFO - Verified VN network id 12 for VN 310c5267-7108-4794-937a-8701938e8fba
2026-01-06 14:09:18,422 - INFO - Verifications in API Server for VN ctest-vn-99452432 passed
2026-01-06 14:09:18,423 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/310c5267-7108-4794-937a-8701938e8fba
2026-01-06 14:09:18,430 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ca3109-41ec-4d63-97bd-8239d367e5fd
2026-01-06 14:09:18,435 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ca3109-41ec-4d63-97bd-8239d367e5fd
2026-01-06 14:09:18,440 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4d8fa5f8-4be7-4972-bbd1-3ae7568e76ee
2026-01-06 14:09:18,449 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-99452432', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02295513', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3534290411810473876', 'uuid-lslong': '10626954711574417338'}, 'enable': 'true', 'created': '2026-01-06T14:09:16', 'last-modified': '2026-01-06T14:09:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.280063'}
2026-01-06 14:09:18,455 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-06 14:09:18,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99452432 passed
2026-01-06 14:09:18,455 - DEBUG - ====Verifying policy data for ctest-vn-99452432 in API_Server ======
2026-01-06 14:09:18,455 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 14:09:18,459 - DEBUG - Requesting: http://10.0.0.38:8082/domain/65ec345c-9b48-4231-96b9-1badb46d1b06
2026-01-06 14:09:18,468 - DEBUG - Requesting: http://10.0.0.38:8082/project/9434cc5f-a1ba-434e-8137-6bbb4af52011
2026-01-06 14:09:18,533 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/310c5267-7108-4794-937a-8701938e8fba
2026-01-06 14:09:18,540 - DEBUG - ==>Verifying data for policy with id: 4dcf3b57-4de1-41d1-aa82-4aa1665ef95c, fqn: ['default-domain', 'ctest-TestBasicPolicy-02295513', 'ctest-policy-allow-all-21086227']
2026-01-06 14:09:18,541 - INFO - VN ctest-vn-99452432 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-06 14:09:18,541 - DEBUG - Verifying the vn in opserver
2026-01-06 14:09:18,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-99452432 virtual network link through opserver 10.0.0.38
2026-01-06 14:09:18,541 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-06 14:09:18,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-99452432', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-99452432?flat'}
2026-01-06 14:09:18,548 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02295513:ctest-vn-99452432 is found in opserver
2026-01-06 14:09:18,557 - DEBUG - Do not have enough data to verify VN in agent
2026-01-06 14:09:18,561 - DEBUG - VRF ids for VN ctest-vn-99452432: {}
2026-01-06 14:09:18,610 - DEBUG - Services list from nova: [