2025-09-11 08:29:22,221 - INFO - Domain Default found not creating
2025-09-11 08:29:22,396 - INFO - Project ctest-TestBasicPolicy-38664389 not found, creating it
2025-09-11 08:29:22,846 - INFO - Created Project:ctest-TestBasicPolicy-38664389, ID : da3d440b-0ce4-40a2-8b24-79fc5bb6f768
2025-09-11 08:29:24,279 - INFO - ================================================================================
2025-09-11 08:29:24,279 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 08:29:24,280 - 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-11 08:29:24,538 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with
2025-09-11 08:29:24,538 - INFO - Initial checks done. Running the testcase now
2025-09-11 08:29:24,538 - INFO -
2025-09-11 08:29:25,060 - DEBUG - Response for create_network : {'network': {'id': '65908a0b-8007-41b9-b784-97dc72d5c310', 'name': 'ctest-vn-76897793', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-vn-76897793'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:29:25,261 - DEBUG - Response for create_subnet : {'subnet': {'id': '97a3cf33-47b5-4504-9bc5-d07d233f0f72', 'name': '', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'network_id': '65908a0b-8007-41b9-b784-97dc72d5c310', 'ip_version': 4, 'cidr': '147.140.190.192/26', 'allocation_pools': [{'start': '147.140.190.194', 'end': '147.140.190.254'}], 'gateway_ip': '147.140.190.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.140.190.194', 'tags': [], 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768'}}
2025-09-11 08:29:25,277 - INFO - Created VN ctest-vn-76897793
2025-09-11 08:29:25,329 - DEBUG - VN ctest-vn-76897793 UUID is 65908a0b-8007-41b9-b784-97dc72d5c310
2025-09-11 08:29:25,639 - DEBUG - Response for create_network : {'network': {'id': '8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90', 'name': 'ctest-vn-14010452', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-vn-14010452'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:29:25,839 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e53677a1-81fe-472c-83e0-ec6372067edd', 'name': '', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'network_id': '8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90', 'ip_version': 4, 'cidr': '16.3.208.192/26', 'allocation_pools': [{'start': '16.3.208.194', 'end': '16.3.208.254'}], 'gateway_ip': '16.3.208.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.3.208.194', 'tags': [], 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768'}}
2025-09-11 08:29:25,856 - INFO - Created VN ctest-vn-14010452
2025-09-11 08:29:25,908 - DEBUG - VN ctest-vn-14010452 UUID is 8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90
2025-09-11 08:29:26,020 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793, 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-38664389:ctest-vn-14010452, 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-11 08:29:26,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65908a0b-8007-41b9-b784-97dc72d5c310', 'name': 'ctest-vn-76897793', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97a3cf33-47b5-4504-9bc5-d07d233f0f72'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-vn-76897793'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-policy-allow-all-31978435']], 'subnet_ipam': [{'subnet_cidr': '147.140.190.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:29:26,528 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90', 'name': 'ctest-vn-14010452', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e53677a1-81fe-472c-83e0-ec6372067edd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-vn-14010452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-policy-allow-all-31978435']], 'subnet_ipam': [{'subnet_cidr': '16.3.208.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:29:26,677 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-09-11 08:29:26,984 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-09-11 08:29:27,016 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07
2025-09-11 08:29:27,026 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768
2025-09-11 08:29:27,093 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310
2025-09-11 08:29:27,102 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310
2025-09-11 08:29:27,110 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef
2025-09-11 08:29:27,116 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef
2025-09-11 08:29:27,122 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/005ba40c-63b0-4895-b823-6f2ea8238032
2025-09-11 08:29:27,127 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 08:29:27,127 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310
2025-09-11 08:29:27,134 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef
2025-09-11 08:29:27,146 - INFO - Verified VN network id 11 for VN 65908a0b-8007-41b9-b784-97dc72d5c310
2025-09-11 08:29:27,146 - INFO - Verifications in API Server for VN ctest-vn-76897793 passed
2025-09-11 08:29:27,146 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310
2025-09-11 08:29:27,154 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef
2025-09-11 08:29:27,159 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef
2025-09-11 08:29:27,164 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/005ba40c-63b0-4895-b823-6f2ea8238032
2025-09-11 08:29:27,176 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38664389', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7318501176474288569', 'uuid-lslong': '13223861378941829904'}, 'enable': 'true', 'created': '2025-09-11T08:29:25', 'last-modified': '2025-09-11T08:29:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.880893'}
2025-09-11 08:29:27,183 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 08:29:27,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76897793 passed
2025-09-11 08:29:27,183 - DEBUG - ====Verifying policy data for ctest-vn-76897793 in API_Server ======
2025-09-11 08:29:27,183 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-09-11 08:29:27,189 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07
2025-09-11 08:29:27,198 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768
2025-09-11 08:29:27,264 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310
2025-09-11 08:29:27,273 - DEBUG - ==>Verifying data for policy with id: 78831858-5b4b-42bb-b375-20a90da72a0b, fqn: ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-policy-allow-all-31978435']
2025-09-11 08:29:27,273 - INFO - VN ctest-vn-76897793 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 08:29:27,273 - DEBUG - Verifying the vn in opserver
2025-09-11 08:29:27,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793 virtual network link through opserver 10.0.0.41
2025-09-11 08:29:27,274 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-09-11 08:29:27,561 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-09-11 08:29:27,611 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793?flat'}
2025-09-11 08:29:27,611 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793 is found in opserver
2025-09-11 08:29:27,622 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 08:29:27,627 - DEBUG - VRF ids for VN ctest-vn-76897793: {}
2025-09-11 08:29:27,627 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-09-11 08:29:27,632 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07
2025-09-11 08:29:27,643 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768
2025-09-11 08:29:27,724 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90
2025-09-11 08:29:27,734 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90
2025-09-11 08:29:27,742 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960
2025-09-11 08:29:27,749 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960
2025-09-11 08:29:27,756 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/363925a1-64c6-49a2-a5e5-e9cc1e982664
2025-09-11 08:29:27,762 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 08:29:27,762 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90
2025-09-11 08:29:27,772 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960
2025-09-11 08:29:27,787 - INFO - Verified VN network id 12 for VN 8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90
2025-09-11 08:29:27,787 - INFO - Verifications in API Server for VN ctest-vn-14010452 passed
2025-09-11 08:29:27,787 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90
2025-09-11 08:29:27,798 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960
2025-09-11 08:29:27,808 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960
2025-09-11 08:29:27,814 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/363925a1-64c6-49a2-a5e5-e9cc1e982664
2025-09-11 08:29:27,825 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38664389', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10053649293697304286', 'uuid-lslong': '11123857973967408784'}, 'enable': 'true', 'created': '2025-09-11T08:29:25', 'last-modified': '2025-09-11T08:29:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.313621'}
2025-09-11 08:29:27,831 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 08:29:27,831 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14010452 passed
2025-09-11 08:29:27,831 - DEBUG - ====Verifying policy data for ctest-vn-14010452 in API_Server ======
2025-09-11 08:29:27,831 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-09-11 08:29:27,837 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07
2025-09-11 08:29:27,846 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768
2025-09-11 08:29:27,914 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90
2025-09-11 08:29:27,924 - DEBUG - ==>Verifying data for policy with id: 78831858-5b4b-42bb-b375-20a90da72a0b, fqn: ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-policy-allow-all-31978435']
2025-09-11 08:29:27,924 - INFO - VN ctest-vn-14010452 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 08:29:27,924 - DEBUG - Verifying the vn in opserver
2025-09-11 08:29:27,924 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452 virtual network link through opserver 10.0.0.41
2025-09-11 08:29:27,924 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-09-11 08:29:27,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452?flat'}
2025-09-11 08:29:27,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452 is found in opserver
2025-09-11 08:29:27,943 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 08:29:27,947 - DEBUG - VRF ids for VN ctest-vn-14010452: {}
2025-09-11 08:29:28,015 - DEBUG - Services list from nova: [