2026-04-06 02:14:38,053 - INFO - Domain Default found not creating
2026-04-06 02:14:38,252 - INFO - Project ctest-TestBasicPolicy-87073669 not found, creating it
2026-04-06 02:14:38,751 - INFO - Created Project:ctest-TestBasicPolicy-87073669, ID : 946e29e8-5882-4f0d-98ff-5ea5020b432b
2026-04-06 02:14:40,329 - INFO - ================================================================================
2026-04-06 02:14:40,329 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-06 02:14:40,329 - 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-06 02:14:40,583 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with
2026-04-06 02:14:40,583 - INFO - Initial checks done. Running the testcase now
2026-04-06 02:14:40,583 - INFO -
2026-04-06 02:14:41,149 - DEBUG - Response for create_network : {'network': {'id': '1f55b6d6-d7ae-4165-a986-45c168412e8c', 'name': 'ctest-vn-85689785', 'tenant_id': '946e29e858824f0d98ff5ea5020b432b', 'project_id': '946e29e858824f0d98ff5ea5020b432b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87073669', 'ctest-vn-85689785'], 'port_security_enabled': True, 'description': ''}}
2026-04-06 02:14:41,305 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec76ac0f-c710-4ce7-964f-5448022efc0d', 'name': '', 'tenant_id': '946e29e858824f0d98ff5ea5020b432b', 'network_id': '1f55b6d6-d7ae-4165-a986-45c168412e8c', 'ip_version': 4, 'cidr': '177.98.196.128/26', 'allocation_pools': [{'start': '177.98.196.130', 'end': '177.98.196.190'}], 'gateway_ip': '177.98.196.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.98.196.130', 'tags': [], 'project_id': '946e29e858824f0d98ff5ea5020b432b'}}
2026-04-06 02:14:41,323 - INFO - Created VN ctest-vn-85689785
2026-04-06 02:14:41,374 - DEBUG - VN ctest-vn-85689785 UUID is 1f55b6d6-d7ae-4165-a986-45c168412e8c
2026-04-06 02:14:41,670 - DEBUG - Response for create_network : {'network': {'id': 'ac54d15e-8b6f-4ddd-8e2a-91376af5d266', 'name': 'ctest-vn-06878924', 'tenant_id': '946e29e858824f0d98ff5ea5020b432b', 'project_id': '946e29e858824f0d98ff5ea5020b432b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87073669', 'ctest-vn-06878924'], 'port_security_enabled': True, 'description': ''}}
2026-04-06 02:14:41,891 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b19b873-ecb4-4b88-b42c-ec3b2e25a9f5', 'name': '', 'tenant_id': '946e29e858824f0d98ff5ea5020b432b', 'network_id': 'ac54d15e-8b6f-4ddd-8e2a-91376af5d266', 'ip_version': 4, 'cidr': '175.18.25.64/26', 'allocation_pools': [{'start': '175.18.25.66', 'end': '175.18.25.126'}], 'gateway_ip': '175.18.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.18.25.66', 'tags': [], 'project_id': '946e29e858824f0d98ff5ea5020b432b'}}
2026-04-06 02:14:41,908 - INFO - Created VN ctest-vn-06878924
2026-04-06 02:14:41,958 - DEBUG - VN ctest-vn-06878924 UUID is ac54d15e-8b6f-4ddd-8e2a-91376af5d266
2026-04-06 02:14:42,110 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-85689785, 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-87073669:ctest-vn-06878924, 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-06 02:14:42,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1f55b6d6-d7ae-4165-a986-45c168412e8c', 'name': 'ctest-vn-85689785', 'tenant_id': '946e29e858824f0d98ff5ea5020b432b', 'project_id': '946e29e858824f0d98ff5ea5020b432b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec76ac0f-c710-4ce7-964f-5448022efc0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87073669', 'ctest-vn-85689785'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87073669', 'ctest-policy-allow-all-80382492']], 'subnet_ipam': [{'subnet_cidr': '177.98.196.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-06 02:14:42,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac54d15e-8b6f-4ddd-8e2a-91376af5d266', 'name': 'ctest-vn-06878924', 'tenant_id': '946e29e858824f0d98ff5ea5020b432b', 'project_id': '946e29e858824f0d98ff5ea5020b432b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b19b873-ecb4-4b88-b42c-ec3b2e25a9f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87073669', 'ctest-vn-06878924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87073669', 'ctest-policy-allow-all-80382492']], 'subnet_ipam': [{'subnet_cidr': '175.18.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-06 02:14:42,834 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-06 02:14:43,129 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-06 02:14:43,162 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d154584e-de37-43e7-b89e-4db1b50c982c
2026-04-06 02:14:43,175 - DEBUG - Requesting: http://10.0.0.50:8082/project/946e29e8-5882-4f0d-98ff-5ea5020b432b
2026-04-06 02:14:43,251 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1f55b6d6-d7ae-4165-a986-45c168412e8c
2026-04-06 02:14:43,265 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1f55b6d6-d7ae-4165-a986-45c168412e8c
2026-04-06 02:14:43,275 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/85e234a1-82a9-4db9-b437-dc30a2b8677d
2026-04-06 02:14:43,299 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/85e234a1-82a9-4db9-b437-dc30a2b8677d
2026-04-06 02:14:43,307 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e7dd315a-182c-433b-b79c-dea93851ddcf
2026-04-06 02:14:43,320 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-06 02:14:43,320 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1f55b6d6-d7ae-4165-a986-45c168412e8c
2026-04-06 02:14:43,332 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/85e234a1-82a9-4db9-b437-dc30a2b8677d
2026-04-06 02:14:43,352 - INFO - Verified VN network id 11 for VN 1f55b6d6-d7ae-4165-a986-45c168412e8c
2026-04-06 02:14:43,352 - INFO - Verifications in API Server for VN ctest-vn-85689785 passed
2026-04-06 02:14:43,352 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1f55b6d6-d7ae-4165-a986-45c168412e8c
2026-04-06 02:14:43,363 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/85e234a1-82a9-4db9-b437-dc30a2b8677d
2026-04-06 02:14:43,371 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/85e234a1-82a9-4db9-b437-dc30a2b8677d
2026-04-06 02:14:43,379 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e7dd315a-182c-433b-b79c-dea93851ddcf
2026-04-06 02:14:43,390 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-85689785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87073669', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2257911822053949797', 'uuid-lslong': '12215527736269155980'}, 'enable': 'true', 'created': '2026-04-06T02:14:41', 'last-modified': '2026-04-06T02:14:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002637'}
2026-04-06 02:14:43,397 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-06 02:14:43,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85689785 passed
2026-04-06 02:14:43,397 - DEBUG - ====Verifying policy data for ctest-vn-85689785 in API_Server ======
2026-04-06 02:14:43,397 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-06 02:14:43,404 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d154584e-de37-43e7-b89e-4db1b50c982c
2026-04-06 02:14:43,415 - DEBUG - Requesting: http://10.0.0.50:8082/project/946e29e8-5882-4f0d-98ff-5ea5020b432b
2026-04-06 02:14:43,485 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1f55b6d6-d7ae-4165-a986-45c168412e8c
2026-04-06 02:14:43,493 - DEBUG - ==>Verifying data for policy with id: 2442e2f7-bb8b-4e2e-a64d-6875b6383aea, fqn: ['default-domain', 'ctest-TestBasicPolicy-87073669', 'ctest-policy-allow-all-80382492']
2026-04-06 02:14:43,494 - INFO - VN ctest-vn-85689785 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-06 02:14:43,494 - DEBUG - Verifying the vn in opserver
2026-04-06 02:14:43,494 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-85689785 virtual network link through opserver 10.0.0.50
2026-04-06 02:14:43,494 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-06 02:14:43,793 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-06 02:14:43,876 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-85689785', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-85689785?flat'}
2026-04-06 02:14:43,876 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-85689785 is found in opserver
2026-04-06 02:14:43,885 - DEBUG - Do not have enough data to verify VN in agent
2026-04-06 02:14:43,889 - DEBUG - VRF ids for VN ctest-vn-85689785: {}
2026-04-06 02:14:43,890 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-06 02:14:43,895 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d154584e-de37-43e7-b89e-4db1b50c982c
2026-04-06 02:14:43,906 - DEBUG - Requesting: http://10.0.0.50:8082/project/946e29e8-5882-4f0d-98ff-5ea5020b432b
2026-04-06 02:14:43,975 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ac54d15e-8b6f-4ddd-8e2a-91376af5d266
2026-04-06 02:14:43,987 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ac54d15e-8b6f-4ddd-8e2a-91376af5d266
2026-04-06 02:14:43,996 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82674e59-e0a5-4287-99e0-072f64627e65
2026-04-06 02:14:44,003 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82674e59-e0a5-4287-99e0-072f64627e65
2026-04-06 02:14:44,009 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8e6a20ad-6cbf-4180-b194-824489033e66
2026-04-06 02:14:44,015 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-06 02:14:44,015 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ac54d15e-8b6f-4ddd-8e2a-91376af5d266
2026-04-06 02:14:44,024 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82674e59-e0a5-4287-99e0-072f64627e65
2026-04-06 02:14:44,037 - INFO - Verified VN network id 12 for VN ac54d15e-8b6f-4ddd-8e2a-91376af5d266
2026-04-06 02:14:44,038 - INFO - Verifications in API Server for VN ctest-vn-06878924 passed
2026-04-06 02:14:44,038 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ac54d15e-8b6f-4ddd-8e2a-91376af5d266
2026-04-06 02:14:44,046 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82674e59-e0a5-4287-99e0-072f64627e65
2026-04-06 02:14:44,053 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82674e59-e0a5-4287-99e0-072f64627e65
2026-04-06 02:14:44,061 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8e6a20ad-6cbf-4180-b194-824489033e66
2026-04-06 02:14:44,072 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-06878924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87073669', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12417780276563758557', 'uuid-lslong': '10244159969611338342'}, 'enable': 'true', 'created': '2026-04-06T02:14:41', 'last-modified': '2026-04-06T02:14:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411504'}
2026-04-06 02:14:44,079 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-06 02:14:44,079 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06878924 passed
2026-04-06 02:14:44,079 - DEBUG - ====Verifying policy data for ctest-vn-06878924 in API_Server ======
2026-04-06 02:14:44,079 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-06 02:14:44,085 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d154584e-de37-43e7-b89e-4db1b50c982c
2026-04-06 02:14:44,095 - DEBUG - Requesting: http://10.0.0.50:8082/project/946e29e8-5882-4f0d-98ff-5ea5020b432b
2026-04-06 02:14:44,164 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ac54d15e-8b6f-4ddd-8e2a-91376af5d266
2026-04-06 02:14:44,172 - DEBUG - ==>Verifying data for policy with id: 2442e2f7-bb8b-4e2e-a64d-6875b6383aea, fqn: ['default-domain', 'ctest-TestBasicPolicy-87073669', 'ctest-policy-allow-all-80382492']
2026-04-06 02:14:44,172 - INFO - VN ctest-vn-06878924 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-06 02:14:44,173 - DEBUG - Verifying the vn in opserver
2026-04-06 02:14:44,173 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-06878924 virtual network link through opserver 10.0.0.50
2026-04-06 02:14:44,173 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-06 02:14:44,182 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-06878924', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-06878924?flat'}
2026-04-06 02:14:44,182 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87073669:ctest-vn-06878924 is found in opserver
2026-04-06 02:14:44,191 - DEBUG - Do not have enough data to verify VN in agent
2026-04-06 02:14:44,195 - DEBUG - VRF ids for VN ctest-vn-06878924: {}
2026-04-06 02:14:44,260 - DEBUG - Services list from nova: [