2026-03-16 10:41:45,428 - INFO - Domain Default found not creating
2026-03-16 10:41:45,604 - INFO - Project ctest-TestBasicPolicy-21175701 not found, creating it
2026-03-16 10:41:46,084 - INFO - Created Project:ctest-TestBasicPolicy-21175701, ID : 43df46d2-1d0d-4845-b22a-bb135caa855e
2026-03-16 10:41:47,510 - INFO - ================================================================================
2026-03-16 10:41:47,511 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-16 10:41:47,511 - 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-16 10:41:47,784 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-03-16 10:41:47,784 - INFO - Initial checks done. Running the testcase now
2026-03-16 10:41:47,784 - INFO -
2026-03-16 10:41:48,327 - DEBUG - Response for create_network : {'network': {'id': '30719322-551e-4c06-a21d-bacbc75cd07f', 'name': 'ctest-vn-08163338', 'tenant_id': '43df46d21d0d4845b22abb135caa855e', 'project_id': '43df46d21d0d4845b22abb135caa855e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21175701', 'ctest-vn-08163338'], 'port_security_enabled': True, 'description': ''}}
2026-03-16 10:41:48,504 - DEBUG - Response for create_subnet : {'subnet': {'id': '17b1d5d3-d8a1-4c04-9428-c7091d924960', 'name': '', 'tenant_id': '43df46d21d0d4845b22abb135caa855e', 'network_id': '30719322-551e-4c06-a21d-bacbc75cd07f', 'ip_version': 4, 'cidr': '58.136.233.128/26', 'allocation_pools': [{'start': '58.136.233.130', 'end': '58.136.233.190'}], 'gateway_ip': '58.136.233.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.136.233.130', 'tags': [], 'project_id': '43df46d21d0d4845b22abb135caa855e'}}
2026-03-16 10:41:48,524 - INFO - Created VN ctest-vn-08163338
2026-03-16 10:41:48,578 - DEBUG - VN ctest-vn-08163338 UUID is 30719322-551e-4c06-a21d-bacbc75cd07f
2026-03-16 10:41:48,870 - DEBUG - Response for create_network : {'network': {'id': 'a5538fe4-d7a9-4d50-860e-c183fe665bb6', 'name': 'ctest-vn-96585684', 'tenant_id': '43df46d21d0d4845b22abb135caa855e', 'project_id': '43df46d21d0d4845b22abb135caa855e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21175701', 'ctest-vn-96585684'], 'port_security_enabled': True, 'description': ''}}
2026-03-16 10:41:49,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '8208e33b-ce57-4977-9389-06c54eda0cc0', 'name': '', 'tenant_id': '43df46d21d0d4845b22abb135caa855e', 'network_id': 'a5538fe4-d7a9-4d50-860e-c183fe665bb6', 'ip_version': 4, 'cidr': '83.93.71.0/26', 'allocation_pools': [{'start': '83.93.71.2', 'end': '83.93.71.62'}], 'gateway_ip': '83.93.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.93.71.2', 'tags': [], 'project_id': '43df46d21d0d4845b22abb135caa855e'}}
2026-03-16 10:41:49,095 - INFO - Created VN ctest-vn-96585684
2026-03-16 10:41:49,150 - DEBUG - VN ctest-vn-96585684 UUID is a5538fe4-d7a9-4d50-860e-c183fe665bb6
2026-03-16 10:41:49,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-08163338, 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-21175701:ctest-vn-96585684, 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-16 10:41:49,576 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30719322-551e-4c06-a21d-bacbc75cd07f', 'name': 'ctest-vn-08163338', 'tenant_id': '43df46d21d0d4845b22abb135caa855e', 'project_id': '43df46d21d0d4845b22abb135caa855e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17b1d5d3-d8a1-4c04-9428-c7091d924960'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21175701', 'ctest-vn-08163338'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21175701', 'ctest-policy-allow-all-98782122']], 'subnet_ipam': [{'subnet_cidr': '58.136.233.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-16 10:41:49,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5538fe4-d7a9-4d50-860e-c183fe665bb6', 'name': 'ctest-vn-96585684', 'tenant_id': '43df46d21d0d4845b22abb135caa855e', 'project_id': '43df46d21d0d4845b22abb135caa855e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8208e33b-ce57-4977-9389-06c54eda0cc0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21175701', 'ctest-vn-96585684'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21175701', 'ctest-policy-allow-all-98782122']], 'subnet_ipam': [{'subnet_cidr': '83.93.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-16 10:41:49,966 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 10:41:50,245 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 10:41:50,281 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d93f2dd-588e-4a80-a9ea-3fc51e0ee49b
2026-03-16 10:41:50,295 - DEBUG - Requesting: http://10.0.0.50:8082/project/43df46d2-1d0d-4845-b22a-bb135caa855e
2026-03-16 10:41:50,380 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30719322-551e-4c06-a21d-bacbc75cd07f
2026-03-16 10:41:50,391 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30719322-551e-4c06-a21d-bacbc75cd07f
2026-03-16 10:41:50,402 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e5c0b91-ab1a-4347-9cce-4ca1e93c9dc2
2026-03-16 10:41:50,410 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e5c0b91-ab1a-4347-9cce-4ca1e93c9dc2
2026-03-16 10:41:50,419 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d4762500-112f-418a-aa46-34789ab79335
2026-03-16 10:41:50,427 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-16 10:41:50,427 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30719322-551e-4c06-a21d-bacbc75cd07f
2026-03-16 10:41:50,438 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e5c0b91-ab1a-4347-9cce-4ca1e93c9dc2
2026-03-16 10:41:50,454 - INFO - Verified VN network id 11 for VN 30719322-551e-4c06-a21d-bacbc75cd07f
2026-03-16 10:41:50,455 - INFO - Verifications in API Server for VN ctest-vn-08163338 passed
2026-03-16 10:41:50,455 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30719322-551e-4c06-a21d-bacbc75cd07f
2026-03-16 10:41:50,465 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e5c0b91-ab1a-4347-9cce-4ca1e93c9dc2
2026-03-16 10:41:50,473 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e5c0b91-ab1a-4347-9cce-4ca1e93c9dc2
2026-03-16 10:41:50,481 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d4762500-112f-418a-aa46-34789ab79335
2026-03-16 10:41:50,494 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-08163338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21175701', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3490732961855065094', 'uuid-lslong': '11681698392854810751'}, 'enable': 'true', 'created': '2026-03-16T10:41:48', 'last-modified': '2026-03-16T10:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937717'}
2026-03-16 10:41:50,502 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-16 10:41:50,502 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08163338 passed
2026-03-16 10:41:50,502 - DEBUG - ====Verifying policy data for ctest-vn-08163338 in API_Server ======
2026-03-16 10:41:50,502 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 10:41:50,508 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d93f2dd-588e-4a80-a9ea-3fc51e0ee49b
2026-03-16 10:41:50,521 - DEBUG - Requesting: http://10.0.0.50:8082/project/43df46d2-1d0d-4845-b22a-bb135caa855e
2026-03-16 10:41:50,594 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30719322-551e-4c06-a21d-bacbc75cd07f
2026-03-16 10:41:50,602 - DEBUG - ==>Verifying data for policy with id: d3331b71-b2ae-45a5-94a0-63e37dfdd17a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21175701', 'ctest-policy-allow-all-98782122']
2026-03-16 10:41:50,603 - INFO - VN ctest-vn-08163338 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-16 10:41:50,603 - DEBUG - Verifying the vn in opserver
2026-03-16 10:41:50,603 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-08163338 virtual network link through opserver 10.0.0.50
2026-03-16 10:41:50,603 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-16 10:41:50,871 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-16 10:41:50,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-08163338', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-08163338?flat'}
2026-03-16 10:41:50,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-08163338 is found in opserver
2026-03-16 10:41:50,951 - DEBUG - Do not have enough data to verify VN in agent
2026-03-16 10:41:50,957 - DEBUG - VRF ids for VN ctest-vn-08163338: {}
2026-03-16 10:41:50,957 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 10:41:50,963 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d93f2dd-588e-4a80-a9ea-3fc51e0ee49b
2026-03-16 10:41:50,976 - DEBUG - Requesting: http://10.0.0.50:8082/project/43df46d2-1d0d-4845-b22a-bb135caa855e
2026-03-16 10:41:51,047 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5538fe4-d7a9-4d50-860e-c183fe665bb6
2026-03-16 10:41:51,060 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5538fe4-d7a9-4d50-860e-c183fe665bb6
2026-03-16 10:41:51,069 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e5e3f63-c032-4abe-b197-acb41e9a87bb
2026-03-16 10:41:51,077 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e5e3f63-c032-4abe-b197-acb41e9a87bb
2026-03-16 10:41:51,085 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dfddfcb8-c57b-45ed-81e5-657d336c9ea4
2026-03-16 10:41:51,091 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-16 10:41:51,092 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5538fe4-d7a9-4d50-860e-c183fe665bb6
2026-03-16 10:41:51,102 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e5e3f63-c032-4abe-b197-acb41e9a87bb
2026-03-16 10:41:51,118 - INFO - Verified VN network id 12 for VN a5538fe4-d7a9-4d50-860e-c183fe665bb6
2026-03-16 10:41:51,119 - INFO - Verifications in API Server for VN ctest-vn-96585684 passed
2026-03-16 10:41:51,119 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5538fe4-d7a9-4d50-860e-c183fe665bb6
2026-03-16 10:41:51,130 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e5e3f63-c032-4abe-b197-acb41e9a87bb
2026-03-16 10:41:51,138 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e5e3f63-c032-4abe-b197-acb41e9a87bb
2026-03-16 10:41:51,149 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dfddfcb8-c57b-45ed-81e5-657d336c9ea4
2026-03-16 10:41:51,162 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-96585684', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21175701', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11913023652358606160', 'uuid-lslong': '9659871023409290166'}, 'enable': 'true', 'created': '2026-03-16T10:41:48', 'last-modified': '2026-03-16T10:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.373526'}
2026-03-16 10:41:51,169 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-16 10:41:51,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96585684 passed
2026-03-16 10:41:51,169 - DEBUG - ====Verifying policy data for ctest-vn-96585684 in API_Server ======
2026-03-16 10:41:51,169 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 10:41:51,176 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d93f2dd-588e-4a80-a9ea-3fc51e0ee49b
2026-03-16 10:41:51,189 - DEBUG - Requesting: http://10.0.0.50:8082/project/43df46d2-1d0d-4845-b22a-bb135caa855e
2026-03-16 10:41:51,265 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5538fe4-d7a9-4d50-860e-c183fe665bb6
2026-03-16 10:41:51,277 - DEBUG - ==>Verifying data for policy with id: d3331b71-b2ae-45a5-94a0-63e37dfdd17a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21175701', 'ctest-policy-allow-all-98782122']
2026-03-16 10:41:51,277 - INFO - VN ctest-vn-96585684 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-16 10:41:51,277 - DEBUG - Verifying the vn in opserver
2026-03-16 10:41:51,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-96585684 virtual network link through opserver 10.0.0.50
2026-03-16 10:41:51,278 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-16 10:41:51,290 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-96585684', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-96585684?flat'}
2026-03-16 10:41:51,290 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21175701:ctest-vn-96585684 is found in opserver
2026-03-16 10:41:51,300 - DEBUG - Do not have enough data to verify VN in agent
2026-03-16 10:41:51,306 - DEBUG - VRF ids for VN ctest-vn-96585684: {}
2026-03-16 10:41:51,371 - DEBUG - Services list from nova: [