2026-08-20 19:33:48,672 - INFO - Domain Default found not creating
2026-08-20 19:33:48,847 - INFO - Project ctest-TestBasicPolicy-40091747 not found, creating it
2026-08-20 19:33:49,334 - INFO - Created Project:ctest-TestBasicPolicy-40091747, ID : 7d27488c-1a9c-4131-a548-43d90488dad0
2026-08-20 19:33:51,056 - INFO - ================================================================================
2026-08-20 19:33:51,056 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-20 19:33:51,056 - 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 19:33:51,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.254': '0'}} with
2026-08-20 19:33:51,326 - INFO - Initial checks done. Running the testcase now
2026-08-20 19:33:51,326 - INFO -
2026-08-20 19:33:51,979 - DEBUG - Response for create_network : {'network': {'id': '47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72', 'name': 'ctest-vn-88184632', 'tenant_id': '7d27488c1a9c4131a54843d90488dad0', 'project_id': '7d27488c1a9c4131a54843d90488dad0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40091747', 'ctest-vn-88184632'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 19:33:52,153 - DEBUG - Response for create_subnet : {'subnet': {'id': '40c8d662-8c9a-46dc-b36f-2e048def388d', 'name': '', 'tenant_id': '7d27488c1a9c4131a54843d90488dad0', 'network_id': '47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72', 'ip_version': 4, 'cidr': '45.34.223.128/26', 'allocation_pools': [{'start': '45.34.223.130', 'end': '45.34.223.190'}], 'gateway_ip': '45.34.223.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.34.223.130', 'tags': [], 'project_id': '7d27488c1a9c4131a54843d90488dad0'}}
2026-08-20 19:33:52,171 - INFO - Created VN ctest-vn-88184632
2026-08-20 19:33:52,230 - DEBUG - VN ctest-vn-88184632 UUID is 47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72
2026-08-20 19:33:52,577 - DEBUG - Response for create_network : {'network': {'id': '13a8d6fc-f14b-4d0d-a535-7215081c854c', 'name': 'ctest-vn-50554553', 'tenant_id': '7d27488c1a9c4131a54843d90488dad0', 'project_id': '7d27488c1a9c4131a54843d90488dad0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40091747', 'ctest-vn-50554553'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 19:33:52,795 - DEBUG - Response for create_subnet : {'subnet': {'id': '29b8c086-3254-48dd-b732-29d37b871d1f', 'name': '', 'tenant_id': '7d27488c1a9c4131a54843d90488dad0', 'network_id': '13a8d6fc-f14b-4d0d-a535-7215081c854c', 'ip_version': 4, 'cidr': '194.38.223.128/26', 'allocation_pools': [{'start': '194.38.223.130', 'end': '194.38.223.190'}], 'gateway_ip': '194.38.223.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.38.223.130', 'tags': [], 'project_id': '7d27488c1a9c4131a54843d90488dad0'}}
2026-08-20 19:33:52,814 - INFO - Created VN ctest-vn-50554553
2026-08-20 19:33:52,866 - DEBUG - VN ctest-vn-50554553 UUID is 13a8d6fc-f14b-4d0d-a535-7215081c854c
2026-08-20 19:33:52,977 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-88184632, 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-40091747:ctest-vn-50554553, 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 19:33:53,300 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72', 'name': 'ctest-vn-88184632', 'tenant_id': '7d27488c1a9c4131a54843d90488dad0', 'project_id': '7d27488c1a9c4131a54843d90488dad0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40c8d662-8c9a-46dc-b36f-2e048def388d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40091747', 'ctest-vn-88184632'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40091747', 'ctest-policy-allow-all-77980291']], 'subnet_ipam': [{'subnet_cidr': '45.34.223.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 19:33:53,538 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13a8d6fc-f14b-4d0d-a535-7215081c854c', 'name': 'ctest-vn-50554553', 'tenant_id': '7d27488c1a9c4131a54843d90488dad0', 'project_id': '7d27488c1a9c4131a54843d90488dad0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29b8c086-3254-48dd-b732-29d37b871d1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40091747', 'ctest-vn-50554553'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40091747', 'ctest-policy-allow-all-77980291']], 'subnet_ipam': [{'subnet_cidr': '194.38.223.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 19:33:53,718 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-20 19:33:54,087 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-20 19:33:54,116 - DEBUG - Requesting: http://10.0.0.189:8082/domain/eaacb39e-cadf-4029-83dc-14c90db4b95c
2026-08-20 19:33:54,135 - DEBUG - Requesting: http://10.0.0.189:8082/project/7d27488c-1a9c-4131-a548-43d90488dad0
2026-08-20 19:33:54,218 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72
2026-08-20 19:33:54,232 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72
2026-08-20 19:33:54,242 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f194e7f1-046f-4b83-8812-0f250d5b8be0
2026-08-20 19:33:54,250 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f194e7f1-046f-4b83-8812-0f250d5b8be0
2026-08-20 19:33:54,257 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/59058b2c-8bc6-42fc-ad5b-b6487611dcbf
2026-08-20 19:33:54,264 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 19:33:54,264 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72
2026-08-20 19:33:54,274 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f194e7f1-046f-4b83-8812-0f250d5b8be0
2026-08-20 19:33:54,289 - INFO - Verified VN network id 11 for VN 47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72
2026-08-20 19:33:54,289 - INFO - Verifications in API Server for VN ctest-vn-88184632 passed
2026-08-20 19:33:54,289 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72
2026-08-20 19:33:54,299 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f194e7f1-046f-4b83-8812-0f250d5b8be0
2026-08-20 19:33:54,307 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f194e7f1-046f-4b83-8812-0f250d5b8be0
2026-08-20 19:33:54,315 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/59058b2c-8bc6-42fc-ad5b-b6487611dcbf
2026-08-20 19:33:54,330 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-88184632', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40091747', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5163642876078214812', 'uuid-lslong': '10454151593099066482'}, 'enable': 'true', 'created': '2026-08-20T19:33:51', 'last-modified': '2026-08-20T19:33:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.055339'}
2026-08-20 19:33:54,336 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 19:33:54,336 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88184632 passed
2026-08-20 19:33:54,337 - DEBUG - ====Verifying policy data for ctest-vn-88184632 in API_Server ======
2026-08-20 19:33:54,337 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-20 19:33:54,343 - DEBUG - Requesting: http://10.0.0.189:8082/domain/eaacb39e-cadf-4029-83dc-14c90db4b95c
2026-08-20 19:33:54,354 - DEBUG - Requesting: http://10.0.0.189:8082/project/7d27488c-1a9c-4131-a548-43d90488dad0
2026-08-20 19:33:54,427 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/47a8f1d6-6f9e-4e9c-9114-9b7c46c0fc72
2026-08-20 19:33:54,438 - DEBUG - ==>Verifying data for policy with id: c9e242a1-78b2-40e0-a462-21773f0015e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-40091747', 'ctest-policy-allow-all-77980291']
2026-08-20 19:33:54,438 - INFO - VN ctest-vn-88184632 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 19:33:54,438 - DEBUG - Verifying the vn in opserver
2026-08-20 19:33:54,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-88184632 virtual network link through opserver 10.0.0.189
2026-08-20 19:33:54,439 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-08-20 19:33:54,810 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-08-20 19:33:54,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-88184632', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-88184632?flat'}
2026-08-20 19:33:54,870 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-88184632 is found in opserver
2026-08-20 19:33:54,881 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 19:33:54,888 - DEBUG - VRF ids for VN ctest-vn-88184632: {}
2026-08-20 19:33:54,888 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-20 19:33:54,893 - DEBUG - Requesting: http://10.0.0.189:8082/domain/eaacb39e-cadf-4029-83dc-14c90db4b95c
2026-08-20 19:33:54,906 - DEBUG - Requesting: http://10.0.0.189:8082/project/7d27488c-1a9c-4131-a548-43d90488dad0
2026-08-20 19:33:54,984 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/13a8d6fc-f14b-4d0d-a535-7215081c854c
2026-08-20 19:33:54,997 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/13a8d6fc-f14b-4d0d-a535-7215081c854c
2026-08-20 19:33:55,007 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d1c1df29-f305-4a91-8cae-cb0164d46e3e
2026-08-20 19:33:55,014 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d1c1df29-f305-4a91-8cae-cb0164d46e3e
2026-08-20 19:33:55,022 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/3c5b20fd-c5b6-4beb-bd33-6f87da03951f
2026-08-20 19:33:55,029 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 19:33:55,029 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/13a8d6fc-f14b-4d0d-a535-7215081c854c
2026-08-20 19:33:55,040 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d1c1df29-f305-4a91-8cae-cb0164d46e3e
2026-08-20 19:33:55,056 - INFO - Verified VN network id 12 for VN 13a8d6fc-f14b-4d0d-a535-7215081c854c
2026-08-20 19:33:55,056 - INFO - Verifications in API Server for VN ctest-vn-50554553 passed
2026-08-20 19:33:55,056 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/13a8d6fc-f14b-4d0d-a535-7215081c854c
2026-08-20 19:33:55,114 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d1c1df29-f305-4a91-8cae-cb0164d46e3e
2026-08-20 19:33:55,123 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d1c1df29-f305-4a91-8cae-cb0164d46e3e
2026-08-20 19:33:55,135 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/3c5b20fd-c5b6-4beb-bd33-6f87da03951f
2026-08-20 19:33:55,153 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-50554553', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40091747', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1416618464676367629', 'uuid-lslong': '11904546624679740748'}, 'enable': 'true', 'created': '2026-08-20T19:33:52', 'last-modified': '2026-08-20T19:33:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.634501'}
2026-08-20 19:33:55,164 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 19:33:55,164 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50554553 passed
2026-08-20 19:33:55,165 - DEBUG - ====Verifying policy data for ctest-vn-50554553 in API_Server ======
2026-08-20 19:33:55,165 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-20 19:33:55,171 - DEBUG - Requesting: http://10.0.0.189:8082/domain/eaacb39e-cadf-4029-83dc-14c90db4b95c
2026-08-20 19:33:55,183 - DEBUG - Requesting: http://10.0.0.189:8082/project/7d27488c-1a9c-4131-a548-43d90488dad0
2026-08-20 19:33:55,258 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/13a8d6fc-f14b-4d0d-a535-7215081c854c
2026-08-20 19:33:55,268 - DEBUG - ==>Verifying data for policy with id: c9e242a1-78b2-40e0-a462-21773f0015e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-40091747', 'ctest-policy-allow-all-77980291']
2026-08-20 19:33:55,268 - INFO - VN ctest-vn-50554553 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 19:33:55,268 - DEBUG - Verifying the vn in opserver
2026-08-20 19:33:55,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-50554553 virtual network link through opserver 10.0.0.189
2026-08-20 19:33:55,268 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-08-20 19:33:55,279 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-50554553', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-50554553?flat'}
2026-08-20 19:33:55,279 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40091747:ctest-vn-50554553 is found in opserver
2026-08-20 19:33:55,290 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 19:33:55,295 - DEBUG - VRF ids for VN ctest-vn-50554553: {}
2026-08-20 19:33:55,359 - DEBUG - Services list from nova: [