2026-01-28 16:45:41,379 - INFO - Domain Default found not creating
2026-01-28 16:45:41,615 - INFO - Project ctest-TestBasicPolicy-08562279 not found, creating it
2026-01-28 16:45:42,131 - INFO - Created Project:ctest-TestBasicPolicy-08562279, ID : 9ca0acbf-ab0b-4181-a134-9ceb1e6b84f5
2026-01-28 16:45:43,810 - INFO - ================================================================================
2026-01-28 16:45:43,810 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 16:45:43,810 - 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-01-28 16:45:44,069 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-01-28 16:45:44,069 - INFO - Initial checks done. Running the testcase now
2026-01-28 16:45:44,069 - INFO -
2026-01-28 16:45:44,669 - DEBUG - Response for create_network : {'network': {'id': 'eeb69c3b-3c9f-4e39-bc91-e4569515064d', 'name': 'ctest-vn-48658028', 'tenant_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'project_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08562279', 'ctest-vn-48658028'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 16:45:44,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b34850c-b253-4138-b58d-498db681a699', 'name': '', 'tenant_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'network_id': 'eeb69c3b-3c9f-4e39-bc91-e4569515064d', 'ip_version': 4, 'cidr': '165.162.100.0/26', 'allocation_pools': [{'start': '165.162.100.2', 'end': '165.162.100.62'}], 'gateway_ip': '165.162.100.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.162.100.2', 'tags': [], 'project_id': '9ca0acbfab0b4181a1349ceb1e6b84f5'}}
2026-01-28 16:45:44,942 - INFO - Created VN ctest-vn-48658028
2026-01-28 16:45:44,994 - DEBUG - VN ctest-vn-48658028 UUID is eeb69c3b-3c9f-4e39-bc91-e4569515064d
2026-01-28 16:45:45,333 - DEBUG - Response for create_network : {'network': {'id': '289b392e-186d-4281-8195-d65b63a11321', 'name': 'ctest-vn-71160003', 'tenant_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'project_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08562279', 'ctest-vn-71160003'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 16:45:45,573 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bda1b994-5b4b-49d8-9875-7631b7dc790d', 'name': '', 'tenant_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'network_id': '289b392e-186d-4281-8195-d65b63a11321', 'ip_version': 4, 'cidr': '85.246.89.128/26', 'allocation_pools': [{'start': '85.246.89.130', 'end': '85.246.89.190'}], 'gateway_ip': '85.246.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.246.89.130', 'tags': [], 'project_id': '9ca0acbfab0b4181a1349ceb1e6b84f5'}}
2026-01-28 16:45:45,594 - INFO - Created VN ctest-vn-71160003
2026-01-28 16:45:45,658 - DEBUG - VN ctest-vn-71160003 UUID is 289b392e-186d-4281-8195-d65b63a11321
2026-01-28 16:45:45,794 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-48658028, 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-08562279:ctest-vn-71160003, 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-01-28 16:45:46,157 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eeb69c3b-3c9f-4e39-bc91-e4569515064d', 'name': 'ctest-vn-48658028', 'tenant_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'project_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b34850c-b253-4138-b58d-498db681a699'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08562279', 'ctest-vn-48658028'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08562279', 'ctest-policy-allow-all-54937064']], 'subnet_ipam': [{'subnet_cidr': '165.162.100.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 16:45:46,442 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '289b392e-186d-4281-8195-d65b63a11321', 'name': 'ctest-vn-71160003', 'tenant_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'project_id': '9ca0acbfab0b4181a1349ceb1e6b84f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bda1b994-5b4b-49d8-9875-7631b7dc790d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08562279', 'ctest-vn-71160003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08562279', 'ctest-policy-allow-all-54937064']], 'subnet_ipam': [{'subnet_cidr': '85.246.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 16:45:46,602 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 16:45:46,922 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 16:45:46,962 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b7596d14-9252-4884-981b-3fc17ef7553c
2026-01-28 16:45:46,977 - DEBUG - Requesting: http://10.0.0.50:8082/project/9ca0acbf-ab0b-4181-a134-9ceb1e6b84f5
2026-01-28 16:45:47,058 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eeb69c3b-3c9f-4e39-bc91-e4569515064d
2026-01-28 16:45:47,072 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eeb69c3b-3c9f-4e39-bc91-e4569515064d
2026-01-28 16:45:47,083 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aed8d2b0-1b31-4870-9928-68e21d3600ac
2026-01-28 16:45:47,092 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aed8d2b0-1b31-4870-9928-68e21d3600ac
2026-01-28 16:45:47,100 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/49bb4334-c129-4d45-9183-b1120fc3a610
2026-01-28 16:45:47,109 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 16:45:47,109 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eeb69c3b-3c9f-4e39-bc91-e4569515064d
2026-01-28 16:45:47,122 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aed8d2b0-1b31-4870-9928-68e21d3600ac
2026-01-28 16:45:47,143 - INFO - Verified VN network id 11 for VN eeb69c3b-3c9f-4e39-bc91-e4569515064d
2026-01-28 16:45:47,143 - INFO - Verifications in API Server for VN ctest-vn-48658028 passed
2026-01-28 16:45:47,143 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eeb69c3b-3c9f-4e39-bc91-e4569515064d
2026-01-28 16:45:47,155 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aed8d2b0-1b31-4870-9928-68e21d3600ac
2026-01-28 16:45:47,164 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aed8d2b0-1b31-4870-9928-68e21d3600ac
2026-01-28 16:45:47,171 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/49bb4334-c129-4d45-9183-b1120fc3a610
2026-01-28 16:45:47,182 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-48658028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08562279', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17201107605022264889', 'uuid-lslong': '13587892611273000525'}, 'enable': 'true', 'created': '2026-01-28T16:45:44', 'last-modified': '2026-01-28T16:45:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.060055'}
2026-01-28 16:45:47,188 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 16:45:47,188 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48658028 passed
2026-01-28 16:45:47,188 - DEBUG - ====Verifying policy data for ctest-vn-48658028 in API_Server ======
2026-01-28 16:45:47,188 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 16:45:47,195 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b7596d14-9252-4884-981b-3fc17ef7553c
2026-01-28 16:45:47,209 - DEBUG - Requesting: http://10.0.0.50:8082/project/9ca0acbf-ab0b-4181-a134-9ceb1e6b84f5
2026-01-28 16:45:47,292 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eeb69c3b-3c9f-4e39-bc91-e4569515064d
2026-01-28 16:45:47,305 - DEBUG - ==>Verifying data for policy with id: 1ce8ec70-44f9-49e1-a0e7-1830ea9f854c, fqn: ['default-domain', 'ctest-TestBasicPolicy-08562279', 'ctest-policy-allow-all-54937064']
2026-01-28 16:45:47,305 - INFO - VN ctest-vn-48658028 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 16:45:47,305 - DEBUG - Verifying the vn in opserver
2026-01-28 16:45:47,305 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-48658028 virtual network link through opserver 10.0.0.50
2026-01-28 16:45:47,305 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-28 16:45:47,620 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-28 16:45:47,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-48658028', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-48658028?flat'}
2026-01-28 16:45:47,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-48658028 is found in opserver
2026-01-28 16:45:47,715 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 16:45:47,722 - DEBUG - VRF ids for VN ctest-vn-48658028: {}
2026-01-28 16:45:47,722 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 16:45:47,728 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b7596d14-9252-4884-981b-3fc17ef7553c
2026-01-28 16:45:47,740 - DEBUG - Requesting: http://10.0.0.50:8082/project/9ca0acbf-ab0b-4181-a134-9ceb1e6b84f5
2026-01-28 16:45:47,823 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/289b392e-186d-4281-8195-d65b63a11321
2026-01-28 16:45:47,838 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/289b392e-186d-4281-8195-d65b63a11321
2026-01-28 16:45:47,851 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a3683f-143e-4d8c-9b21-a775b58f26b9
2026-01-28 16:45:47,859 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a3683f-143e-4d8c-9b21-a775b58f26b9
2026-01-28 16:45:47,867 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7898a741-944c-471d-8bcc-004819494997
2026-01-28 16:45:47,873 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 16:45:47,873 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/289b392e-186d-4281-8195-d65b63a11321
2026-01-28 16:45:47,883 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a3683f-143e-4d8c-9b21-a775b58f26b9
2026-01-28 16:45:47,899 - INFO - Verified VN network id 12 for VN 289b392e-186d-4281-8195-d65b63a11321
2026-01-28 16:45:47,900 - INFO - Verifications in API Server for VN ctest-vn-71160003 passed
2026-01-28 16:45:47,900 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/289b392e-186d-4281-8195-d65b63a11321
2026-01-28 16:45:47,909 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a3683f-143e-4d8c-9b21-a775b58f26b9
2026-01-28 16:45:47,917 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a3683f-143e-4d8c-9b21-a775b58f26b9
2026-01-28 16:45:47,924 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7898a741-944c-471d-8bcc-004819494997
2026-01-28 16:45:47,937 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-71160003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08562279', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2925995253048361601', 'uuid-lslong': '9337605090424460065'}, 'enable': 'true', 'created': '2026-01-28T16:45:45', 'last-modified': '2026-01-28T16:45:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.557664'}
2026-01-28 16:45:47,943 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 16:45:47,943 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71160003 passed
2026-01-28 16:45:47,943 - DEBUG - ====Verifying policy data for ctest-vn-71160003 in API_Server ======
2026-01-28 16:45:47,943 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 16:45:47,949 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b7596d14-9252-4884-981b-3fc17ef7553c
2026-01-28 16:45:47,961 - DEBUG - Requesting: http://10.0.0.50:8082/project/9ca0acbf-ab0b-4181-a134-9ceb1e6b84f5
2026-01-28 16:45:48,037 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/289b392e-186d-4281-8195-d65b63a11321
2026-01-28 16:45:48,049 - DEBUG - ==>Verifying data for policy with id: 1ce8ec70-44f9-49e1-a0e7-1830ea9f854c, fqn: ['default-domain', 'ctest-TestBasicPolicy-08562279', 'ctest-policy-allow-all-54937064']
2026-01-28 16:45:48,049 - INFO - VN ctest-vn-71160003 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 16:45:48,049 - DEBUG - Verifying the vn in opserver
2026-01-28 16:45:48,049 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-71160003 virtual network link through opserver 10.0.0.50
2026-01-28 16:45:48,049 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-28 16:45:48,059 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-71160003', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-71160003?flat'}
2026-01-28 16:45:48,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08562279:ctest-vn-71160003 is found in opserver
2026-01-28 16:45:48,070 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 16:45:48,076 - DEBUG - VRF ids for VN ctest-vn-71160003: {}
2026-01-28 16:45:48,144 - DEBUG - Services list from nova: [