2025-08-20 18:34:38,547 - INFO - Domain Default found not creating
2025-08-20 18:34:38,689 - INFO - Project ctest-TestBasicPolicy-29963078 not found, creating it
2025-08-20 18:34:39,161 - INFO - Created Project:ctest-TestBasicPolicy-29963078, ID : febf1c40-706c-46f6-af32-370fe586e0dd
2025-08-20 18:34:40,605 - INFO - ================================================================================
2025-08-20 18:34:40,605 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 18:34:40,606 - 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-08-20 18:34:40,862 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-20 18:34:40,862 - INFO - Initial checks done. Running the testcase now
2025-08-20 18:34:40,862 - INFO -
2025-08-20 18:34:41,421 - DEBUG - Response for create_network : {'network': {'id': '33cf8f23-9d67-4f02-aeb1-f04ab598ee52', 'name': 'ctest-vn-02235122', 'tenant_id': 'febf1c40706c46f6af32370fe586e0dd', 'project_id': 'febf1c40706c46f6af32370fe586e0dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29963078', 'ctest-vn-02235122'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 18:34:41,606 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c708f7fc-690b-4540-85c3-9b6447c3c29d', 'name': '', 'tenant_id': 'febf1c40706c46f6af32370fe586e0dd', 'network_id': '33cf8f23-9d67-4f02-aeb1-f04ab598ee52', 'ip_version': 4, 'cidr': '134.158.158.64/26', 'allocation_pools': [{'start': '134.158.158.66', 'end': '134.158.158.126'}], 'gateway_ip': '134.158.158.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.158.158.66', 'tags': [], 'project_id': 'febf1c40706c46f6af32370fe586e0dd'}}
2025-08-20 18:34:41,628 - INFO - Created VN ctest-vn-02235122
2025-08-20 18:34:41,681 - DEBUG - VN ctest-vn-02235122 UUID is 33cf8f23-9d67-4f02-aeb1-f04ab598ee52
2025-08-20 18:34:42,041 - DEBUG - Response for create_network : {'network': {'id': '2533010d-c5e7-4d4b-a65a-1bb49fad5b59', 'name': 'ctest-vn-89472454', 'tenant_id': 'febf1c40706c46f6af32370fe586e0dd', 'project_id': 'febf1c40706c46f6af32370fe586e0dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29963078', 'ctest-vn-89472454'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 18:34:42,280 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6a9abdc-bdac-4263-8360-b5df95ed6224', 'name': '', 'tenant_id': 'febf1c40706c46f6af32370fe586e0dd', 'network_id': '2533010d-c5e7-4d4b-a65a-1bb49fad5b59', 'ip_version': 4, 'cidr': '122.232.171.64/26', 'allocation_pools': [{'start': '122.232.171.66', 'end': '122.232.171.126'}], 'gateway_ip': '122.232.171.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.232.171.66', 'tags': [], 'project_id': 'febf1c40706c46f6af32370fe586e0dd'}}
2025-08-20 18:34:42,296 - INFO - Created VN ctest-vn-89472454
2025-08-20 18:34:42,353 - DEBUG - VN ctest-vn-89472454 UUID is 2533010d-c5e7-4d4b-a65a-1bb49fad5b59
2025-08-20 18:34:42,505 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-02235122, 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-29963078:ctest-vn-89472454, 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-08-20 18:34:42,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33cf8f23-9d67-4f02-aeb1-f04ab598ee52', 'name': 'ctest-vn-02235122', 'tenant_id': 'febf1c40706c46f6af32370fe586e0dd', 'project_id': 'febf1c40706c46f6af32370fe586e0dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c708f7fc-690b-4540-85c3-9b6447c3c29d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29963078', 'ctest-vn-02235122'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29963078', 'ctest-policy-allow-all-86867712']], 'subnet_ipam': [{'subnet_cidr': '134.158.158.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 18:34:43,091 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2533010d-c5e7-4d4b-a65a-1bb49fad5b59', 'name': 'ctest-vn-89472454', 'tenant_id': 'febf1c40706c46f6af32370fe586e0dd', 'project_id': 'febf1c40706c46f6af32370fe586e0dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6a9abdc-bdac-4263-8360-b5df95ed6224'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29963078', 'ctest-vn-89472454'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29963078', 'ctest-policy-allow-all-86867712']], 'subnet_ipam': [{'subnet_cidr': '122.232.171.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 18:34:43,245 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-20 18:34:43,558 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-20 18:34:43,587 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2511146f-3451-4b71-95c0-8b8d23a21af6
2025-08-20 18:34:43,604 - DEBUG - Requesting: http://10.0.0.38:8082/project/febf1c40-706c-46f6-af32-370fe586e0dd
2025-08-20 18:34:43,681 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33cf8f23-9d67-4f02-aeb1-f04ab598ee52
2025-08-20 18:34:43,692 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33cf8f23-9d67-4f02-aeb1-f04ab598ee52
2025-08-20 18:34:43,701 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/85853f81-a1d1-4ac7-8bfa-b84224e8b655
2025-08-20 18:34:43,707 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/85853f81-a1d1-4ac7-8bfa-b84224e8b655
2025-08-20 18:34:43,714 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6b12237d-cf4c-406e-92cf-4ad29fe3ff42
2025-08-20 18:34:43,720 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 18:34:43,720 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33cf8f23-9d67-4f02-aeb1-f04ab598ee52
2025-08-20 18:34:43,730 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/85853f81-a1d1-4ac7-8bfa-b84224e8b655
2025-08-20 18:34:43,744 - INFO - Verified VN network id 12 for VN 33cf8f23-9d67-4f02-aeb1-f04ab598ee52
2025-08-20 18:34:43,744 - INFO - Verifications in API Server for VN ctest-vn-02235122 passed
2025-08-20 18:34:43,744 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33cf8f23-9d67-4f02-aeb1-f04ab598ee52
2025-08-20 18:34:43,755 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/85853f81-a1d1-4ac7-8bfa-b84224e8b655
2025-08-20 18:34:43,762 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/85853f81-a1d1-4ac7-8bfa-b84224e8b655
2025-08-20 18:34:43,768 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6b12237d-cf4c-406e-92cf-4ad29fe3ff42
2025-08-20 18:34:43,780 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-02235122', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29963078', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3733359999240851202', 'uuid-lslong': '12588106637142191698'}, 'enable': 'true', 'created': '2025-08-20T18:34:41', 'last-modified': '2025-08-20T18:34:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009865'}
2025-08-20 18:34:43,787 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 18:34:43,787 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02235122 passed
2025-08-20 18:34:43,788 - DEBUG - ====Verifying policy data for ctest-vn-02235122 in API_Server ======
2025-08-20 18:34:43,788 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-20 18:34:43,794 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2511146f-3451-4b71-95c0-8b8d23a21af6
2025-08-20 18:34:43,806 - DEBUG - Requesting: http://10.0.0.38:8082/project/febf1c40-706c-46f6-af32-370fe586e0dd
2025-08-20 18:34:43,883 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33cf8f23-9d67-4f02-aeb1-f04ab598ee52
2025-08-20 18:34:43,893 - DEBUG - ==>Verifying data for policy with id: 16a73e1b-37cd-465c-b8f7-08ef65645cdf, fqn: ['default-domain', 'ctest-TestBasicPolicy-29963078', 'ctest-policy-allow-all-86867712']
2025-08-20 18:34:43,893 - INFO - VN ctest-vn-02235122 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 18:34:43,894 - DEBUG - Verifying the vn in opserver
2025-08-20 18:34:43,894 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-02235122 virtual network link through opserver 10.0.0.38
2025-08-20 18:34:43,894 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-20 18:34:44,181 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-20 18:34:44,234 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-02235122', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-02235122?flat'}
2025-08-20 18:34:44,234 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-02235122 is found in opserver
2025-08-20 18:34:44,246 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 18:34:44,252 - DEBUG - VRF ids for VN ctest-vn-02235122: {}
2025-08-20 18:34:44,252 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-20 18:34:44,257 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2511146f-3451-4b71-95c0-8b8d23a21af6
2025-08-20 18:34:44,270 - DEBUG - Requesting: http://10.0.0.38:8082/project/febf1c40-706c-46f6-af32-370fe586e0dd
2025-08-20 18:34:44,349 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2533010d-c5e7-4d4b-a65a-1bb49fad5b59
2025-08-20 18:34:44,363 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2533010d-c5e7-4d4b-a65a-1bb49fad5b59
2025-08-20 18:34:44,372 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf932aff-b243-42f9-9a56-13d5be47ad8d
2025-08-20 18:34:44,379 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf932aff-b243-42f9-9a56-13d5be47ad8d
2025-08-20 18:34:44,385 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a6edfaea-e2c0-4ecc-8f4c-564f87764bb0
2025-08-20 18:34:44,391 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 18:34:44,391 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2533010d-c5e7-4d4b-a65a-1bb49fad5b59
2025-08-20 18:34:44,402 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf932aff-b243-42f9-9a56-13d5be47ad8d
2025-08-20 18:34:44,415 - INFO - Verified VN network id 13 for VN 2533010d-c5e7-4d4b-a65a-1bb49fad5b59
2025-08-20 18:34:44,415 - INFO - Verifications in API Server for VN ctest-vn-89472454 passed
2025-08-20 18:34:44,416 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2533010d-c5e7-4d4b-a65a-1bb49fad5b59
2025-08-20 18:34:44,426 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf932aff-b243-42f9-9a56-13d5be47ad8d
2025-08-20 18:34:44,432 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf932aff-b243-42f9-9a56-13d5be47ad8d
2025-08-20 18:34:44,441 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a6edfaea-e2c0-4ecc-8f4c-564f87764bb0
2025-08-20 18:34:44,453 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-89472454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29963078', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2680487361882049867', 'uuid-lslong': '11986923820786998105'}, 'enable': 'true', 'created': '2025-08-20T18:34:41', 'last-modified': '2025-08-20T18:34:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.434758'}
2025-08-20 18:34:44,460 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 18:34:44,460 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89472454 passed
2025-08-20 18:34:44,460 - DEBUG - ====Verifying policy data for ctest-vn-89472454 in API_Server ======
2025-08-20 18:34:44,460 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-20 18:34:44,465 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2511146f-3451-4b71-95c0-8b8d23a21af6
2025-08-20 18:34:44,476 - DEBUG - Requesting: http://10.0.0.38:8082/project/febf1c40-706c-46f6-af32-370fe586e0dd
2025-08-20 18:34:44,549 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2533010d-c5e7-4d4b-a65a-1bb49fad5b59
2025-08-20 18:34:44,560 - DEBUG - ==>Verifying data for policy with id: 16a73e1b-37cd-465c-b8f7-08ef65645cdf, fqn: ['default-domain', 'ctest-TestBasicPolicy-29963078', 'ctest-policy-allow-all-86867712']
2025-08-20 18:34:44,560 - INFO - VN ctest-vn-89472454 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 18:34:44,560 - DEBUG - Verifying the vn in opserver
2025-08-20 18:34:44,560 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-89472454 virtual network link through opserver 10.0.0.38
2025-08-20 18:34:44,560 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-20 18:34:44,572 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-89472454', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-89472454?flat'}
2025-08-20 18:34:44,572 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29963078:ctest-vn-89472454 is found in opserver
2025-08-20 18:34:44,583 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 18:34:44,588 - DEBUG - VRF ids for VN ctest-vn-89472454: {}
2025-08-20 18:34:44,638 - DEBUG - Services list from nova: [