2025-08-28 14:19:54,636 - INFO - Domain Default found not creating
2025-08-28 14:19:54,772 - INFO - Project ctest-TestBasicPolicy-27503609 not found, creating it
2025-08-28 14:19:55,202 - INFO - Created Project:ctest-TestBasicPolicy-27503609, ID : e91e5af7-1767-4efb-b4e1-b53f147c35d2
2025-08-28 14:19:56,715 - INFO - ================================================================================
2025-08-28 14:19:56,715 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-28 14:19:56,715 - 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-28 14:19:56,973 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-08-28 14:19:56,973 - INFO - Initial checks done. Running the testcase now
2025-08-28 14:19:56,973 - INFO -
2025-08-28 14:19:57,554 - DEBUG - Response for create_network : {'network': {'id': '73df7ccd-78d6-4006-991e-5e24008f8711', 'name': 'ctest-vn-43329916', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'project_id': 'e91e5af717674efbb4e1b53f147c35d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-vn-43329916'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 14:19:57,751 - DEBUG - Response for create_subnet : {'subnet': {'id': '9dc22080-e90d-46e2-bb98-237cb6375a1b', 'name': '', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'network_id': '73df7ccd-78d6-4006-991e-5e24008f8711', 'ip_version': 4, 'cidr': '122.1.99.0/26', 'allocation_pools': [{'start': '122.1.99.2', 'end': '122.1.99.62'}], 'gateway_ip': '122.1.99.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.1.99.2', 'tags': [], 'project_id': 'e91e5af717674efbb4e1b53f147c35d2'}}
2025-08-28 14:19:57,768 - INFO - Created VN ctest-vn-43329916
2025-08-28 14:19:57,820 - DEBUG - VN ctest-vn-43329916 UUID is 73df7ccd-78d6-4006-991e-5e24008f8711
2025-08-28 14:19:58,126 - DEBUG - Response for create_network : {'network': {'id': '1f2bff95-a0fb-49a3-bf67-5237d7264d84', 'name': 'ctest-vn-40826949', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'project_id': 'e91e5af717674efbb4e1b53f147c35d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-vn-40826949'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 14:19:58,342 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b5c52a0-0fc7-4122-8a15-6ef1d0bb9abf', 'name': '', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'network_id': '1f2bff95-a0fb-49a3-bf67-5237d7264d84', 'ip_version': 4, 'cidr': '86.235.120.0/26', 'allocation_pools': [{'start': '86.235.120.2', 'end': '86.235.120.62'}], 'gateway_ip': '86.235.120.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.235.120.2', 'tags': [], 'project_id': 'e91e5af717674efbb4e1b53f147c35d2'}}
2025-08-28 14:19:58,358 - INFO - Created VN ctest-vn-40826949
2025-08-28 14:19:58,408 - DEBUG - VN ctest-vn-40826949 UUID is 1f2bff95-a0fb-49a3-bf67-5237d7264d84
2025-08-28 14:19:58,551 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916, 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-27503609:ctest-vn-40826949, 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-28 14:19:58,841 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73df7ccd-78d6-4006-991e-5e24008f8711', 'name': 'ctest-vn-43329916', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'project_id': 'e91e5af717674efbb4e1b53f147c35d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9dc22080-e90d-46e2-bb98-237cb6375a1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-vn-43329916'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-policy-allow-all-26870509']], 'subnet_ipam': [{'subnet_cidr': '122.1.99.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 14:19:59,125 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1f2bff95-a0fb-49a3-bf67-5237d7264d84', 'name': 'ctest-vn-40826949', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'project_id': 'e91e5af717674efbb4e1b53f147c35d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b5c52a0-0fc7-4122-8a15-6ef1d0bb9abf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-vn-40826949'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-policy-allow-all-26870509']], 'subnet_ipam': [{'subnet_cidr': '86.235.120.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 14:19:59,268 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 14:19:59,607 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 14:19:59,633 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381
2025-08-28 14:19:59,643 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2
2025-08-28 14:19:59,715 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711
2025-08-28 14:19:59,724 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711
2025-08-28 14:19:59,733 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5
2025-08-28 14:19:59,739 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5
2025-08-28 14:19:59,744 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c9cdc5b7-78de-45cc-8e45-d413742022b7
2025-08-28 14:19:59,749 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 14:19:59,749 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711
2025-08-28 14:19:59,757 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5
2025-08-28 14:19:59,769 - INFO - Verified VN network id 11 for VN 73df7ccd-78d6-4006-991e-5e24008f8711
2025-08-28 14:19:59,769 - INFO - Verifications in API Server for VN ctest-vn-43329916 passed
2025-08-28 14:19:59,769 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711
2025-08-28 14:19:59,777 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5
2025-08-28 14:19:59,782 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5
2025-08-28 14:19:59,787 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c9cdc5b7-78de-45cc-8e45-d413742022b7
2025-08-28 14:19:59,797 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27503609', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8349529456105635846', 'uuid-lslong': '11033359645825533713'}, 'enable': 'true', 'created': '2025-08-28T14:19:57', 'last-modified': '2025-08-28T14:19:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979503'}
2025-08-28 14:19:59,803 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 14:19:59,803 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43329916 passed
2025-08-28 14:19:59,803 - DEBUG - ====Verifying policy data for ctest-vn-43329916 in API_Server ======
2025-08-28 14:19:59,803 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 14:19:59,807 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381
2025-08-28 14:19:59,816 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2
2025-08-28 14:19:59,887 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711
2025-08-28 14:19:59,897 - DEBUG - ==>Verifying data for policy with id: 7471bb67-112a-484b-909f-4dd3fd9d0c4b, fqn: ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-policy-allow-all-26870509']
2025-08-28 14:19:59,897 - INFO - VN ctest-vn-43329916 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 14:19:59,897 - DEBUG - Verifying the vn in opserver
2025-08-28 14:19:59,897 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916 virtual network link through opserver 10.0.0.249
2025-08-28 14:19:59,897 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-28 14:20:00,227 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-28 14:20:00,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916?flat'}
2025-08-28 14:20:00,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916 is found in opserver
2025-08-28 14:20:00,289 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 14:20:00,293 - DEBUG - VRF ids for VN ctest-vn-43329916: {}
2025-08-28 14:20:00,293 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 14:20:00,298 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381
2025-08-28 14:20:00,308 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2
2025-08-28 14:20:00,377 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84
2025-08-28 14:20:00,388 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84
2025-08-28 14:20:00,396 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd
2025-08-28 14:20:00,403 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd
2025-08-28 14:20:00,409 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f9cd318e-49d7-4853-97ad-7f946a76423e
2025-08-28 14:20:00,414 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 14:20:00,414 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84
2025-08-28 14:20:00,424 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd
2025-08-28 14:20:00,437 - INFO - Verified VN network id 12 for VN 1f2bff95-a0fb-49a3-bf67-5237d7264d84
2025-08-28 14:20:00,437 - INFO - Verifications in API Server for VN ctest-vn-40826949 passed
2025-08-28 14:20:00,437 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84
2025-08-28 14:20:00,446 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd
2025-08-28 14:20:00,452 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd
2025-08-28 14:20:00,458 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f9cd318e-49d7-4853-97ad-7f946a76423e
2025-08-28 14:20:00,468 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27503609', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2246169857290357155', 'uuid-lslong': '13792082783631723908'}, 'enable': 'true', 'created': '2025-08-28T14:19:58', 'last-modified': '2025-08-28T14:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411746'}
2025-08-28 14:20:00,474 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 14:20:00,474 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40826949 passed
2025-08-28 14:20:00,474 - DEBUG - ====Verifying policy data for ctest-vn-40826949 in API_Server ======
2025-08-28 14:20:00,474 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 14:20:00,478 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381
2025-08-28 14:20:00,489 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2
2025-08-28 14:20:00,567 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84
2025-08-28 14:20:00,576 - DEBUG - ==>Verifying data for policy with id: 7471bb67-112a-484b-909f-4dd3fd9d0c4b, fqn: ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-policy-allow-all-26870509']
2025-08-28 14:20:00,576 - INFO - VN ctest-vn-40826949 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 14:20:00,576 - DEBUG - Verifying the vn in opserver
2025-08-28 14:20:00,576 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949 virtual network link through opserver 10.0.0.249
2025-08-28 14:20:00,576 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-28 14:20:00,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949?flat'}
2025-08-28 14:20:00,587 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949 is found in opserver
2025-08-28 14:20:00,596 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 14:20:00,601 - DEBUG - VRF ids for VN ctest-vn-40826949: {}
2025-08-28 14:20:00,658 - DEBUG - Services list from nova: [