2025-09-18 12:43:39,875 - INFO - Domain Default found not creating
2025-09-18 12:43:40,008 - INFO - Project ctest-TestBasicPolicy-63878238 not found, creating it
2025-09-18 12:43:40,449 - INFO - Created Project:ctest-TestBasicPolicy-63878238, ID : 0f05b4ce-aeee-45b5-9b08-183df2b1a5d1
2025-09-18 12:43:41,900 - INFO - ================================================================================
2025-09-18 12:43:41,900 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-18 12:43:41,900 - 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-18 12:43:42,175 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with
2025-09-18 12:43:42,175 - INFO - Initial checks done. Running the testcase now
2025-09-18 12:43:42,175 - INFO -
2025-09-18 12:43:42,737 - DEBUG - Response for create_network : {'network': {'id': '9c9e01cd-5c08-4b5c-b344-d2317ab549de', 'name': 'ctest-vn-33686157', 'tenant_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'project_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63878238', 'ctest-vn-33686157'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 12:43:42,881 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad790bef-14e7-4515-b96f-08cbf308acc8', 'name': '', 'tenant_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'network_id': '9c9e01cd-5c08-4b5c-b344-d2317ab549de', 'ip_version': 4, 'cidr': '57.147.13.192/26', 'allocation_pools': [{'start': '57.147.13.194', 'end': '57.147.13.254'}], 'gateway_ip': '57.147.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.147.13.194', 'tags': [], 'project_id': '0f05b4ceaeee45b59b08183df2b1a5d1'}}
2025-09-18 12:43:42,898 - INFO - Created VN ctest-vn-33686157
2025-09-18 12:43:42,951 - DEBUG - VN ctest-vn-33686157 UUID is 9c9e01cd-5c08-4b5c-b344-d2317ab549de
2025-09-18 12:43:43,263 - DEBUG - Response for create_network : {'network': {'id': '24ed88d0-f2ed-44ec-bfdc-913273f56ba2', 'name': 'ctest-vn-26442273', 'tenant_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'project_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63878238', 'ctest-vn-26442273'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 12:43:43,426 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1dbb429-16e4-4637-b3e7-44a6730eb99c', 'name': '', 'tenant_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'network_id': '24ed88d0-f2ed-44ec-bfdc-913273f56ba2', 'ip_version': 4, 'cidr': '141.252.235.64/26', 'allocation_pools': [{'start': '141.252.235.66', 'end': '141.252.235.126'}], 'gateway_ip': '141.252.235.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.252.235.66', 'tags': [], 'project_id': '0f05b4ceaeee45b59b08183df2b1a5d1'}}
2025-09-18 12:43:43,444 - INFO - Created VN ctest-vn-26442273
2025-09-18 12:43:43,495 - DEBUG - VN ctest-vn-26442273 UUID is 24ed88d0-f2ed-44ec-bfdc-913273f56ba2
2025-09-18 12:43:43,643 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-33686157, 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-63878238:ctest-vn-26442273, 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-18 12:43:43,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c9e01cd-5c08-4b5c-b344-d2317ab549de', 'name': 'ctest-vn-33686157', 'tenant_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'project_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad790bef-14e7-4515-b96f-08cbf308acc8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63878238', 'ctest-vn-33686157'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63878238', 'ctest-policy-allow-all-31066383']], 'subnet_ipam': [{'subnet_cidr': '57.147.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 12:43:44,147 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24ed88d0-f2ed-44ec-bfdc-913273f56ba2', 'name': 'ctest-vn-26442273', 'tenant_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'project_id': '0f05b4ceaeee45b59b08183df2b1a5d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1dbb429-16e4-4637-b3e7-44a6730eb99c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63878238', 'ctest-vn-26442273'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63878238', 'ctest-policy-allow-all-31066383']], 'subnet_ipam': [{'subnet_cidr': '141.252.235.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 12:43:44,307 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-18 12:43:44,601 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-18 12:43:44,632 - DEBUG - Requesting: http://10.0.0.48:8082/domain/aa830de6-4095-446f-b6e8-528ce44cca24
2025-09-18 12:43:44,643 - DEBUG - Requesting: http://10.0.0.48:8082/project/0f05b4ce-aeee-45b5-9b08-183df2b1a5d1
2025-09-18 12:43:44,719 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9c9e01cd-5c08-4b5c-b344-d2317ab549de
2025-09-18 12:43:44,729 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9c9e01cd-5c08-4b5c-b344-d2317ab549de
2025-09-18 12:43:44,736 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0355c58d-8cf3-4b23-a921-04c4f5f8a851
2025-09-18 12:43:44,742 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0355c58d-8cf3-4b23-a921-04c4f5f8a851
2025-09-18 12:43:44,748 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/5af77243-3128-4960-af6f-56aceb5ac76f
2025-09-18 12:43:44,753 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 12:43:44,753 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9c9e01cd-5c08-4b5c-b344-d2317ab549de
2025-09-18 12:43:44,760 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0355c58d-8cf3-4b23-a921-04c4f5f8a851
2025-09-18 12:43:44,773 - INFO - Verified VN network id 11 for VN 9c9e01cd-5c08-4b5c-b344-d2317ab549de
2025-09-18 12:43:44,774 - INFO - Verifications in API Server for VN ctest-vn-33686157 passed
2025-09-18 12:43:44,774 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9c9e01cd-5c08-4b5c-b344-d2317ab549de
2025-09-18 12:43:44,783 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0355c58d-8cf3-4b23-a921-04c4f5f8a851
2025-09-18 12:43:44,789 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0355c58d-8cf3-4b23-a921-04c4f5f8a851
2025-09-18 12:43:44,796 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/5af77243-3128-4960-af6f-56aceb5ac76f
2025-09-18 12:43:44,807 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-33686157', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63878238', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11285459697761012572', 'uuid-lslong': '12917680741159356894'}, 'enable': 'true', 'created': '2025-09-18T12:43:42', 'last-modified': '2025-09-18T12:43:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904586'}
2025-09-18 12:43:44,812 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 12:43:44,813 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33686157 passed
2025-09-18 12:43:44,813 - DEBUG - ====Verifying policy data for ctest-vn-33686157 in API_Server ======
2025-09-18 12:43:44,813 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-18 12:43:44,817 - DEBUG - Requesting: http://10.0.0.48:8082/domain/aa830de6-4095-446f-b6e8-528ce44cca24
2025-09-18 12:43:44,827 - DEBUG - Requesting: http://10.0.0.48:8082/project/0f05b4ce-aeee-45b5-9b08-183df2b1a5d1
2025-09-18 12:43:44,900 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9c9e01cd-5c08-4b5c-b344-d2317ab549de
2025-09-18 12:43:44,909 - DEBUG - ==>Verifying data for policy with id: 7cebf4f4-d3fb-4d1e-a898-163e6275d6cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-63878238', 'ctest-policy-allow-all-31066383']
2025-09-18 12:43:44,909 - INFO - VN ctest-vn-33686157 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 12:43:44,909 - DEBUG - Verifying the vn in opserver
2025-09-18 12:43:44,909 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-33686157 virtual network link through opserver 10.0.0.48
2025-09-18 12:43:44,909 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-18 12:43:45,215 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-18 12:43:45,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-33686157', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-33686157?flat'}
2025-09-18 12:43:45,268 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-33686157 is found in opserver
2025-09-18 12:43:45,276 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 12:43:45,280 - DEBUG - VRF ids for VN ctest-vn-33686157: {}
2025-09-18 12:43:45,280 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-18 12:43:45,285 - DEBUG - Requesting: http://10.0.0.48:8082/domain/aa830de6-4095-446f-b6e8-528ce44cca24
2025-09-18 12:43:45,294 - DEBUG - Requesting: http://10.0.0.48:8082/project/0f05b4ce-aeee-45b5-9b08-183df2b1a5d1
2025-09-18 12:43:45,362 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/24ed88d0-f2ed-44ec-bfdc-913273f56ba2
2025-09-18 12:43:45,371 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/24ed88d0-f2ed-44ec-bfdc-913273f56ba2
2025-09-18 12:43:45,379 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ff3feab-fc12-46b9-8a7f-e2f1a38df8c7
2025-09-18 12:43:45,385 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ff3feab-fc12-46b9-8a7f-e2f1a38df8c7
2025-09-18 12:43:45,391 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/1d2be812-3b7e-411d-a5bb-71f354c8329b
2025-09-18 12:43:45,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 12:43:45,397 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/24ed88d0-f2ed-44ec-bfdc-913273f56ba2
2025-09-18 12:43:45,404 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ff3feab-fc12-46b9-8a7f-e2f1a38df8c7
2025-09-18 12:43:45,416 - INFO - Verified VN network id 12 for VN 24ed88d0-f2ed-44ec-bfdc-913273f56ba2
2025-09-18 12:43:45,416 - INFO - Verifications in API Server for VN ctest-vn-26442273 passed
2025-09-18 12:43:45,416 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/24ed88d0-f2ed-44ec-bfdc-913273f56ba2
2025-09-18 12:43:45,424 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ff3feab-fc12-46b9-8a7f-e2f1a38df8c7
2025-09-18 12:43:45,430 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ff3feab-fc12-46b9-8a7f-e2f1a38df8c7
2025-09-18 12:43:45,435 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/1d2be812-3b7e-411d-a5bb-71f354c8329b
2025-09-18 12:43:45,445 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-26442273', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63878238', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2660933385856042220', 'uuid-lslong': '13825084602000436130'}, 'enable': 'true', 'created': '2025-09-18T12:43:43', 'last-modified': '2025-09-18T12:43:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.321620'}
2025-09-18 12:43:45,450 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 12:43:45,450 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26442273 passed
2025-09-18 12:43:45,450 - DEBUG - ====Verifying policy data for ctest-vn-26442273 in API_Server ======
2025-09-18 12:43:45,450 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-18 12:43:45,455 - DEBUG - Requesting: http://10.0.0.48:8082/domain/aa830de6-4095-446f-b6e8-528ce44cca24
2025-09-18 12:43:45,465 - DEBUG - Requesting: http://10.0.0.48:8082/project/0f05b4ce-aeee-45b5-9b08-183df2b1a5d1
2025-09-18 12:43:45,531 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/24ed88d0-f2ed-44ec-bfdc-913273f56ba2
2025-09-18 12:43:45,539 - DEBUG - ==>Verifying data for policy with id: 7cebf4f4-d3fb-4d1e-a898-163e6275d6cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-63878238', 'ctest-policy-allow-all-31066383']
2025-09-18 12:43:45,539 - INFO - VN ctest-vn-26442273 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 12:43:45,539 - DEBUG - Verifying the vn in opserver
2025-09-18 12:43:45,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-26442273 virtual network link through opserver 10.0.0.48
2025-09-18 12:43:45,539 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-18 12:43:45,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-26442273', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-26442273?flat'}
2025-09-18 12:43:45,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63878238:ctest-vn-26442273 is found in opserver
2025-09-18 12:43:45,555 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 12:43:45,559 - DEBUG - VRF ids for VN ctest-vn-26442273: {}
2025-09-18 12:43:45,609 - DEBUG - Services list from nova: [