2025-09-15 09:16:13,236 - INFO - Domain Default found not creating
2025-09-15 09:16:13,394 - INFO - Project ctest-TestBasicPolicy-83167292 not found, creating it
2025-09-15 09:16:13,826 - INFO - Created Project:ctest-TestBasicPolicy-83167292, ID : 1e1e0d37-a56c-4891-87f8-66292a79755f
2025-09-15 09:16:15,235 - INFO - ================================================================================
2025-09-15 09:16:15,235 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-15 09:16:15,235 - 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-15 09:16:15,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-15 09:16:15,487 - INFO - Initial checks done. Running the testcase now
2025-09-15 09:16:15,487 - INFO -
2025-09-15 09:16:16,016 - DEBUG - Response for create_network : {'network': {'id': '7887b4c3-de1d-409f-bafd-35cb718e407f', 'name': 'ctest-vn-61793033', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'project_id': '1e1e0d37a56c489187f866292a79755f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-vn-61793033'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 09:16:16,162 - DEBUG - Response for create_subnet : {'subnet': {'id': '07b558df-eb03-4268-81e1-feda6ab12751', 'name': '', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'network_id': '7887b4c3-de1d-409f-bafd-35cb718e407f', 'ip_version': 4, 'cidr': '18.248.57.192/26', 'allocation_pools': [{'start': '18.248.57.194', 'end': '18.248.57.254'}], 'gateway_ip': '18.248.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.248.57.194', 'tags': [], 'project_id': '1e1e0d37a56c489187f866292a79755f'}}
2025-09-15 09:16:16,182 - INFO - Created VN ctest-vn-61793033
2025-09-15 09:16:16,234 - DEBUG - VN ctest-vn-61793033 UUID is 7887b4c3-de1d-409f-bafd-35cb718e407f
2025-09-15 09:16:16,516 - DEBUG - Response for create_network : {'network': {'id': '43f05785-7016-47fe-a1a5-e8cfb31dfc19', 'name': 'ctest-vn-63381125', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'project_id': '1e1e0d37a56c489187f866292a79755f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-vn-63381125'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 09:16:16,681 - DEBUG - Response for create_subnet : {'subnet': {'id': '20ce1505-51d5-4c35-a6aa-afd7c2cf8f79', 'name': '', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'network_id': '43f05785-7016-47fe-a1a5-e8cfb31dfc19', 'ip_version': 4, 'cidr': '198.148.8.64/26', 'allocation_pools': [{'start': '198.148.8.66', 'end': '198.148.8.126'}], 'gateway_ip': '198.148.8.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.148.8.66', 'tags': [], 'project_id': '1e1e0d37a56c489187f866292a79755f'}}
2025-09-15 09:16:16,697 - INFO - Created VN ctest-vn-63381125
2025-09-15 09:16:16,750 - DEBUG - VN ctest-vn-63381125 UUID is 43f05785-7016-47fe-a1a5-e8cfb31dfc19
2025-09-15 09:16:16,902 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033, 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-83167292:ctest-vn-63381125, 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-15 09:16:17,190 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7887b4c3-de1d-409f-bafd-35cb718e407f', 'name': 'ctest-vn-61793033', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'project_id': '1e1e0d37a56c489187f866292a79755f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07b558df-eb03-4268-81e1-feda6ab12751'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-vn-61793033'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-policy-allow-all-28659255']], 'subnet_ipam': [{'subnet_cidr': '18.248.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 09:16:17,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43f05785-7016-47fe-a1a5-e8cfb31dfc19', 'name': 'ctest-vn-63381125', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'project_id': '1e1e0d37a56c489187f866292a79755f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20ce1505-51d5-4c35-a6aa-afd7c2cf8f79'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-vn-63381125'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-policy-allow-all-28659255']], 'subnet_ipam': [{'subnet_cidr': '198.148.8.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 09:16:17,547 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 09:16:17,849 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 09:16:17,878 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5
2025-09-15 09:16:17,890 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f
2025-09-15 09:16:17,964 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f
2025-09-15 09:16:17,975 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f
2025-09-15 09:16:17,984 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2
2025-09-15 09:16:17,991 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2
2025-09-15 09:16:17,997 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5f195ab2-179c-4ef6-bd9f-a56d43179634
2025-09-15 09:16:18,002 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 09:16:18,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f
2025-09-15 09:16:18,010 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2
2025-09-15 09:16:18,023 - INFO - Verified VN network id 12 for VN 7887b4c3-de1d-409f-bafd-35cb718e407f
2025-09-15 09:16:18,023 - INFO - Verifications in API Server for VN ctest-vn-61793033 passed
2025-09-15 09:16:18,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f
2025-09-15 09:16:18,031 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2
2025-09-15 09:16:18,038 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2
2025-09-15 09:16:18,045 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5f195ab2-179c-4ef6-bd9f-a56d43179634
2025-09-15 09:16:18,056 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83167292', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8685109159745372319', 'uuid-lslong': '13473984808062173311'}, 'enable': 'true', 'created': '2025-09-15T09:16:15', 'last-modified': '2025-09-15T09:16:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.888114'}
2025-09-15 09:16:18,063 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 09:16:18,063 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61793033 passed
2025-09-15 09:16:18,063 - DEBUG - ====Verifying policy data for ctest-vn-61793033 in API_Server ======
2025-09-15 09:16:18,063 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 09:16:18,069 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5
2025-09-15 09:16:18,079 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f
2025-09-15 09:16:18,147 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f
2025-09-15 09:16:18,157 - DEBUG - ==>Verifying data for policy with id: cc761736-8e2e-45f6-88d6-f2c9bf149155, fqn: ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-policy-allow-all-28659255']
2025-09-15 09:16:18,157 - INFO - VN ctest-vn-61793033 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 09:16:18,157 - DEBUG - Verifying the vn in opserver
2025-09-15 09:16:18,157 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033 virtual network link through opserver 10.0.0.38
2025-09-15 09:16:18,157 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-15 09:16:18,446 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-15 09:16:18,545 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033?flat'}
2025-09-15 09:16:18,545 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033 is found in opserver
2025-09-15 09:16:18,555 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 09:16:18,559 - DEBUG - VRF ids for VN ctest-vn-61793033: {}
2025-09-15 09:16:18,559 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 09:16:18,569 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5
2025-09-15 09:16:18,633 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f
2025-09-15 09:16:18,730 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19
2025-09-15 09:16:18,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19
2025-09-15 09:16:18,755 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84
2025-09-15 09:16:18,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84
2025-09-15 09:16:18,774 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b45a39de-4fd1-4dc1-bce2-0d9467161235
2025-09-15 09:16:18,785 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 09:16:18,785 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19
2025-09-15 09:16:18,799 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84
2025-09-15 09:16:18,818 - INFO - Verified VN network id 13 for VN 43f05785-7016-47fe-a1a5-e8cfb31dfc19
2025-09-15 09:16:18,818 - INFO - Verifications in API Server for VN ctest-vn-63381125 passed
2025-09-15 09:16:18,818 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19
2025-09-15 09:16:18,831 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84
2025-09-15 09:16:18,845 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84
2025-09-15 09:16:18,858 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b45a39de-4fd1-4dc1-bce2-0d9467161235
2025-09-15 09:16:18,876 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83167292', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4895509025574504446', 'uuid-lslong': '11647971990024616985'}, 'enable': 'true', 'created': '2025-09-15T09:16:16', 'last-modified': '2025-09-15T09:16:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480888'}
2025-09-15 09:16:18,885 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 09:16:18,885 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63381125 passed
2025-09-15 09:16:18,885 - DEBUG - ====Verifying policy data for ctest-vn-63381125 in API_Server ======
2025-09-15 09:16:18,885 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 09:16:18,899 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5
2025-09-15 09:16:18,916 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f
2025-09-15 09:16:19,036 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19
2025-09-15 09:16:19,052 - DEBUG - ==>Verifying data for policy with id: cc761736-8e2e-45f6-88d6-f2c9bf149155, fqn: ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-policy-allow-all-28659255']
2025-09-15 09:16:19,052 - INFO - VN ctest-vn-63381125 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 09:16:19,052 - DEBUG - Verifying the vn in opserver
2025-09-15 09:16:19,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125 virtual network link through opserver 10.0.0.38
2025-09-15 09:16:19,052 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-15 09:16:19,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125?flat'}
2025-09-15 09:16:19,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125 is found in opserver
2025-09-15 09:16:19,086 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 09:16:19,092 - DEBUG - VRF ids for VN ctest-vn-63381125: {}
2025-09-15 09:16:19,168 - DEBUG - Services list from nova: [