2026-01-05 16:21:52,918 - INFO - Domain Default found not creating
2026-01-05 16:21:53,065 - INFO - Project ctest-TestBasicPolicy-13908523 not found, creating it
2026-01-05 16:21:53,486 - INFO - Created Project:ctest-TestBasicPolicy-13908523, ID : 04878791-f26c-4f97-bea9-93a1b716e337
2026-01-05 16:21:54,864 - INFO - ================================================================================
2026-01-05 16:21:54,865 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-05 16:21:54,865 - 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-05 16:21:55,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-01-05 16:21:55,122 - INFO - Initial checks done. Running the testcase now
2026-01-05 16:21:55,122 - INFO -
2026-01-05 16:21:55,659 - DEBUG - Response for create_network : {'network': {'id': 'fd585c67-69cb-44a2-aedf-c36908d003e4', 'name': 'ctest-vn-25238810', 'tenant_id': '04878791f26c4f97bea993a1b716e337', 'project_id': '04878791f26c4f97bea993a1b716e337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13908523', 'ctest-vn-25238810'], 'port_security_enabled': True, 'description': ''}}
2026-01-05 16:21:55,863 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b8923a6-fe51-4678-8ca7-0bbdb91c27b4', 'name': '', 'tenant_id': '04878791f26c4f97bea993a1b716e337', 'network_id': 'fd585c67-69cb-44a2-aedf-c36908d003e4', 'ip_version': 4, 'cidr': '192.221.193.192/26', 'allocation_pools': [{'start': '192.221.193.194', 'end': '192.221.193.254'}], 'gateway_ip': '192.221.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.221.193.194', 'tags': [], 'project_id': '04878791f26c4f97bea993a1b716e337'}}
2026-01-05 16:21:55,880 - INFO - Created VN ctest-vn-25238810
2026-01-05 16:21:55,932 - DEBUG - VN ctest-vn-25238810 UUID is fd585c67-69cb-44a2-aedf-c36908d003e4
2026-01-05 16:21:56,260 - DEBUG - Response for create_network : {'network': {'id': '7c9d69c5-5421-416f-a763-bcebbb21b211', 'name': 'ctest-vn-83457695', 'tenant_id': '04878791f26c4f97bea993a1b716e337', 'project_id': '04878791f26c4f97bea993a1b716e337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13908523', 'ctest-vn-83457695'], 'port_security_enabled': True, 'description': ''}}
2026-01-05 16:21:56,458 - DEBUG - Response for create_subnet : {'subnet': {'id': '5372f852-4995-4fab-a60a-f7e2107db014', 'name': '', 'tenant_id': '04878791f26c4f97bea993a1b716e337', 'network_id': '7c9d69c5-5421-416f-a763-bcebbb21b211', 'ip_version': 4, 'cidr': '184.173.157.0/26', 'allocation_pools': [{'start': '184.173.157.2', 'end': '184.173.157.62'}], 'gateway_ip': '184.173.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.173.157.2', 'tags': [], 'project_id': '04878791f26c4f97bea993a1b716e337'}}
2026-01-05 16:21:56,475 - INFO - Created VN ctest-vn-83457695
2026-01-05 16:21:56,524 - DEBUG - VN ctest-vn-83457695 UUID is 7c9d69c5-5421-416f-a763-bcebbb21b211
2026-01-05 16:21:56,668 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-25238810, 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-13908523:ctest-vn-83457695, 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-05 16:21:56,951 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd585c67-69cb-44a2-aedf-c36908d003e4', 'name': 'ctest-vn-25238810', 'tenant_id': '04878791f26c4f97bea993a1b716e337', 'project_id': '04878791f26c4f97bea993a1b716e337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b8923a6-fe51-4678-8ca7-0bbdb91c27b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13908523', 'ctest-vn-25238810'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13908523', 'ctest-policy-allow-all-39000740']], 'subnet_ipam': [{'subnet_cidr': '192.221.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-05 16:21:57,160 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7c9d69c5-5421-416f-a763-bcebbb21b211', 'name': 'ctest-vn-83457695', 'tenant_id': '04878791f26c4f97bea993a1b716e337', 'project_id': '04878791f26c4f97bea993a1b716e337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5372f852-4995-4fab-a60a-f7e2107db014'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13908523', 'ctest-vn-83457695'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13908523', 'ctest-policy-allow-all-39000740']], 'subnet_ipam': [{'subnet_cidr': '184.173.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-05 16:21:57,340 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-05 16:21:57,632 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-05 16:21:57,660 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d5e8786-90b2-410a-b283-8a3a00c389cc
2026-01-05 16:21:57,672 - DEBUG - Requesting: http://10.0.0.50:8082/project/04878791-f26c-4f97-bea9-93a1b716e337
2026-01-05 16:21:57,744 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd585c67-69cb-44a2-aedf-c36908d003e4
2026-01-05 16:21:57,754 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd585c67-69cb-44a2-aedf-c36908d003e4
2026-01-05 16:21:57,763 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f50e1fb8-dcf5-477a-beed-5f51fea60355
2026-01-05 16:21:57,770 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f50e1fb8-dcf5-477a-beed-5f51fea60355
2026-01-05 16:21:57,776 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4a8985e3-2d97-4323-9e2a-706bb65815c0
2026-01-05 16:21:57,781 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-05 16:21:57,781 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd585c67-69cb-44a2-aedf-c36908d003e4
2026-01-05 16:21:57,789 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f50e1fb8-dcf5-477a-beed-5f51fea60355
2026-01-05 16:21:57,802 - INFO - Verified VN network id 12 for VN fd585c67-69cb-44a2-aedf-c36908d003e4
2026-01-05 16:21:57,802 - INFO - Verifications in API Server for VN ctest-vn-25238810 passed
2026-01-05 16:21:57,802 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd585c67-69cb-44a2-aedf-c36908d003e4
2026-01-05 16:21:57,810 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f50e1fb8-dcf5-477a-beed-5f51fea60355
2026-01-05 16:21:57,818 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f50e1fb8-dcf5-477a-beed-5f51fea60355
2026-01-05 16:21:57,824 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4a8985e3-2d97-4323-9e2a-706bb65815c0
2026-01-05 16:21:57,834 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-25238810', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13908523', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18255442688772621474', 'uuid-lslong': '12601005138292769764'}, 'enable': 'true', 'created': '2026-01-05T16:21:55', 'last-modified': '2026-01-05T16:21:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904322'}
2026-01-05 16:21:57,839 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-05 16:21:57,839 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25238810 passed
2026-01-05 16:21:57,839 - DEBUG - ====Verifying policy data for ctest-vn-25238810 in API_Server ======
2026-01-05 16:21:57,841 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-05 16:21:57,845 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d5e8786-90b2-410a-b283-8a3a00c389cc
2026-01-05 16:21:57,854 - DEBUG - Requesting: http://10.0.0.50:8082/project/04878791-f26c-4f97-bea9-93a1b716e337
2026-01-05 16:21:57,925 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd585c67-69cb-44a2-aedf-c36908d003e4
2026-01-05 16:21:57,933 - DEBUG - ==>Verifying data for policy with id: a8caed56-51e5-4964-bb3a-b2202a4a53df, fqn: ['default-domain', 'ctest-TestBasicPolicy-13908523', 'ctest-policy-allow-all-39000740']
2026-01-05 16:21:57,933 - INFO - VN ctest-vn-25238810 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-05 16:21:57,933 - DEBUG - Verifying the vn in opserver
2026-01-05 16:21:57,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-25238810 virtual network link through opserver 10.0.0.50
2026-01-05 16:21:57,934 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-05 16:21:58,223 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-05 16:21:58,278 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-25238810', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-25238810?flat'}
2026-01-05 16:21:58,278 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-25238810 is found in opserver
2026-01-05 16:21:58,286 - DEBUG - Do not have enough data to verify VN in agent
2026-01-05 16:21:58,290 - DEBUG - VRF ids for VN ctest-vn-25238810: {}
2026-01-05 16:21:58,290 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-05 16:21:58,295 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d5e8786-90b2-410a-b283-8a3a00c389cc
2026-01-05 16:21:58,304 - DEBUG - Requesting: http://10.0.0.50:8082/project/04878791-f26c-4f97-bea9-93a1b716e337
2026-01-05 16:21:58,372 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7c9d69c5-5421-416f-a763-bcebbb21b211
2026-01-05 16:21:58,382 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7c9d69c5-5421-416f-a763-bcebbb21b211
2026-01-05 16:21:58,389 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/129d66b1-8270-4bc9-8adb-be37a12b3ae8
2026-01-05 16:21:58,395 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/129d66b1-8270-4bc9-8adb-be37a12b3ae8
2026-01-05 16:21:58,401 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5a26f170-91e1-4815-86bb-8a2fc3dc19f1
2026-01-05 16:21:58,406 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-05 16:21:58,406 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7c9d69c5-5421-416f-a763-bcebbb21b211
2026-01-05 16:21:58,413 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/129d66b1-8270-4bc9-8adb-be37a12b3ae8
2026-01-05 16:21:58,426 - INFO - Verified VN network id 13 for VN 7c9d69c5-5421-416f-a763-bcebbb21b211
2026-01-05 16:21:58,426 - INFO - Verifications in API Server for VN ctest-vn-83457695 passed
2026-01-05 16:21:58,426 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7c9d69c5-5421-416f-a763-bcebbb21b211
2026-01-05 16:21:58,434 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/129d66b1-8270-4bc9-8adb-be37a12b3ae8
2026-01-05 16:21:58,440 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/129d66b1-8270-4bc9-8adb-be37a12b3ae8
2026-01-05 16:21:58,449 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5a26f170-91e1-4815-86bb-8a2fc3dc19f1
2026-01-05 16:21:58,463 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-83457695', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13908523', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8979449528287576431', 'uuid-lslong': '12061691947671204369'}, 'enable': 'true', 'created': '2026-01-05T16:21:56', 'last-modified': '2026-01-05T16:21:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320807'}
2026-01-05 16:21:58,468 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-05 16:21:58,468 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83457695 passed
2026-01-05 16:21:58,468 - DEBUG - ====Verifying policy data for ctest-vn-83457695 in API_Server ======
2026-01-05 16:21:58,468 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-05 16:21:58,473 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d5e8786-90b2-410a-b283-8a3a00c389cc
2026-01-05 16:21:58,482 - DEBUG - Requesting: http://10.0.0.50:8082/project/04878791-f26c-4f97-bea9-93a1b716e337
2026-01-05 16:21:58,548 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7c9d69c5-5421-416f-a763-bcebbb21b211
2026-01-05 16:21:58,555 - DEBUG - ==>Verifying data for policy with id: a8caed56-51e5-4964-bb3a-b2202a4a53df, fqn: ['default-domain', 'ctest-TestBasicPolicy-13908523', 'ctest-policy-allow-all-39000740']
2026-01-05 16:21:58,555 - INFO - VN ctest-vn-83457695 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-05 16:21:58,556 - DEBUG - Verifying the vn in opserver
2026-01-05 16:21:58,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-83457695 virtual network link through opserver 10.0.0.50
2026-01-05 16:21:58,556 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-05 16:21:58,564 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-83457695', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-83457695?flat'}
2026-01-05 16:21:58,564 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13908523:ctest-vn-83457695 is found in opserver
2026-01-05 16:21:58,573 - DEBUG - Do not have enough data to verify VN in agent
2026-01-05 16:21:58,577 - DEBUG - VRF ids for VN ctest-vn-83457695: {}
2026-01-05 16:21:58,629 - DEBUG - Services list from nova: [