2025-10-23 07:02:40,527 - INFO - Domain Default found not creating
2025-10-23 07:02:40,735 - INFO - Project ctest-TestBasicPolicy-03032584 not found, creating it
2025-10-23 07:02:41,231 - INFO - Created Project:ctest-TestBasicPolicy-03032584, ID : b033b25f-eeff-4f06-ab2c-4fdf4a6b3b79
2025-10-23 07:02:42,690 - INFO - ================================================================================
2025-10-23 07:02:42,690 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 07:02:42,690 - 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-10-23 07:02:42,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-23 07:02:42,951 - INFO - Initial checks done. Running the testcase now
2025-10-23 07:02:42,951 - INFO -
2025-10-23 07:02:43,502 - DEBUG - Response for create_network : {'network': {'id': '77012673-aefc-4805-8d53-ce80a0d70231', 'name': 'ctest-vn-63292731', 'tenant_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'project_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03032584', 'ctest-vn-63292731'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 07:02:43,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c639090-ea43-4422-ab77-92808e0aa1ef', 'name': '', 'tenant_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'network_id': '77012673-aefc-4805-8d53-ce80a0d70231', 'ip_version': 4, 'cidr': '197.130.73.192/26', 'allocation_pools': [{'start': '197.130.73.194', 'end': '197.130.73.254'}], 'gateway_ip': '197.130.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.130.73.194', 'tags': [], 'project_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79'}}
2025-10-23 07:02:43,733 - INFO - Created VN ctest-vn-63292731
2025-10-23 07:02:43,784 - DEBUG - VN ctest-vn-63292731 UUID is 77012673-aefc-4805-8d53-ce80a0d70231
2025-10-23 07:02:44,079 - DEBUG - Response for create_network : {'network': {'id': '7f0180a2-9a86-4830-81b3-074cfd7f0264', 'name': 'ctest-vn-42527498', 'tenant_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'project_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03032584', 'ctest-vn-42527498'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 07:02:44,237 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b32d47ec-2ce6-4aa5-acf7-5b40a62f8d13', 'name': '', 'tenant_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'network_id': '7f0180a2-9a86-4830-81b3-074cfd7f0264', 'ip_version': 4, 'cidr': '167.39.91.128/26', 'allocation_pools': [{'start': '167.39.91.130', 'end': '167.39.91.190'}], 'gateway_ip': '167.39.91.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.39.91.130', 'tags': [], 'project_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79'}}
2025-10-23 07:02:44,255 - INFO - Created VN ctest-vn-42527498
2025-10-23 07:02:44,308 - DEBUG - VN ctest-vn-42527498 UUID is 7f0180a2-9a86-4830-81b3-074cfd7f0264
2025-10-23 07:02:44,466 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-63292731, 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-03032584:ctest-vn-42527498, 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-10-23 07:02:44,763 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77012673-aefc-4805-8d53-ce80a0d70231', 'name': 'ctest-vn-63292731', 'tenant_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'project_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c639090-ea43-4422-ab77-92808e0aa1ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03032584', 'ctest-vn-63292731'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03032584', 'ctest-policy-allow-all-73668601']], 'subnet_ipam': [{'subnet_cidr': '197.130.73.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 07:02:44,999 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f0180a2-9a86-4830-81b3-074cfd7f0264', 'name': 'ctest-vn-42527498', 'tenant_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'project_id': 'b033b25feeff4f06ab2c4fdf4a6b3b79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b32d47ec-2ce6-4aa5-acf7-5b40a62f8d13'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03032584', 'ctest-vn-42527498'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03032584', 'ctest-policy-allow-all-73668601']], 'subnet_ipam': [{'subnet_cidr': '167.39.91.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 07:02:45,168 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 07:02:45,469 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 07:02:45,785 - DEBUG - Requesting: http://10.0.0.254:8082/domain/613a4d62-dd90-4136-89cf-048b6bcead5e
2025-10-23 07:02:45,797 - DEBUG - Requesting: http://10.0.0.254:8082/project/b033b25f-eeff-4f06-ab2c-4fdf4a6b3b79
2025-10-23 07:02:45,879 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/77012673-aefc-4805-8d53-ce80a0d70231
2025-10-23 07:02:45,891 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/77012673-aefc-4805-8d53-ce80a0d70231
2025-10-23 07:02:45,900 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9122c71b-9d54-4c70-9860-fc0125cbc795
2025-10-23 07:02:45,907 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9122c71b-9d54-4c70-9860-fc0125cbc795
2025-10-23 07:02:45,913 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f11fd3a1-5f23-4ca7-9c25-74b028dd6396
2025-10-23 07:02:45,920 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 07:02:45,920 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/77012673-aefc-4805-8d53-ce80a0d70231
2025-10-23 07:02:45,928 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9122c71b-9d54-4c70-9860-fc0125cbc795
2025-10-23 07:02:45,943 - INFO - Verified VN network id 9 for VN 77012673-aefc-4805-8d53-ce80a0d70231
2025-10-23 07:02:45,944 - INFO - Verifications in API Server for VN ctest-vn-63292731 passed
2025-10-23 07:02:45,944 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/77012673-aefc-4805-8d53-ce80a0d70231
2025-10-23 07:02:45,956 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9122c71b-9d54-4c70-9860-fc0125cbc795
2025-10-23 07:02:45,963 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9122c71b-9d54-4c70-9860-fc0125cbc795
2025-10-23 07:02:45,971 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f11fd3a1-5f23-4ca7-9c25-74b028dd6396
2025-10-23 07:02:45,982 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-63292731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03032584', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8575177443788998661', 'uuid-lslong': '10183710234264404529'}, 'enable': 'true', 'created': '2025-10-23T07:02:43', 'last-modified': '2025-10-23T07:02:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.238821'}
2025-10-23 07:02:45,989 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 07:02:45,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63292731 passed
2025-10-23 07:02:45,989 - DEBUG - ====Verifying policy data for ctest-vn-63292731 in API_Server ======
2025-10-23 07:02:45,989 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 07:02:45,994 - DEBUG - Requesting: http://10.0.0.254:8082/domain/613a4d62-dd90-4136-89cf-048b6bcead5e
2025-10-23 07:02:46,007 - DEBUG - Requesting: http://10.0.0.254:8082/project/b033b25f-eeff-4f06-ab2c-4fdf4a6b3b79
2025-10-23 07:02:46,095 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/77012673-aefc-4805-8d53-ce80a0d70231
2025-10-23 07:02:46,106 - DEBUG - ==>Verifying data for policy with id: 37c265ec-a201-4467-b013-82235b62991c, fqn: ['default-domain', 'ctest-TestBasicPolicy-03032584', 'ctest-policy-allow-all-73668601']
2025-10-23 07:02:46,106 - INFO - VN ctest-vn-63292731 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 07:02:46,106 - DEBUG - Verifying the vn in opserver
2025-10-23 07:02:46,106 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-63292731 virtual network link through opserver 10.0.0.254
2025-10-23 07:02:46,106 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 07:02:46,442 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 07:02:46,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-63292731', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-63292731?flat'}
2025-10-23 07:02:46,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-63292731 is found in opserver
2025-10-23 07:02:46,543 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 07:02:46,549 - DEBUG - VRF ids for VN ctest-vn-63292731: {}
2025-10-23 07:02:46,549 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 07:02:46,554 - DEBUG - Requesting: http://10.0.0.254:8082/domain/613a4d62-dd90-4136-89cf-048b6bcead5e
2025-10-23 07:02:46,563 - DEBUG - Requesting: http://10.0.0.254:8082/project/b033b25f-eeff-4f06-ab2c-4fdf4a6b3b79
2025-10-23 07:02:46,640 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f0180a2-9a86-4830-81b3-074cfd7f0264
2025-10-23 07:02:46,652 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f0180a2-9a86-4830-81b3-074cfd7f0264
2025-10-23 07:02:46,660 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9de1eb80-a115-4f38-bf7f-83b15fe867fd
2025-10-23 07:02:46,667 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9de1eb80-a115-4f38-bf7f-83b15fe867fd
2025-10-23 07:02:46,674 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/37db43b6-ee86-4f06-ae44-81c341dd1b92
2025-10-23 07:02:46,680 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 07:02:46,680 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f0180a2-9a86-4830-81b3-074cfd7f0264
2025-10-23 07:02:46,689 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9de1eb80-a115-4f38-bf7f-83b15fe867fd
2025-10-23 07:02:46,707 - INFO - Verified VN network id 10 for VN 7f0180a2-9a86-4830-81b3-074cfd7f0264
2025-10-23 07:02:46,707 - INFO - Verifications in API Server for VN ctest-vn-42527498 passed
2025-10-23 07:02:46,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f0180a2-9a86-4830-81b3-074cfd7f0264
2025-10-23 07:02:46,718 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9de1eb80-a115-4f38-bf7f-83b15fe867fd
2025-10-23 07:02:46,726 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9de1eb80-a115-4f38-bf7f-83b15fe867fd
2025-10-23 07:02:46,734 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/37db43b6-ee86-4f06-ae44-81c341dd1b92
2025-10-23 07:02:46,747 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-42527498', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03032584', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9151737353659107376', 'uuid-lslong': '9345821678975779428'}, 'enable': 'true', 'created': '2025-10-23T07:02:44', 'last-modified': '2025-10-23T07:02:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.774883'}
2025-10-23 07:02:46,754 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 07:02:46,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42527498 passed
2025-10-23 07:02:46,754 - DEBUG - ====Verifying policy data for ctest-vn-42527498 in API_Server ======
2025-10-23 07:02:46,754 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 07:02:46,759 - DEBUG - Requesting: http://10.0.0.254:8082/domain/613a4d62-dd90-4136-89cf-048b6bcead5e
2025-10-23 07:02:46,769 - DEBUG - Requesting: http://10.0.0.254:8082/project/b033b25f-eeff-4f06-ab2c-4fdf4a6b3b79
2025-10-23 07:02:46,838 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f0180a2-9a86-4830-81b3-074cfd7f0264
2025-10-23 07:02:46,846 - DEBUG - ==>Verifying data for policy with id: 37c265ec-a201-4467-b013-82235b62991c, fqn: ['default-domain', 'ctest-TestBasicPolicy-03032584', 'ctest-policy-allow-all-73668601']
2025-10-23 07:02:46,846 - INFO - VN ctest-vn-42527498 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 07:02:46,846 - DEBUG - Verifying the vn in opserver
2025-10-23 07:02:46,846 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-42527498 virtual network link through opserver 10.0.0.254
2025-10-23 07:02:46,846 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 07:02:46,855 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-42527498', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-42527498?flat'}
2025-10-23 07:02:46,855 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03032584:ctest-vn-42527498 is found in opserver
2025-10-23 07:02:46,864 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 07:02:46,868 - DEBUG - VRF ids for VN ctest-vn-42527498: {}
2025-10-23 07:02:46,925 - DEBUG - Services list from nova: [