2025-06-10 12:23:47,627 - INFO - Domain Default found not creating
2025-06-10 12:23:47,760 - INFO - Project ctest-TestBasicPolicy-38448476 not found, creating it
2025-06-10 12:23:48,218 - INFO - Created Project:ctest-TestBasicPolicy-38448476, ID : 32e26d37-d9d7-470f-9a34-ac89a7360bb8
2025-06-10 12:23:49,754 - INFO - ================================================================================
2025-06-10 12:23:49,754 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 12:23:49,754 - 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-06-10 12:23:50,015 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with
2025-06-10 12:23:50,015 - INFO - Initial checks done. Running the testcase now
2025-06-10 12:23:50,015 - INFO -
2025-06-10 12:23:50,612 - DEBUG - Response for create_network : {'network': {'id': '355fe023-9099-4510-8fb6-b1141ca76dc6', 'name': 'ctest-vn-11298337', 'tenant_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'project_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38448476', 'ctest-vn-11298337'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 12:23:50,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '177fe60b-e8c8-41a2-ad72-a8fb5d6b2eab', 'name': '', 'tenant_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'network_id': '355fe023-9099-4510-8fb6-b1141ca76dc6', 'ip_version': 4, 'cidr': '184.237.211.192/26', 'allocation_pools': [{'start': '184.237.211.194', 'end': '184.237.211.254'}], 'gateway_ip': '184.237.211.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.237.211.194', 'tags': [], 'project_id': '32e26d37d9d7470f9a34ac89a7360bb8'}}
2025-06-10 12:23:50,817 - INFO - Created VN ctest-vn-11298337
2025-06-10 12:23:50,869 - DEBUG - VN ctest-vn-11298337 UUID is 355fe023-9099-4510-8fb6-b1141ca76dc6
2025-06-10 12:23:51,191 - DEBUG - Response for create_network : {'network': {'id': '7f634be3-efaa-4e1d-9c84-9dfae9d254e0', 'name': 'ctest-vn-12086760', 'tenant_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'project_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38448476', 'ctest-vn-12086760'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 12:23:51,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '40a80e3c-8592-4f40-96c6-79e60cecae41', 'name': '', 'tenant_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'network_id': '7f634be3-efaa-4e1d-9c84-9dfae9d254e0', 'ip_version': 4, 'cidr': '7.156.204.128/26', 'allocation_pools': [{'start': '7.156.204.130', 'end': '7.156.204.190'}], 'gateway_ip': '7.156.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.156.204.130', 'tags': [], 'project_id': '32e26d37d9d7470f9a34ac89a7360bb8'}}
2025-06-10 12:23:51,401 - INFO - Created VN ctest-vn-12086760
2025-06-10 12:23:51,453 - DEBUG - VN ctest-vn-12086760 UUID is 7f634be3-efaa-4e1d-9c84-9dfae9d254e0
2025-06-10 12:23:51,575 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-11298337, 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-38448476:ctest-vn-12086760, 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-06-10 12:23:51,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '355fe023-9099-4510-8fb6-b1141ca76dc6', 'name': 'ctest-vn-11298337', 'tenant_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'project_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['177fe60b-e8c8-41a2-ad72-a8fb5d6b2eab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38448476', 'ctest-vn-11298337'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38448476', 'ctest-policy-allow-all-75674076']], 'subnet_ipam': [{'subnet_cidr': '184.237.211.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 12:23:52,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f634be3-efaa-4e1d-9c84-9dfae9d254e0', 'name': 'ctest-vn-12086760', 'tenant_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'project_id': '32e26d37d9d7470f9a34ac89a7360bb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40a80e3c-8592-4f40-96c6-79e60cecae41'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38448476', 'ctest-vn-12086760'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38448476', 'ctest-policy-allow-all-75674076']], 'subnet_ipam': [{'subnet_cidr': '7.156.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 12:23:52,325 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 12:23:52,667 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 12:23:52,696 - DEBUG - Requesting: http://10.0.0.65:8082/domain/f45aa77e-8e1d-4d51-a938-80933d3ea3d3
2025-06-10 12:23:52,710 - DEBUG - Requesting: http://10.0.0.65:8082/project/32e26d37-d9d7-470f-9a34-ac89a7360bb8
2025-06-10 12:23:52,785 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/355fe023-9099-4510-8fb6-b1141ca76dc6
2025-06-10 12:23:52,798 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/355fe023-9099-4510-8fb6-b1141ca76dc6
2025-06-10 12:23:52,809 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/00c7f070-c212-4f2e-ae82-d0bf7d46ccc6
2025-06-10 12:23:52,817 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/00c7f070-c212-4f2e-ae82-d0bf7d46ccc6
2025-06-10 12:23:52,824 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/38b0b711-b12b-427e-aec0-12c549887ad7
2025-06-10 12:23:52,830 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 12:23:52,830 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/355fe023-9099-4510-8fb6-b1141ca76dc6
2025-06-10 12:23:52,840 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/00c7f070-c212-4f2e-ae82-d0bf7d46ccc6
2025-06-10 12:23:52,854 - INFO - Verified VN network id 8 for VN 355fe023-9099-4510-8fb6-b1141ca76dc6
2025-06-10 12:23:52,854 - INFO - Verifications in API Server for VN ctest-vn-11298337 passed
2025-06-10 12:23:52,854 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/355fe023-9099-4510-8fb6-b1141ca76dc6
2025-06-10 12:23:52,864 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/00c7f070-c212-4f2e-ae82-d0bf7d46ccc6
2025-06-10 12:23:52,871 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/00c7f070-c212-4f2e-ae82-d0bf7d46ccc6
2025-06-10 12:23:52,878 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/38b0b711-b12b-427e-aec0-12c549887ad7
2025-06-10 12:23:52,890 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-11298337', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38448476', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3846039050152133904', 'uuid-lslong': '10355659093123231174'}, 'enable': 'true', 'created': '2025-06-10T12:23:50', 'last-modified': '2025-06-10T12:23:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030959'}
2025-06-10 12:23:52,898 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 12:23:52,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11298337 passed
2025-06-10 12:23:52,898 - DEBUG - ====Verifying policy data for ctest-vn-11298337 in API_Server ======
2025-06-10 12:23:52,898 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 12:23:52,904 - DEBUG - Requesting: http://10.0.0.65:8082/domain/f45aa77e-8e1d-4d51-a938-80933d3ea3d3
2025-06-10 12:23:52,916 - DEBUG - Requesting: http://10.0.0.65:8082/project/32e26d37-d9d7-470f-9a34-ac89a7360bb8
2025-06-10 12:23:52,988 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/355fe023-9099-4510-8fb6-b1141ca76dc6
2025-06-10 12:23:52,998 - DEBUG - ==>Verifying data for policy with id: 1a7e10ce-0411-454b-8c3e-d1d0111d8910, fqn: ['default-domain', 'ctest-TestBasicPolicy-38448476', 'ctest-policy-allow-all-75674076']
2025-06-10 12:23:52,999 - INFO - VN ctest-vn-11298337 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 12:23:52,999 - DEBUG - Verifying the vn in opserver
2025-06-10 12:23:52,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-11298337 virtual network link through opserver 10.0.0.65
2025-06-10 12:23:52,999 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-10 12:23:53,331 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-10 12:23:53,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-11298337', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-11298337?flat'}
2025-06-10 12:23:53,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-11298337 is found in opserver
2025-06-10 12:23:53,400 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 12:23:53,405 - DEBUG - VRF ids for VN ctest-vn-11298337: {}
2025-06-10 12:23:53,405 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 12:23:53,411 - DEBUG - Requesting: http://10.0.0.65:8082/domain/f45aa77e-8e1d-4d51-a938-80933d3ea3d3
2025-06-10 12:23:53,425 - DEBUG - Requesting: http://10.0.0.65:8082/project/32e26d37-d9d7-470f-9a34-ac89a7360bb8
2025-06-10 12:23:53,499 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/7f634be3-efaa-4e1d-9c84-9dfae9d254e0
2025-06-10 12:23:53,512 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/7f634be3-efaa-4e1d-9c84-9dfae9d254e0
2025-06-10 12:23:53,521 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/eb557673-3787-4fa2-a9c5-ba12d26b2694
2025-06-10 12:23:53,529 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/eb557673-3787-4fa2-a9c5-ba12d26b2694
2025-06-10 12:23:53,535 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d289ed72-268a-429d-941d-d5c25b21f52a
2025-06-10 12:23:53,541 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 12:23:53,541 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/7f634be3-efaa-4e1d-9c84-9dfae9d254e0
2025-06-10 12:23:53,551 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/eb557673-3787-4fa2-a9c5-ba12d26b2694
2025-06-10 12:23:53,564 - INFO - Verified VN network id 9 for VN 7f634be3-efaa-4e1d-9c84-9dfae9d254e0
2025-06-10 12:23:53,564 - INFO - Verifications in API Server for VN ctest-vn-12086760 passed
2025-06-10 12:23:53,564 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/7f634be3-efaa-4e1d-9c84-9dfae9d254e0
2025-06-10 12:23:53,574 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/eb557673-3787-4fa2-a9c5-ba12d26b2694
2025-06-10 12:23:53,580 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/eb557673-3787-4fa2-a9c5-ba12d26b2694
2025-06-10 12:23:53,587 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d289ed72-268a-429d-941d-d5c25b21f52a
2025-06-10 12:23:53,598 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-12086760', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38448476', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9179263907861777949', 'uuid-lslong': '11278313067832825056'}, 'enable': 'true', 'created': '2025-06-10T12:23:51', 'last-modified': '2025-06-10T12:23:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.492379'}
2025-06-10 12:23:53,605 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 12:23:53,605 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12086760 passed
2025-06-10 12:23:53,605 - DEBUG - ====Verifying policy data for ctest-vn-12086760 in API_Server ======
2025-06-10 12:23:53,605 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 12:23:53,611 - DEBUG - Requesting: http://10.0.0.65:8082/domain/f45aa77e-8e1d-4d51-a938-80933d3ea3d3
2025-06-10 12:23:53,622 - DEBUG - Requesting: http://10.0.0.65:8082/project/32e26d37-d9d7-470f-9a34-ac89a7360bb8
2025-06-10 12:23:53,691 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/7f634be3-efaa-4e1d-9c84-9dfae9d254e0
2025-06-10 12:23:53,701 - DEBUG - ==>Verifying data for policy with id: 1a7e10ce-0411-454b-8c3e-d1d0111d8910, fqn: ['default-domain', 'ctest-TestBasicPolicy-38448476', 'ctest-policy-allow-all-75674076']
2025-06-10 12:23:53,702 - INFO - VN ctest-vn-12086760 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 12:23:53,702 - DEBUG - Verifying the vn in opserver
2025-06-10 12:23:53,702 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-12086760 virtual network link through opserver 10.0.0.65
2025-06-10 12:23:53,702 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-10 12:23:53,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-12086760', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-12086760?flat'}
2025-06-10 12:23:53,712 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38448476:ctest-vn-12086760 is found in opserver
2025-06-10 12:23:53,724 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 12:23:53,735 - DEBUG - VRF ids for VN ctest-vn-12086760: {}
2025-06-10 12:23:53,790 - DEBUG - Services list from nova: [