2025-05-14 17:22:11,781 - INFO - Domain Default found not creating
2025-05-14 17:22:12,078 - INFO - Project ctest-TestBasicPolicy-78029856 not found, creating it
2025-05-14 17:22:12,856 - INFO - Created Project:ctest-TestBasicPolicy-78029856, ID : 3e435305-5022-47f5-adae-776dd97ff5db
2025-05-14 17:22:14,954 - INFO - ================================================================================
2025-05-14 17:22:14,958 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-14 17:22:14,958 - 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-05-14 17:22:15,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-05-14 17:22:15,268 - INFO - Initial checks done. Running the testcase now
2025-05-14 17:22:15,268 - INFO -
2025-05-14 17:22:16,116 - DEBUG - Response for create_network : {'network': {'id': '22b34033-554b-4818-81bc-8daf72239647', 'name': 'ctest-vn-91393460', 'tenant_id': '3e435305502247f5adae776dd97ff5db', 'project_id': '3e435305502247f5adae776dd97ff5db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78029856', 'ctest-vn-91393460'], 'port_security_enabled': True, 'description': ''}}
2025-05-14 17:22:16,355 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bbaf53dc-c902-444b-b39a-5debacda6349', 'name': '', 'tenant_id': '3e435305502247f5adae776dd97ff5db', 'network_id': '22b34033-554b-4818-81bc-8daf72239647', 'ip_version': 4, 'cidr': '125.11.37.64/26', 'allocation_pools': [{'start': '125.11.37.66', 'end': '125.11.37.126'}], 'gateway_ip': '125.11.37.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.11.37.66', 'tags': [], 'project_id': '3e435305502247f5adae776dd97ff5db'}}
2025-05-14 17:22:16,392 - INFO - Created VN ctest-vn-91393460
2025-05-14 17:22:16,457 - DEBUG - VN ctest-vn-91393460 UUID is 22b34033-554b-4818-81bc-8daf72239647
2025-05-14 17:22:16,968 - DEBUG - Response for create_network : {'network': {'id': 'd63cc249-3bfe-4fdf-badb-e06d0286e8e6', 'name': 'ctest-vn-05385790', 'tenant_id': '3e435305502247f5adae776dd97ff5db', 'project_id': '3e435305502247f5adae776dd97ff5db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78029856', 'ctest-vn-05385790'], 'port_security_enabled': True, 'description': ''}}
2025-05-14 17:22:17,199 - DEBUG - Response for create_subnet : {'subnet': {'id': '34ef40fd-cf72-4ac9-b8e0-339b7a3e4d7f', 'name': '', 'tenant_id': '3e435305502247f5adae776dd97ff5db', 'network_id': 'd63cc249-3bfe-4fdf-badb-e06d0286e8e6', 'ip_version': 4, 'cidr': '172.125.172.0/26', 'allocation_pools': [{'start': '172.125.172.2', 'end': '172.125.172.62'}], 'gateway_ip': '172.125.172.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.125.172.2', 'tags': [], 'project_id': '3e435305502247f5adae776dd97ff5db'}}
2025-05-14 17:22:17,219 - INFO - Created VN ctest-vn-05385790
2025-05-14 17:22:17,276 - DEBUG - VN ctest-vn-05385790 UUID is d63cc249-3bfe-4fdf-badb-e06d0286e8e6
2025-05-14 17:22:17,427 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-91393460, 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-78029856:ctest-vn-05385790, 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-05-14 17:22:17,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22b34033-554b-4818-81bc-8daf72239647', 'name': 'ctest-vn-91393460', 'tenant_id': '3e435305502247f5adae776dd97ff5db', 'project_id': '3e435305502247f5adae776dd97ff5db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bbaf53dc-c902-444b-b39a-5debacda6349'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78029856', 'ctest-vn-91393460'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78029856', 'ctest-policy-allow-all-58845031']], 'subnet_ipam': [{'subnet_cidr': '125.11.37.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-14 17:22:18,203 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd63cc249-3bfe-4fdf-badb-e06d0286e8e6', 'name': 'ctest-vn-05385790', 'tenant_id': '3e435305502247f5adae776dd97ff5db', 'project_id': '3e435305502247f5adae776dd97ff5db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34ef40fd-cf72-4ac9-b8e0-339b7a3e4d7f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78029856', 'ctest-vn-05385790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78029856', 'ctest-policy-allow-all-58845031']], 'subnet_ipam': [{'subnet_cidr': '172.125.172.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-14 17:22:18,396 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 17:22:18,705 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 17:22:18,758 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ac941447-a2f9-4b7a-bd2e-665fe112e36a
2025-05-14 17:22:18,784 - DEBUG - Requesting: http://10.0.0.50:8082/project/3e435305-5022-47f5-adae-776dd97ff5db
2025-05-14 17:22:18,895 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22b34033-554b-4818-81bc-8daf72239647
2025-05-14 17:22:18,926 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22b34033-554b-4818-81bc-8daf72239647
2025-05-14 17:22:18,949 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8adbacbb-42ff-409f-9181-eafc08a98482
2025-05-14 17:22:18,962 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8adbacbb-42ff-409f-9181-eafc08a98482
2025-05-14 17:22:18,975 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/118b4233-b2ee-49f9-a3c9-8584b199dae5
2025-05-14 17:22:18,995 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-14 17:22:18,995 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22b34033-554b-4818-81bc-8daf72239647
2025-05-14 17:22:19,031 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8adbacbb-42ff-409f-9181-eafc08a98482
2025-05-14 17:22:19,072 - INFO - Verified VN network id 8 for VN 22b34033-554b-4818-81bc-8daf72239647
2025-05-14 17:22:19,072 - INFO - Verifications in API Server for VN ctest-vn-91393460 passed
2025-05-14 17:22:19,072 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22b34033-554b-4818-81bc-8daf72239647
2025-05-14 17:22:19,100 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8adbacbb-42ff-409f-9181-eafc08a98482
2025-05-14 17:22:19,120 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8adbacbb-42ff-409f-9181-eafc08a98482
2025-05-14 17:22:19,145 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/118b4233-b2ee-49f9-a3c9-8584b199dae5
2025-05-14 17:22:19,194 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-91393460', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78029856', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2500412807339264024', 'uuid-lslong': '9348502711188035143'}, 'enable': 'true', 'created': '2025-05-14T17:22:16', 'last-modified': '2025-05-14T17:22:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333173'}
2025-05-14 17:22:19,213 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-14 17:22:19,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91393460 passed
2025-05-14 17:22:19,214 - DEBUG - ====Verifying policy data for ctest-vn-91393460 in API_Server ======
2025-05-14 17:22:19,214 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 17:22:19,227 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ac941447-a2f9-4b7a-bd2e-665fe112e36a
2025-05-14 17:22:19,271 - DEBUG - Requesting: http://10.0.0.50:8082/project/3e435305-5022-47f5-adae-776dd97ff5db
2025-05-14 17:22:19,367 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22b34033-554b-4818-81bc-8daf72239647
2025-05-14 17:22:19,386 - DEBUG - ==>Verifying data for policy with id: 366db7f6-caf1-4f61-9e2d-422623378fbc, fqn: ['default-domain', 'ctest-TestBasicPolicy-78029856', 'ctest-policy-allow-all-58845031']
2025-05-14 17:22:19,386 - INFO - VN ctest-vn-91393460 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-14 17:22:19,386 - DEBUG - Verifying the vn in opserver
2025-05-14 17:22:19,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-91393460 virtual network link through opserver 10.0.0.50
2025-05-14 17:22:19,387 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-14 17:22:19,701 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-14 17:22:19,835 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-91393460', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-91393460?flat'}
2025-05-14 17:22:19,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-91393460 is found in opserver
2025-05-14 17:22:19,875 - DEBUG - Do not have enough data to verify VN in agent
2025-05-14 17:22:19,896 - DEBUG - VRF ids for VN ctest-vn-91393460: {}
2025-05-14 17:22:19,897 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 17:22:19,913 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ac941447-a2f9-4b7a-bd2e-665fe112e36a
2025-05-14 17:22:19,952 - DEBUG - Requesting: http://10.0.0.50:8082/project/3e435305-5022-47f5-adae-776dd97ff5db
2025-05-14 17:22:20,079 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d63cc249-3bfe-4fdf-badb-e06d0286e8e6
2025-05-14 17:22:20,099 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d63cc249-3bfe-4fdf-badb-e06d0286e8e6
2025-05-14 17:22:20,116 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/77c18b61-ca73-4c98-89f8-8ecbc77d7587
2025-05-14 17:22:20,131 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/77c18b61-ca73-4c98-89f8-8ecbc77d7587
2025-05-14 17:22:20,149 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3e2b5ae5-a297-4499-b88e-7e74b0cc7ce7
2025-05-14 17:22:20,165 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-14 17:22:20,166 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d63cc249-3bfe-4fdf-badb-e06d0286e8e6
2025-05-14 17:22:20,198 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/77c18b61-ca73-4c98-89f8-8ecbc77d7587
2025-05-14 17:22:20,244 - INFO - Verified VN network id 9 for VN d63cc249-3bfe-4fdf-badb-e06d0286e8e6
2025-05-14 17:22:20,244 - INFO - Verifications in API Server for VN ctest-vn-05385790 passed
2025-05-14 17:22:20,245 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d63cc249-3bfe-4fdf-badb-e06d0286e8e6
2025-05-14 17:22:20,278 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/77c18b61-ca73-4c98-89f8-8ecbc77d7587
2025-05-14 17:22:20,299 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/77c18b61-ca73-4c98-89f8-8ecbc77d7587
2025-05-14 17:22:20,320 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3e2b5ae5-a297-4499-b88e-7e74b0cc7ce7
2025-05-14 17:22:20,360 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-05385790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78029856', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15437427242514141151', 'uuid-lslong': '13464602269752682726'}, 'enable': 'true', 'created': '2025-05-14T17:22:16', 'last-modified': '2025-05-14T17:22:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.204238'}
2025-05-14 17:22:20,382 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-14 17:22:20,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05385790 passed
2025-05-14 17:22:20,383 - DEBUG - ====Verifying policy data for ctest-vn-05385790 in API_Server ======
2025-05-14 17:22:20,383 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 17:22:20,400 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ac941447-a2f9-4b7a-bd2e-665fe112e36a
2025-05-14 17:22:20,441 - DEBUG - Requesting: http://10.0.0.50:8082/project/3e435305-5022-47f5-adae-776dd97ff5db
2025-05-14 17:22:20,566 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d63cc249-3bfe-4fdf-badb-e06d0286e8e6
2025-05-14 17:22:20,594 - DEBUG - ==>Verifying data for policy with id: 366db7f6-caf1-4f61-9e2d-422623378fbc, fqn: ['default-domain', 'ctest-TestBasicPolicy-78029856', 'ctest-policy-allow-all-58845031']
2025-05-14 17:22:20,594 - INFO - VN ctest-vn-05385790 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-14 17:22:20,594 - DEBUG - Verifying the vn in opserver
2025-05-14 17:22:20,595 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-05385790 virtual network link through opserver 10.0.0.50
2025-05-14 17:22:20,595 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-14 17:22:20,627 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-05385790', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-05385790?flat'}
2025-05-14 17:22:20,627 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78029856:ctest-vn-05385790 is found in opserver
2025-05-14 17:22:20,663 - DEBUG - Do not have enough data to verify VN in agent
2025-05-14 17:22:20,677 - DEBUG - VRF ids for VN ctest-vn-05385790: {}
2025-05-14 17:22:20,860 - DEBUG - Services list from nova: [