2026-02-02 08:07:33,887 - INFO - Reading existing Domain with UUID a2db6585-9c32-4c36-b884-93ce8d9f9858
2026-02-02 08:07:33,901 - INFO - Using existing domain ['admin_domain'](a2db6585-9c32-4c36-b884-93ce8d9f9858)
2026-02-02 08:07:34,150 - INFO - Project ctest-TestBasicPolicy-00571302 not found, creating it
2026-02-02 08:07:34,656 - INFO - Created Project:ctest-TestBasicPolicy-00571302, ID : 5d598737-c9f0-4892-ac04-d08ee1a89324
2026-02-02 08:07:36,623 - INFO - ================================================================================
2026-02-02 08:07:36,623 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-02 08:07:36,623 - 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-02-02 08:07:37,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with
2026-02-02 08:07:37,022 - INFO - Initial checks done. Running the testcase now
2026-02-02 08:07:37,023 - INFO -
2026-02-02 08:07:37,846 - DEBUG - Response for create_network : {'network': {'id': '4c2c7eb9-a065-4130-accc-59532ce8d79f', 'name': 'ctest-vn-17558092', 'tenant_id': '5d598737c9f04892ac04d08ee1a89324', 'project_id': '5d598737c9f04892ac04d08ee1a89324', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-00571302', 'ctest-vn-17558092'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-02-02 08:07:38,094 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c57f26e-3fb4-4ddc-9236-872f34b78a13', 'name': '', 'tenant_id': '5d598737c9f04892ac04d08ee1a89324', 'network_id': '4c2c7eb9-a065-4130-accc-59532ce8d79f', 'ip_version': 4, 'cidr': '203.149.50.64/26', 'allocation_pools': [{'start': '203.149.50.66', 'end': '203.149.50.126'}], 'gateway_ip': '203.149.50.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-02T08:07:37.974965', 'updated_at': '2026-02-02T08:07:37.974965', 'dns_server_address': '203.149.50.66', 'tags': [], 'project_id': '5d598737c9f04892ac04d08ee1a89324'}}
2026-02-02 08:07:38,167 - INFO - Created VN ctest-vn-17558092
2026-02-02 08:07:38,221 - DEBUG - VN ctest-vn-17558092 UUID is 4c2c7eb9-a065-4130-accc-59532ce8d79f
2026-02-02 08:07:38,965 - DEBUG - Response for create_network : {'network': {'id': '41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087', 'name': 'ctest-vn-86054602', 'tenant_id': '5d598737c9f04892ac04d08ee1a89324', 'project_id': '5d598737c9f04892ac04d08ee1a89324', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-00571302', 'ctest-vn-86054602'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-02-02 08:07:39,326 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7b46d45-bf77-40e4-ba29-2acd76ddeb70', 'name': '', 'tenant_id': '5d598737c9f04892ac04d08ee1a89324', 'network_id': '41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087', 'ip_version': 4, 'cidr': '157.112.157.128/26', 'allocation_pools': [{'start': '157.112.157.130', 'end': '157.112.157.190'}], 'gateway_ip': '157.112.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-02T08:07:39.144730', 'updated_at': '2026-02-02T08:07:39.144730', 'dns_server_address': '157.112.157.130', 'tags': [], 'project_id': '5d598737c9f04892ac04d08ee1a89324'}}
2026-02-02 08:07:39,391 - INFO - Created VN ctest-vn-86054602
2026-02-02 08:07:39,445 - DEBUG - VN ctest-vn-86054602 UUID is 41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087
2026-02-02 08:07:39,670 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-17558092, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-86054602, 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-02-02 08:07:40,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c2c7eb9-a065-4130-accc-59532ce8d79f', 'name': 'ctest-vn-17558092', 'tenant_id': '5d598737c9f04892ac04d08ee1a89324', 'project_id': '5d598737c9f04892ac04d08ee1a89324', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c57f26e-3fb4-4ddc-9236-872f34b78a13'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-00571302', 'ctest-vn-17558092'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-00571302', 'ctest-policy-allow-all-78597220']], 'subnet_ipam': [{'subnet_cidr': '203.149.50.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-02T08:07:37.768316', 'updated_at': '2026-02-02T08:07:37.993168'}}
2026-02-02 08:07:40,573 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087', 'name': 'ctest-vn-86054602', 'tenant_id': '5d598737c9f04892ac04d08ee1a89324', 'project_id': '5d598737c9f04892ac04d08ee1a89324', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7b46d45-bf77-40e4-ba29-2acd76ddeb70'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-00571302', 'ctest-vn-86054602'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-00571302', 'ctest-policy-allow-all-78597220']], 'subnet_ipam': [{'subnet_cidr': '157.112.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-02T08:07:38.876775', 'updated_at': '2026-02-02T08:07:39.164964'}}
2026-02-02 08:07:40,785 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2026-02-02 08:07:41,169 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2026-02-02 08:07:41,265 - DEBUG - Requesting: https://10.0.0.22:8082/domain/a2db6585-9c32-4c36-b884-93ce8d9f9858
2026-02-02 08:07:41,326 - DEBUG - Requesting: https://10.0.0.22:8082/project/5d598737-c9f0-4892-ac04-d08ee1a89324
2026-02-02 08:07:41,406 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4c2c7eb9-a065-4130-accc-59532ce8d79f
2026-02-02 08:07:41,475 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4c2c7eb9-a065-4130-accc-59532ce8d79f
2026-02-02 08:07:41,534 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/1a2530f0-693a-44f6-a2cc-8542c920a469
2026-02-02 08:07:41,590 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/1a2530f0-693a-44f6-a2cc-8542c920a469
2026-02-02 08:07:41,646 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/8065b7ae-cee1-441c-b7e9-71b519503d7b
2026-02-02 08:07:41,701 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 08:07:41,701 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4c2c7eb9-a065-4130-accc-59532ce8d79f
2026-02-02 08:07:41,762 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/1a2530f0-693a-44f6-a2cc-8542c920a469
2026-02-02 08:07:41,835 - INFO - Verified VN network id 10 for VN 4c2c7eb9-a065-4130-accc-59532ce8d79f
2026-02-02 08:07:41,835 - INFO - Verifications in API Server for VN ctest-vn-17558092 passed
2026-02-02 08:07:41,835 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4c2c7eb9-a065-4130-accc-59532ce8d79f
2026-02-02 08:07:41,892 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/1a2530f0-693a-44f6-a2cc-8542c920a469
2026-02-02 08:07:41,950 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/1a2530f0-693a-44f6-a2cc-8542c920a469
2026-02-02 08:07:42,010 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/8065b7ae-cee1-441c-b7e9-71b519503d7b
2026-02-02 08:07:42,118 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-17558092', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00571302', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5488901381582831920', 'uuid-lslong': '12451425283543193503'}, 'enable': 'true', 'created': '2026-02-02T08:07:37', 'last-modified': '2026-02-02T08:07:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.038476'}
2026-02-02 08:07:42,175 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 08:07:42,175 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17558092 passed
2026-02-02 08:07:42,175 - DEBUG - ====Verifying policy data for ctest-vn-17558092 in API_Server ======
2026-02-02 08:07:42,175 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2026-02-02 08:07:42,229 - DEBUG - Requesting: https://10.0.0.22:8082/domain/a2db6585-9c32-4c36-b884-93ce8d9f9858
2026-02-02 08:07:42,290 - DEBUG - Requesting: https://10.0.0.22:8082/project/5d598737-c9f0-4892-ac04-d08ee1a89324
2026-02-02 08:07:42,378 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4c2c7eb9-a065-4130-accc-59532ce8d79f
2026-02-02 08:07:42,435 - DEBUG - ==>Verifying data for policy with id: 01553630-5fdf-4d85-8579-ab6b655cc136, fqn: ['admin_domain', 'ctest-TestBasicPolicy-00571302', 'ctest-policy-allow-all-78597220']
2026-02-02 08:07:42,435 - INFO - VN ctest-vn-17558092 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 08:07:42,435 - DEBUG - Verifying the vn in opserver
2026-02-02 08:07:42,435 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-17558092 virtual network link through opserver 10.0.0.22
2026-02-02 08:07:42,435 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-02 08:07:42,785 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-02 08:07:42,897 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-17558092', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-17558092?flat'}
2026-02-02 08:07:42,897 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-17558092 is found in opserver
2026-02-02 08:07:42,997 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 08:07:43,049 - DEBUG - VRF ids for VN ctest-vn-17558092: {}
2026-02-02 08:07:43,049 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2026-02-02 08:07:43,105 - DEBUG - Requesting: https://10.0.0.22:8082/domain/a2db6585-9c32-4c36-b884-93ce8d9f9858
2026-02-02 08:07:43,166 - DEBUG - Requesting: https://10.0.0.22:8082/project/5d598737-c9f0-4892-ac04-d08ee1a89324
2026-02-02 08:07:43,250 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087
2026-02-02 08:07:43,312 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087
2026-02-02 08:07:43,371 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/91071be6-82c6-4042-a54f-9b89bf39bc41
2026-02-02 08:07:43,430 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/91071be6-82c6-4042-a54f-9b89bf39bc41
2026-02-02 08:07:43,486 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/1c42bf87-3fdf-46ea-a2e1-758baa4cf03c
2026-02-02 08:07:43,542 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 08:07:43,542 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087
2026-02-02 08:07:43,599 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/91071be6-82c6-4042-a54f-9b89bf39bc41
2026-02-02 08:07:43,663 - INFO - Verified VN network id 11 for VN 41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087
2026-02-02 08:07:43,664 - INFO - Verifications in API Server for VN ctest-vn-86054602 passed
2026-02-02 08:07:43,664 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087
2026-02-02 08:07:43,718 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/91071be6-82c6-4042-a54f-9b89bf39bc41
2026-02-02 08:07:43,774 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/91071be6-82c6-4042-a54f-9b89bf39bc41
2026-02-02 08:07:43,830 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/1c42bf87-3fdf-46ea-a2e1-758baa4cf03c
2026-02-02 08:07:43,942 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-86054602', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00571302', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4744805261057871540', 'uuid-lslong': '11752658864683073671'}, 'enable': 'true', 'created': '2026-02-02T08:07:38', 'last-modified': '2026-02-02T08:07:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.483464'}
2026-02-02 08:07:44,003 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 08:07:44,003 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86054602 passed
2026-02-02 08:07:44,003 - DEBUG - ====Verifying policy data for ctest-vn-86054602 in API_Server ======
2026-02-02 08:07:44,003 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2026-02-02 08:07:44,078 - DEBUG - Requesting: https://10.0.0.22:8082/domain/a2db6585-9c32-4c36-b884-93ce8d9f9858
2026-02-02 08:07:44,142 - DEBUG - Requesting: https://10.0.0.22:8082/project/5d598737-c9f0-4892-ac04-d08ee1a89324
2026-02-02 08:07:44,238 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/41d8ef3e-f1c2-4eb4-a319-d4f81bc7c087
2026-02-02 08:07:44,298 - DEBUG - ==>Verifying data for policy with id: 01553630-5fdf-4d85-8579-ab6b655cc136, fqn: ['admin_domain', 'ctest-TestBasicPolicy-00571302', 'ctest-policy-allow-all-78597220']
2026-02-02 08:07:44,298 - INFO - VN ctest-vn-86054602 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 08:07:44,298 - DEBUG - Verifying the vn in opserver
2026-02-02 08:07:44,298 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-86054602 virtual network link through opserver 10.0.0.22
2026-02-02 08:07:44,299 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-02 08:07:44,357 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-86054602', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-86054602?flat'}
2026-02-02 08:07:44,357 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-00571302:ctest-vn-86054602 is found in opserver
2026-02-02 08:07:44,469 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 08:07:44,521 - DEBUG - VRF ids for VN ctest-vn-86054602: {}
2026-02-02 08:07:44,617 - DEBUG - Services list from nova: [