2025-08-21 11:23:06,523 - INFO - Domain Default found not creating
2025-08-21 11:23:06,671 - INFO - Project ctest-TestBasicPolicy-00765803 not found, creating it
2025-08-21 11:23:07,173 - INFO - Created Project:ctest-TestBasicPolicy-00765803, ID : 13b25ca1-3c33-496a-a1a4-d8bd13d3de64
2025-08-21 11:23:08,874 - INFO - ================================================================================
2025-08-21 11:23:08,874 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-21 11:23:08,874 - 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-21 11:23:09,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-21 11:23:09,129 - INFO - Initial checks done. Running the testcase now
2025-08-21 11:23:09,129 - INFO -
2025-08-21 11:23:09,756 - DEBUG - Response for create_network : {'network': {'id': 'baa4406b-6b43-4c60-9f90-8d787691d190', 'name': 'ctest-vn-22367371', 'tenant_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'project_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00765803', 'ctest-vn-22367371'], 'port_security_enabled': True, 'description': ''}}
2025-08-21 11:23:09,958 - DEBUG - Response for create_subnet : {'subnet': {'id': '153733a5-e647-4f38-a91a-c1f2e4481799', 'name': '', 'tenant_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'network_id': 'baa4406b-6b43-4c60-9f90-8d787691d190', 'ip_version': 4, 'cidr': '24.249.181.0/26', 'allocation_pools': [{'start': '24.249.181.2', 'end': '24.249.181.62'}], 'gateway_ip': '24.249.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.249.181.2', 'tags': [], 'project_id': '13b25ca13c33496aa1a4d8bd13d3de64'}}
2025-08-21 11:23:09,978 - INFO - Created VN ctest-vn-22367371
2025-08-21 11:23:10,034 - DEBUG - VN ctest-vn-22367371 UUID is baa4406b-6b43-4c60-9f90-8d787691d190
2025-08-21 11:23:10,354 - DEBUG - Response for create_network : {'network': {'id': '9c446867-8f34-4f16-9037-ab72ab012ffd', 'name': 'ctest-vn-19345368', 'tenant_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'project_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00765803', 'ctest-vn-19345368'], 'port_security_enabled': True, 'description': ''}}
2025-08-21 11:23:10,520 - DEBUG - Response for create_subnet : {'subnet': {'id': '5158a6ff-09ae-4a70-a904-3ba38697594a', 'name': '', 'tenant_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'network_id': '9c446867-8f34-4f16-9037-ab72ab012ffd', 'ip_version': 4, 'cidr': '133.28.13.128/26', 'allocation_pools': [{'start': '133.28.13.130', 'end': '133.28.13.190'}], 'gateway_ip': '133.28.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.28.13.130', 'tags': [], 'project_id': '13b25ca13c33496aa1a4d8bd13d3de64'}}
2025-08-21 11:23:10,539 - INFO - Created VN ctest-vn-19345368
2025-08-21 11:23:10,594 - DEBUG - VN ctest-vn-19345368 UUID is 9c446867-8f34-4f16-9037-ab72ab012ffd
2025-08-21 11:23:10,716 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-22367371, 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-00765803:ctest-vn-19345368, 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-21 11:23:11,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'baa4406b-6b43-4c60-9f90-8d787691d190', 'name': 'ctest-vn-22367371', 'tenant_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'project_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['153733a5-e647-4f38-a91a-c1f2e4481799'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00765803', 'ctest-vn-22367371'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00765803', 'ctest-policy-allow-all-95562499']], 'subnet_ipam': [{'subnet_cidr': '24.249.181.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-21 11:23:11,329 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c446867-8f34-4f16-9037-ab72ab012ffd', 'name': 'ctest-vn-19345368', 'tenant_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'project_id': '13b25ca13c33496aa1a4d8bd13d3de64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5158a6ff-09ae-4a70-a904-3ba38697594a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00765803', 'ctest-vn-19345368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00765803', 'ctest-policy-allow-all-95562499']], 'subnet_ipam': [{'subnet_cidr': '133.28.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-21 11:23:11,502 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-21 11:23:11,839 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-21 11:23:11,872 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a542de93-2e07-4db5-ab77-916ef612d1b2
2025-08-21 11:23:11,888 - DEBUG - Requesting: http://10.0.0.38:8082/project/13b25ca1-3c33-496a-a1a4-d8bd13d3de64
2025-08-21 11:23:11,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa4406b-6b43-4c60-9f90-8d787691d190
2025-08-21 11:23:11,987 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa4406b-6b43-4c60-9f90-8d787691d190
2025-08-21 11:23:11,997 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1643a7d6-3a59-453c-a77f-5305b168400e
2025-08-21 11:23:12,005 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1643a7d6-3a59-453c-a77f-5305b168400e
2025-08-21 11:23:12,013 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/30ef2f76-b4a6-4f50-a79c-53a97d7b325d
2025-08-21 11:23:12,022 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-21 11:23:12,022 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa4406b-6b43-4c60-9f90-8d787691d190
2025-08-21 11:23:12,032 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1643a7d6-3a59-453c-a77f-5305b168400e
2025-08-21 11:23:12,047 - INFO - Verified VN network id 10 for VN baa4406b-6b43-4c60-9f90-8d787691d190
2025-08-21 11:23:12,047 - INFO - Verifications in API Server for VN ctest-vn-22367371 passed
2025-08-21 11:23:12,047 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa4406b-6b43-4c60-9f90-8d787691d190
2025-08-21 11:23:12,058 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1643a7d6-3a59-453c-a77f-5305b168400e
2025-08-21 11:23:12,065 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1643a7d6-3a59-453c-a77f-5305b168400e
2025-08-21 11:23:12,072 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/30ef2f76-b4a6-4f50-a79c-53a97d7b325d
2025-08-21 11:23:12,085 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-22367371', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00765803', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13448945217340394592', 'uuid-lslong': '11497845397201736080'}, 'enable': 'true', 'created': '2025-08-21T11:23:09', 'last-modified': '2025-08-21T11:23:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.079674'}
2025-08-21 11:23:12,092 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-21 11:23:12,093 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22367371 passed
2025-08-21 11:23:12,093 - DEBUG - ====Verifying policy data for ctest-vn-22367371 in API_Server ======
2025-08-21 11:23:12,093 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-21 11:23:12,101 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a542de93-2e07-4db5-ab77-916ef612d1b2
2025-08-21 11:23:12,117 - DEBUG - Requesting: http://10.0.0.38:8082/project/13b25ca1-3c33-496a-a1a4-d8bd13d3de64
2025-08-21 11:23:12,204 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa4406b-6b43-4c60-9f90-8d787691d190
2025-08-21 11:23:12,220 - DEBUG - ==>Verifying data for policy with id: 6de9a27b-b6cd-41a1-b0a3-c9c2dfc367c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-00765803', 'ctest-policy-allow-all-95562499']
2025-08-21 11:23:12,220 - INFO - VN ctest-vn-22367371 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-21 11:23:12,220 - DEBUG - Verifying the vn in opserver
2025-08-21 11:23:12,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-22367371 virtual network link through opserver 10.0.0.38
2025-08-21 11:23:12,220 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-21 11:23:12,563 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-21 11:23:12,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-22367371', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-22367371?flat'}
2025-08-21 11:23:12,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-22367371 is found in opserver
2025-08-21 11:23:12,635 - DEBUG - Do not have enough data to verify VN in agent
2025-08-21 11:23:12,641 - DEBUG - VRF ids for VN ctest-vn-22367371: {}
2025-08-21 11:23:12,641 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-21 11:23:12,648 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a542de93-2e07-4db5-ab77-916ef612d1b2
2025-08-21 11:23:12,661 - DEBUG - Requesting: http://10.0.0.38:8082/project/13b25ca1-3c33-496a-a1a4-d8bd13d3de64
2025-08-21 11:23:12,743 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9c446867-8f34-4f16-9037-ab72ab012ffd
2025-08-21 11:23:12,756 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9c446867-8f34-4f16-9037-ab72ab012ffd
2025-08-21 11:23:12,766 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7db73360-b9d7-4573-9af0-8ed27efafdd7
2025-08-21 11:23:12,774 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7db73360-b9d7-4573-9af0-8ed27efafdd7
2025-08-21 11:23:12,782 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/84507795-6c92-4ba1-8979-d6877e9694c2
2025-08-21 11:23:12,790 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-21 11:23:12,790 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9c446867-8f34-4f16-9037-ab72ab012ffd
2025-08-21 11:23:12,802 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7db73360-b9d7-4573-9af0-8ed27efafdd7
2025-08-21 11:23:12,818 - INFO - Verified VN network id 11 for VN 9c446867-8f34-4f16-9037-ab72ab012ffd
2025-08-21 11:23:12,818 - INFO - Verifications in API Server for VN ctest-vn-19345368 passed
2025-08-21 11:23:12,818 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9c446867-8f34-4f16-9037-ab72ab012ffd
2025-08-21 11:23:12,829 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7db73360-b9d7-4573-9af0-8ed27efafdd7
2025-08-21 11:23:12,837 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7db73360-b9d7-4573-9af0-8ed27efafdd7
2025-08-21 11:23:12,845 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/84507795-6c92-4ba1-8979-d6877e9694c2
2025-08-21 11:23:12,859 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-19345368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00765803', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11260239762326572822', 'uuid-lslong': '10391963174164312061'}, 'enable': 'true', 'created': '2025-08-21T11:23:10', 'last-modified': '2025-08-21T11:23:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.559479'}
2025-08-21 11:23:12,868 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-21 11:23:12,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19345368 passed
2025-08-21 11:23:12,868 - DEBUG - ====Verifying policy data for ctest-vn-19345368 in API_Server ======
2025-08-21 11:23:12,868 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-21 11:23:12,875 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a542de93-2e07-4db5-ab77-916ef612d1b2
2025-08-21 11:23:12,889 - DEBUG - Requesting: http://10.0.0.38:8082/project/13b25ca1-3c33-496a-a1a4-d8bd13d3de64
2025-08-21 11:23:12,968 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9c446867-8f34-4f16-9037-ab72ab012ffd
2025-08-21 11:23:12,980 - DEBUG - ==>Verifying data for policy with id: 6de9a27b-b6cd-41a1-b0a3-c9c2dfc367c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-00765803', 'ctest-policy-allow-all-95562499']
2025-08-21 11:23:12,980 - INFO - VN ctest-vn-19345368 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-21 11:23:12,980 - DEBUG - Verifying the vn in opserver
2025-08-21 11:23:12,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-19345368 virtual network link through opserver 10.0.0.38
2025-08-21 11:23:12,981 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-21 11:23:12,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-19345368', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-19345368?flat'}
2025-08-21 11:23:12,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00765803:ctest-vn-19345368 is found in opserver
2025-08-21 11:23:13,005 - DEBUG - Do not have enough data to verify VN in agent
2025-08-21 11:23:13,010 - DEBUG - VRF ids for VN ctest-vn-19345368: {}
2025-08-21 11:23:13,071 - DEBUG - Services list from nova: [