2026-09-19 19:11:54,242 - INFO - Domain Default found not creating
2026-09-19 19:11:54,458 - INFO - Project ctest-TestBasicPolicy-70064703 not found, creating it
2026-09-19 19:11:54,991 - INFO - Created Project:ctest-TestBasicPolicy-70064703, ID : 57ce6dbe-8aab-4e23-b904-bdeec3d2d781
2026-09-19 19:11:56,870 - INFO - ================================================================================
2026-09-19 19:11:56,870 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-19 19:11:56,870 - 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-09-19 19:11:57,150 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with
2026-09-19 19:11:57,150 - INFO - Initial checks done. Running the testcase now
2026-09-19 19:11:57,150 - INFO -
2026-09-19 19:11:57,866 - DEBUG - Response for create_network : {'network': {'id': '43299207-fdb3-4391-b800-ba02a1fa3180', 'name': 'ctest-vn-31098738', 'tenant_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'project_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70064703', 'ctest-vn-31098738'], 'port_security_enabled': True, 'description': ''}}
2026-09-19 19:11:58,083 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4d00b71-44a0-4a7a-80ad-704e5f9b6f92', 'name': '', 'tenant_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'network_id': '43299207-fdb3-4391-b800-ba02a1fa3180', 'ip_version': 4, 'cidr': '39.126.131.64/26', 'allocation_pools': [{'start': '39.126.131.66', 'end': '39.126.131.126'}], 'gateway_ip': '39.126.131.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.126.131.66', 'tags': [], 'project_id': '57ce6dbe8aab4e23b904bdeec3d2d781'}}
2026-09-19 19:11:58,105 - INFO - Created VN ctest-vn-31098738
2026-09-19 19:11:58,159 - DEBUG - VN ctest-vn-31098738 UUID is 43299207-fdb3-4391-b800-ba02a1fa3180
2026-09-19 19:11:58,525 - DEBUG - Response for create_network : {'network': {'id': 'c4b3c42b-59bc-40f4-875f-4a634cc1731e', 'name': 'ctest-vn-54137936', 'tenant_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'project_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70064703', 'ctest-vn-54137936'], 'port_security_enabled': True, 'description': ''}}
2026-09-19 19:11:58,751 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b905566b-92b3-40fc-bbad-2650fbfd1474', 'name': '', 'tenant_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'network_id': 'c4b3c42b-59bc-40f4-875f-4a634cc1731e', 'ip_version': 4, 'cidr': '44.165.12.64/26', 'allocation_pools': [{'start': '44.165.12.66', 'end': '44.165.12.126'}], 'gateway_ip': '44.165.12.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.165.12.66', 'tags': [], 'project_id': '57ce6dbe8aab4e23b904bdeec3d2d781'}}
2026-09-19 19:11:58,776 - INFO - Created VN ctest-vn-54137936
2026-09-19 19:11:58,831 - DEBUG - VN ctest-vn-54137936 UUID is c4b3c42b-59bc-40f4-875f-4a634cc1731e
2026-09-19 19:11:58,960 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-31098738, 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-70064703:ctest-vn-54137936, 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-09-19 19:11:59,320 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43299207-fdb3-4391-b800-ba02a1fa3180', 'name': 'ctest-vn-31098738', 'tenant_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'project_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['f4d00b71-44a0-4a7a-80ad-704e5f9b6f92'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70064703', 'ctest-vn-31098738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70064703', 'ctest-policy-allow-all-19558288']], 'subnet_ipam': [{'subnet_cidr': '39.126.131.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-19 19:11:59,585 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4b3c42b-59bc-40f4-875f-4a634cc1731e', 'name': 'ctest-vn-54137936', 'tenant_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'project_id': '57ce6dbe8aab4e23b904bdeec3d2d781', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b905566b-92b3-40fc-bbad-2650fbfd1474'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70064703', 'ctest-vn-54137936'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70064703', 'ctest-policy-allow-all-19558288']], 'subnet_ipam': [{'subnet_cidr': '44.165.12.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-19 19:11:59,755 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-19 19:12:00,144 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-19 19:12:00,181 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9698228a-b6db-412f-a5f5-f735b5c0ac25
2026-09-19 19:12:00,201 - DEBUG - Requesting: http://10.0.0.185:8082/project/57ce6dbe-8aab-4e23-b904-bdeec3d2d781
2026-09-19 19:12:00,296 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/43299207-fdb3-4391-b800-ba02a1fa3180
2026-09-19 19:12:00,325 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/43299207-fdb3-4391-b800-ba02a1fa3180
2026-09-19 19:12:00,337 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ec3cf21-edc8-46b0-8be9-a89bd57174ea
2026-09-19 19:12:00,351 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ec3cf21-edc8-46b0-8be9-a89bd57174ea
2026-09-19 19:12:00,361 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/64042405-3e62-4bd6-a9f8-ee2f0755f7b0
2026-09-19 19:12:00,376 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-19 19:12:00,376 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/43299207-fdb3-4391-b800-ba02a1fa3180
2026-09-19 19:12:00,390 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ec3cf21-edc8-46b0-8be9-a89bd57174ea
2026-09-19 19:12:00,410 - INFO - Verified VN network id 12 for VN 43299207-fdb3-4391-b800-ba02a1fa3180
2026-09-19 19:12:00,410 - INFO - Verifications in API Server for VN ctest-vn-31098738 passed
2026-09-19 19:12:00,410 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/43299207-fdb3-4391-b800-ba02a1fa3180
2026-09-19 19:12:00,424 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ec3cf21-edc8-46b0-8be9-a89bd57174ea
2026-09-19 19:12:00,434 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ec3cf21-edc8-46b0-8be9-a89bd57174ea
2026-09-19 19:12:00,446 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/64042405-3e62-4bd6-a9f8-ee2f0755f7b0
2026-09-19 19:12:00,468 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-31098738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70064703', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4839559837605118865', 'uuid-lslong': '13258801823448969600'}, 'enable': 'true', 'created': '2026-09-19T19:11:57', 'last-modified': '2026-09-19T19:11:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.177093'}
2026-09-19 19:12:00,479 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-19 19:12:00,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31098738 passed
2026-09-19 19:12:00,480 - DEBUG - ====Verifying policy data for ctest-vn-31098738 in API_Server ======
2026-09-19 19:12:00,480 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-19 19:12:00,493 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9698228a-b6db-412f-a5f5-f735b5c0ac25
2026-09-19 19:12:00,513 - DEBUG - Requesting: http://10.0.0.185:8082/project/57ce6dbe-8aab-4e23-b904-bdeec3d2d781
2026-09-19 19:12:00,609 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/43299207-fdb3-4391-b800-ba02a1fa3180
2026-09-19 19:12:00,622 - DEBUG - ==>Verifying data for policy with id: a508e64b-074b-463e-b1b2-05b3786ee3ff, fqn: ['default-domain', 'ctest-TestBasicPolicy-70064703', 'ctest-policy-allow-all-19558288']
2026-09-19 19:12:00,622 - INFO - VN ctest-vn-31098738 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-19 19:12:00,622 - DEBUG - Verifying the vn in opserver
2026-09-19 19:12:00,622 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-31098738 virtual network link through opserver 10.0.0.185
2026-09-19 19:12:00,622 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-19 19:12:00,997 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-19 19:12:01,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-31098738', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-31098738?flat'}
2026-09-19 19:12:01,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-31098738 is found in opserver
2026-09-19 19:12:01,084 - DEBUG - Do not have enough data to verify VN in agent
2026-09-19 19:12:01,092 - DEBUG - VRF ids for VN ctest-vn-31098738: {}
2026-09-19 19:12:01,092 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-19 19:12:01,101 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9698228a-b6db-412f-a5f5-f735b5c0ac25
2026-09-19 19:12:01,118 - DEBUG - Requesting: http://10.0.0.185:8082/project/57ce6dbe-8aab-4e23-b904-bdeec3d2d781
2026-09-19 19:12:01,204 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c4b3c42b-59bc-40f4-875f-4a634cc1731e
2026-09-19 19:12:01,222 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c4b3c42b-59bc-40f4-875f-4a634cc1731e
2026-09-19 19:12:01,239 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/674dac1a-6a53-4f04-ae68-abbc4e2fc41f
2026-09-19 19:12:01,251 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/674dac1a-6a53-4f04-ae68-abbc4e2fc41f
2026-09-19 19:12:01,261 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/c1d15db2-1b14-490a-a49c-0d6c8de3b10c
2026-09-19 19:12:01,271 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-19 19:12:01,271 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c4b3c42b-59bc-40f4-875f-4a634cc1731e
2026-09-19 19:12:01,284 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/674dac1a-6a53-4f04-ae68-abbc4e2fc41f
2026-09-19 19:12:01,307 - INFO - Verified VN network id 13 for VN c4b3c42b-59bc-40f4-875f-4a634cc1731e
2026-09-19 19:12:01,307 - INFO - Verifications in API Server for VN ctest-vn-54137936 passed
2026-09-19 19:12:01,307 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c4b3c42b-59bc-40f4-875f-4a634cc1731e
2026-09-19 19:12:01,320 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/674dac1a-6a53-4f04-ae68-abbc4e2fc41f
2026-09-19 19:12:01,332 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/674dac1a-6a53-4f04-ae68-abbc4e2fc41f
2026-09-19 19:12:01,345 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/c1d15db2-1b14-490a-a49c-0d6c8de3b10c
2026-09-19 19:12:01,365 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-54137936', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70064703', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14173888142733230324', 'uuid-lslong': '9754597108257747742'}, 'enable': 'true', 'created': '2026-09-19T19:11:58', 'last-modified': '2026-09-19T19:11:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.812168'}
2026-09-19 19:12:01,374 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-19 19:12:01,374 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54137936 passed
2026-09-19 19:12:01,375 - DEBUG - ====Verifying policy data for ctest-vn-54137936 in API_Server ======
2026-09-19 19:12:01,375 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-19 19:12:01,383 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9698228a-b6db-412f-a5f5-f735b5c0ac25
2026-09-19 19:12:01,398 - DEBUG - Requesting: http://10.0.0.185:8082/project/57ce6dbe-8aab-4e23-b904-bdeec3d2d781
2026-09-19 19:12:01,490 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c4b3c42b-59bc-40f4-875f-4a634cc1731e
2026-09-19 19:12:01,503 - DEBUG - ==>Verifying data for policy with id: a508e64b-074b-463e-b1b2-05b3786ee3ff, fqn: ['default-domain', 'ctest-TestBasicPolicy-70064703', 'ctest-policy-allow-all-19558288']
2026-09-19 19:12:01,503 - INFO - VN ctest-vn-54137936 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-19 19:12:01,503 - DEBUG - Verifying the vn in opserver
2026-09-19 19:12:01,503 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-54137936 virtual network link through opserver 10.0.0.185
2026-09-19 19:12:01,504 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-19 19:12:01,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-54137936', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-54137936?flat'}
2026-09-19 19:12:01,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70064703:ctest-vn-54137936 is found in opserver
2026-09-19 19:12:01,535 - DEBUG - Do not have enough data to verify VN in agent
2026-09-19 19:12:01,542 - DEBUG - VRF ids for VN ctest-vn-54137936: {}
2026-09-19 19:12:01,627 - DEBUG - Services list from nova: [