2026-05-12 17:43:44,793 - INFO - Domain Default found not creating
2026-05-12 17:43:44,970 - INFO - Project ctest-TestBasicPolicy-67840431 not found, creating it
2026-05-12 17:43:45,452 - INFO - Created Project:ctest-TestBasicPolicy-67840431, ID : a13f5d62-c37f-4ed9-96f4-565cf29eb7f6
2026-05-12 17:43:46,977 - INFO - ================================================================================
2026-05-12 17:43:46,977 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-12 17:43:46,977 - 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-05-12 17:43:47,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-05-12 17:43:47,238 - INFO - Initial checks done. Running the testcase now
2026-05-12 17:43:47,238 - INFO -
2026-05-12 17:43:47,794 - DEBUG - Response for create_network : {'network': {'id': 'dec26a2b-f5eb-46ee-871a-ba737ac750e7', 'name': 'ctest-vn-83231718', 'tenant_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'project_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67840431', 'ctest-vn-83231718'], 'port_security_enabled': True, 'description': ''}}
2026-05-12 17:43:48,030 - DEBUG - Response for create_subnet : {'subnet': {'id': '179a7c8b-e269-436b-9c2b-07f6c4d3a1ac', 'name': '', 'tenant_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'network_id': 'dec26a2b-f5eb-46ee-871a-ba737ac750e7', 'ip_version': 4, 'cidr': '201.228.23.128/26', 'allocation_pools': [{'start': '201.228.23.130', 'end': '201.228.23.190'}], 'gateway_ip': '201.228.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.228.23.130', 'tags': [], 'project_id': 'a13f5d62c37f4ed996f4565cf29eb7f6'}}
2026-05-12 17:43:48,051 - INFO - Created VN ctest-vn-83231718
2026-05-12 17:43:48,107 - DEBUG - VN ctest-vn-83231718 UUID is dec26a2b-f5eb-46ee-871a-ba737ac750e7
2026-05-12 17:43:48,402 - DEBUG - Response for create_network : {'network': {'id': 'ee44ce05-d797-4bfa-a0ed-6359e7aa5b23', 'name': 'ctest-vn-01453884', 'tenant_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'project_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67840431', 'ctest-vn-01453884'], 'port_security_enabled': True, 'description': ''}}
2026-05-12 17:43:48,592 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f41181a6-8a76-4d94-b4ae-b3394913cec8', 'name': '', 'tenant_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'network_id': 'ee44ce05-d797-4bfa-a0ed-6359e7aa5b23', 'ip_version': 4, 'cidr': '217.184.119.64/26', 'allocation_pools': [{'start': '217.184.119.66', 'end': '217.184.119.126'}], 'gateway_ip': '217.184.119.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.184.119.66', 'tags': [], 'project_id': 'a13f5d62c37f4ed996f4565cf29eb7f6'}}
2026-05-12 17:43:48,610 - INFO - Created VN ctest-vn-01453884
2026-05-12 17:43:48,663 - DEBUG - VN ctest-vn-01453884 UUID is ee44ce05-d797-4bfa-a0ed-6359e7aa5b23
2026-05-12 17:43:48,777 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-83231718, 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-67840431:ctest-vn-01453884, 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-05-12 17:43:49,080 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dec26a2b-f5eb-46ee-871a-ba737ac750e7', 'name': 'ctest-vn-83231718', 'tenant_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'project_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['179a7c8b-e269-436b-9c2b-07f6c4d3a1ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67840431', 'ctest-vn-83231718'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67840431', 'ctest-policy-allow-all-27261952']], 'subnet_ipam': [{'subnet_cidr': '201.228.23.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-12 17:43:49,322 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee44ce05-d797-4bfa-a0ed-6359e7aa5b23', 'name': 'ctest-vn-01453884', 'tenant_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'project_id': 'a13f5d62c37f4ed996f4565cf29eb7f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f41181a6-8a76-4d94-b4ae-b3394913cec8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67840431', 'ctest-vn-01453884'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67840431', 'ctest-policy-allow-all-27261952']], 'subnet_ipam': [{'subnet_cidr': '217.184.119.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-12 17:43:49,495 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-12 17:43:49,790 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-12 17:43:49,823 - DEBUG - Requesting: http://10.0.0.242:8082/domain/22ec9995-416d-4053-9875-5a199a9ea372
2026-05-12 17:43:49,837 - DEBUG - Requesting: http://10.0.0.242:8082/project/a13f5d62-c37f-4ed9-96f4-565cf29eb7f6
2026-05-12 17:43:49,916 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dec26a2b-f5eb-46ee-871a-ba737ac750e7
2026-05-12 17:43:49,928 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dec26a2b-f5eb-46ee-871a-ba737ac750e7
2026-05-12 17:43:49,937 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4d230f28-84eb-4f8b-a517-3f713f9dacc8
2026-05-12 17:43:49,943 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4d230f28-84eb-4f8b-a517-3f713f9dacc8
2026-05-12 17:43:49,950 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/cbd8046c-a4b6-467b-83c6-232e755353af
2026-05-12 17:43:49,956 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-12 17:43:49,956 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dec26a2b-f5eb-46ee-871a-ba737ac750e7
2026-05-12 17:43:49,964 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4d230f28-84eb-4f8b-a517-3f713f9dacc8
2026-05-12 17:43:49,977 - INFO - Verified VN network id 11 for VN dec26a2b-f5eb-46ee-871a-ba737ac750e7
2026-05-12 17:43:49,977 - INFO - Verifications in API Server for VN ctest-vn-83231718 passed
2026-05-12 17:43:49,977 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dec26a2b-f5eb-46ee-871a-ba737ac750e7
2026-05-12 17:43:49,986 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4d230f28-84eb-4f8b-a517-3f713f9dacc8
2026-05-12 17:43:49,992 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4d230f28-84eb-4f8b-a517-3f713f9dacc8
2026-05-12 17:43:49,998 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/cbd8046c-a4b6-467b-83c6-232e755353af
2026-05-12 17:43:50,011 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-83231718', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67840431', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16051508758943844078', 'uuid-lslong': '9735298549658636519'}, 'enable': 'true', 'created': '2026-05-12T17:43:47', 'last-modified': '2026-05-12T17:43:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950045'}
2026-05-12 17:43:50,018 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-12 17:43:50,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83231718 passed
2026-05-12 17:43:50,019 - DEBUG - ====Verifying policy data for ctest-vn-83231718 in API_Server ======
2026-05-12 17:43:50,019 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-12 17:43:50,025 - DEBUG - Requesting: http://10.0.0.242:8082/domain/22ec9995-416d-4053-9875-5a199a9ea372
2026-05-12 17:43:50,038 - DEBUG - Requesting: http://10.0.0.242:8082/project/a13f5d62-c37f-4ed9-96f4-565cf29eb7f6
2026-05-12 17:43:50,110 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dec26a2b-f5eb-46ee-871a-ba737ac750e7
2026-05-12 17:43:50,120 - DEBUG - ==>Verifying data for policy with id: 6a0bdf0f-914a-4bb3-a82b-e43d0f180ef9, fqn: ['default-domain', 'ctest-TestBasicPolicy-67840431', 'ctest-policy-allow-all-27261952']
2026-05-12 17:43:50,120 - INFO - VN ctest-vn-83231718 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-12 17:43:50,120 - DEBUG - Verifying the vn in opserver
2026-05-12 17:43:50,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-83231718 virtual network link through opserver 10.0.0.242
2026-05-12 17:43:50,121 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-12 17:43:50,416 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-12 17:43:50,486 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-83231718', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-83231718?flat'}
2026-05-12 17:43:50,486 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-83231718 is found in opserver
2026-05-12 17:43:50,495 - DEBUG - Do not have enough data to verify VN in agent
2026-05-12 17:43:50,499 - DEBUG - VRF ids for VN ctest-vn-83231718: {}
2026-05-12 17:43:50,500 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-12 17:43:50,505 - DEBUG - Requesting: http://10.0.0.242:8082/domain/22ec9995-416d-4053-9875-5a199a9ea372
2026-05-12 17:43:50,515 - DEBUG - Requesting: http://10.0.0.242:8082/project/a13f5d62-c37f-4ed9-96f4-565cf29eb7f6
2026-05-12 17:43:50,585 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee44ce05-d797-4bfa-a0ed-6359e7aa5b23
2026-05-12 17:43:50,596 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee44ce05-d797-4bfa-a0ed-6359e7aa5b23
2026-05-12 17:43:50,603 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/04e68758-1fca-4e7d-8447-41406bdffcb7
2026-05-12 17:43:50,609 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/04e68758-1fca-4e7d-8447-41406bdffcb7
2026-05-12 17:43:50,615 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/85cb156e-ea25-4f67-8fc9-ec62a5d41ef4
2026-05-12 17:43:50,621 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-12 17:43:50,621 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee44ce05-d797-4bfa-a0ed-6359e7aa5b23
2026-05-12 17:43:50,629 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/04e68758-1fca-4e7d-8447-41406bdffcb7
2026-05-12 17:43:50,642 - INFO - Verified VN network id 12 for VN ee44ce05-d797-4bfa-a0ed-6359e7aa5b23
2026-05-12 17:43:50,642 - INFO - Verifications in API Server for VN ctest-vn-01453884 passed
2026-05-12 17:43:50,643 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee44ce05-d797-4bfa-a0ed-6359e7aa5b23
2026-05-12 17:43:50,651 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/04e68758-1fca-4e7d-8447-41406bdffcb7
2026-05-12 17:43:50,658 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/04e68758-1fca-4e7d-8447-41406bdffcb7
2026-05-12 17:43:50,665 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/85cb156e-ea25-4f67-8fc9-ec62a5d41ef4
2026-05-12 17:43:50,678 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-01453884', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67840431', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17169074203930348538', 'uuid-lslong': '11596033853338835747'}, 'enable': 'true', 'created': '2026-05-12T17:43:48', 'last-modified': '2026-05-12T17:43:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.378675'}
2026-05-12 17:43:50,686 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-12 17:43:50,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01453884 passed
2026-05-12 17:43:50,686 - DEBUG - ====Verifying policy data for ctest-vn-01453884 in API_Server ======
2026-05-12 17:43:50,686 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-12 17:43:50,691 - DEBUG - Requesting: http://10.0.0.242:8082/domain/22ec9995-416d-4053-9875-5a199a9ea372
2026-05-12 17:43:50,702 - DEBUG - Requesting: http://10.0.0.242:8082/project/a13f5d62-c37f-4ed9-96f4-565cf29eb7f6
2026-05-12 17:43:50,778 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ee44ce05-d797-4bfa-a0ed-6359e7aa5b23
2026-05-12 17:43:50,789 - DEBUG - ==>Verifying data for policy with id: 6a0bdf0f-914a-4bb3-a82b-e43d0f180ef9, fqn: ['default-domain', 'ctest-TestBasicPolicy-67840431', 'ctest-policy-allow-all-27261952']
2026-05-12 17:43:50,789 - INFO - VN ctest-vn-01453884 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-12 17:43:50,789 - DEBUG - Verifying the vn in opserver
2026-05-12 17:43:50,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-01453884 virtual network link through opserver 10.0.0.242
2026-05-12 17:43:50,789 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-12 17:43:50,800 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-01453884', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-01453884?flat'}
2026-05-12 17:43:50,800 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67840431:ctest-vn-01453884 is found in opserver
2026-05-12 17:43:50,809 - DEBUG - Do not have enough data to verify VN in agent
2026-05-12 17:43:50,813 - DEBUG - VRF ids for VN ctest-vn-01453884: {}
2026-05-12 17:43:50,873 - DEBUG - Services list from nova: [