2025-12-19 17:08:43,326 - INFO - Domain Default found not creating
2025-12-19 17:08:43,491 - INFO - Project ctest-TestBasicPolicy-45872845 not found, creating it
2025-12-19 17:08:43,971 - INFO - Created Project:ctest-TestBasicPolicy-45872845, ID : 2581fb84-5404-4ea2-8a0f-922954890bb6
2025-12-19 17:08:46,410 - INFO - ================================================================================
2025-12-19 17:08:46,410 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-19 17:08:46,410 - 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-12-19 17:08:46,665 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-12-19 17:08:46,665 - INFO - Initial checks done. Running the testcase now
2025-12-19 17:08:46,665 - INFO -
2025-12-19 17:08:47,378 - DEBUG - Response for create_network : {'network': {'id': '59207dc3-17cf-49c7-b180-ad102502ae2a', 'name': 'ctest-vn-67020100', 'tenant_id': '2581fb8454044ea28a0f922954890bb6', 'project_id': '2581fb8454044ea28a0f922954890bb6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45872845', 'ctest-vn-67020100'], 'port_security_enabled': True, 'description': ''}}
2025-12-19 17:08:47,549 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fefc507-4ac7-4254-97b7-c1c624e3f38c', 'name': '', 'tenant_id': '2581fb8454044ea28a0f922954890bb6', 'network_id': '59207dc3-17cf-49c7-b180-ad102502ae2a', 'ip_version': 4, 'cidr': '181.60.38.192/26', 'allocation_pools': [{'start': '181.60.38.194', 'end': '181.60.38.254'}], 'gateway_ip': '181.60.38.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.60.38.194', 'tags': [], 'project_id': '2581fb8454044ea28a0f922954890bb6'}}
2025-12-19 17:08:47,570 - INFO - Created VN ctest-vn-67020100
2025-12-19 17:08:47,623 - DEBUG - VN ctest-vn-67020100 UUID is 59207dc3-17cf-49c7-b180-ad102502ae2a
2025-12-19 17:08:47,952 - DEBUG - Response for create_network : {'network': {'id': '90dd962d-5283-4a6c-9360-7ba024c2051e', 'name': 'ctest-vn-46974451', 'tenant_id': '2581fb8454044ea28a0f922954890bb6', 'project_id': '2581fb8454044ea28a0f922954890bb6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45872845', 'ctest-vn-46974451'], 'port_security_enabled': True, 'description': ''}}
2025-12-19 17:08:48,172 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7f5f9e2-9d3f-46e6-8957-0e6d459588db', 'name': '', 'tenant_id': '2581fb8454044ea28a0f922954890bb6', 'network_id': '90dd962d-5283-4a6c-9360-7ba024c2051e', 'ip_version': 4, 'cidr': '193.125.184.64/26', 'allocation_pools': [{'start': '193.125.184.66', 'end': '193.125.184.126'}], 'gateway_ip': '193.125.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.125.184.66', 'tags': [], 'project_id': '2581fb8454044ea28a0f922954890bb6'}}
2025-12-19 17:08:48,192 - INFO - Created VN ctest-vn-46974451
2025-12-19 17:08:48,247 - DEBUG - VN ctest-vn-46974451 UUID is 90dd962d-5283-4a6c-9360-7ba024c2051e
2025-12-19 17:08:48,371 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-67020100, 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-45872845:ctest-vn-46974451, 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-12-19 17:08:48,666 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59207dc3-17cf-49c7-b180-ad102502ae2a', 'name': 'ctest-vn-67020100', 'tenant_id': '2581fb8454044ea28a0f922954890bb6', 'project_id': '2581fb8454044ea28a0f922954890bb6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7fefc507-4ac7-4254-97b7-c1c624e3f38c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45872845', 'ctest-vn-67020100'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45872845', 'ctest-policy-allow-all-77130161']], 'subnet_ipam': [{'subnet_cidr': '181.60.38.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-19 17:08:48,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90dd962d-5283-4a6c-9360-7ba024c2051e', 'name': 'ctest-vn-46974451', 'tenant_id': '2581fb8454044ea28a0f922954890bb6', 'project_id': '2581fb8454044ea28a0f922954890bb6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7f5f9e2-9d3f-46e6-8957-0e6d459588db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45872845', 'ctest-vn-46974451'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45872845', 'ctest-policy-allow-all-77130161']], 'subnet_ipam': [{'subnet_cidr': '193.125.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-19 17:08:49,083 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-19 17:08:49,421 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-19 17:08:49,460 - DEBUG - Requesting: http://10.0.0.50:8082/domain/75491ec1-01ec-4e56-8228-e24220e66f45
2025-12-19 17:08:49,477 - DEBUG - Requesting: http://10.0.0.50:8082/project/2581fb84-5404-4ea2-8a0f-922954890bb6
2025-12-19 17:08:49,554 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59207dc3-17cf-49c7-b180-ad102502ae2a
2025-12-19 17:08:49,566 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59207dc3-17cf-49c7-b180-ad102502ae2a
2025-12-19 17:08:49,576 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/686cf2f3-feec-4cbe-810e-b7452efecde8
2025-12-19 17:08:49,583 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/686cf2f3-feec-4cbe-810e-b7452efecde8
2025-12-19 17:08:49,590 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fca7d121-7389-45d4-bfb6-518f7c75c079
2025-12-19 17:08:49,596 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-19 17:08:49,596 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59207dc3-17cf-49c7-b180-ad102502ae2a
2025-12-19 17:08:49,605 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/686cf2f3-feec-4cbe-810e-b7452efecde8
2025-12-19 17:08:49,620 - INFO - Verified VN network id 12 for VN 59207dc3-17cf-49c7-b180-ad102502ae2a
2025-12-19 17:08:49,621 - INFO - Verifications in API Server for VN ctest-vn-67020100 passed
2025-12-19 17:08:49,621 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59207dc3-17cf-49c7-b180-ad102502ae2a
2025-12-19 17:08:49,632 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/686cf2f3-feec-4cbe-810e-b7452efecde8
2025-12-19 17:08:49,640 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/686cf2f3-feec-4cbe-810e-b7452efecde8
2025-12-19 17:08:49,649 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fca7d121-7389-45d4-bfb6-518f7c75c079
2025-12-19 17:08:49,665 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-67020100', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45872845', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6422271345501882823', 'uuid-lslong': '12790413226584223274'}, 'enable': 'true', 'created': '2025-12-19T17:08:47', 'last-modified': '2025-12-19T17:08:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.022111'}
2025-12-19 17:08:49,673 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-19 17:08:49,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67020100 passed
2025-12-19 17:08:49,674 - DEBUG - ====Verifying policy data for ctest-vn-67020100 in API_Server ======
2025-12-19 17:08:49,674 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-19 17:08:49,680 - DEBUG - Requesting: http://10.0.0.50:8082/domain/75491ec1-01ec-4e56-8228-e24220e66f45
2025-12-19 17:08:49,692 - DEBUG - Requesting: http://10.0.0.50:8082/project/2581fb84-5404-4ea2-8a0f-922954890bb6
2025-12-19 17:08:49,762 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59207dc3-17cf-49c7-b180-ad102502ae2a
2025-12-19 17:08:49,774 - DEBUG - ==>Verifying data for policy with id: e17d5ca5-cbbc-468e-b6f0-7992cdc6bcf9, fqn: ['default-domain', 'ctest-TestBasicPolicy-45872845', 'ctest-policy-allow-all-77130161']
2025-12-19 17:08:49,774 - INFO - VN ctest-vn-67020100 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-19 17:08:49,774 - DEBUG - Verifying the vn in opserver
2025-12-19 17:08:49,774 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-67020100 virtual network link through opserver 10.0.0.50
2025-12-19 17:08:49,774 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-19 17:08:50,118 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-19 17:08:50,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-67020100', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-67020100?flat'}
2025-12-19 17:08:50,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-67020100 is found in opserver
2025-12-19 17:08:50,197 - DEBUG - Do not have enough data to verify VN in agent
2025-12-19 17:08:50,202 - DEBUG - VRF ids for VN ctest-vn-67020100: {}
2025-12-19 17:08:50,202 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-19 17:08:50,208 - DEBUG - Requesting: http://10.0.0.50:8082/domain/75491ec1-01ec-4e56-8228-e24220e66f45
2025-12-19 17:08:50,221 - DEBUG - Requesting: http://10.0.0.50:8082/project/2581fb84-5404-4ea2-8a0f-922954890bb6
2025-12-19 17:08:50,294 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90dd962d-5283-4a6c-9360-7ba024c2051e
2025-12-19 17:08:50,308 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90dd962d-5283-4a6c-9360-7ba024c2051e
2025-12-19 17:08:50,320 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1c17193-e8de-4145-81b7-797c83bf4a52
2025-12-19 17:08:50,329 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1c17193-e8de-4145-81b7-797c83bf4a52
2025-12-19 17:08:50,337 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/10083cfc-b728-495f-8b0c-784bd6f78c33
2025-12-19 17:08:50,345 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-19 17:08:50,345 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90dd962d-5283-4a6c-9360-7ba024c2051e
2025-12-19 17:08:50,357 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1c17193-e8de-4145-81b7-797c83bf4a52
2025-12-19 17:08:50,374 - INFO - Verified VN network id 13 for VN 90dd962d-5283-4a6c-9360-7ba024c2051e
2025-12-19 17:08:50,374 - INFO - Verifications in API Server for VN ctest-vn-46974451 passed
2025-12-19 17:08:50,374 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90dd962d-5283-4a6c-9360-7ba024c2051e
2025-12-19 17:08:50,386 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1c17193-e8de-4145-81b7-797c83bf4a52
2025-12-19 17:08:50,396 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1c17193-e8de-4145-81b7-797c83bf4a52
2025-12-19 17:08:50,405 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/10083cfc-b728-495f-8b0c-784bd6f78c33
2025-12-19 17:08:50,418 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-46974451', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45872845', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10438664632716708460', 'uuid-lslong': '10619623849081308446'}, 'enable': 'true', 'created': '2025-12-19T17:08:47', 'last-modified': '2025-12-19T17:08:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.528355'}
2025-12-19 17:08:50,426 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-19 17:08:50,426 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46974451 passed
2025-12-19 17:08:50,426 - DEBUG - ====Verifying policy data for ctest-vn-46974451 in API_Server ======
2025-12-19 17:08:50,426 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-19 17:08:50,433 - DEBUG - Requesting: http://10.0.0.50:8082/domain/75491ec1-01ec-4e56-8228-e24220e66f45
2025-12-19 17:08:50,445 - DEBUG - Requesting: http://10.0.0.50:8082/project/2581fb84-5404-4ea2-8a0f-922954890bb6
2025-12-19 17:08:50,524 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90dd962d-5283-4a6c-9360-7ba024c2051e
2025-12-19 17:08:50,536 - DEBUG - ==>Verifying data for policy with id: e17d5ca5-cbbc-468e-b6f0-7992cdc6bcf9, fqn: ['default-domain', 'ctest-TestBasicPolicy-45872845', 'ctest-policy-allow-all-77130161']
2025-12-19 17:08:50,536 - INFO - VN ctest-vn-46974451 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-19 17:08:50,536 - DEBUG - Verifying the vn in opserver
2025-12-19 17:08:50,536 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-46974451 virtual network link through opserver 10.0.0.50
2025-12-19 17:08:50,536 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-19 17:08:50,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-46974451', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-46974451?flat'}
2025-12-19 17:08:50,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45872845:ctest-vn-46974451 is found in opserver
2025-12-19 17:08:50,559 - DEBUG - Do not have enough data to verify VN in agent
2025-12-19 17:08:50,565 - DEBUG - VRF ids for VN ctest-vn-46974451: {}
2025-12-19 17:08:50,627 - DEBUG - Services list from nova: [