2025-09-04 20:26:01,322 - INFO - Domain Default found not creating
2025-09-04 20:26:01,477 - INFO - Project ctest-TestBasicPolicy-76630840 not found, creating it
2025-09-04 20:26:01,936 - INFO - Created Project:ctest-TestBasicPolicy-76630840, ID : 35c1e991-b92a-4ec1-bf20-3196aa32a15f
2025-09-04 20:26:03,445 - INFO - ================================================================================
2025-09-04 20:26:03,445 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-04 20:26:03,446 - 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-09-04 20:26:03,703 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-09-04 20:26:03,703 - INFO - Initial checks done. Running the testcase now
2025-09-04 20:26:03,703 - INFO -
2025-09-04 20:26:04,292 - DEBUG - Response for create_network : {'network': {'id': 'a0544e25-63ff-42a6-ace7-4e95166cd90d', 'name': 'ctest-vn-61147042', 'tenant_id': '35c1e991b92a4ec1bf203196aa32a15f', 'project_id': '35c1e991b92a4ec1bf203196aa32a15f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76630840', 'ctest-vn-61147042'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 20:26:04,517 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d3779ee-6724-4852-a5f5-b55715d9b354', 'name': '', 'tenant_id': '35c1e991b92a4ec1bf203196aa32a15f', 'network_id': 'a0544e25-63ff-42a6-ace7-4e95166cd90d', 'ip_version': 4, 'cidr': '136.167.183.64/26', 'allocation_pools': [{'start': '136.167.183.66', 'end': '136.167.183.126'}], 'gateway_ip': '136.167.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.167.183.66', 'tags': [], 'project_id': '35c1e991b92a4ec1bf203196aa32a15f'}}
2025-09-04 20:26:04,534 - INFO - Created VN ctest-vn-61147042
2025-09-04 20:26:04,586 - DEBUG - VN ctest-vn-61147042 UUID is a0544e25-63ff-42a6-ace7-4e95166cd90d
2025-09-04 20:26:04,861 - DEBUG - Response for create_network : {'network': {'id': 'be176ea4-c8e1-4b12-8ccd-90b58031326d', 'name': 'ctest-vn-89918947', 'tenant_id': '35c1e991b92a4ec1bf203196aa32a15f', 'project_id': '35c1e991b92a4ec1bf203196aa32a15f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76630840', 'ctest-vn-89918947'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 20:26:05,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '2adcacfc-84d8-4414-8593-af291c25cd03', 'name': '', 'tenant_id': '35c1e991b92a4ec1bf203196aa32a15f', 'network_id': 'be176ea4-c8e1-4b12-8ccd-90b58031326d', 'ip_version': 4, 'cidr': '18.221.140.128/26', 'allocation_pools': [{'start': '18.221.140.130', 'end': '18.221.140.190'}], 'gateway_ip': '18.221.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.221.140.130', 'tags': [], 'project_id': '35c1e991b92a4ec1bf203196aa32a15f'}}
2025-09-04 20:26:05,060 - INFO - Created VN ctest-vn-89918947
2025-09-04 20:26:05,110 - DEBUG - VN ctest-vn-89918947 UUID is be176ea4-c8e1-4b12-8ccd-90b58031326d
2025-09-04 20:26:05,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-61147042, 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-76630840:ctest-vn-89918947, 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-09-04 20:26:05,532 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0544e25-63ff-42a6-ace7-4e95166cd90d', 'name': 'ctest-vn-61147042', 'tenant_id': '35c1e991b92a4ec1bf203196aa32a15f', 'project_id': '35c1e991b92a4ec1bf203196aa32a15f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d3779ee-6724-4852-a5f5-b55715d9b354'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76630840', 'ctest-vn-61147042'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76630840', 'ctest-policy-allow-all-85063608']], 'subnet_ipam': [{'subnet_cidr': '136.167.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 20:26:05,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be176ea4-c8e1-4b12-8ccd-90b58031326d', 'name': 'ctest-vn-89918947', 'tenant_id': '35c1e991b92a4ec1bf203196aa32a15f', 'project_id': '35c1e991b92a4ec1bf203196aa32a15f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2adcacfc-84d8-4414-8593-af291c25cd03'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76630840', 'ctest-vn-89918947'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76630840', 'ctest-policy-allow-all-85063608']], 'subnet_ipam': [{'subnet_cidr': '18.221.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 20:26:05,922 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 20:26:06,258 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 20:26:06,286 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e67aab7d-26af-4c3f-b4eb-c6f56f4c36d8
2025-09-04 20:26:06,298 - DEBUG - Requesting: http://10.0.0.33:8082/project/35c1e991-b92a-4ec1-bf20-3196aa32a15f
2025-09-04 20:26:06,376 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a0544e25-63ff-42a6-ace7-4e95166cd90d
2025-09-04 20:26:06,386 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a0544e25-63ff-42a6-ace7-4e95166cd90d
2025-09-04 20:26:06,396 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/76dd2e53-b208-4e22-b8e6-d59b34d839b5
2025-09-04 20:26:06,405 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/76dd2e53-b208-4e22-b8e6-d59b34d839b5
2025-09-04 20:26:06,413 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5ea99f0b-4490-4c71-99b3-daaad9bfa68d
2025-09-04 20:26:06,421 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 20:26:06,421 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a0544e25-63ff-42a6-ace7-4e95166cd90d
2025-09-04 20:26:06,430 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/76dd2e53-b208-4e22-b8e6-d59b34d839b5
2025-09-04 20:26:06,443 - INFO - Verified VN network id 11 for VN a0544e25-63ff-42a6-ace7-4e95166cd90d
2025-09-04 20:26:06,444 - INFO - Verifications in API Server for VN ctest-vn-61147042 passed
2025-09-04 20:26:06,444 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a0544e25-63ff-42a6-ace7-4e95166cd90d
2025-09-04 20:26:06,453 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/76dd2e53-b208-4e22-b8e6-d59b34d839b5
2025-09-04 20:26:06,459 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/76dd2e53-b208-4e22-b8e6-d59b34d839b5
2025-09-04 20:26:06,466 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5ea99f0b-4490-4c71-99b3-daaad9bfa68d
2025-09-04 20:26:06,479 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-61147042', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76630840', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11552944866610594470', 'uuid-lslong': '12459013296377092365'}, 'enable': 'true', 'created': '2025-09-04T20:26:04', 'last-modified': '2025-09-04T20:26:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987452'}
2025-09-04 20:26:06,485 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 20:26:06,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61147042 passed
2025-09-04 20:26:06,485 - DEBUG - ====Verifying policy data for ctest-vn-61147042 in API_Server ======
2025-09-04 20:26:06,485 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 20:26:06,490 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e67aab7d-26af-4c3f-b4eb-c6f56f4c36d8
2025-09-04 20:26:06,501 - DEBUG - Requesting: http://10.0.0.33:8082/project/35c1e991-b92a-4ec1-bf20-3196aa32a15f
2025-09-04 20:26:06,578 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a0544e25-63ff-42a6-ace7-4e95166cd90d
2025-09-04 20:26:06,601 - DEBUG - ==>Verifying data for policy with id: 6db31e65-0783-4883-a567-714d0e76b5e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-76630840', 'ctest-policy-allow-all-85063608']
2025-09-04 20:26:06,601 - INFO - VN ctest-vn-61147042 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 20:26:06,601 - DEBUG - Verifying the vn in opserver
2025-09-04 20:26:06,601 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-61147042 virtual network link through opserver 10.0.0.33
2025-09-04 20:26:06,601 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-04 20:26:06,941 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-04 20:26:06,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-61147042', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-61147042?flat'}
2025-09-04 20:26:06,995 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-61147042 is found in opserver
2025-09-04 20:26:07,005 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 20:26:07,010 - DEBUG - VRF ids for VN ctest-vn-61147042: {}
2025-09-04 20:26:07,010 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 20:26:07,015 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e67aab7d-26af-4c3f-b4eb-c6f56f4c36d8
2025-09-04 20:26:07,026 - DEBUG - Requesting: http://10.0.0.33:8082/project/35c1e991-b92a-4ec1-bf20-3196aa32a15f
2025-09-04 20:26:07,099 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be176ea4-c8e1-4b12-8ccd-90b58031326d
2025-09-04 20:26:07,111 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be176ea4-c8e1-4b12-8ccd-90b58031326d
2025-09-04 20:26:07,120 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e6ec4dd-c750-41f7-8b04-35b7c65f1367
2025-09-04 20:26:07,128 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e6ec4dd-c750-41f7-8b04-35b7c65f1367
2025-09-04 20:26:07,135 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/35f52b1b-5f13-458d-9d4a-abf136c14ffc
2025-09-04 20:26:07,141 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 20:26:07,141 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be176ea4-c8e1-4b12-8ccd-90b58031326d
2025-09-04 20:26:07,149 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e6ec4dd-c750-41f7-8b04-35b7c65f1367
2025-09-04 20:26:07,162 - INFO - Verified VN network id 12 for VN be176ea4-c8e1-4b12-8ccd-90b58031326d
2025-09-04 20:26:07,162 - INFO - Verifications in API Server for VN ctest-vn-89918947 passed
2025-09-04 20:26:07,162 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be176ea4-c8e1-4b12-8ccd-90b58031326d
2025-09-04 20:26:07,170 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e6ec4dd-c750-41f7-8b04-35b7c65f1367
2025-09-04 20:26:07,177 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e6ec4dd-c750-41f7-8b04-35b7c65f1367
2025-09-04 20:26:07,183 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/35f52b1b-5f13-458d-9d4a-abf136c14ffc
2025-09-04 20:26:07,196 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-89918947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76630840', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13697538445694552850', 'uuid-lslong': '10145924644749783661'}, 'enable': 'true', 'created': '2025-09-04T20:26:04', 'last-modified': '2025-09-04T20:26:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464116'}
2025-09-04 20:26:07,201 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 20:26:07,201 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89918947 passed
2025-09-04 20:26:07,201 - DEBUG - ====Verifying policy data for ctest-vn-89918947 in API_Server ======
2025-09-04 20:26:07,201 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-04 20:26:07,206 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e67aab7d-26af-4c3f-b4eb-c6f56f4c36d8
2025-09-04 20:26:07,217 - DEBUG - Requesting: http://10.0.0.33:8082/project/35c1e991-b92a-4ec1-bf20-3196aa32a15f
2025-09-04 20:26:07,295 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be176ea4-c8e1-4b12-8ccd-90b58031326d
2025-09-04 20:26:07,309 - DEBUG - ==>Verifying data for policy with id: 6db31e65-0783-4883-a567-714d0e76b5e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-76630840', 'ctest-policy-allow-all-85063608']
2025-09-04 20:26:07,310 - INFO - VN ctest-vn-89918947 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 20:26:07,310 - DEBUG - Verifying the vn in opserver
2025-09-04 20:26:07,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-89918947 virtual network link through opserver 10.0.0.33
2025-09-04 20:26:07,310 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-04 20:26:07,321 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-89918947', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-89918947?flat'}
2025-09-04 20:26:07,321 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76630840:ctest-vn-89918947 is found in opserver
2025-09-04 20:26:07,331 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 20:26:07,335 - DEBUG - VRF ids for VN ctest-vn-89918947: {}
2025-09-04 20:26:07,391 - DEBUG - Services list from nova: [