2025-09-26 02:32:51,634 - INFO - Domain Default found not creating
2025-09-26 02:32:51,773 - INFO - Project ctest-TestBasicPolicy-52416014 not found, creating it
2025-09-26 02:32:52,227 - INFO - Created Project:ctest-TestBasicPolicy-52416014, ID : 3e3c17df-08cf-48cb-b98a-7e3b166a114b
2025-09-26 02:32:53,585 - INFO - ================================================================================
2025-09-26 02:32:53,585 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-26 02:32:53,585 - 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-26 02:32:53,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-26 02:32:53,844 - INFO - Initial checks done. Running the testcase now
2025-09-26 02:32:53,844 - INFO -
2025-09-26 02:32:54,374 - DEBUG - Response for create_network : {'network': {'id': 'd04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2', 'name': 'ctest-vn-45743992', 'tenant_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'project_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52416014', 'ctest-vn-45743992'], 'port_security_enabled': True, 'description': ''}}
2025-09-26 02:32:54,582 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e0b58d8-53ae-493a-ba9f-f26a22641902', 'name': '', 'tenant_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'network_id': 'd04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2', 'ip_version': 4, 'cidr': '148.177.121.64/26', 'allocation_pools': [{'start': '148.177.121.66', 'end': '148.177.121.126'}], 'gateway_ip': '148.177.121.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.177.121.66', 'tags': [], 'project_id': '3e3c17df08cf48cbb98a7e3b166a114b'}}
2025-09-26 02:32:54,597 - INFO - Created VN ctest-vn-45743992
2025-09-26 02:32:54,647 - DEBUG - VN ctest-vn-45743992 UUID is d04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2
2025-09-26 02:32:54,962 - DEBUG - Response for create_network : {'network': {'id': '141214e6-d9b9-4626-9ab2-70f00d0e1b27', 'name': 'ctest-vn-79699812', 'tenant_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'project_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52416014', 'ctest-vn-79699812'], 'port_security_enabled': True, 'description': ''}}
2025-09-26 02:32:55,146 - DEBUG - Response for create_subnet : {'subnet': {'id': '37b9e691-2c22-4a44-a85b-8b67e1adc1ee', 'name': '', 'tenant_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'network_id': '141214e6-d9b9-4626-9ab2-70f00d0e1b27', 'ip_version': 4, 'cidr': '2.95.232.0/26', 'allocation_pools': [{'start': '2.95.232.2', 'end': '2.95.232.62'}], 'gateway_ip': '2.95.232.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.95.232.2', 'tags': [], 'project_id': '3e3c17df08cf48cbb98a7e3b166a114b'}}
2025-09-26 02:32:55,163 - INFO - Created VN ctest-vn-79699812
2025-09-26 02:32:55,215 - DEBUG - VN ctest-vn-79699812 UUID is 141214e6-d9b9-4626-9ab2-70f00d0e1b27
2025-09-26 02:32:55,323 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-45743992, 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-52416014:ctest-vn-79699812, 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-26 02:32:55,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2', 'name': 'ctest-vn-45743992', 'tenant_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'project_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e0b58d8-53ae-493a-ba9f-f26a22641902'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52416014', 'ctest-vn-45743992'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52416014', 'ctest-policy-allow-all-04749905']], 'subnet_ipam': [{'subnet_cidr': '148.177.121.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-26 02:32:55,902 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '141214e6-d9b9-4626-9ab2-70f00d0e1b27', 'name': 'ctest-vn-79699812', 'tenant_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'project_id': '3e3c17df08cf48cbb98a7e3b166a114b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37b9e691-2c22-4a44-a85b-8b67e1adc1ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52416014', 'ctest-vn-79699812'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52416014', 'ctest-policy-allow-all-04749905']], 'subnet_ipam': [{'subnet_cidr': '2.95.232.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-26 02:32:56,047 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-26 02:32:56,352 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-26 02:32:56,389 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5d9ff4-c6d3-49fd-bb7b-c85b6abce6db
2025-09-26 02:32:56,401 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3c17df-08cf-48cb-b98a-7e3b166a114b
2025-09-26 02:32:56,555 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2
2025-09-26 02:32:56,577 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2
2025-09-26 02:32:56,621 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c93cd8d-0966-4fc9-b657-cde8b760d9da
2025-09-26 02:32:56,629 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c93cd8d-0966-4fc9-b657-cde8b760d9da
2025-09-26 02:32:56,635 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e07e2738-84e5-4703-ad17-f64d9f336c17
2025-09-26 02:32:56,640 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-26 02:32:56,640 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2
2025-09-26 02:32:56,649 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c93cd8d-0966-4fc9-b657-cde8b760d9da
2025-09-26 02:32:56,667 - INFO - Verified VN network id 12 for VN d04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2
2025-09-26 02:32:56,667 - INFO - Verifications in API Server for VN ctest-vn-45743992 passed
2025-09-26 02:32:56,667 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2
2025-09-26 02:32:56,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c93cd8d-0966-4fc9-b657-cde8b760d9da
2025-09-26 02:32:56,690 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c93cd8d-0966-4fc9-b657-cde8b760d9da
2025-09-26 02:32:56,700 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e07e2738-84e5-4703-ad17-f64d9f336c17
2025-09-26 02:32:56,713 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-45743992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52416014', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15009982497434060697', 'uuid-lslong': '10368779594018519538'}, 'enable': 'true', 'created': '2025-09-26T02:32:54', 'last-modified': '2025-09-26T02:32:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.109361'}
2025-09-26 02:32:56,723 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-26 02:32:56,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45743992 passed
2025-09-26 02:32:56,724 - DEBUG - ====Verifying policy data for ctest-vn-45743992 in API_Server ======
2025-09-26 02:32:56,724 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-26 02:32:56,732 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5d9ff4-c6d3-49fd-bb7b-c85b6abce6db
2025-09-26 02:32:56,793 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3c17df-08cf-48cb-b98a-7e3b166a114b
2025-09-26 02:32:56,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04e2b8e-1c63-4799-8fe5-4e1ac7caf9f2
2025-09-26 02:32:56,912 - DEBUG - ==>Verifying data for policy with id: 5e004c40-defb-460f-bd0b-4c84452f1df1, fqn: ['default-domain', 'ctest-TestBasicPolicy-52416014', 'ctest-policy-allow-all-04749905']
2025-09-26 02:32:56,912 - INFO - VN ctest-vn-45743992 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-26 02:32:56,912 - DEBUG - Verifying the vn in opserver
2025-09-26 02:32:56,912 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-45743992 virtual network link through opserver 10.0.0.38
2025-09-26 02:32:56,912 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-26 02:32:57,216 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-26 02:32:57,264 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-45743992', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-45743992?flat'}
2025-09-26 02:32:57,264 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-45743992 is found in opserver
2025-09-26 02:32:57,272 - DEBUG - Do not have enough data to verify VN in agent
2025-09-26 02:32:57,276 - DEBUG - VRF ids for VN ctest-vn-45743992: {}
2025-09-26 02:32:57,276 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-26 02:32:57,280 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5d9ff4-c6d3-49fd-bb7b-c85b6abce6db
2025-09-26 02:32:57,290 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3c17df-08cf-48cb-b98a-7e3b166a114b
2025-09-26 02:32:57,359 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/141214e6-d9b9-4626-9ab2-70f00d0e1b27
2025-09-26 02:32:57,369 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/141214e6-d9b9-4626-9ab2-70f00d0e1b27
2025-09-26 02:32:57,377 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6619d77-152f-49f1-9586-b991576c89c2
2025-09-26 02:32:57,382 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6619d77-152f-49f1-9586-b991576c89c2
2025-09-26 02:32:57,388 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a01df12e-6906-4c4f-bf6d-29db590f7227
2025-09-26 02:32:57,394 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-26 02:32:57,394 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/141214e6-d9b9-4626-9ab2-70f00d0e1b27
2025-09-26 02:32:57,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6619d77-152f-49f1-9586-b991576c89c2
2025-09-26 02:32:57,416 - INFO - Verified VN network id 13 for VN 141214e6-d9b9-4626-9ab2-70f00d0e1b27
2025-09-26 02:32:57,416 - INFO - Verifications in API Server for VN ctest-vn-79699812 passed
2025-09-26 02:32:57,416 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/141214e6-d9b9-4626-9ab2-70f00d0e1b27
2025-09-26 02:32:57,424 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6619d77-152f-49f1-9586-b991576c89c2
2025-09-26 02:32:57,430 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6619d77-152f-49f1-9586-b991576c89c2
2025-09-26 02:32:57,436 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a01df12e-6906-4c4f-bf6d-29db590f7227
2025-09-26 02:32:57,446 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-79699812', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52416014', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1446241412067182118', 'uuid-lslong': '11147096204008889127'}, 'enable': 'true', 'created': '2025-09-26T02:32:54', 'last-modified': '2025-09-26T02:32:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.609632'}
2025-09-26 02:32:57,453 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-26 02:32:57,454 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79699812 passed
2025-09-26 02:32:57,454 - DEBUG - ====Verifying policy data for ctest-vn-79699812 in API_Server ======
2025-09-26 02:32:57,454 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-26 02:32:57,459 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5d9ff4-c6d3-49fd-bb7b-c85b6abce6db
2025-09-26 02:32:57,471 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3c17df-08cf-48cb-b98a-7e3b166a114b
2025-09-26 02:32:57,542 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/141214e6-d9b9-4626-9ab2-70f00d0e1b27
2025-09-26 02:32:57,550 - DEBUG - ==>Verifying data for policy with id: 5e004c40-defb-460f-bd0b-4c84452f1df1, fqn: ['default-domain', 'ctest-TestBasicPolicy-52416014', 'ctest-policy-allow-all-04749905']
2025-09-26 02:32:57,550 - INFO - VN ctest-vn-79699812 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-26 02:32:57,550 - DEBUG - Verifying the vn in opserver
2025-09-26 02:32:57,550 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-79699812 virtual network link through opserver 10.0.0.38
2025-09-26 02:32:57,550 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-26 02:32:57,557 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-79699812', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-79699812?flat'}
2025-09-26 02:32:57,557 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52416014:ctest-vn-79699812 is found in opserver
2025-09-26 02:32:57,568 - DEBUG - Do not have enough data to verify VN in agent
2025-09-26 02:32:57,573 - DEBUG - VRF ids for VN ctest-vn-79699812: {}
2025-09-26 02:32:57,625 - DEBUG - Services list from nova: [