2026-05-28 22:58:53,777 - INFO - Domain Default found not creating
2026-05-28 22:58:53,950 - INFO - Project ctest-TestBasicPolicy-08507613 not found, creating it
2026-05-28 22:58:54,445 - INFO - Created Project:ctest-TestBasicPolicy-08507613, ID : d45e62ce-b70a-4579-a6c3-5575f6b33842
2026-05-28 22:58:55,951 - INFO - ================================================================================
2026-05-28 22:58:55,951 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-28 22:58:55,952 - 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-05-28 22:58:56,202 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-05-28 22:58:56,202 - INFO - Initial checks done. Running the testcase now
2026-05-28 22:58:56,202 - INFO -
2026-05-28 22:58:56,764 - DEBUG - Response for create_network : {'network': {'id': 'b4b9f4b8-d409-4145-8594-291782d5e1fe', 'name': 'ctest-vn-90300741', 'tenant_id': 'd45e62ceb70a4579a6c35575f6b33842', 'project_id': 'd45e62ceb70a4579a6c35575f6b33842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08507613', 'ctest-vn-90300741'], 'port_security_enabled': True, 'description': ''}}
2026-05-28 22:58:56,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '76ee2cdb-2b9d-4246-8861-5cd103a3be60', 'name': '', 'tenant_id': 'd45e62ceb70a4579a6c35575f6b33842', 'network_id': 'b4b9f4b8-d409-4145-8594-291782d5e1fe', 'ip_version': 4, 'cidr': '222.92.198.64/26', 'allocation_pools': [{'start': '222.92.198.66', 'end': '222.92.198.126'}], 'gateway_ip': '222.92.198.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.92.198.66', 'tags': [], 'project_id': 'd45e62ceb70a4579a6c35575f6b33842'}}
2026-05-28 22:58:56,948 - INFO - Created VN ctest-vn-90300741
2026-05-28 22:58:57,002 - DEBUG - VN ctest-vn-90300741 UUID is b4b9f4b8-d409-4145-8594-291782d5e1fe
2026-05-28 22:58:57,323 - DEBUG - Response for create_network : {'network': {'id': 'b8aa31a6-f419-4043-a7ba-5d65b483f477', 'name': 'ctest-vn-12350454', 'tenant_id': 'd45e62ceb70a4579a6c35575f6b33842', 'project_id': 'd45e62ceb70a4579a6c35575f6b33842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08507613', 'ctest-vn-12350454'], 'port_security_enabled': True, 'description': ''}}
2026-05-28 22:58:57,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '375809b0-f8a2-450b-bbf4-1aca24ab552b', 'name': '', 'tenant_id': 'd45e62ceb70a4579a6c35575f6b33842', 'network_id': 'b8aa31a6-f419-4043-a7ba-5d65b483f477', 'ip_version': 4, 'cidr': '82.104.106.0/26', 'allocation_pools': [{'start': '82.104.106.2', 'end': '82.104.106.62'}], 'gateway_ip': '82.104.106.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.104.106.2', 'tags': [], 'project_id': 'd45e62ceb70a4579a6c35575f6b33842'}}
2026-05-28 22:58:57,531 - INFO - Created VN ctest-vn-12350454
2026-05-28 22:58:57,582 - DEBUG - VN ctest-vn-12350454 UUID is b8aa31a6-f419-4043-a7ba-5d65b483f477
2026-05-28 22:58:57,695 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-90300741, 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-08507613:ctest-vn-12350454, 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-05-28 22:58:57,998 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4b9f4b8-d409-4145-8594-291782d5e1fe', 'name': 'ctest-vn-90300741', 'tenant_id': 'd45e62ceb70a4579a6c35575f6b33842', 'project_id': 'd45e62ceb70a4579a6c35575f6b33842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76ee2cdb-2b9d-4246-8861-5cd103a3be60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08507613', 'ctest-vn-90300741'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08507613', 'ctest-policy-allow-all-81634439']], 'subnet_ipam': [{'subnet_cidr': '222.92.198.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-28 22:58:58,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8aa31a6-f419-4043-a7ba-5d65b483f477', 'name': 'ctest-vn-12350454', 'tenant_id': 'd45e62ceb70a4579a6c35575f6b33842', 'project_id': 'd45e62ceb70a4579a6c35575f6b33842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['375809b0-f8a2-450b-bbf4-1aca24ab552b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08507613', 'ctest-vn-12350454'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08507613', 'ctest-policy-allow-all-81634439']], 'subnet_ipam': [{'subnet_cidr': '82.104.106.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-28 22:58:58,386 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-28 22:58:58,693 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-28 22:58:58,723 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6b5fc04-3857-4ba3-8849-6cabe0dde446
2026-05-28 22:58:58,734 - DEBUG - Requesting: http://10.0.0.38:8082/project/d45e62ce-b70a-4579-a6c3-5575f6b33842
2026-05-28 22:58:58,804 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4b9f4b8-d409-4145-8594-291782d5e1fe
2026-05-28 22:58:58,814 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4b9f4b8-d409-4145-8594-291782d5e1fe
2026-05-28 22:58:58,823 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c414153b-f890-4376-a04a-c6622817fa3a
2026-05-28 22:58:58,831 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c414153b-f890-4376-a04a-c6622817fa3a
2026-05-28 22:58:58,836 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8fcc28e9-d197-4c8f-9e98-4a430dd221a2
2026-05-28 22:58:58,841 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-28 22:58:58,841 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4b9f4b8-d409-4145-8594-291782d5e1fe
2026-05-28 22:58:58,849 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c414153b-f890-4376-a04a-c6622817fa3a
2026-05-28 22:58:58,860 - INFO - Verified VN network id 11 for VN b4b9f4b8-d409-4145-8594-291782d5e1fe
2026-05-28 22:58:58,860 - INFO - Verifications in API Server for VN ctest-vn-90300741 passed
2026-05-28 22:58:58,860 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4b9f4b8-d409-4145-8594-291782d5e1fe
2026-05-28 22:58:58,867 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c414153b-f890-4376-a04a-c6622817fa3a
2026-05-28 22:58:58,874 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c414153b-f890-4376-a04a-c6622817fa3a
2026-05-28 22:58:58,880 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8fcc28e9-d197-4c8f-9e98-4a430dd221a2
2026-05-28 22:58:58,889 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-90300741', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08507613', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13022708872187035973', 'uuid-lslong': '9625363484553634302'}, 'enable': 'true', 'created': '2026-05-28T22:58:56', 'last-modified': '2026-05-28T22:58:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918022'}
2026-05-28 22:58:58,894 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-28 22:58:58,894 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90300741 passed
2026-05-28 22:58:58,894 - DEBUG - ====Verifying policy data for ctest-vn-90300741 in API_Server ======
2026-05-28 22:58:58,894 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-28 22:58:58,898 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6b5fc04-3857-4ba3-8849-6cabe0dde446
2026-05-28 22:58:58,907 - DEBUG - Requesting: http://10.0.0.38:8082/project/d45e62ce-b70a-4579-a6c3-5575f6b33842
2026-05-28 22:58:58,976 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4b9f4b8-d409-4145-8594-291782d5e1fe
2026-05-28 22:58:58,984 - DEBUG - ==>Verifying data for policy with id: 239a08d6-3e05-4b1f-a03f-c9348b245823, fqn: ['default-domain', 'ctest-TestBasicPolicy-08507613', 'ctest-policy-allow-all-81634439']
2026-05-28 22:58:58,984 - INFO - VN ctest-vn-90300741 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-28 22:58:58,984 - DEBUG - Verifying the vn in opserver
2026-05-28 22:58:58,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-90300741 virtual network link through opserver 10.0.0.38
2026-05-28 22:58:58,984 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-28 22:58:59,293 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-28 22:58:59,350 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-90300741', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-90300741?flat'}
2026-05-28 22:58:59,350 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-90300741 is found in opserver
2026-05-28 22:58:59,359 - DEBUG - Do not have enough data to verify VN in agent
2026-05-28 22:58:59,364 - DEBUG - VRF ids for VN ctest-vn-90300741: {}
2026-05-28 22:58:59,364 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-28 22:58:59,369 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6b5fc04-3857-4ba3-8849-6cabe0dde446
2026-05-28 22:58:59,378 - DEBUG - Requesting: http://10.0.0.38:8082/project/d45e62ce-b70a-4579-a6c3-5575f6b33842
2026-05-28 22:58:59,452 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8aa31a6-f419-4043-a7ba-5d65b483f477
2026-05-28 22:58:59,462 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8aa31a6-f419-4043-a7ba-5d65b483f477
2026-05-28 22:58:59,471 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5689ea89-03f3-4441-8fc3-59308c3e88ad
2026-05-28 22:58:59,477 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5689ea89-03f3-4441-8fc3-59308c3e88ad
2026-05-28 22:58:59,483 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d03950c0-5201-4d29-9065-ec65a6fcaf3e
2026-05-28 22:58:59,487 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-28 22:58:59,487 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8aa31a6-f419-4043-a7ba-5d65b483f477
2026-05-28 22:58:59,495 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5689ea89-03f3-4441-8fc3-59308c3e88ad
2026-05-28 22:58:59,507 - INFO - Verified VN network id 12 for VN b8aa31a6-f419-4043-a7ba-5d65b483f477
2026-05-28 22:58:59,507 - INFO - Verifications in API Server for VN ctest-vn-12350454 passed
2026-05-28 22:58:59,507 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8aa31a6-f419-4043-a7ba-5d65b483f477
2026-05-28 22:58:59,514 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5689ea89-03f3-4441-8fc3-59308c3e88ad
2026-05-28 22:58:59,520 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5689ea89-03f3-4441-8fc3-59308c3e88ad
2026-05-28 22:58:59,525 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d03950c0-5201-4d29-9065-ec65a6fcaf3e
2026-05-28 22:58:59,534 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-12350454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08507613', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13306502642149179459', 'uuid-lslong': '12086075241403774071'}, 'enable': 'true', 'created': '2026-05-28T22:58:57', 'last-modified': '2026-05-28T22:58:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.330514'}
2026-05-28 22:58:59,539 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-28 22:58:59,539 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12350454 passed
2026-05-28 22:58:59,539 - DEBUG - ====Verifying policy data for ctest-vn-12350454 in API_Server ======
2026-05-28 22:58:59,539 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-28 22:58:59,544 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6b5fc04-3857-4ba3-8849-6cabe0dde446
2026-05-28 22:58:59,554 - DEBUG - Requesting: http://10.0.0.38:8082/project/d45e62ce-b70a-4579-a6c3-5575f6b33842
2026-05-28 22:58:59,624 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8aa31a6-f419-4043-a7ba-5d65b483f477
2026-05-28 22:58:59,631 - DEBUG - ==>Verifying data for policy with id: 239a08d6-3e05-4b1f-a03f-c9348b245823, fqn: ['default-domain', 'ctest-TestBasicPolicy-08507613', 'ctest-policy-allow-all-81634439']
2026-05-28 22:58:59,631 - INFO - VN ctest-vn-12350454 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-28 22:58:59,631 - DEBUG - Verifying the vn in opserver
2026-05-28 22:58:59,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-12350454 virtual network link through opserver 10.0.0.38
2026-05-28 22:58:59,632 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-28 22:58:59,640 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-12350454', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-12350454?flat'}
2026-05-28 22:58:59,640 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08507613:ctest-vn-12350454 is found in opserver
2026-05-28 22:58:59,649 - DEBUG - Do not have enough data to verify VN in agent
2026-05-28 22:58:59,653 - DEBUG - VRF ids for VN ctest-vn-12350454: {}
2026-05-28 22:58:59,707 - DEBUG - Services list from nova: [