2026-08-20 10:47:51,316 - INFO - Domain Default found not creating
2026-08-20 10:47:51,498 - INFO - Project ctest-TestBasicPolicy-50312181 not found, creating it
2026-08-20 10:47:51,989 - INFO - Created Project:ctest-TestBasicPolicy-50312181, ID : a6898a8c-90aa-49f2-b082-4b96fec212d1
2026-08-20 10:47:53,727 - INFO - ================================================================================
2026-08-20 10:47:53,728 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-20 10:47:53,728 - 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-08-20 10:47:53,990 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-08-20 10:47:53,990 - INFO - Initial checks done. Running the testcase now
2026-08-20 10:47:53,990 - INFO -
2026-08-20 10:47:54,620 - DEBUG - Response for create_network : {'network': {'id': 'b5cd4232-ebe2-4126-88e3-704b4c8c8c1c', 'name': 'ctest-vn-76596531', 'tenant_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'project_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50312181', 'ctest-vn-76596531'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:47:54,769 - DEBUG - Response for create_subnet : {'subnet': {'id': '9833cbd0-4d1e-4e1a-a4ee-34bd0ec644f0', 'name': '', 'tenant_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'network_id': 'b5cd4232-ebe2-4126-88e3-704b4c8c8c1c', 'ip_version': 4, 'cidr': '152.111.66.0/26', 'allocation_pools': [{'start': '152.111.66.2', 'end': '152.111.66.62'}], 'gateway_ip': '152.111.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.111.66.2', 'tags': [], 'project_id': 'a6898a8c90aa49f2b0824b96fec212d1'}}
2026-08-20 10:47:54,787 - INFO - Created VN ctest-vn-76596531
2026-08-20 10:47:54,838 - DEBUG - VN ctest-vn-76596531 UUID is b5cd4232-ebe2-4126-88e3-704b4c8c8c1c
2026-08-20 10:47:55,176 - DEBUG - Response for create_network : {'network': {'id': '571fdacd-ae00-4afb-96b0-0bdb1aefc0dc', 'name': 'ctest-vn-75227662', 'tenant_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'project_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50312181', 'ctest-vn-75227662'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:47:55,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '91a14748-31b5-4930-bb9c-628d8806a74e', 'name': '', 'tenant_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'network_id': '571fdacd-ae00-4afb-96b0-0bdb1aefc0dc', 'ip_version': 4, 'cidr': '72.216.134.128/26', 'allocation_pools': [{'start': '72.216.134.130', 'end': '72.216.134.190'}], 'gateway_ip': '72.216.134.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.216.134.130', 'tags': [], 'project_id': 'a6898a8c90aa49f2b0824b96fec212d1'}}
2026-08-20 10:47:55,387 - INFO - Created VN ctest-vn-75227662
2026-08-20 10:47:55,442 - DEBUG - VN ctest-vn-75227662 UUID is 571fdacd-ae00-4afb-96b0-0bdb1aefc0dc
2026-08-20 10:47:55,561 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-76596531, 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-50312181:ctest-vn-75227662, 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-08-20 10:47:55,885 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5cd4232-ebe2-4126-88e3-704b4c8c8c1c', 'name': 'ctest-vn-76596531', 'tenant_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'project_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9833cbd0-4d1e-4e1a-a4ee-34bd0ec644f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50312181', 'ctest-vn-76596531'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50312181', 'ctest-policy-allow-all-28768022']], 'subnet_ipam': [{'subnet_cidr': '152.111.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:47:56,118 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '571fdacd-ae00-4afb-96b0-0bdb1aefc0dc', 'name': 'ctest-vn-75227662', 'tenant_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'project_id': 'a6898a8c90aa49f2b0824b96fec212d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91a14748-31b5-4930-bb9c-628d8806a74e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50312181', 'ctest-vn-75227662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50312181', 'ctest-policy-allow-all-28768022']], 'subnet_ipam': [{'subnet_cidr': '72.216.134.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:47:56,278 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 10:47:56,647 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 10:47:56,676 - DEBUG - Requesting: http://10.0.0.50:8082/domain/06f8a0b9-5529-4c8d-a613-85147c174296
2026-08-20 10:47:56,688 - DEBUG - Requesting: http://10.0.0.50:8082/project/a6898a8c-90aa-49f2-b082-4b96fec212d1
2026-08-20 10:47:56,763 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5cd4232-ebe2-4126-88e3-704b4c8c8c1c
2026-08-20 10:47:56,776 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5cd4232-ebe2-4126-88e3-704b4c8c8c1c
2026-08-20 10:47:56,785 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9faef71-8aa4-4096-bf98-7b0c4829545f
2026-08-20 10:47:56,793 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9faef71-8aa4-4096-bf98-7b0c4829545f
2026-08-20 10:47:56,800 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f7bba9f5-f34e-4ff1-a7f7-b7a69d3184ad
2026-08-20 10:47:56,807 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 10:47:56,807 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5cd4232-ebe2-4126-88e3-704b4c8c8c1c
2026-08-20 10:47:56,816 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9faef71-8aa4-4096-bf98-7b0c4829545f
2026-08-20 10:47:56,829 - INFO - Verified VN network id 11 for VN b5cd4232-ebe2-4126-88e3-704b4c8c8c1c
2026-08-20 10:47:56,829 - INFO - Verifications in API Server for VN ctest-vn-76596531 passed
2026-08-20 10:47:56,829 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5cd4232-ebe2-4126-88e3-704b4c8c8c1c
2026-08-20 10:47:56,840 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9faef71-8aa4-4096-bf98-7b0c4829545f
2026-08-20 10:47:56,848 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9faef71-8aa4-4096-bf98-7b0c4829545f
2026-08-20 10:47:56,856 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f7bba9f5-f34e-4ff1-a7f7-b7a69d3184ad
2026-08-20 10:47:56,869 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-76596531', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50312181', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13100199677563912486', 'uuid-lslong': '9863851077580655644'}, 'enable': 'true', 'created': '2026-08-20T10:47:54', 'last-modified': '2026-08-20T10:47:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017892'}
2026-08-20 10:47:56,877 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 10:47:56,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76596531 passed
2026-08-20 10:47:56,877 - DEBUG - ====Verifying policy data for ctest-vn-76596531 in API_Server ======
2026-08-20 10:47:56,877 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 10:47:56,884 - DEBUG - Requesting: http://10.0.0.50:8082/domain/06f8a0b9-5529-4c8d-a613-85147c174296
2026-08-20 10:47:56,895 - DEBUG - Requesting: http://10.0.0.50:8082/project/a6898a8c-90aa-49f2-b082-4b96fec212d1
2026-08-20 10:47:56,970 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5cd4232-ebe2-4126-88e3-704b4c8c8c1c
2026-08-20 10:47:56,980 - DEBUG - ==>Verifying data for policy with id: 0f28b7f1-07d8-45a2-adb7-1ff32755e00a, fqn: ['default-domain', 'ctest-TestBasicPolicy-50312181', 'ctest-policy-allow-all-28768022']
2026-08-20 10:47:56,980 - INFO - VN ctest-vn-76596531 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 10:47:56,980 - DEBUG - Verifying the vn in opserver
2026-08-20 10:47:56,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-76596531 virtual network link through opserver 10.0.0.50
2026-08-20 10:47:56,980 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-20 10:47:57,351 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-20 10:47:57,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-76596531', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-76596531?flat'}
2026-08-20 10:47:57,408 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-76596531 is found in opserver
2026-08-20 10:47:57,418 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 10:47:57,423 - DEBUG - VRF ids for VN ctest-vn-76596531: {}
2026-08-20 10:47:57,423 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 10:47:57,428 - DEBUG - Requesting: http://10.0.0.50:8082/domain/06f8a0b9-5529-4c8d-a613-85147c174296
2026-08-20 10:47:57,438 - DEBUG - Requesting: http://10.0.0.50:8082/project/a6898a8c-90aa-49f2-b082-4b96fec212d1
2026-08-20 10:47:57,513 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/571fdacd-ae00-4afb-96b0-0bdb1aefc0dc
2026-08-20 10:47:57,526 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/571fdacd-ae00-4afb-96b0-0bdb1aefc0dc
2026-08-20 10:47:57,536 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05d0da66-4201-45bd-9b28-f6bd76080561
2026-08-20 10:47:57,544 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05d0da66-4201-45bd-9b28-f6bd76080561
2026-08-20 10:47:57,551 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a9be2058-940c-4f1b-9f12-29d6127d7f0a
2026-08-20 10:47:57,558 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 10:47:57,558 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/571fdacd-ae00-4afb-96b0-0bdb1aefc0dc
2026-08-20 10:47:57,567 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05d0da66-4201-45bd-9b28-f6bd76080561
2026-08-20 10:47:57,581 - INFO - Verified VN network id 12 for VN 571fdacd-ae00-4afb-96b0-0bdb1aefc0dc
2026-08-20 10:47:57,581 - INFO - Verifications in API Server for VN ctest-vn-75227662 passed
2026-08-20 10:47:57,582 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/571fdacd-ae00-4afb-96b0-0bdb1aefc0dc
2026-08-20 10:47:57,591 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05d0da66-4201-45bd-9b28-f6bd76080561
2026-08-20 10:47:57,597 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05d0da66-4201-45bd-9b28-f6bd76080561
2026-08-20 10:47:57,605 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a9be2058-940c-4f1b-9f12-29d6127d7f0a
2026-08-20 10:47:57,620 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-75227662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50312181', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6277976982500166395', 'uuid-lslong': '10858191737267929308'}, 'enable': 'true', 'created': '2026-08-20T10:47:55', 'last-modified': '2026-08-20T10:47:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.528136'}
2026-08-20 10:47:57,626 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 10:47:57,626 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75227662 passed
2026-08-20 10:47:57,627 - DEBUG - ====Verifying policy data for ctest-vn-75227662 in API_Server ======
2026-08-20 10:47:57,627 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 10:47:57,632 - DEBUG - Requesting: http://10.0.0.50:8082/domain/06f8a0b9-5529-4c8d-a613-85147c174296
2026-08-20 10:47:57,643 - DEBUG - Requesting: http://10.0.0.50:8082/project/a6898a8c-90aa-49f2-b082-4b96fec212d1
2026-08-20 10:47:57,712 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/571fdacd-ae00-4afb-96b0-0bdb1aefc0dc
2026-08-20 10:47:57,724 - DEBUG - ==>Verifying data for policy with id: 0f28b7f1-07d8-45a2-adb7-1ff32755e00a, fqn: ['default-domain', 'ctest-TestBasicPolicy-50312181', 'ctest-policy-allow-all-28768022']
2026-08-20 10:47:57,724 - INFO - VN ctest-vn-75227662 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 10:47:57,724 - DEBUG - Verifying the vn in opserver
2026-08-20 10:47:57,724 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-75227662 virtual network link through opserver 10.0.0.50
2026-08-20 10:47:57,724 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-20 10:47:57,734 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-75227662', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-75227662?flat'}
2026-08-20 10:47:57,734 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50312181:ctest-vn-75227662 is found in opserver
2026-08-20 10:47:57,746 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 10:47:57,750 - DEBUG - VRF ids for VN ctest-vn-75227662: {}
2026-08-20 10:47:57,827 - DEBUG - Services list from nova: [