2025-09-16 12:22:53,133 - INFO - Domain Default found not creating
2025-09-16 12:22:53,328 - INFO - Project ctest-TestBasicPolicy-99394955 not found, creating it
2025-09-16 12:22:53,773 - INFO - Created Project:ctest-TestBasicPolicy-99394955, ID : f5355742-6918-4ece-8b87-96d9a63b5428
2025-09-16 12:22:55,233 - INFO - ================================================================================
2025-09-16 12:22:55,233 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-16 12:22:55,233 - 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-16 12:22:55,491 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-16 12:22:55,491 - INFO - Initial checks done. Running the testcase now
2025-09-16 12:22:55,491 - INFO -
2025-09-16 12:22:56,069 - DEBUG - Response for create_network : {'network': {'id': '0e4e98e3-6748-449f-be73-ea3de4a0bd3b', 'name': 'ctest-vn-73801470', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'project_id': 'f535574269184ece8b8796d9a63b5428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-vn-73801470'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 12:22:56,249 - DEBUG - Response for create_subnet : {'subnet': {'id': '20d2bffa-1dcf-4414-89a1-347fc702eaa7', 'name': '', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'network_id': '0e4e98e3-6748-449f-be73-ea3de4a0bd3b', 'ip_version': 4, 'cidr': '106.126.190.192/26', 'allocation_pools': [{'start': '106.126.190.194', 'end': '106.126.190.254'}], 'gateway_ip': '106.126.190.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.126.190.194', 'tags': [], 'project_id': 'f535574269184ece8b8796d9a63b5428'}}
2025-09-16 12:22:56,266 - INFO - Created VN ctest-vn-73801470
2025-09-16 12:22:56,319 - DEBUG - VN ctest-vn-73801470 UUID is 0e4e98e3-6748-449f-be73-ea3de4a0bd3b
2025-09-16 12:22:56,618 - DEBUG - Response for create_network : {'network': {'id': 'ac3c5a96-660d-41e9-8cd7-9823bf4d1d16', 'name': 'ctest-vn-56237683', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'project_id': 'f535574269184ece8b8796d9a63b5428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-vn-56237683'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 12:22:56,844 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6d645fd-0f09-4156-bbdb-02473aa871a6', 'name': '', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'network_id': 'ac3c5a96-660d-41e9-8cd7-9823bf4d1d16', 'ip_version': 4, 'cidr': '66.98.96.0/26', 'allocation_pools': [{'start': '66.98.96.2', 'end': '66.98.96.62'}], 'gateway_ip': '66.98.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.98.96.2', 'tags': [], 'project_id': 'f535574269184ece8b8796d9a63b5428'}}
2025-09-16 12:22:56,862 - INFO - Created VN ctest-vn-56237683
2025-09-16 12:22:56,915 - DEBUG - VN ctest-vn-56237683 UUID is ac3c5a96-660d-41e9-8cd7-9823bf4d1d16
2025-09-16 12:22:57,071 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470, 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-99394955:ctest-vn-56237683, 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-16 12:22:57,366 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e4e98e3-6748-449f-be73-ea3de4a0bd3b', 'name': 'ctest-vn-73801470', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'project_id': 'f535574269184ece8b8796d9a63b5428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20d2bffa-1dcf-4414-89a1-347fc702eaa7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-vn-73801470'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-policy-allow-all-56636006']], 'subnet_ipam': [{'subnet_cidr': '106.126.190.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 12:22:57,582 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac3c5a96-660d-41e9-8cd7-9823bf4d1d16', 'name': 'ctest-vn-56237683', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'project_id': 'f535574269184ece8b8796d9a63b5428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6d645fd-0f09-4156-bbdb-02473aa871a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-vn-56237683'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-policy-allow-all-56636006']], 'subnet_ipam': [{'subnet_cidr': '66.98.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 12:22:57,751 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 12:22:58,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 12:22:58,077 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2
2025-09-16 12:22:58,090 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428
2025-09-16 12:22:58,163 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b
2025-09-16 12:22:58,174 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b
2025-09-16 12:22:58,183 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46
2025-09-16 12:22:58,190 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46
2025-09-16 12:22:58,196 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/343924c7-0e53-4fac-815c-2f9b402b5ca4
2025-09-16 12:22:58,203 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 12:22:58,203 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b
2025-09-16 12:22:58,213 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46
2025-09-16 12:22:58,226 - INFO - Verified VN network id 11 for VN 0e4e98e3-6748-449f-be73-ea3de4a0bd3b
2025-09-16 12:22:58,226 - INFO - Verifications in API Server for VN ctest-vn-73801470 passed
2025-09-16 12:22:58,226 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b
2025-09-16 12:22:58,235 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46
2025-09-16 12:22:58,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46
2025-09-16 12:22:58,248 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/343924c7-0e53-4fac-815c-2f9b402b5ca4
2025-09-16 12:22:58,258 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99394955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1030929467172209823', 'uuid-lslong': '13723570041077677371'}, 'enable': 'true', 'created': '2025-09-16T12:22:56', 'last-modified': '2025-09-16T12:22:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920532'}
2025-09-16 12:22:58,265 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 12:22:58,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73801470 passed
2025-09-16 12:22:58,265 - DEBUG - ====Verifying policy data for ctest-vn-73801470 in API_Server ======
2025-09-16 12:22:58,265 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 12:22:58,270 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2
2025-09-16 12:22:58,280 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428
2025-09-16 12:22:58,349 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b
2025-09-16 12:22:58,358 - DEBUG - ==>Verifying data for policy with id: 14c88328-5907-445e-a250-a31fbe8d97b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-policy-allow-all-56636006']
2025-09-16 12:22:58,358 - INFO - VN ctest-vn-73801470 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 12:22:58,358 - DEBUG - Verifying the vn in opserver
2025-09-16 12:22:58,358 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470 virtual network link through opserver 10.0.0.38
2025-09-16 12:22:58,358 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-16 12:22:58,661 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-16 12:22:58,719 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470?flat'}
2025-09-16 12:22:58,719 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470 is found in opserver
2025-09-16 12:22:58,729 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 12:22:58,734 - DEBUG - VRF ids for VN ctest-vn-73801470: {}
2025-09-16 12:22:58,734 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 12:22:58,740 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2
2025-09-16 12:22:58,750 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428
2025-09-16 12:22:58,817 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16
2025-09-16 12:22:58,828 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16
2025-09-16 12:22:58,836 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272
2025-09-16 12:22:58,843 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272
2025-09-16 12:22:58,850 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5ecfe51-5b22-42e1-a3dd-3ff14bbf0155
2025-09-16 12:22:58,855 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 12:22:58,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16
2025-09-16 12:22:58,864 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272
2025-09-16 12:22:58,877 - INFO - Verified VN network id 12 for VN ac3c5a96-660d-41e9-8cd7-9823bf4d1d16
2025-09-16 12:22:58,877 - INFO - Verifications in API Server for VN ctest-vn-56237683 passed
2025-09-16 12:22:58,877 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16
2025-09-16 12:22:58,886 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272
2025-09-16 12:22:58,893 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272
2025-09-16 12:22:58,901 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5ecfe51-5b22-42e1-a3dd-3ff14bbf0155
2025-09-16 12:22:58,912 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99394955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12410894275129983465', 'uuid-lslong': '10148747564603481366'}, 'enable': 'true', 'created': '2025-09-16T12:22:56', 'last-modified': '2025-09-16T12:22:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351313'}
2025-09-16 12:22:58,919 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 12:22:58,919 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56237683 passed
2025-09-16 12:22:58,919 - DEBUG - ====Verifying policy data for ctest-vn-56237683 in API_Server ======
2025-09-16 12:22:58,919 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 12:22:58,924 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2
2025-09-16 12:22:58,934 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428
2025-09-16 12:22:59,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16
2025-09-16 12:22:59,010 - DEBUG - ==>Verifying data for policy with id: 14c88328-5907-445e-a250-a31fbe8d97b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-policy-allow-all-56636006']
2025-09-16 12:22:59,010 - INFO - VN ctest-vn-56237683 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 12:22:59,011 - DEBUG - Verifying the vn in opserver
2025-09-16 12:22:59,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683 virtual network link through opserver 10.0.0.38
2025-09-16 12:22:59,011 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-16 12:22:59,020 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683?flat'}
2025-09-16 12:22:59,020 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683 is found in opserver
2025-09-16 12:22:59,030 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 12:22:59,034 - DEBUG - VRF ids for VN ctest-vn-56237683: {}
2025-09-16 12:22:59,091 - DEBUG - Services list from nova: [