2025-08-04 02:23:36,417 - INFO - Domain Default found not creating
2025-08-04 02:23:36,574 - INFO - Project ctest-TestBasicPolicy-54008763 not found, creating it
2025-08-04 02:23:37,049 - INFO - Created Project:ctest-TestBasicPolicy-54008763, ID : 2f6547c0-2cf8-43e9-a1bb-0f15c201a954
2025-08-04 02:23:38,524 - INFO - ================================================================================
2025-08-04 02:23:38,524 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-04 02:23:38,524 - 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-04 02:23:38,787 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-08-04 02:23:38,787 - INFO - Initial checks done. Running the testcase now
2025-08-04 02:23:38,787 - INFO -
2025-08-04 02:23:39,369 - DEBUG - Response for create_network : {'network': {'id': 'cb768009-4eb3-4aa1-9b62-60d6b1c79979', 'name': 'ctest-vn-05779014', 'tenant_id': '2f6547c02cf843e9a1bb0f15c201a954', 'project_id': '2f6547c02cf843e9a1bb0f15c201a954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54008763', 'ctest-vn-05779014'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:23:39,584 - DEBUG - Response for create_subnet : {'subnet': {'id': '2864922a-0894-4e60-b64a-f66fef1d2834', 'name': '', 'tenant_id': '2f6547c02cf843e9a1bb0f15c201a954', 'network_id': 'cb768009-4eb3-4aa1-9b62-60d6b1c79979', 'ip_version': 4, 'cidr': '179.108.44.192/26', 'allocation_pools': [{'start': '179.108.44.194', 'end': '179.108.44.254'}], 'gateway_ip': '179.108.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.108.44.194', 'tags': [], 'project_id': '2f6547c02cf843e9a1bb0f15c201a954'}}
2025-08-04 02:23:39,604 - INFO - Created VN ctest-vn-05779014
2025-08-04 02:23:39,655 - DEBUG - VN ctest-vn-05779014 UUID is cb768009-4eb3-4aa1-9b62-60d6b1c79979
2025-08-04 02:23:39,960 - DEBUG - Response for create_network : {'network': {'id': 'eae90729-3ae8-4b91-aa6c-68e73f6c6034', 'name': 'ctest-vn-07183349', 'tenant_id': '2f6547c02cf843e9a1bb0f15c201a954', 'project_id': '2f6547c02cf843e9a1bb0f15c201a954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54008763', 'ctest-vn-07183349'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:23:40,164 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9f14da0-9a93-4523-96ea-15622526eaf2', 'name': '', 'tenant_id': '2f6547c02cf843e9a1bb0f15c201a954', 'network_id': 'eae90729-3ae8-4b91-aa6c-68e73f6c6034', 'ip_version': 4, 'cidr': '139.73.106.64/26', 'allocation_pools': [{'start': '139.73.106.66', 'end': '139.73.106.126'}], 'gateway_ip': '139.73.106.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.73.106.66', 'tags': [], 'project_id': '2f6547c02cf843e9a1bb0f15c201a954'}}
2025-08-04 02:23:40,182 - INFO - Created VN ctest-vn-07183349
2025-08-04 02:23:40,235 - DEBUG - VN ctest-vn-07183349 UUID is eae90729-3ae8-4b91-aa6c-68e73f6c6034
2025-08-04 02:23:40,352 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-05779014, 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-54008763:ctest-vn-07183349, 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-04 02:23:40,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb768009-4eb3-4aa1-9b62-60d6b1c79979', 'name': 'ctest-vn-05779014', 'tenant_id': '2f6547c02cf843e9a1bb0f15c201a954', 'project_id': '2f6547c02cf843e9a1bb0f15c201a954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2864922a-0894-4e60-b64a-f66fef1d2834'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54008763', 'ctest-vn-05779014'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54008763', 'ctest-policy-allow-all-13550876']], 'subnet_ipam': [{'subnet_cidr': '179.108.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:23:40,913 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eae90729-3ae8-4b91-aa6c-68e73f6c6034', 'name': 'ctest-vn-07183349', 'tenant_id': '2f6547c02cf843e9a1bb0f15c201a954', 'project_id': '2f6547c02cf843e9a1bb0f15c201a954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9f14da0-9a93-4523-96ea-15622526eaf2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54008763', 'ctest-vn-07183349'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54008763', 'ctest-policy-allow-all-13550876']], 'subnet_ipam': [{'subnet_cidr': '139.73.106.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:23:41,083 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 02:23:41,391 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 02:23:41,421 - DEBUG - Requesting: http://10.0.0.50:8082/domain/24f65d5f-50c0-4485-879b-6ea068bf951d
2025-08-04 02:23:41,436 - DEBUG - Requesting: http://10.0.0.50:8082/project/2f6547c0-2cf8-43e9-a1bb-0f15c201a954
2025-08-04 02:23:41,513 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb768009-4eb3-4aa1-9b62-60d6b1c79979
2025-08-04 02:23:41,527 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb768009-4eb3-4aa1-9b62-60d6b1c79979
2025-08-04 02:23:41,539 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/085f8cc0-eeda-4356-acf5-9602a3bcbff5
2025-08-04 02:23:41,548 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/085f8cc0-eeda-4356-acf5-9602a3bcbff5
2025-08-04 02:23:41,556 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/da4d3326-96b7-42f7-926f-ae484c27b860
2025-08-04 02:23:41,565 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 02:23:41,565 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb768009-4eb3-4aa1-9b62-60d6b1c79979
2025-08-04 02:23:41,576 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/085f8cc0-eeda-4356-acf5-9602a3bcbff5
2025-08-04 02:23:41,593 - INFO - Verified VN network id 9 for VN cb768009-4eb3-4aa1-9b62-60d6b1c79979
2025-08-04 02:23:41,593 - INFO - Verifications in API Server for VN ctest-vn-05779014 passed
2025-08-04 02:23:41,593 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb768009-4eb3-4aa1-9b62-60d6b1c79979
2025-08-04 02:23:41,604 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/085f8cc0-eeda-4356-acf5-9602a3bcbff5
2025-08-04 02:23:41,614 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/085f8cc0-eeda-4356-acf5-9602a3bcbff5
2025-08-04 02:23:41,621 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/da4d3326-96b7-42f7-926f-ae484c27b860
2025-08-04 02:23:41,636 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-05779014', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54008763', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14661046414414662305', 'uuid-lslong': '11196618098818390393'}, 'enable': 'true', 'created': '2025-08-04T02:23:39', 'last-modified': '2025-08-04T02:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.996588'}
2025-08-04 02:23:41,645 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 02:23:41,645 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05779014 passed
2025-08-04 02:23:41,645 - DEBUG - ====Verifying policy data for ctest-vn-05779014 in API_Server ======
2025-08-04 02:23:41,645 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 02:23:41,651 - DEBUG - Requesting: http://10.0.0.50:8082/domain/24f65d5f-50c0-4485-879b-6ea068bf951d
2025-08-04 02:23:41,663 - DEBUG - Requesting: http://10.0.0.50:8082/project/2f6547c0-2cf8-43e9-a1bb-0f15c201a954
2025-08-04 02:23:41,740 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb768009-4eb3-4aa1-9b62-60d6b1c79979
2025-08-04 02:23:41,750 - DEBUG - ==>Verifying data for policy with id: 91b67c6c-9524-4da0-9233-b2336e349fee, fqn: ['default-domain', 'ctest-TestBasicPolicy-54008763', 'ctest-policy-allow-all-13550876']
2025-08-04 02:23:41,750 - INFO - VN ctest-vn-05779014 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 02:23:41,750 - DEBUG - Verifying the vn in opserver
2025-08-04 02:23:41,750 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-05779014 virtual network link through opserver 10.0.0.50
2025-08-04 02:23:41,750 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-04 02:23:42,054 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-04 02:23:42,130 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-05779014', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-05779014?flat'}
2025-08-04 02:23:42,130 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-05779014 is found in opserver
2025-08-04 02:23:42,142 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 02:23:42,148 - DEBUG - VRF ids for VN ctest-vn-05779014: {}
2025-08-04 02:23:42,148 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 02:23:42,155 - DEBUG - Requesting: http://10.0.0.50:8082/domain/24f65d5f-50c0-4485-879b-6ea068bf951d
2025-08-04 02:23:42,167 - DEBUG - Requesting: http://10.0.0.50:8082/project/2f6547c0-2cf8-43e9-a1bb-0f15c201a954
2025-08-04 02:23:42,244 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eae90729-3ae8-4b91-aa6c-68e73f6c6034
2025-08-04 02:23:42,257 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eae90729-3ae8-4b91-aa6c-68e73f6c6034
2025-08-04 02:23:42,268 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9180fb6e-42b1-4814-8a3f-5db524ca62ed
2025-08-04 02:23:42,277 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9180fb6e-42b1-4814-8a3f-5db524ca62ed
2025-08-04 02:23:42,287 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1096cb9c-4a66-4cdf-959c-39a7e3ef8264
2025-08-04 02:23:42,296 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 02:23:42,296 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eae90729-3ae8-4b91-aa6c-68e73f6c6034
2025-08-04 02:23:42,309 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9180fb6e-42b1-4814-8a3f-5db524ca62ed
2025-08-04 02:23:42,329 - INFO - Verified VN network id 10 for VN eae90729-3ae8-4b91-aa6c-68e73f6c6034
2025-08-04 02:23:42,329 - INFO - Verifications in API Server for VN ctest-vn-07183349 passed
2025-08-04 02:23:42,330 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eae90729-3ae8-4b91-aa6c-68e73f6c6034
2025-08-04 02:23:42,341 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9180fb6e-42b1-4814-8a3f-5db524ca62ed
2025-08-04 02:23:42,350 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9180fb6e-42b1-4814-8a3f-5db524ca62ed
2025-08-04 02:23:42,358 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1096cb9c-4a66-4cdf-959c-39a7e3ef8264
2025-08-04 02:23:42,372 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-07183349', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54008763', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16927068548112075665', 'uuid-lslong': '12280305626343301172'}, 'enable': 'true', 'created': '2025-08-04T02:23:39', 'last-modified': '2025-08-04T02:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.484475'}
2025-08-04 02:23:42,379 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 02:23:42,379 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07183349 passed
2025-08-04 02:23:42,379 - DEBUG - ====Verifying policy data for ctest-vn-07183349 in API_Server ======
2025-08-04 02:23:42,379 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 02:23:42,386 - DEBUG - Requesting: http://10.0.0.50:8082/domain/24f65d5f-50c0-4485-879b-6ea068bf951d
2025-08-04 02:23:42,398 - DEBUG - Requesting: http://10.0.0.50:8082/project/2f6547c0-2cf8-43e9-a1bb-0f15c201a954
2025-08-04 02:23:42,474 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eae90729-3ae8-4b91-aa6c-68e73f6c6034
2025-08-04 02:23:42,486 - DEBUG - ==>Verifying data for policy with id: 91b67c6c-9524-4da0-9233-b2336e349fee, fqn: ['default-domain', 'ctest-TestBasicPolicy-54008763', 'ctest-policy-allow-all-13550876']
2025-08-04 02:23:42,486 - INFO - VN ctest-vn-07183349 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 02:23:42,486 - DEBUG - Verifying the vn in opserver
2025-08-04 02:23:42,486 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-07183349 virtual network link through opserver 10.0.0.50
2025-08-04 02:23:42,486 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-04 02:23:42,498 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-07183349', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-07183349?flat'}
2025-08-04 02:23:42,498 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54008763:ctest-vn-07183349 is found in opserver
2025-08-04 02:23:42,510 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 02:23:42,516 - DEBUG - VRF ids for VN ctest-vn-07183349: {}
2025-08-04 02:23:42,580 - DEBUG - Services list from nova: [