2026-08-20 10:43:20,780 - INFO - Domain Default found not creating
2026-08-20 10:43:20,941 - INFO - Project ctest-TestBasicPolicy-06941863 not found, creating it
2026-08-20 10:43:21,444 - INFO - Created Project:ctest-TestBasicPolicy-06941863, ID : 9c6e5284-58d7-4b67-938b-a93745d17cf0
2026-08-20 10:43:23,179 - INFO - ================================================================================
2026-08-20 10:43:23,180 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-20 10:43:23,180 - 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:43:23,456 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with
2026-08-20 10:43:23,456 - INFO - Initial checks done. Running the testcase now
2026-08-20 10:43:23,456 - INFO -
2026-08-20 10:43:24,107 - DEBUG - Response for create_network : {'network': {'id': '22d66efc-924c-4440-90d5-ab57f02ad18e', 'name': 'ctest-vn-28165489', 'tenant_id': '9c6e528458d74b67938ba93745d17cf0', 'project_id': '9c6e528458d74b67938ba93745d17cf0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06941863', 'ctest-vn-28165489'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:43:24,324 - DEBUG - Response for create_subnet : {'subnet': {'id': '67d117ed-1014-4a54-8688-824d280e0018', 'name': '', 'tenant_id': '9c6e528458d74b67938ba93745d17cf0', 'network_id': '22d66efc-924c-4440-90d5-ab57f02ad18e', 'ip_version': 4, 'cidr': '194.224.240.128/26', 'allocation_pools': [{'start': '194.224.240.130', 'end': '194.224.240.190'}], 'gateway_ip': '194.224.240.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.224.240.130', 'tags': [], 'project_id': '9c6e528458d74b67938ba93745d17cf0'}}
2026-08-20 10:43:24,348 - INFO - Created VN ctest-vn-28165489
2026-08-20 10:43:24,403 - DEBUG - VN ctest-vn-28165489 UUID is 22d66efc-924c-4440-90d5-ab57f02ad18e
2026-08-20 10:43:24,747 - DEBUG - Response for create_network : {'network': {'id': '0b77652e-3bf2-4a47-9c2b-0db1a0af656c', 'name': 'ctest-vn-63697687', 'tenant_id': '9c6e528458d74b67938ba93745d17cf0', 'project_id': '9c6e528458d74b67938ba93745d17cf0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06941863', 'ctest-vn-63697687'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:43:24,984 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aec697e3-d2ae-44f0-96c7-9f0cbc8ec396', 'name': '', 'tenant_id': '9c6e528458d74b67938ba93745d17cf0', 'network_id': '0b77652e-3bf2-4a47-9c2b-0db1a0af656c', 'ip_version': 4, 'cidr': '195.71.204.128/26', 'allocation_pools': [{'start': '195.71.204.130', 'end': '195.71.204.190'}], 'gateway_ip': '195.71.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.71.204.130', 'tags': [], 'project_id': '9c6e528458d74b67938ba93745d17cf0'}}
2026-08-20 10:43:25,004 - INFO - Created VN ctest-vn-63697687
2026-08-20 10:43:25,059 - DEBUG - VN ctest-vn-63697687 UUID is 0b77652e-3bf2-4a47-9c2b-0db1a0af656c
2026-08-20 10:43:25,187 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-28165489, 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-06941863:ctest-vn-63697687, 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:43:25,529 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22d66efc-924c-4440-90d5-ab57f02ad18e', 'name': 'ctest-vn-28165489', 'tenant_id': '9c6e528458d74b67938ba93745d17cf0', 'project_id': '9c6e528458d74b67938ba93745d17cf0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67d117ed-1014-4a54-8688-824d280e0018'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06941863', 'ctest-vn-28165489'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06941863', 'ctest-policy-allow-all-45814079']], 'subnet_ipam': [{'subnet_cidr': '194.224.240.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:43:25,797 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b77652e-3bf2-4a47-9c2b-0db1a0af656c', 'name': 'ctest-vn-63697687', 'tenant_id': '9c6e528458d74b67938ba93745d17cf0', 'project_id': '9c6e528458d74b67938ba93745d17cf0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aec697e3-d2ae-44f0-96c7-9f0cbc8ec396'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06941863', 'ctest-vn-63697687'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06941863', 'ctest-policy-allow-all-45814079']], 'subnet_ipam': [{'subnet_cidr': '195.71.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:43:25,983 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 10:43:26,360 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 10:43:26,404 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ddf8926-063e-4606-84a8-cb5dd2feba94
2026-08-20 10:43:26,420 - DEBUG - Requesting: http://10.0.0.38:8082/project/9c6e5284-58d7-4b67-938b-a93745d17cf0
2026-08-20 10:43:26,510 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22d66efc-924c-4440-90d5-ab57f02ad18e
2026-08-20 10:43:26,525 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22d66efc-924c-4440-90d5-ab57f02ad18e
2026-08-20 10:43:26,537 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d96b804-d220-4529-8aa3-f31426fc452f
2026-08-20 10:43:26,548 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d96b804-d220-4529-8aa3-f31426fc452f
2026-08-20 10:43:26,556 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cda54682-bfe1-4705-bee4-9bada3dff3d6
2026-08-20 10:43:26,564 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 10:43:26,564 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22d66efc-924c-4440-90d5-ab57f02ad18e
2026-08-20 10:43:26,578 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d96b804-d220-4529-8aa3-f31426fc452f
2026-08-20 10:43:26,598 - INFO - Verified VN network id 9 for VN 22d66efc-924c-4440-90d5-ab57f02ad18e
2026-08-20 10:43:26,598 - INFO - Verifications in API Server for VN ctest-vn-28165489 passed
2026-08-20 10:43:26,598 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22d66efc-924c-4440-90d5-ab57f02ad18e
2026-08-20 10:43:26,610 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d96b804-d220-4529-8aa3-f31426fc452f
2026-08-20 10:43:26,618 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d96b804-d220-4529-8aa3-f31426fc452f
2026-08-20 10:43:26,628 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cda54682-bfe1-4705-bee4-9bada3dff3d6
2026-08-20 10:43:26,644 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-28165489', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06941863', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2510315873370915904', 'uuid-lslong': '10436436105680834958'}, 'enable': 'true', 'created': '2026-08-20T10:43:24', 'last-modified': '2026-08-20T10:43:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.145396'}
2026-08-20 10:43:26,653 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 10:43:26,653 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28165489 passed
2026-08-20 10:43:26,653 - DEBUG - ====Verifying policy data for ctest-vn-28165489 in API_Server ======
2026-08-20 10:43:26,653 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 10:43:26,660 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ddf8926-063e-4606-84a8-cb5dd2feba94
2026-08-20 10:43:26,672 - DEBUG - Requesting: http://10.0.0.38:8082/project/9c6e5284-58d7-4b67-938b-a93745d17cf0
2026-08-20 10:43:26,750 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22d66efc-924c-4440-90d5-ab57f02ad18e
2026-08-20 10:43:26,761 - DEBUG - ==>Verifying data for policy with id: 2ea0abea-f73f-4d41-b095-5eadce0ff85a, fqn: ['default-domain', 'ctest-TestBasicPolicy-06941863', 'ctest-policy-allow-all-45814079']
2026-08-20 10:43:26,761 - INFO - VN ctest-vn-28165489 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 10:43:26,761 - DEBUG - Verifying the vn in opserver
2026-08-20 10:43:26,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-28165489 virtual network link through opserver 10.0.0.38
2026-08-20 10:43:26,761 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-20 10:43:27,129 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-20 10:43:27,566 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-28165489', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-28165489?flat'}
2026-08-20 10:43:27,566 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-28165489 is found in opserver
2026-08-20 10:43:27,582 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 10:43:27,589 - DEBUG - VRF ids for VN ctest-vn-28165489: {}
2026-08-20 10:43:27,589 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 10:43:27,598 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ddf8926-063e-4606-84a8-cb5dd2feba94
2026-08-20 10:43:27,613 - DEBUG - Requesting: http://10.0.0.38:8082/project/9c6e5284-58d7-4b67-938b-a93745d17cf0
2026-08-20 10:43:27,704 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b77652e-3bf2-4a47-9c2b-0db1a0af656c
2026-08-20 10:43:27,722 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b77652e-3bf2-4a47-9c2b-0db1a0af656c
2026-08-20 10:43:27,735 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b4212a5-e029-4c49-9a85-8f9b2b98db24
2026-08-20 10:43:27,745 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b4212a5-e029-4c49-9a85-8f9b2b98db24
2026-08-20 10:43:27,755 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eb08e52d-ac46-4434-a4a5-675ffd298089
2026-08-20 10:43:27,765 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 10:43:27,765 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b77652e-3bf2-4a47-9c2b-0db1a0af656c
2026-08-20 10:43:27,779 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b4212a5-e029-4c49-9a85-8f9b2b98db24
2026-08-20 10:43:27,797 - INFO - Verified VN network id 10 for VN 0b77652e-3bf2-4a47-9c2b-0db1a0af656c
2026-08-20 10:43:27,798 - INFO - Verifications in API Server for VN ctest-vn-63697687 passed
2026-08-20 10:43:27,798 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b77652e-3bf2-4a47-9c2b-0db1a0af656c
2026-08-20 10:43:27,811 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b4212a5-e029-4c49-9a85-8f9b2b98db24
2026-08-20 10:43:27,821 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b4212a5-e029-4c49-9a85-8f9b2b98db24
2026-08-20 10:43:27,830 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eb08e52d-ac46-4434-a4a5-675ffd298089
2026-08-20 10:43:27,845 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-63697687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06941863', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '826240305894410823', 'uuid-lslong': '11253103150471538028'}, 'enable': 'true', 'created': '2026-08-20T10:43:24', 'last-modified': '2026-08-20T10:43:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.080685'}
2026-08-20 10:43:27,852 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 10:43:27,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63697687 passed
2026-08-20 10:43:27,852 - DEBUG - ====Verifying policy data for ctest-vn-63697687 in API_Server ======
2026-08-20 10:43:27,852 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 10:43:27,859 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ddf8926-063e-4606-84a8-cb5dd2feba94
2026-08-20 10:43:27,871 - DEBUG - Requesting: http://10.0.0.38:8082/project/9c6e5284-58d7-4b67-938b-a93745d17cf0
2026-08-20 10:43:27,956 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b77652e-3bf2-4a47-9c2b-0db1a0af656c
2026-08-20 10:43:27,966 - DEBUG - ==>Verifying data for policy with id: 2ea0abea-f73f-4d41-b095-5eadce0ff85a, fqn: ['default-domain', 'ctest-TestBasicPolicy-06941863', 'ctest-policy-allow-all-45814079']
2026-08-20 10:43:27,966 - INFO - VN ctest-vn-63697687 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 10:43:27,966 - DEBUG - Verifying the vn in opserver
2026-08-20 10:43:27,966 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-63697687 virtual network link through opserver 10.0.0.38
2026-08-20 10:43:27,966 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-20 10:43:27,977 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-63697687', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-63697687?flat'}
2026-08-20 10:43:27,977 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06941863:ctest-vn-63697687 is found in opserver
2026-08-20 10:43:27,990 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 10:43:27,996 - DEBUG - VRF ids for VN ctest-vn-63697687: {}
2026-08-20 10:43:28,061 - DEBUG - Services list from nova: [