2025-10-28 21:35:45,355 - INFO - Domain Default found not creating
2025-10-28 21:35:45,499 - INFO - Project ctest-TestBasicPolicy-28852993 not found, creating it
2025-10-28 21:35:45,936 - INFO - Created Project:ctest-TestBasicPolicy-28852993, ID : 60ad7726-da71-4ebc-b4b9-a79701ac999b
2025-10-28 21:35:47,369 - INFO - ================================================================================
2025-10-28 21:35:47,370 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-28 21:35:47,370 - 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-10-28 21:35:47,632 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-10-28 21:35:47,632 - INFO - Initial checks done. Running the testcase now
2025-10-28 21:35:47,632 - INFO -
2025-10-28 21:35:48,168 - DEBUG - Response for create_network : {'network': {'id': '3d1e23f4-c3d1-424b-84b9-8ac7822f1e76', 'name': 'ctest-vn-51046212', 'tenant_id': '60ad7726da714ebcb4b9a79701ac999b', 'project_id': '60ad7726da714ebcb4b9a79701ac999b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28852993', 'ctest-vn-51046212'], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:35:48,303 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f29d966-5358-4b94-8f89-ab93572e9e60', 'name': '', 'tenant_id': '60ad7726da714ebcb4b9a79701ac999b', 'network_id': '3d1e23f4-c3d1-424b-84b9-8ac7822f1e76', 'ip_version': 4, 'cidr': '142.176.26.0/26', 'allocation_pools': [{'start': '142.176.26.2', 'end': '142.176.26.62'}], 'gateway_ip': '142.176.26.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.176.26.2', 'tags': [], 'project_id': '60ad7726da714ebcb4b9a79701ac999b'}}
2025-10-28 21:35:48,323 - INFO - Created VN ctest-vn-51046212
2025-10-28 21:35:48,379 - DEBUG - VN ctest-vn-51046212 UUID is 3d1e23f4-c3d1-424b-84b9-8ac7822f1e76
2025-10-28 21:35:48,705 - DEBUG - Response for create_network : {'network': {'id': '087f0cf2-b656-4076-9bee-28df11c3a742', 'name': 'ctest-vn-20974083', 'tenant_id': '60ad7726da714ebcb4b9a79701ac999b', 'project_id': '60ad7726da714ebcb4b9a79701ac999b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28852993', 'ctest-vn-20974083'], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:35:48,875 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb66c341-d5b6-47a1-990a-d0d181e2282b', 'name': '', 'tenant_id': '60ad7726da714ebcb4b9a79701ac999b', 'network_id': '087f0cf2-b656-4076-9bee-28df11c3a742', 'ip_version': 4, 'cidr': '144.114.38.128/26', 'allocation_pools': [{'start': '144.114.38.130', 'end': '144.114.38.190'}], 'gateway_ip': '144.114.38.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.114.38.130', 'tags': [], 'project_id': '60ad7726da714ebcb4b9a79701ac999b'}}
2025-10-28 21:35:48,892 - INFO - Created VN ctest-vn-20974083
2025-10-28 21:35:48,943 - DEBUG - VN ctest-vn-20974083 UUID is 087f0cf2-b656-4076-9bee-28df11c3a742
2025-10-28 21:35:49,091 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-51046212, 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-28852993:ctest-vn-20974083, 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-10-28 21:35:49,371 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d1e23f4-c3d1-424b-84b9-8ac7822f1e76', 'name': 'ctest-vn-51046212', 'tenant_id': '60ad7726da714ebcb4b9a79701ac999b', 'project_id': '60ad7726da714ebcb4b9a79701ac999b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f29d966-5358-4b94-8f89-ab93572e9e60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28852993', 'ctest-vn-51046212'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28852993', 'ctest-policy-allow-all-43760447']], 'subnet_ipam': [{'subnet_cidr': '142.176.26.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:35:49,609 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '087f0cf2-b656-4076-9bee-28df11c3a742', 'name': 'ctest-vn-20974083', 'tenant_id': '60ad7726da714ebcb4b9a79701ac999b', 'project_id': '60ad7726da714ebcb4b9a79701ac999b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb66c341-d5b6-47a1-990a-d0d181e2282b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28852993', 'ctest-vn-20974083'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28852993', 'ctest-policy-allow-all-43760447']], 'subnet_ipam': [{'subnet_cidr': '144.114.38.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:35:49,775 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-28 21:35:50,077 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-28 21:35:50,111 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e82cc31-586f-421e-8cb3-f0fd1a180994
2025-10-28 21:35:50,123 - DEBUG - Requesting: http://10.0.0.50:8082/project/60ad7726-da71-4ebc-b4b9-a79701ac999b
2025-10-28 21:35:50,192 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3d1e23f4-c3d1-424b-84b9-8ac7822f1e76
2025-10-28 21:35:50,202 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3d1e23f4-c3d1-424b-84b9-8ac7822f1e76
2025-10-28 21:35:50,210 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5cc1a0c-ea87-4143-884b-62597a48d067
2025-10-28 21:35:50,216 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5cc1a0c-ea87-4143-884b-62597a48d067
2025-10-28 21:35:50,222 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/10d259a1-b9aa-4ecb-8e6a-d581707478b2
2025-10-28 21:35:50,227 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-28 21:35:50,227 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3d1e23f4-c3d1-424b-84b9-8ac7822f1e76
2025-10-28 21:35:50,234 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5cc1a0c-ea87-4143-884b-62597a48d067
2025-10-28 21:35:50,245 - INFO - Verified VN network id 12 for VN 3d1e23f4-c3d1-424b-84b9-8ac7822f1e76
2025-10-28 21:35:50,245 - INFO - Verifications in API Server for VN ctest-vn-51046212 passed
2025-10-28 21:35:50,245 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3d1e23f4-c3d1-424b-84b9-8ac7822f1e76
2025-10-28 21:35:50,254 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5cc1a0c-ea87-4143-884b-62597a48d067
2025-10-28 21:35:50,259 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5cc1a0c-ea87-4143-884b-62597a48d067
2025-10-28 21:35:50,264 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/10d259a1-b9aa-4ecb-8e6a-d581707478b2
2025-10-28 21:35:50,274 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-51046212', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28852993', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4403997019779187275', 'uuid-lslong': '9563827873185209974'}, 'enable': 'true', 'created': '2025-10-28T21:35:48', 'last-modified': '2025-10-28T21:35:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923896'}
2025-10-28 21:35:50,279 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-28 21:35:50,279 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51046212 passed
2025-10-28 21:35:50,280 - DEBUG - ====Verifying policy data for ctest-vn-51046212 in API_Server ======
2025-10-28 21:35:50,280 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-28 21:35:50,284 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e82cc31-586f-421e-8cb3-f0fd1a180994
2025-10-28 21:35:50,293 - DEBUG - Requesting: http://10.0.0.50:8082/project/60ad7726-da71-4ebc-b4b9-a79701ac999b
2025-10-28 21:35:50,361 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3d1e23f4-c3d1-424b-84b9-8ac7822f1e76
2025-10-28 21:35:50,371 - DEBUG - ==>Verifying data for policy with id: 991a392d-a0df-47a7-b239-ff95c1fa83de, fqn: ['default-domain', 'ctest-TestBasicPolicy-28852993', 'ctest-policy-allow-all-43760447']
2025-10-28 21:35:50,371 - INFO - VN ctest-vn-51046212 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-28 21:35:50,371 - DEBUG - Verifying the vn in opserver
2025-10-28 21:35:50,371 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-51046212 virtual network link through opserver 10.0.0.50
2025-10-28 21:35:50,371 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-28 21:35:50,670 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-28 21:35:50,733 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-51046212', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-51046212?flat'}
2025-10-28 21:35:50,733 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-51046212 is found in opserver
2025-10-28 21:35:50,743 - DEBUG - Do not have enough data to verify VN in agent
2025-10-28 21:35:50,752 - DEBUG - VRF ids for VN ctest-vn-51046212: {}
2025-10-28 21:35:50,752 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-28 21:35:50,758 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e82cc31-586f-421e-8cb3-f0fd1a180994
2025-10-28 21:35:50,772 - DEBUG - Requesting: http://10.0.0.50:8082/project/60ad7726-da71-4ebc-b4b9-a79701ac999b
2025-10-28 21:35:50,846 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/087f0cf2-b656-4076-9bee-28df11c3a742
2025-10-28 21:35:50,858 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/087f0cf2-b656-4076-9bee-28df11c3a742
2025-10-28 21:35:50,867 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37fcf34b-15c8-4246-8295-9cfcc7fb8337
2025-10-28 21:35:50,874 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37fcf34b-15c8-4246-8295-9cfcc7fb8337
2025-10-28 21:35:50,880 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4b31ed70-112c-460f-a912-597ccb64d5e4
2025-10-28 21:35:50,885 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-28 21:35:50,885 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/087f0cf2-b656-4076-9bee-28df11c3a742
2025-10-28 21:35:50,894 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37fcf34b-15c8-4246-8295-9cfcc7fb8337
2025-10-28 21:35:50,906 - INFO - Verified VN network id 13 for VN 087f0cf2-b656-4076-9bee-28df11c3a742
2025-10-28 21:35:50,906 - INFO - Verifications in API Server for VN ctest-vn-20974083 passed
2025-10-28 21:35:50,906 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/087f0cf2-b656-4076-9bee-28df11c3a742
2025-10-28 21:35:50,914 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37fcf34b-15c8-4246-8295-9cfcc7fb8337
2025-10-28 21:35:50,920 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37fcf34b-15c8-4246-8295-9cfcc7fb8337
2025-10-28 21:35:50,926 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4b31ed70-112c-460f-a912-597ccb64d5e4
2025-10-28 21:35:50,936 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-20974083', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28852993', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '612222310926401654', 'uuid-lslong': '11235963058876819266'}, 'enable': 'true', 'created': '2025-10-28T21:35:48', 'last-modified': '2025-10-28T21:35:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.356564'}
2025-10-28 21:35:50,940 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-28 21:35:50,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20974083 passed
2025-10-28 21:35:50,940 - DEBUG - ====Verifying policy data for ctest-vn-20974083 in API_Server ======
2025-10-28 21:35:50,941 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-28 21:35:50,945 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e82cc31-586f-421e-8cb3-f0fd1a180994
2025-10-28 21:35:50,955 - DEBUG - Requesting: http://10.0.0.50:8082/project/60ad7726-da71-4ebc-b4b9-a79701ac999b
2025-10-28 21:35:51,022 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/087f0cf2-b656-4076-9bee-28df11c3a742
2025-10-28 21:35:51,031 - DEBUG - ==>Verifying data for policy with id: 991a392d-a0df-47a7-b239-ff95c1fa83de, fqn: ['default-domain', 'ctest-TestBasicPolicy-28852993', 'ctest-policy-allow-all-43760447']
2025-10-28 21:35:51,031 - INFO - VN ctest-vn-20974083 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-28 21:35:51,031 - DEBUG - Verifying the vn in opserver
2025-10-28 21:35:51,031 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-20974083 virtual network link through opserver 10.0.0.50
2025-10-28 21:35:51,031 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-28 21:35:51,040 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-20974083', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-20974083?flat'}
2025-10-28 21:35:51,040 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28852993:ctest-vn-20974083 is found in opserver
2025-10-28 21:35:51,048 - DEBUG - Do not have enough data to verify VN in agent
2025-10-28 21:35:51,052 - DEBUG - VRF ids for VN ctest-vn-20974083: {}
2025-10-28 21:35:51,104 - DEBUG - Services list from nova: [