2026-04-21 10:00:26,024 - INFO - Domain Default found not creating
2026-04-21 10:00:26,268 - INFO - Project ctest-TestBasicPolicy-55307537 not found, creating it
2026-04-21 10:00:26,750 - INFO - Created Project:ctest-TestBasicPolicy-55307537, ID : 92fadb13-9be6-4121-a27d-4bd8a75d606b
2026-04-21 10:00:28,437 - INFO - ================================================================================
2026-04-21 10:00:28,438 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-21 10:00:28,438 - 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-04-21 10:00:28,713 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-21 10:00:28,713 - INFO - Initial checks done. Running the testcase now
2026-04-21 10:00:28,713 - INFO -
2026-04-21 10:00:29,366 - DEBUG - Response for create_network : {'network': {'id': 'c58fa024-539b-43bc-ab2e-070e66c6c49d', 'name': 'ctest-vn-06906218', 'tenant_id': '92fadb139be64121a27d4bd8a75d606b', 'project_id': '92fadb139be64121a27d4bd8a75d606b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55307537', 'ctest-vn-06906218'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 10:00:29,618 - DEBUG - Response for create_subnet : {'subnet': {'id': '9331ea0d-ed49-45a4-a3e6-f01aef4a131e', 'name': '', 'tenant_id': '92fadb139be64121a27d4bd8a75d606b', 'network_id': 'c58fa024-539b-43bc-ab2e-070e66c6c49d', 'ip_version': 4, 'cidr': '189.240.92.192/26', 'allocation_pools': [{'start': '189.240.92.194', 'end': '189.240.92.254'}], 'gateway_ip': '189.240.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.240.92.194', 'tags': [], 'project_id': '92fadb139be64121a27d4bd8a75d606b'}}
2026-04-21 10:00:29,643 - INFO - Created VN ctest-vn-06906218
2026-04-21 10:00:29,697 - DEBUG - VN ctest-vn-06906218 UUID is c58fa024-539b-43bc-ab2e-070e66c6c49d
2026-04-21 10:00:30,010 - DEBUG - Response for create_network : {'network': {'id': 'b8d5a59c-0167-43a8-82ac-d3db4e0d21d8', 'name': 'ctest-vn-92318588', 'tenant_id': '92fadb139be64121a27d4bd8a75d606b', 'project_id': '92fadb139be64121a27d4bd8a75d606b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55307537', 'ctest-vn-92318588'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 10:00:30,190 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7d819e1-78c3-4b85-aa47-8ac4e4b4436d', 'name': '', 'tenant_id': '92fadb139be64121a27d4bd8a75d606b', 'network_id': 'b8d5a59c-0167-43a8-82ac-d3db4e0d21d8', 'ip_version': 4, 'cidr': '141.37.199.64/26', 'allocation_pools': [{'start': '141.37.199.66', 'end': '141.37.199.126'}], 'gateway_ip': '141.37.199.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.37.199.66', 'tags': [], 'project_id': '92fadb139be64121a27d4bd8a75d606b'}}
2026-04-21 10:00:30,211 - INFO - Created VN ctest-vn-92318588
2026-04-21 10:00:30,265 - DEBUG - VN ctest-vn-92318588 UUID is b8d5a59c-0167-43a8-82ac-d3db4e0d21d8
2026-04-21 10:00:30,401 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-06906218, 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-55307537:ctest-vn-92318588, 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-04-21 10:00:30,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c58fa024-539b-43bc-ab2e-070e66c6c49d', 'name': 'ctest-vn-06906218', 'tenant_id': '92fadb139be64121a27d4bd8a75d606b', 'project_id': '92fadb139be64121a27d4bd8a75d606b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9331ea0d-ed49-45a4-a3e6-f01aef4a131e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55307537', 'ctest-vn-06906218'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55307537', 'ctest-policy-allow-all-91262384']], 'subnet_ipam': [{'subnet_cidr': '189.240.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 10:00:30,966 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8d5a59c-0167-43a8-82ac-d3db4e0d21d8', 'name': 'ctest-vn-92318588', 'tenant_id': '92fadb139be64121a27d4bd8a75d606b', 'project_id': '92fadb139be64121a27d4bd8a75d606b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7d819e1-78c3-4b85-aa47-8ac4e4b4436d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55307537', 'ctest-vn-92318588'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55307537', 'ctest-policy-allow-all-91262384']], 'subnet_ipam': [{'subnet_cidr': '141.37.199.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 10:00:31,126 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 10:00:31,439 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 10:00:31,493 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f9ef1414-5d8a-4c7b-a71e-d0b6e1ef50ce
2026-04-21 10:00:31,512 - DEBUG - Requesting: http://10.0.0.38:8082/project/92fadb13-9be6-4121-a27d-4bd8a75d606b
2026-04-21 10:00:31,596 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c58fa024-539b-43bc-ab2e-070e66c6c49d
2026-04-21 10:00:31,613 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c58fa024-539b-43bc-ab2e-070e66c6c49d
2026-04-21 10:00:31,628 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f119197-ecbc-4624-a84c-007389f72c42
2026-04-21 10:00:31,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f119197-ecbc-4624-a84c-007389f72c42
2026-04-21 10:00:31,648 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/acc2a3c5-26cb-4688-97ca-707fa3fcdc4d
2026-04-21 10:00:31,656 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 10:00:31,656 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c58fa024-539b-43bc-ab2e-070e66c6c49d
2026-04-21 10:00:31,669 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f119197-ecbc-4624-a84c-007389f72c42
2026-04-21 10:00:31,687 - INFO - Verified VN network id 12 for VN c58fa024-539b-43bc-ab2e-070e66c6c49d
2026-04-21 10:00:31,688 - INFO - Verifications in API Server for VN ctest-vn-06906218 passed
2026-04-21 10:00:31,689 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c58fa024-539b-43bc-ab2e-070e66c6c49d
2026-04-21 10:00:31,704 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f119197-ecbc-4624-a84c-007389f72c42
2026-04-21 10:00:31,714 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f119197-ecbc-4624-a84c-007389f72c42
2026-04-21 10:00:31,722 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/acc2a3c5-26cb-4688-97ca-707fa3fcdc4d
2026-04-21 10:00:31,736 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-06906218', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55307537', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14235773025023378364', 'uuid-lslong': '12334804187849606301'}, 'enable': 'true', 'created': '2026-04-21T10:00:29', 'last-modified': '2026-04-21T10:00:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.049955'}
2026-04-21 10:00:31,744 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 10:00:31,744 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06906218 passed
2026-04-21 10:00:31,744 - DEBUG - ====Verifying policy data for ctest-vn-06906218 in API_Server ======
2026-04-21 10:00:31,744 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 10:00:31,764 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f9ef1414-5d8a-4c7b-a71e-d0b6e1ef50ce
2026-04-21 10:00:31,775 - DEBUG - Requesting: http://10.0.0.38:8082/project/92fadb13-9be6-4121-a27d-4bd8a75d606b
2026-04-21 10:00:31,864 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c58fa024-539b-43bc-ab2e-070e66c6c49d
2026-04-21 10:00:31,876 - DEBUG - ==>Verifying data for policy with id: c1b3d3da-b19c-4296-8ecf-17645ece8601, fqn: ['default-domain', 'ctest-TestBasicPolicy-55307537', 'ctest-policy-allow-all-91262384']
2026-04-21 10:00:31,877 - INFO - VN ctest-vn-06906218 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 10:00:31,877 - DEBUG - Verifying the vn in opserver
2026-04-21 10:00:31,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-06906218 virtual network link through opserver 10.0.0.38
2026-04-21 10:00:31,877 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-21 10:00:32,205 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-21 10:00:32,371 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-06906218', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-06906218?flat'}
2026-04-21 10:00:32,371 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-06906218 is found in opserver
2026-04-21 10:00:32,382 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 10:00:32,387 - DEBUG - VRF ids for VN ctest-vn-06906218: {}
2026-04-21 10:00:32,388 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 10:00:32,410 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f9ef1414-5d8a-4c7b-a71e-d0b6e1ef50ce
2026-04-21 10:00:32,456 - DEBUG - Requesting: http://10.0.0.38:8082/project/92fadb13-9be6-4121-a27d-4bd8a75d606b
2026-04-21 10:00:32,561 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8d5a59c-0167-43a8-82ac-d3db4e0d21d8
2026-04-21 10:00:32,599 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8d5a59c-0167-43a8-82ac-d3db4e0d21d8
2026-04-21 10:00:32,615 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42eeb49d-0096-4e18-b585-c8cb7386c27b
2026-04-21 10:00:32,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42eeb49d-0096-4e18-b585-c8cb7386c27b
2026-04-21 10:00:32,644 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/37fd1f33-a9e1-47ea-87f3-405e36b0dd98
2026-04-21 10:00:32,674 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 10:00:32,674 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8d5a59c-0167-43a8-82ac-d3db4e0d21d8
2026-04-21 10:00:32,691 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42eeb49d-0096-4e18-b585-c8cb7386c27b
2026-04-21 10:00:32,727 - INFO - Verified VN network id 13 for VN b8d5a59c-0167-43a8-82ac-d3db4e0d21d8
2026-04-21 10:00:32,728 - INFO - Verifications in API Server for VN ctest-vn-92318588 passed
2026-04-21 10:00:32,728 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8d5a59c-0167-43a8-82ac-d3db4e0d21d8
2026-04-21 10:00:32,739 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42eeb49d-0096-4e18-b585-c8cb7386c27b
2026-04-21 10:00:32,753 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42eeb49d-0096-4e18-b585-c8cb7386c27b
2026-04-21 10:00:32,779 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/37fd1f33-a9e1-47ea-87f3-405e36b0dd98
2026-04-21 10:00:32,805 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-92318588', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55307537', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13318733562475135912', 'uuid-lslong': '9416133859785646552'}, 'enable': 'true', 'created': '2026-04-21T10:00:29', 'last-modified': '2026-04-21T10:00:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.869930'}
2026-04-21 10:00:32,815 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 10:00:32,815 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92318588 passed
2026-04-21 10:00:32,815 - DEBUG - ====Verifying policy data for ctest-vn-92318588 in API_Server ======
2026-04-21 10:00:32,815 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 10:00:32,832 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f9ef1414-5d8a-4c7b-a71e-d0b6e1ef50ce
2026-04-21 10:00:32,895 - DEBUG - Requesting: http://10.0.0.38:8082/project/92fadb13-9be6-4121-a27d-4bd8a75d606b
2026-04-21 10:00:33,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8d5a59c-0167-43a8-82ac-d3db4e0d21d8
2026-04-21 10:00:33,014 - DEBUG - ==>Verifying data for policy with id: c1b3d3da-b19c-4296-8ecf-17645ece8601, fqn: ['default-domain', 'ctest-TestBasicPolicy-55307537', 'ctest-policy-allow-all-91262384']
2026-04-21 10:00:33,014 - INFO - VN ctest-vn-92318588 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 10:00:33,014 - DEBUG - Verifying the vn in opserver
2026-04-21 10:00:33,014 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-92318588 virtual network link through opserver 10.0.0.38
2026-04-21 10:00:33,014 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-21 10:00:33,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-92318588', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-92318588?flat'}
2026-04-21 10:00:33,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55307537:ctest-vn-92318588 is found in opserver
2026-04-21 10:00:33,055 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 10:00:33,071 - DEBUG - VRF ids for VN ctest-vn-92318588: {}
2026-04-21 10:00:33,152 - DEBUG - Services list from nova: [