2026-03-02 16:26:56,282 - INFO - Domain Default found not creating
2026-03-02 16:26:56,433 - INFO - Project ctest-TestBasicPolicy-03406947 not found, creating it
2026-03-02 16:26:56,856 - INFO - Created Project:ctest-TestBasicPolicy-03406947, ID : 384e0a5d-8c58-4657-ae50-e74bedecc7c6
2026-03-02 16:26:58,224 - INFO - ================================================================================
2026-03-02 16:26:58,224 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-02 16:26:58,224 - 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-03-02 16:26:58,483 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-03-02 16:26:58,483 - INFO - Initial checks done. Running the testcase now
2026-03-02 16:26:58,483 - INFO -
2026-03-02 16:26:59,042 - DEBUG - Response for create_network : {'network': {'id': '61b373d4-4b33-48b2-b875-440287c6203a', 'name': 'ctest-vn-19894518', 'tenant_id': '384e0a5d8c584657ae50e74bedecc7c6', 'project_id': '384e0a5d8c584657ae50e74bedecc7c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406947', 'ctest-vn-19894518'], 'port_security_enabled': True, 'description': ''}}
2026-03-02 16:26:59,230 - DEBUG - Response for create_subnet : {'subnet': {'id': '753e552a-ab57-4636-830c-b729bf1e63b3', 'name': '', 'tenant_id': '384e0a5d8c584657ae50e74bedecc7c6', 'network_id': '61b373d4-4b33-48b2-b875-440287c6203a', 'ip_version': 4, 'cidr': '38.0.155.64/26', 'allocation_pools': [{'start': '38.0.155.66', 'end': '38.0.155.126'}], 'gateway_ip': '38.0.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.0.155.66', 'tags': [], 'project_id': '384e0a5d8c584657ae50e74bedecc7c6'}}
2026-03-02 16:26:59,247 - INFO - Created VN ctest-vn-19894518
2026-03-02 16:26:59,298 - DEBUG - VN ctest-vn-19894518 UUID is 61b373d4-4b33-48b2-b875-440287c6203a
2026-03-02 16:26:59,595 - DEBUG - Response for create_network : {'network': {'id': '94590431-a1ba-4f99-84ee-cc3be42cfd02', 'name': 'ctest-vn-08308683', 'tenant_id': '384e0a5d8c584657ae50e74bedecc7c6', 'project_id': '384e0a5d8c584657ae50e74bedecc7c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406947', 'ctest-vn-08308683'], 'port_security_enabled': True, 'description': ''}}
2026-03-02 16:26:59,818 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c02d7780-bac1-473a-abf9-779a5267f6e0', 'name': '', 'tenant_id': '384e0a5d8c584657ae50e74bedecc7c6', 'network_id': '94590431-a1ba-4f99-84ee-cc3be42cfd02', 'ip_version': 4, 'cidr': '16.239.228.0/26', 'allocation_pools': [{'start': '16.239.228.2', 'end': '16.239.228.62'}], 'gateway_ip': '16.239.228.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.239.228.2', 'tags': [], 'project_id': '384e0a5d8c584657ae50e74bedecc7c6'}}
2026-03-02 16:26:59,833 - INFO - Created VN ctest-vn-08308683
2026-03-02 16:26:59,886 - DEBUG - VN ctest-vn-08308683 UUID is 94590431-a1ba-4f99-84ee-cc3be42cfd02
2026-03-02 16:27:00,030 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-19894518, 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-03406947:ctest-vn-08308683, 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-03-02 16:27:00,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61b373d4-4b33-48b2-b875-440287c6203a', 'name': 'ctest-vn-19894518', 'tenant_id': '384e0a5d8c584657ae50e74bedecc7c6', 'project_id': '384e0a5d8c584657ae50e74bedecc7c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['753e552a-ab57-4636-830c-b729bf1e63b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406947', 'ctest-vn-19894518'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03406947', 'ctest-policy-allow-all-49416772']], 'subnet_ipam': [{'subnet_cidr': '38.0.155.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-02 16:27:00,549 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94590431-a1ba-4f99-84ee-cc3be42cfd02', 'name': 'ctest-vn-08308683', 'tenant_id': '384e0a5d8c584657ae50e74bedecc7c6', 'project_id': '384e0a5d8c584657ae50e74bedecc7c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c02d7780-bac1-473a-abf9-779a5267f6e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406947', 'ctest-vn-08308683'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03406947', 'ctest-policy-allow-all-49416772']], 'subnet_ipam': [{'subnet_cidr': '16.239.228.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-02 16:27:00,710 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-02 16:27:01,006 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-02 16:27:01,036 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6280c71-1ed9-45a0-a013-d958f0bfd883
2026-03-02 16:27:01,047 - DEBUG - Requesting: http://10.0.0.38:8082/project/384e0a5d-8c58-4657-ae50-e74bedecc7c6
2026-03-02 16:27:01,115 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b373d4-4b33-48b2-b875-440287c6203a
2026-03-02 16:27:01,123 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b373d4-4b33-48b2-b875-440287c6203a
2026-03-02 16:27:01,131 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fcaf063b-57f7-4047-b751-05f212b4c7de
2026-03-02 16:27:01,137 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fcaf063b-57f7-4047-b751-05f212b4c7de
2026-03-02 16:27:01,142 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ebce4797-b81f-4928-95f1-feb2c230d5ee
2026-03-02 16:27:01,148 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-02 16:27:01,148 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b373d4-4b33-48b2-b875-440287c6203a
2026-03-02 16:27:01,156 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fcaf063b-57f7-4047-b751-05f212b4c7de
2026-03-02 16:27:01,168 - INFO - Verified VN network id 11 for VN 61b373d4-4b33-48b2-b875-440287c6203a
2026-03-02 16:27:01,168 - INFO - Verifications in API Server for VN ctest-vn-19894518 passed
2026-03-02 16:27:01,168 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b373d4-4b33-48b2-b875-440287c6203a
2026-03-02 16:27:01,175 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fcaf063b-57f7-4047-b751-05f212b4c7de
2026-03-02 16:27:01,181 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fcaf063b-57f7-4047-b751-05f212b4c7de
2026-03-02 16:27:01,191 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ebce4797-b81f-4928-95f1-feb2c230d5ee
2026-03-02 16:27:01,202 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-19894518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03406947', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7040097998142130354', 'uuid-lslong': '13291604652912418874'}, 'enable': 'true', 'created': '2026-03-02T16:26:59', 'last-modified': '2026-03-02T16:27:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906592'}
2026-03-02 16:27:01,209 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-02 16:27:01,209 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19894518 passed
2026-03-02 16:27:01,209 - DEBUG - ====Verifying policy data for ctest-vn-19894518 in API_Server ======
2026-03-02 16:27:01,209 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-02 16:27:01,214 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6280c71-1ed9-45a0-a013-d958f0bfd883
2026-03-02 16:27:01,225 - DEBUG - Requesting: http://10.0.0.38:8082/project/384e0a5d-8c58-4657-ae50-e74bedecc7c6
2026-03-02 16:27:01,287 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b373d4-4b33-48b2-b875-440287c6203a
2026-03-02 16:27:01,295 - DEBUG - ==>Verifying data for policy with id: f5bf65f7-58bd-4fb8-a787-0d5c43e9d8d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-03406947', 'ctest-policy-allow-all-49416772']
2026-03-02 16:27:01,295 - INFO - VN ctest-vn-19894518 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-02 16:27:01,295 - DEBUG - Verifying the vn in opserver
2026-03-02 16:27:01,295 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-19894518 virtual network link through opserver 10.0.0.38
2026-03-02 16:27:01,295 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-02 16:27:01,585 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-02 16:27:01,640 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-19894518', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-19894518?flat'}
2026-03-02 16:27:01,640 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-19894518 is found in opserver
2026-03-02 16:27:01,649 - DEBUG - Do not have enough data to verify VN in agent
2026-03-02 16:27:01,652 - DEBUG - VRF ids for VN ctest-vn-19894518: {}
2026-03-02 16:27:01,652 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-02 16:27:01,657 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6280c71-1ed9-45a0-a013-d958f0bfd883
2026-03-02 16:27:01,665 - DEBUG - Requesting: http://10.0.0.38:8082/project/384e0a5d-8c58-4657-ae50-e74bedecc7c6
2026-03-02 16:27:01,729 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94590431-a1ba-4f99-84ee-cc3be42cfd02
2026-03-02 16:27:01,740 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94590431-a1ba-4f99-84ee-cc3be42cfd02
2026-03-02 16:27:01,749 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640b1fad-2fb8-4122-ad47-39005e479b2c
2026-03-02 16:27:01,756 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640b1fad-2fb8-4122-ad47-39005e479b2c
2026-03-02 16:27:01,762 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9b9d9870-6253-43ee-9d73-27fd3d34f24f
2026-03-02 16:27:01,767 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-02 16:27:01,767 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94590431-a1ba-4f99-84ee-cc3be42cfd02
2026-03-02 16:27:01,776 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640b1fad-2fb8-4122-ad47-39005e479b2c
2026-03-02 16:27:01,790 - INFO - Verified VN network id 12 for VN 94590431-a1ba-4f99-84ee-cc3be42cfd02
2026-03-02 16:27:01,790 - INFO - Verifications in API Server for VN ctest-vn-08308683 passed
2026-03-02 16:27:01,790 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94590431-a1ba-4f99-84ee-cc3be42cfd02
2026-03-02 16:27:01,800 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640b1fad-2fb8-4122-ad47-39005e479b2c
2026-03-02 16:27:01,806 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640b1fad-2fb8-4122-ad47-39005e479b2c
2026-03-02 16:27:01,813 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9b9d9870-6253-43ee-9d73-27fd3d34f24f
2026-03-02 16:27:01,823 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-08308683', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03406947', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10689579801753833369', 'uuid-lslong': '9578818015066914050'}, 'enable': 'true', 'created': '2026-03-02T16:26:59', 'last-modified': '2026-03-02T16:27:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299052'}
2026-03-02 16:27:01,827 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-02 16:27:01,827 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08308683 passed
2026-03-02 16:27:01,828 - DEBUG - ====Verifying policy data for ctest-vn-08308683 in API_Server ======
2026-03-02 16:27:01,828 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-02 16:27:01,833 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6280c71-1ed9-45a0-a013-d958f0bfd883
2026-03-02 16:27:01,844 - DEBUG - Requesting: http://10.0.0.38:8082/project/384e0a5d-8c58-4657-ae50-e74bedecc7c6
2026-03-02 16:27:01,911 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94590431-a1ba-4f99-84ee-cc3be42cfd02
2026-03-02 16:27:01,919 - DEBUG - ==>Verifying data for policy with id: f5bf65f7-58bd-4fb8-a787-0d5c43e9d8d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-03406947', 'ctest-policy-allow-all-49416772']
2026-03-02 16:27:01,919 - INFO - VN ctest-vn-08308683 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-02 16:27:01,919 - DEBUG - Verifying the vn in opserver
2026-03-02 16:27:01,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-08308683 virtual network link through opserver 10.0.0.38
2026-03-02 16:27:01,919 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-02 16:27:01,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-08308683', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-08308683?flat'}
2026-03-02 16:27:01,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03406947:ctest-vn-08308683 is found in opserver
2026-03-02 16:27:01,935 - DEBUG - Do not have enough data to verify VN in agent
2026-03-02 16:27:01,938 - DEBUG - VRF ids for VN ctest-vn-08308683: {}
2026-03-02 16:27:01,992 - DEBUG - Services list from nova: [