2025-07-18 20:52:11,289 - INFO - Domain Default found not creating
2025-07-18 20:52:11,433 - INFO - Project ctest-TestBasicPolicy-50245825 not found, creating it
2025-07-18 20:52:11,897 - INFO - Created Project:ctest-TestBasicPolicy-50245825, ID : bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d
2025-07-18 20:52:13,344 - INFO - ================================================================================
2025-07-18 20:52:13,344 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-18 20:52:13,344 - 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-18 20:52:13,598 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with
2025-07-18 20:52:13,598 - INFO - Initial checks done. Running the testcase now
2025-07-18 20:52:13,598 - INFO -
2025-07-18 20:52:14,146 - DEBUG - Response for create_network : {'network': {'id': '7f98cb12-279e-4254-abb2-374077009ddb', 'name': 'ctest-vn-23048273', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-vn-23048273'], 'port_security_enabled': True, 'description': ''}}
2025-07-18 20:52:14,375 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cea333ea-5a28-46bc-ad1b-634f60f56ad2', 'name': '', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'network_id': '7f98cb12-279e-4254-abb2-374077009ddb', 'ip_version': 4, 'cidr': '151.223.39.192/26', 'allocation_pools': [{'start': '151.223.39.194', 'end': '151.223.39.254'}], 'gateway_ip': '151.223.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.223.39.194', 'tags': [], 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d'}}
2025-07-18 20:52:14,396 - INFO - Created VN ctest-vn-23048273
2025-07-18 20:52:14,447 - DEBUG - VN ctest-vn-23048273 UUID is 7f98cb12-279e-4254-abb2-374077009ddb
2025-07-18 20:52:14,750 - DEBUG - Response for create_network : {'network': {'id': 'f23720f7-7a69-4d31-95f0-829ffeaae349', 'name': 'ctest-vn-83092861', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-vn-83092861'], 'port_security_enabled': True, 'description': ''}}
2025-07-18 20:52:14,920 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c05173da-a5be-4860-8549-25939d5a22ea', 'name': '', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'network_id': 'f23720f7-7a69-4d31-95f0-829ffeaae349', 'ip_version': 4, 'cidr': '134.99.80.64/26', 'allocation_pools': [{'start': '134.99.80.66', 'end': '134.99.80.126'}], 'gateway_ip': '134.99.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.99.80.66', 'tags': [], 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d'}}
2025-07-18 20:52:14,938 - INFO - Created VN ctest-vn-83092861
2025-07-18 20:52:14,995 - DEBUG - VN ctest-vn-83092861 UUID is f23720f7-7a69-4d31-95f0-829ffeaae349
2025-07-18 20:52:15,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273, 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-50245825:ctest-vn-83092861, 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-18 20:52:15,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f98cb12-279e-4254-abb2-374077009ddb', 'name': 'ctest-vn-23048273', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cea333ea-5a28-46bc-ad1b-634f60f56ad2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-vn-23048273'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-policy-allow-all-49284980']], 'subnet_ipam': [{'subnet_cidr': '151.223.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-18 20:52:15,654 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f23720f7-7a69-4d31-95f0-829ffeaae349', 'name': 'ctest-vn-83092861', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c05173da-a5be-4860-8549-25939d5a22ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-vn-83092861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-policy-allow-all-49284980']], 'subnet_ipam': [{'subnet_cidr': '134.99.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-18 20:52:15,819 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-18 20:52:16,118 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-18 20:52:16,145 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339
2025-07-18 20:52:16,158 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d
2025-07-18 20:52:16,229 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb
2025-07-18 20:52:16,241 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb
2025-07-18 20:52:16,251 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd
2025-07-18 20:52:16,258 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd
2025-07-18 20:52:16,265 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/ca0b7a88-da9d-437c-9253-f01f6682ba1f
2025-07-18 20:52:16,273 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-18 20:52:16,273 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb
2025-07-18 20:52:16,282 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd
2025-07-18 20:52:16,299 - INFO - Verified VN network id 8 for VN 7f98cb12-279e-4254-abb2-374077009ddb
2025-07-18 20:52:16,299 - INFO - Verifications in API Server for VN ctest-vn-23048273 passed
2025-07-18 20:52:16,299 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb
2025-07-18 20:52:16,311 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd
2025-07-18 20:52:16,318 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd
2025-07-18 20:52:16,326 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/ca0b7a88-da9d-437c-9253-f01f6682ba1f
2025-07-18 20:52:16,339 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50245825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9194321918111400532', 'uuid-lslong': '12372011876354137563'}, 'enable': 'true', 'created': '2025-07-18T20:52:14', 'last-modified': '2025-07-18T20:52:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939921'}
2025-07-18 20:52:16,346 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-18 20:52:16,346 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23048273 passed
2025-07-18 20:52:16,347 - DEBUG - ====Verifying policy data for ctest-vn-23048273 in API_Server ======
2025-07-18 20:52:16,347 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-18 20:52:16,352 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339
2025-07-18 20:52:16,365 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d
2025-07-18 20:52:16,438 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb
2025-07-18 20:52:16,450 - DEBUG - ==>Verifying data for policy with id: b7822a11-18fb-4a98-ade3-e6066217c85a, fqn: ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-policy-allow-all-49284980']
2025-07-18 20:52:16,450 - INFO - VN ctest-vn-23048273 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-18 20:52:16,450 - DEBUG - Verifying the vn in opserver
2025-07-18 20:52:16,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273 virtual network link through opserver 10.0.0.129
2025-07-18 20:52:16,450 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-07-18 20:52:16,748 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-07-18 20:52:16,801 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273?flat'}
2025-07-18 20:52:16,801 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273 is found in opserver
2025-07-18 20:52:16,813 - DEBUG - Do not have enough data to verify VN in agent
2025-07-18 20:52:16,820 - DEBUG - VRF ids for VN ctest-vn-23048273: {}
2025-07-18 20:52:16,820 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-18 20:52:16,826 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339
2025-07-18 20:52:16,838 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d
2025-07-18 20:52:16,910 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349
2025-07-18 20:52:16,923 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349
2025-07-18 20:52:16,933 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66
2025-07-18 20:52:16,940 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66
2025-07-18 20:52:16,947 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/9fece178-4f83-43d1-9594-4afdbab6a8a0
2025-07-18 20:52:16,954 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-18 20:52:16,954 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349
2025-07-18 20:52:16,965 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66
2025-07-18 20:52:16,979 - INFO - Verified VN network id 9 for VN f23720f7-7a69-4d31-95f0-829ffeaae349
2025-07-18 20:52:16,979 - INFO - Verifications in API Server for VN ctest-vn-83092861 passed
2025-07-18 20:52:16,979 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349
2025-07-18 20:52:16,990 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66
2025-07-18 20:52:16,998 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66
2025-07-18 20:52:17,006 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/9fece178-4f83-43d1-9594-4afdbab6a8a0
2025-07-18 20:52:17,019 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50245825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17453455128180378929', 'uuid-lslong': '10804279129745843017'}, 'enable': 'true', 'created': '2025-07-18T20:52:14', 'last-modified': '2025-07-18T20:52:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.387968'}
2025-07-18 20:52:17,025 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-18 20:52:17,026 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83092861 passed
2025-07-18 20:52:17,026 - DEBUG - ====Verifying policy data for ctest-vn-83092861 in API_Server ======
2025-07-18 20:52:17,026 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-07-18 20:52:17,032 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339
2025-07-18 20:52:17,044 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d
2025-07-18 20:52:17,118 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349
2025-07-18 20:52:17,128 - DEBUG - ==>Verifying data for policy with id: b7822a11-18fb-4a98-ade3-e6066217c85a, fqn: ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-policy-allow-all-49284980']
2025-07-18 20:52:17,128 - INFO - VN ctest-vn-83092861 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-18 20:52:17,128 - DEBUG - Verifying the vn in opserver
2025-07-18 20:52:17,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861 virtual network link through opserver 10.0.0.129
2025-07-18 20:52:17,128 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-07-18 20:52:17,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861?flat'}
2025-07-18 20:52:17,139 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861 is found in opserver
2025-07-18 20:52:17,150 - DEBUG - Do not have enough data to verify VN in agent
2025-07-18 20:52:17,156 - DEBUG - VRF ids for VN ctest-vn-83092861: {}
2025-07-18 20:52:17,213 - DEBUG - Services list from nova: [