2025-10-30 10:11:38,547 - INFO - Domain Default found not creating
2025-10-30 10:11:38,705 - INFO - Project ctest-TestBasicPolicy-99318388 not found, creating it
2025-10-30 10:11:39,395 - INFO - Created Project:ctest-TestBasicPolicy-99318388, ID : c3716986-76e7-4560-96fa-9a74490cfdda
2025-10-30 10:11:40,801 - INFO - ================================================================================
2025-10-30 10:11:40,801 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 10:11:40,801 - 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-10-30 10:11:41,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.241': '0'}} with
2025-10-30 10:11:41,057 - INFO - Initial checks done. Running the testcase now
2025-10-30 10:11:41,057 - INFO -
2025-10-30 10:11:41,588 - DEBUG - Response for create_network : {'network': {'id': 'ed22a438-1993-42fe-9341-4f38ad0b96b7', 'name': 'ctest-vn-53919076', 'tenant_id': 'c371698676e7456096fa9a74490cfdda', 'project_id': 'c371698676e7456096fa9a74490cfdda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99318388', 'ctest-vn-53919076'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 10:11:41,776 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cd5c177-777c-4ebb-9702-d8dbdf6a09a3', 'name': '', 'tenant_id': 'c371698676e7456096fa9a74490cfdda', 'network_id': 'ed22a438-1993-42fe-9341-4f38ad0b96b7', 'ip_version': 4, 'cidr': '128.93.160.64/26', 'allocation_pools': [{'start': '128.93.160.66', 'end': '128.93.160.126'}], 'gateway_ip': '128.93.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.93.160.66', 'tags': [], 'project_id': 'c371698676e7456096fa9a74490cfdda'}}
2025-10-30 10:11:41,792 - INFO - Created VN ctest-vn-53919076
2025-10-30 10:11:41,843 - DEBUG - VN ctest-vn-53919076 UUID is ed22a438-1993-42fe-9341-4f38ad0b96b7
2025-10-30 10:11:42,157 - DEBUG - Response for create_network : {'network': {'id': 'f063fa9b-680a-4e94-ba84-f2890c88e2e9', 'name': 'ctest-vn-93370799', 'tenant_id': 'c371698676e7456096fa9a74490cfdda', 'project_id': 'c371698676e7456096fa9a74490cfdda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99318388', 'ctest-vn-93370799'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 10:11:42,296 - DEBUG - Response for create_subnet : {'subnet': {'id': '42f5928b-e314-4d09-8474-e552c6cd36d1', 'name': '', 'tenant_id': 'c371698676e7456096fa9a74490cfdda', 'network_id': 'f063fa9b-680a-4e94-ba84-f2890c88e2e9', 'ip_version': 4, 'cidr': '185.20.79.0/26', 'allocation_pools': [{'start': '185.20.79.2', 'end': '185.20.79.62'}], 'gateway_ip': '185.20.79.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.20.79.2', 'tags': [], 'project_id': 'c371698676e7456096fa9a74490cfdda'}}
2025-10-30 10:11:42,311 - INFO - Created VN ctest-vn-93370799
2025-10-30 10:11:42,363 - DEBUG - VN ctest-vn-93370799 UUID is f063fa9b-680a-4e94-ba84-f2890c88e2e9
2025-10-30 10:11:42,515 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-53919076, 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-99318388:ctest-vn-93370799, 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-10-30 10:11:42,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed22a438-1993-42fe-9341-4f38ad0b96b7', 'name': 'ctest-vn-53919076', 'tenant_id': 'c371698676e7456096fa9a74490cfdda', 'project_id': 'c371698676e7456096fa9a74490cfdda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5cd5c177-777c-4ebb-9702-d8dbdf6a09a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99318388', 'ctest-vn-53919076'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99318388', 'ctest-policy-allow-all-11807380']], 'subnet_ipam': [{'subnet_cidr': '128.93.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 10:11:43,018 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f063fa9b-680a-4e94-ba84-f2890c88e2e9', 'name': 'ctest-vn-93370799', 'tenant_id': 'c371698676e7456096fa9a74490cfdda', 'project_id': 'c371698676e7456096fa9a74490cfdda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42f5928b-e314-4d09-8474-e552c6cd36d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99318388', 'ctest-vn-93370799'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99318388', 'ctest-policy-allow-all-11807380']], 'subnet_ipam': [{'subnet_cidr': '185.20.79.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 10:11:43,183 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-30 10:11:43,473 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-30 10:11:43,511 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7d4d0124-f8d2-4fc0-bcd2-3eca357d77bc
2025-10-30 10:11:43,521 - DEBUG - Requesting: http://10.0.0.73:8082/project/c3716986-76e7-4560-96fa-9a74490cfdda
2025-10-30 10:11:43,595 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ed22a438-1993-42fe-9341-4f38ad0b96b7
2025-10-30 10:11:43,606 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ed22a438-1993-42fe-9341-4f38ad0b96b7
2025-10-30 10:11:43,615 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7aed9fc3-fe14-4008-aa98-837aea3c88ec
2025-10-30 10:11:43,621 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7aed9fc3-fe14-4008-aa98-837aea3c88ec
2025-10-30 10:11:43,627 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/07fa9a0e-ab79-4f7b-81fd-030dcce34eb7
2025-10-30 10:11:43,641 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 10:11:43,641 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ed22a438-1993-42fe-9341-4f38ad0b96b7
2025-10-30 10:11:43,650 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7aed9fc3-fe14-4008-aa98-837aea3c88ec
2025-10-30 10:11:43,665 - INFO - Verified VN network id 9 for VN ed22a438-1993-42fe-9341-4f38ad0b96b7
2025-10-30 10:11:43,665 - INFO - Verifications in API Server for VN ctest-vn-53919076 passed
2025-10-30 10:11:43,665 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ed22a438-1993-42fe-9341-4f38ad0b96b7
2025-10-30 10:11:43,673 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7aed9fc3-fe14-4008-aa98-837aea3c88ec
2025-10-30 10:11:43,679 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7aed9fc3-fe14-4008-aa98-837aea3c88ec
2025-10-30 10:11:43,685 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/07fa9a0e-ab79-4f7b-81fd-030dcce34eb7
2025-10-30 10:11:43,696 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-53919076', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99318388', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17087400497051288318', 'uuid-lslong': '10610849301901579959'}, 'enable': 'true', 'created': '2025-10-30T10:11:41', 'last-modified': '2025-10-30T10:11:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914598'}
2025-10-30 10:11:43,701 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 10:11:43,701 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53919076 passed
2025-10-30 10:11:43,702 - DEBUG - ====Verifying policy data for ctest-vn-53919076 in API_Server ======
2025-10-30 10:11:43,702 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-30 10:11:43,706 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7d4d0124-f8d2-4fc0-bcd2-3eca357d77bc
2025-10-30 10:11:43,716 - DEBUG - Requesting: http://10.0.0.73:8082/project/c3716986-76e7-4560-96fa-9a74490cfdda
2025-10-30 10:11:43,784 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ed22a438-1993-42fe-9341-4f38ad0b96b7
2025-10-30 10:11:43,792 - DEBUG - ==>Verifying data for policy with id: 163ff259-8fad-43c0-adfc-df1c843535ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-99318388', 'ctest-policy-allow-all-11807380']
2025-10-30 10:11:43,792 - INFO - VN ctest-vn-53919076 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 10:11:43,793 - DEBUG - Verifying the vn in opserver
2025-10-30 10:11:43,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-53919076 virtual network link through opserver 10.0.0.73
2025-10-30 10:11:43,793 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-30 10:11:44,080 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-30 10:11:44,131 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-53919076', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-53919076?flat'}
2025-10-30 10:11:44,131 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-53919076 is found in opserver
2025-10-30 10:11:44,139 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 10:11:44,144 - DEBUG - VRF ids for VN ctest-vn-53919076: {}
2025-10-30 10:11:44,144 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-30 10:11:44,149 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7d4d0124-f8d2-4fc0-bcd2-3eca357d77bc
2025-10-30 10:11:44,158 - DEBUG - Requesting: http://10.0.0.73:8082/project/c3716986-76e7-4560-96fa-9a74490cfdda
2025-10-30 10:11:44,230 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f063fa9b-680a-4e94-ba84-f2890c88e2e9
2025-10-30 10:11:44,241 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f063fa9b-680a-4e94-ba84-f2890c88e2e9
2025-10-30 10:11:44,249 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0637e2a3-538f-4a78-82b2-405c1e828174
2025-10-30 10:11:44,255 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0637e2a3-538f-4a78-82b2-405c1e828174
2025-10-30 10:11:44,261 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/aeae30d7-62b5-44ac-a9e9-cb0139151baf
2025-10-30 10:11:44,267 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 10:11:44,267 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f063fa9b-680a-4e94-ba84-f2890c88e2e9
2025-10-30 10:11:44,275 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0637e2a3-538f-4a78-82b2-405c1e828174
2025-10-30 10:11:44,289 - INFO - Verified VN network id 10 for VN f063fa9b-680a-4e94-ba84-f2890c88e2e9
2025-10-30 10:11:44,289 - INFO - Verifications in API Server for VN ctest-vn-93370799 passed
2025-10-30 10:11:44,289 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f063fa9b-680a-4e94-ba84-f2890c88e2e9
2025-10-30 10:11:44,297 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0637e2a3-538f-4a78-82b2-405c1e828174
2025-10-30 10:11:44,303 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0637e2a3-538f-4a78-82b2-405c1e828174
2025-10-30 10:11:44,309 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/aeae30d7-62b5-44ac-a9e9-cb0139151baf
2025-10-30 10:11:44,320 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-93370799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99318388', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17321964137169440404', 'uuid-lslong': '13440133858415141609'}, 'enable': 'true', 'created': '2025-10-30T10:11:42', 'last-modified': '2025-10-30T10:11:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320077'}
2025-10-30 10:11:44,325 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 10:11:44,325 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93370799 passed
2025-10-30 10:11:44,325 - DEBUG - ====Verifying policy data for ctest-vn-93370799 in API_Server ======
2025-10-30 10:11:44,325 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-30 10:11:44,330 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7d4d0124-f8d2-4fc0-bcd2-3eca357d77bc
2025-10-30 10:11:44,339 - DEBUG - Requesting: http://10.0.0.73:8082/project/c3716986-76e7-4560-96fa-9a74490cfdda
2025-10-30 10:11:44,409 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f063fa9b-680a-4e94-ba84-f2890c88e2e9
2025-10-30 10:11:44,417 - DEBUG - ==>Verifying data for policy with id: 163ff259-8fad-43c0-adfc-df1c843535ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-99318388', 'ctest-policy-allow-all-11807380']
2025-10-30 10:11:44,417 - INFO - VN ctest-vn-93370799 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 10:11:44,417 - DEBUG - Verifying the vn in opserver
2025-10-30 10:11:44,417 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-93370799 virtual network link through opserver 10.0.0.73
2025-10-30 10:11:44,417 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-30 10:11:44,426 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-93370799', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-93370799?flat'}
2025-10-30 10:11:44,426 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99318388:ctest-vn-93370799 is found in opserver
2025-10-30 10:11:44,435 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 10:11:44,439 - DEBUG - VRF ids for VN ctest-vn-93370799: {}
2025-10-30 10:11:44,490 - DEBUG - Services list from nova: [