2025-11-17 22:51:17,920 - INFO - Domain Default found not creating
2025-11-17 22:51:18,055 - INFO - Project ctest-TestBasicPolicy-66962038 not found, creating it
2025-11-17 22:51:18,510 - INFO - Created Project:ctest-TestBasicPolicy-66962038, ID : 66555add-325b-4725-aaaf-20a65b819591
2025-11-17 22:51:19,855 - INFO - ================================================================================
2025-11-17 22:51:19,855 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 22:51:19,855 - 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
2025-11-17 22:51:20,107 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-11-17 22:51:20,107 - INFO - Initial checks done. Running the testcase now
2025-11-17 22:51:20,108 - INFO -
2025-11-17 22:51:20,620 - DEBUG - Response for create_network : {'network': {'id': '6daa00dc-557f-4530-92f5-687026cbb87b', 'name': 'ctest-vn-52812271', 'tenant_id': '66555add325b4725aaaf20a65b819591', 'project_id': '66555add325b4725aaaf20a65b819591', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66962038', 'ctest-vn-52812271'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 22:51:20,785 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e76a798-9080-48f5-a31c-76a16eed5b88', 'name': '', 'tenant_id': '66555add325b4725aaaf20a65b819591', 'network_id': '6daa00dc-557f-4530-92f5-687026cbb87b', 'ip_version': 4, 'cidr': '38.107.113.192/26', 'allocation_pools': [{'start': '38.107.113.194', 'end': '38.107.113.254'}], 'gateway_ip': '38.107.113.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.107.113.194', 'tags': [], 'project_id': '66555add325b4725aaaf20a65b819591'}}
2025-11-17 22:51:20,801 - INFO - Created VN ctest-vn-52812271
2025-11-17 22:51:20,851 - DEBUG - VN ctest-vn-52812271 UUID is 6daa00dc-557f-4530-92f5-687026cbb87b
2025-11-17 22:51:21,140 - DEBUG - Response for create_network : {'network': {'id': '57c89397-9f47-4386-98d4-43de4bd0a5c4', 'name': 'ctest-vn-78416681', 'tenant_id': '66555add325b4725aaaf20a65b819591', 'project_id': '66555add325b4725aaaf20a65b819591', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66962038', 'ctest-vn-78416681'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 22:51:21,323 - DEBUG - Response for create_subnet : {'subnet': {'id': '56993c09-c812-4131-986f-b0bc8024cf66', 'name': '', 'tenant_id': '66555add325b4725aaaf20a65b819591', 'network_id': '57c89397-9f47-4386-98d4-43de4bd0a5c4', 'ip_version': 4, 'cidr': '151.7.57.64/26', 'allocation_pools': [{'start': '151.7.57.66', 'end': '151.7.57.126'}], 'gateway_ip': '151.7.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.7.57.66', 'tags': [], 'project_id': '66555add325b4725aaaf20a65b819591'}}
2025-11-17 22:51:21,337 - INFO - Created VN ctest-vn-78416681
2025-11-17 22:51:21,387 - DEBUG - VN ctest-vn-78416681 UUID is 57c89397-9f47-4386-98d4-43de4bd0a5c4
2025-11-17 22:51:21,527 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-52812271, 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-66962038:ctest-vn-78416681, 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]
2025-11-17 22:51:21,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6daa00dc-557f-4530-92f5-687026cbb87b', 'name': 'ctest-vn-52812271', 'tenant_id': '66555add325b4725aaaf20a65b819591', 'project_id': '66555add325b4725aaaf20a65b819591', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e76a798-9080-48f5-a31c-76a16eed5b88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66962038', 'ctest-vn-52812271'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66962038', 'ctest-policy-allow-all-08519863']], 'subnet_ipam': [{'subnet_cidr': '38.107.113.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 22:51:22,009 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57c89397-9f47-4386-98d4-43de4bd0a5c4', 'name': 'ctest-vn-78416681', 'tenant_id': '66555add325b4725aaaf20a65b819591', 'project_id': '66555add325b4725aaaf20a65b819591', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56993c09-c812-4131-986f-b0bc8024cf66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66962038', 'ctest-vn-78416681'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66962038', 'ctest-policy-allow-all-08519863']], 'subnet_ipam': [{'subnet_cidr': '151.7.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 22:51:22,199 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 22:51:22,489 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 22:51:22,515 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a50f1eb8-b8ca-4482-80f5-20493ef9b91c
2025-11-17 22:51:22,526 - DEBUG - Requesting: http://10.0.0.33:8082/project/66555add-325b-4725-aaaf-20a65b819591
2025-11-17 22:51:22,592 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6daa00dc-557f-4530-92f5-687026cbb87b
2025-11-17 22:51:22,603 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6daa00dc-557f-4530-92f5-687026cbb87b
2025-11-17 22:51:22,611 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97a430a7-1bf8-48da-bff3-e5d268ea1c1d
2025-11-17 22:51:22,617 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97a430a7-1bf8-48da-bff3-e5d268ea1c1d
2025-11-17 22:51:22,623 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f7bcf8f8-a613-4510-827e-498c1c5c9652
2025-11-17 22:51:22,628 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 22:51:22,628 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6daa00dc-557f-4530-92f5-687026cbb87b
2025-11-17 22:51:22,635 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97a430a7-1bf8-48da-bff3-e5d268ea1c1d
2025-11-17 22:51:22,645 - INFO - Verified VN network id 12 for VN 6daa00dc-557f-4530-92f5-687026cbb87b
2025-11-17 22:51:22,646 - INFO - Verifications in API Server for VN ctest-vn-52812271 passed
2025-11-17 22:51:22,646 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6daa00dc-557f-4530-92f5-687026cbb87b
2025-11-17 22:51:22,652 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97a430a7-1bf8-48da-bff3-e5d268ea1c1d
2025-11-17 22:51:22,657 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97a430a7-1bf8-48da-bff3-e5d268ea1c1d
2025-11-17 22:51:22,662 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f7bcf8f8-a613-4510-827e-498c1c5c9652
2025-11-17 22:51:22,670 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-52812271', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66962038', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7902129442502165808', 'uuid-lslong': '10589484929728100475'}, 'enable': 'true', 'created': '2025-11-17T22:51:20', 'last-modified': '2025-11-17T22:51:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897327'}
2025-11-17 22:51:22,674 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 22:51:22,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52812271 passed
2025-11-17 22:51:22,675 - DEBUG - ====Verifying policy data for ctest-vn-52812271 in API_Server ======
2025-11-17 22:51:22,675 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 22:51:22,678 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a50f1eb8-b8ca-4482-80f5-20493ef9b91c
2025-11-17 22:51:22,686 - DEBUG - Requesting: http://10.0.0.33:8082/project/66555add-325b-4725-aaaf-20a65b819591
2025-11-17 22:51:22,754 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6daa00dc-557f-4530-92f5-687026cbb87b
2025-11-17 22:51:22,761 - DEBUG - ==>Verifying data for policy with id: 45758429-207c-456a-a8ca-e9e5bd9b8d67, fqn: ['default-domain', 'ctest-TestBasicPolicy-66962038', 'ctest-policy-allow-all-08519863']
2025-11-17 22:51:22,761 - INFO - VN ctest-vn-52812271 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 22:51:22,761 - DEBUG - Verifying the vn in opserver
2025-11-17 22:51:22,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-52812271 virtual network link through opserver 10.0.0.33
2025-11-17 22:51:22,761 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 22:51:23,055 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 22:51:23,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-52812271', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-52812271?flat'}
2025-11-17 22:51:23,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-52812271 is found in opserver
2025-11-17 22:51:23,114 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 22:51:23,117 - DEBUG - VRF ids for VN ctest-vn-52812271: {}
2025-11-17 22:51:23,117 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 22:51:23,122 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a50f1eb8-b8ca-4482-80f5-20493ef9b91c
2025-11-17 22:51:23,132 - DEBUG - Requesting: http://10.0.0.33:8082/project/66555add-325b-4725-aaaf-20a65b819591
2025-11-17 22:51:23,202 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57c89397-9f47-4386-98d4-43de4bd0a5c4
2025-11-17 22:51:23,213 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57c89397-9f47-4386-98d4-43de4bd0a5c4
2025-11-17 22:51:23,221 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e942af93-b59b-4d9e-bf81-2e3e1734104d
2025-11-17 22:51:23,227 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e942af93-b59b-4d9e-bf81-2e3e1734104d
2025-11-17 22:51:23,232 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8d590f01-bdfc-497f-b8c7-9a554333dd26
2025-11-17 22:51:23,237 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 22:51:23,237 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57c89397-9f47-4386-98d4-43de4bd0a5c4
2025-11-17 22:51:23,245 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e942af93-b59b-4d9e-bf81-2e3e1734104d
2025-11-17 22:51:23,256 - INFO - Verified VN network id 13 for VN 57c89397-9f47-4386-98d4-43de4bd0a5c4
2025-11-17 22:51:23,256 - INFO - Verifications in API Server for VN ctest-vn-78416681 passed
2025-11-17 22:51:23,256 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57c89397-9f47-4386-98d4-43de4bd0a5c4
2025-11-17 22:51:23,262 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e942af93-b59b-4d9e-bf81-2e3e1734104d
2025-11-17 22:51:23,267 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e942af93-b59b-4d9e-bf81-2e3e1734104d
2025-11-17 22:51:23,272 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8d590f01-bdfc-497f-b8c7-9a554333dd26
2025-11-17 22:51:23,281 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-78416681', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66962038', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6325467956063454086', 'uuid-lslong': '11012501610861471172'}, 'enable': 'true', 'created': '2025-11-17T22:51:21', 'last-modified': '2025-11-17T22:51:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.289740'}
2025-11-17 22:51:23,285 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 22:51:23,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78416681 passed
2025-11-17 22:51:23,285 - DEBUG - ====Verifying policy data for ctest-vn-78416681 in API_Server ======
2025-11-17 22:51:23,286 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 22:51:23,289 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a50f1eb8-b8ca-4482-80f5-20493ef9b91c
2025-11-17 22:51:23,298 - DEBUG - Requesting: http://10.0.0.33:8082/project/66555add-325b-4725-aaaf-20a65b819591
2025-11-17 22:51:23,363 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57c89397-9f47-4386-98d4-43de4bd0a5c4
2025-11-17 22:51:23,372 - DEBUG - ==>Verifying data for policy with id: 45758429-207c-456a-a8ca-e9e5bd9b8d67, fqn: ['default-domain', 'ctest-TestBasicPolicy-66962038', 'ctest-policy-allow-all-08519863']
2025-11-17 22:51:23,372 - INFO - VN ctest-vn-78416681 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 22:51:23,372 - DEBUG - Verifying the vn in opserver
2025-11-17 22:51:23,372 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-78416681 virtual network link through opserver 10.0.0.33
2025-11-17 22:51:23,372 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 22:51:23,381 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-78416681', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-78416681?flat'}
2025-11-17 22:51:23,381 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66962038:ctest-vn-78416681 is found in opserver
2025-11-17 22:51:23,390 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 22:51:23,395 - DEBUG - VRF ids for VN ctest-vn-78416681: {}
2025-11-17 22:51:23,448 - DEBUG - Services list from nova: [