2025-07-31 13:26:02,575 - INFO - Domain Default found not creating
2025-07-31 13:26:02,742 - INFO - Project ctest-TestBasicPolicy-77013332 not found, creating it
2025-07-31 13:26:03,240 - INFO - Created Project:ctest-TestBasicPolicy-77013332, ID : 53529656-bde2-4e26-8d46-99521b7f164f
2025-07-31 13:26:04,874 - INFO - ================================================================================
2025-07-31 13:26:04,874 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-31 13:26:04,874 - 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-07-31 13:26:05,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with
2025-07-31 13:26:05,140 - INFO - Initial checks done. Running the testcase now
2025-07-31 13:26:05,140 - INFO -
2025-07-31 13:26:05,730 - DEBUG - Response for create_network : {'network': {'id': 'b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43', 'name': 'ctest-vn-08554922', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'project_id': '53529656bde24e268d4699521b7f164f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-vn-08554922'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 13:26:05,926 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ffa2064-3e96-4aca-88fa-9c8c6b226e33', 'name': '', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'network_id': 'b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43', 'ip_version': 4, 'cidr': '144.104.24.0/26', 'allocation_pools': [{'start': '144.104.24.2', 'end': '144.104.24.62'}], 'gateway_ip': '144.104.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.104.24.2', 'tags': [], 'project_id': '53529656bde24e268d4699521b7f164f'}}
2025-07-31 13:26:05,952 - INFO - Created VN ctest-vn-08554922
2025-07-31 13:26:06,007 - DEBUG - VN ctest-vn-08554922 UUID is b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43
2025-07-31 13:26:06,341 - DEBUG - Response for create_network : {'network': {'id': '47777a23-4da4-463b-a967-45aac985ccc5', 'name': 'ctest-vn-27228151', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'project_id': '53529656bde24e268d4699521b7f164f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-vn-27228151'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 13:26:06,530 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5a13e16-26ad-4b5d-ba89-4dc017ae745b', 'name': '', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'network_id': '47777a23-4da4-463b-a967-45aac985ccc5', 'ip_version': 4, 'cidr': '213.235.59.128/26', 'allocation_pools': [{'start': '213.235.59.130', 'end': '213.235.59.190'}], 'gateway_ip': '213.235.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.235.59.130', 'tags': [], 'project_id': '53529656bde24e268d4699521b7f164f'}}
2025-07-31 13:26:06,552 - INFO - Created VN ctest-vn-27228151
2025-07-31 13:26:06,607 - DEBUG - VN ctest-vn-27228151 UUID is 47777a23-4da4-463b-a967-45aac985ccc5
2025-07-31 13:26:06,728 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922, 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-77013332:ctest-vn-27228151, 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-07-31 13:26:07,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43', 'name': 'ctest-vn-08554922', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'project_id': '53529656bde24e268d4699521b7f164f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ffa2064-3e96-4aca-88fa-9c8c6b226e33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-vn-08554922'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-policy-allow-all-48228766']], 'subnet_ipam': [{'subnet_cidr': '144.104.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 13:26:07,286 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47777a23-4da4-463b-a967-45aac985ccc5', 'name': 'ctest-vn-27228151', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'project_id': '53529656bde24e268d4699521b7f164f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5a13e16-26ad-4b5d-ba89-4dc017ae745b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-vn-27228151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-policy-allow-all-48228766']], 'subnet_ipam': [{'subnet_cidr': '213.235.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 13:26:07,423 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 13:26:07,738 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 13:26:07,772 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923
2025-07-31 13:26:07,787 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f
2025-07-31 13:26:07,858 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43
2025-07-31 13:26:07,869 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43
2025-07-31 13:26:07,879 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059
2025-07-31 13:26:07,887 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059
2025-07-31 13:26:07,893 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ce72ceb8-2ee9-4f23-a828-8631be39ca60
2025-07-31 13:26:07,900 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 13:26:07,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43
2025-07-31 13:26:07,910 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059
2025-07-31 13:26:07,926 - INFO - Verified VN network id 12 for VN b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43
2025-07-31 13:26:07,926 - INFO - Verifications in API Server for VN ctest-vn-08554922 passed
2025-07-31 13:26:07,926 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43
2025-07-31 13:26:07,936 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059
2025-07-31 13:26:07,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059
2025-07-31 13:26:07,951 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ce72ceb8-2ee9-4f23-a828-8631be39ca60
2025-07-31 13:26:07,966 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77013332', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12981826009772671181', 'uuid-lslong': '13640102277382273859'}, 'enable': 'true', 'created': '2025-07-31T13:26:05', 'last-modified': '2025-07-31T13:26:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953377'}
2025-07-31 13:26:07,973 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 13:26:07,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08554922 passed
2025-07-31 13:26:07,973 - DEBUG - ====Verifying policy data for ctest-vn-08554922 in API_Server ======
2025-07-31 13:26:07,973 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 13:26:07,980 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923
2025-07-31 13:26:07,995 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f
2025-07-31 13:26:08,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43
2025-07-31 13:26:08,078 - DEBUG - ==>Verifying data for policy with id: d6b8a7b3-1918-410c-b372-f00ad9202329, fqn: ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-policy-allow-all-48228766']
2025-07-31 13:26:08,078 - INFO - VN ctest-vn-08554922 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 13:26:08,079 - DEBUG - Verifying the vn in opserver
2025-07-31 13:26:08,079 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922 virtual network link through opserver 10.0.0.38
2025-07-31 13:26:08,079 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-31 13:26:08,387 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-31 13:26:08,450 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922?flat'}
2025-07-31 13:26:08,450 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922 is found in opserver
2025-07-31 13:26:08,464 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 13:26:08,470 - DEBUG - VRF ids for VN ctest-vn-08554922: {}
2025-07-31 13:26:08,470 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 13:26:08,476 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923
2025-07-31 13:26:08,488 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f
2025-07-31 13:26:08,567 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5
2025-07-31 13:26:08,579 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5
2025-07-31 13:26:08,591 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae
2025-07-31 13:26:08,599 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae
2025-07-31 13:26:08,608 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bdff9979-c12f-4dc2-ad90-674cb1feaa2d
2025-07-31 13:26:08,615 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 13:26:08,616 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5
2025-07-31 13:26:08,624 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae
2025-07-31 13:26:08,639 - INFO - Verified VN network id 13 for VN 47777a23-4da4-463b-a967-45aac985ccc5
2025-07-31 13:26:08,640 - INFO - Verifications in API Server for VN ctest-vn-27228151 passed
2025-07-31 13:26:08,640 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5
2025-07-31 13:26:08,652 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae
2025-07-31 13:26:08,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae
2025-07-31 13:26:08,672 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bdff9979-c12f-4dc2-ad90-674cb1feaa2d
2025-07-31 13:26:08,686 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77013332', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5149718990966507067', 'uuid-lslong': '12206801914838764741'}, 'enable': 'true', 'created': '2025-07-31T13:26:06', 'last-modified': '2025-07-31T13:26:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.427829'}
2025-07-31 13:26:08,693 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 13:26:08,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27228151 passed
2025-07-31 13:26:08,693 - DEBUG - ====Verifying policy data for ctest-vn-27228151 in API_Server ======
2025-07-31 13:26:08,693 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 13:26:08,700 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923
2025-07-31 13:26:08,713 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f
2025-07-31 13:26:08,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5
2025-07-31 13:26:08,799 - DEBUG - ==>Verifying data for policy with id: d6b8a7b3-1918-410c-b372-f00ad9202329, fqn: ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-policy-allow-all-48228766']
2025-07-31 13:26:08,799 - INFO - VN ctest-vn-27228151 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 13:26:08,799 - DEBUG - Verifying the vn in opserver
2025-07-31 13:26:08,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151 virtual network link through opserver 10.0.0.38
2025-07-31 13:26:08,799 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-31 13:26:08,809 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151?flat'}
2025-07-31 13:26:08,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151 is found in opserver
2025-07-31 13:26:08,820 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 13:26:08,827 - DEBUG - VRF ids for VN ctest-vn-27228151: {}
2025-07-31 13:26:08,899 - DEBUG - Services list from nova: [