2025-11-07 19:54:33,876 - INFO - Domain Default found not creating
2025-11-07 19:54:34,026 - INFO - Project ctest-TestBasicPolicy-20248570 not found, creating it
2025-11-07 19:54:34,480 - INFO - Created Project:ctest-TestBasicPolicy-20248570, ID : 9dcf6511-2fd8-4d89-839f-98102891d602
2025-11-07 19:54:36,100 - INFO - ================================================================================
2025-11-07 19:54:36,100 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-07 19:54:36,101 - 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-11-07 19:54:36,372 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-11-07 19:54:36,372 - INFO - Initial checks done. Running the testcase now
2025-11-07 19:54:36,373 - INFO -
2025-11-07 19:54:36,945 - DEBUG - Response for create_network : {'network': {'id': '2db6d102-e44d-4668-abed-1976dec75b59', 'name': 'ctest-vn-25627176', 'tenant_id': '9dcf65112fd84d89839f98102891d602', 'project_id': '9dcf65112fd84d89839f98102891d602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20248570', 'ctest-vn-25627176'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 19:54:37,110 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b944edd-e9b8-4a7b-a3e4-7418bd61823f', 'name': '', 'tenant_id': '9dcf65112fd84d89839f98102891d602', 'network_id': '2db6d102-e44d-4668-abed-1976dec75b59', 'ip_version': 4, 'cidr': '143.11.201.128/26', 'allocation_pools': [{'start': '143.11.201.130', 'end': '143.11.201.190'}], 'gateway_ip': '143.11.201.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.11.201.130', 'tags': [], 'project_id': '9dcf65112fd84d89839f98102891d602'}}
2025-11-07 19:54:37,128 - INFO - Created VN ctest-vn-25627176
2025-11-07 19:54:37,181 - DEBUG - VN ctest-vn-25627176 UUID is 2db6d102-e44d-4668-abed-1976dec75b59
2025-11-07 19:54:37,508 - DEBUG - Response for create_network : {'network': {'id': 'eb7e4bfa-5562-4872-87fe-4353dc9befe6', 'name': 'ctest-vn-78701961', 'tenant_id': '9dcf65112fd84d89839f98102891d602', 'project_id': '9dcf65112fd84d89839f98102891d602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20248570', 'ctest-vn-78701961'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 19:54:37,690 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3d7d9e4-65d0-4a8e-8fdf-91a01b0e3b82', 'name': '', 'tenant_id': '9dcf65112fd84d89839f98102891d602', 'network_id': 'eb7e4bfa-5562-4872-87fe-4353dc9befe6', 'ip_version': 4, 'cidr': '167.20.143.0/26', 'allocation_pools': [{'start': '167.20.143.2', 'end': '167.20.143.62'}], 'gateway_ip': '167.20.143.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.20.143.2', 'tags': [], 'project_id': '9dcf65112fd84d89839f98102891d602'}}
2025-11-07 19:54:37,707 - INFO - Created VN ctest-vn-78701961
2025-11-07 19:54:37,761 - DEBUG - VN ctest-vn-78701961 UUID is eb7e4bfa-5562-4872-87fe-4353dc9befe6
2025-11-07 19:54:37,889 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-25627176, 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-20248570:ctest-vn-78701961, 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-11-07 19:54:38,186 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2db6d102-e44d-4668-abed-1976dec75b59', 'name': 'ctest-vn-25627176', 'tenant_id': '9dcf65112fd84d89839f98102891d602', 'project_id': '9dcf65112fd84d89839f98102891d602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b944edd-e9b8-4a7b-a3e4-7418bd61823f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20248570', 'ctest-vn-25627176'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20248570', 'ctest-policy-allow-all-57565586']], 'subnet_ipam': [{'subnet_cidr': '143.11.201.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 19:54:38,408 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb7e4bfa-5562-4872-87fe-4353dc9befe6', 'name': 'ctest-vn-78701961', 'tenant_id': '9dcf65112fd84d89839f98102891d602', 'project_id': '9dcf65112fd84d89839f98102891d602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3d7d9e4-65d0-4a8e-8fdf-91a01b0e3b82'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20248570', 'ctest-vn-78701961'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20248570', 'ctest-policy-allow-all-57565586']], 'subnet_ipam': [{'subnet_cidr': '167.20.143.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 19:54:38,565 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 19:54:38,896 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 19:54:38,921 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0673fd90-b593-433c-8b30-9d615c58c4b0
2025-11-07 19:54:38,936 - DEBUG - Requesting: http://10.0.0.38:8082/project/9dcf6511-2fd8-4d89-839f-98102891d602
2025-11-07 19:54:39,015 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2db6d102-e44d-4668-abed-1976dec75b59
2025-11-07 19:54:39,027 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2db6d102-e44d-4668-abed-1976dec75b59
2025-11-07 19:54:39,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3f64e950-c723-4eef-a51d-9bcda14928b8
2025-11-07 19:54:39,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3f64e950-c723-4eef-a51d-9bcda14928b8
2025-11-07 19:54:39,051 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f7fd4f19-aee4-4557-aeb8-ab60c635158a
2025-11-07 19:54:39,058 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 19:54:39,058 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2db6d102-e44d-4668-abed-1976dec75b59
2025-11-07 19:54:39,067 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3f64e950-c723-4eef-a51d-9bcda14928b8
2025-11-07 19:54:39,080 - INFO - Verified VN network id 12 for VN 2db6d102-e44d-4668-abed-1976dec75b59
2025-11-07 19:54:39,081 - INFO - Verifications in API Server for VN ctest-vn-25627176 passed
2025-11-07 19:54:39,081 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2db6d102-e44d-4668-abed-1976dec75b59
2025-11-07 19:54:39,089 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3f64e950-c723-4eef-a51d-9bcda14928b8
2025-11-07 19:54:39,096 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3f64e950-c723-4eef-a51d-9bcda14928b8
2025-11-07 19:54:39,103 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f7fd4f19-aee4-4557-aeb8-ab60c635158a
2025-11-07 19:54:39,116 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-25627176', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20248570', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3294049987818505832', 'uuid-lslong': '12388586148300544857'}, 'enable': 'true', 'created': '2025-11-07T19:54:36', 'last-modified': '2025-11-07T19:54:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954020'}
2025-11-07 19:54:39,122 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 19:54:39,122 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25627176 passed
2025-11-07 19:54:39,122 - DEBUG - ====Verifying policy data for ctest-vn-25627176 in API_Server ======
2025-11-07 19:54:39,122 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 19:54:39,128 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0673fd90-b593-433c-8b30-9d615c58c4b0
2025-11-07 19:54:39,138 - DEBUG - Requesting: http://10.0.0.38:8082/project/9dcf6511-2fd8-4d89-839f-98102891d602
2025-11-07 19:54:39,204 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2db6d102-e44d-4668-abed-1976dec75b59
2025-11-07 19:54:39,214 - DEBUG - ==>Verifying data for policy with id: 844d513a-1fa7-4f03-bdad-da638c676c4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-20248570', 'ctest-policy-allow-all-57565586']
2025-11-07 19:54:39,214 - INFO - VN ctest-vn-25627176 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 19:54:39,214 - DEBUG - Verifying the vn in opserver
2025-11-07 19:54:39,214 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-25627176 virtual network link through opserver 10.0.0.38
2025-11-07 19:54:39,214 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-07 19:54:39,533 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-07 19:54:39,577 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-25627176', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-25627176?flat'}
2025-11-07 19:54:39,577 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-25627176 is found in opserver
2025-11-07 19:54:39,586 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 19:54:39,591 - DEBUG - VRF ids for VN ctest-vn-25627176: {}
2025-11-07 19:54:39,591 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 19:54:39,598 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0673fd90-b593-433c-8b30-9d615c58c4b0
2025-11-07 19:54:39,608 - DEBUG - Requesting: http://10.0.0.38:8082/project/9dcf6511-2fd8-4d89-839f-98102891d602
2025-11-07 19:54:39,679 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eb7e4bfa-5562-4872-87fe-4353dc9befe6
2025-11-07 19:54:39,690 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eb7e4bfa-5562-4872-87fe-4353dc9befe6
2025-11-07 19:54:39,699 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/184afd0d-b650-4214-a283-9a2933080175
2025-11-07 19:54:39,706 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/184afd0d-b650-4214-a283-9a2933080175
2025-11-07 19:54:39,712 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e5bc3887-dba3-495b-b7f7-4a6305f739d6
2025-11-07 19:54:39,719 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 19:54:39,719 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eb7e4bfa-5562-4872-87fe-4353dc9befe6
2025-11-07 19:54:39,728 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/184afd0d-b650-4214-a283-9a2933080175
2025-11-07 19:54:39,743 - INFO - Verified VN network id 13 for VN eb7e4bfa-5562-4872-87fe-4353dc9befe6
2025-11-07 19:54:39,744 - INFO - Verifications in API Server for VN ctest-vn-78701961 passed
2025-11-07 19:54:39,744 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eb7e4bfa-5562-4872-87fe-4353dc9befe6
2025-11-07 19:54:39,754 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/184afd0d-b650-4214-a283-9a2933080175
2025-11-07 19:54:39,762 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/184afd0d-b650-4214-a283-9a2933080175
2025-11-07 19:54:39,769 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e5bc3887-dba3-495b-b7f7-4a6305f739d6
2025-11-07 19:54:39,781 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-78701961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20248570', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16969083984525019250', 'uuid-lslong': '9799343866667331558'}, 'enable': 'true', 'created': '2025-11-07T19:54:37', 'last-modified': '2025-11-07T19:54:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.396881'}
2025-11-07 19:54:39,786 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 19:54:39,786 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78701961 passed
2025-11-07 19:54:39,787 - DEBUG - ====Verifying policy data for ctest-vn-78701961 in API_Server ======
2025-11-07 19:54:39,787 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 19:54:39,792 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0673fd90-b593-433c-8b30-9d615c58c4b0
2025-11-07 19:54:39,802 - DEBUG - Requesting: http://10.0.0.38:8082/project/9dcf6511-2fd8-4d89-839f-98102891d602
2025-11-07 19:54:39,874 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eb7e4bfa-5562-4872-87fe-4353dc9befe6
2025-11-07 19:54:39,884 - DEBUG - ==>Verifying data for policy with id: 844d513a-1fa7-4f03-bdad-da638c676c4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-20248570', 'ctest-policy-allow-all-57565586']
2025-11-07 19:54:39,884 - INFO - VN ctest-vn-78701961 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 19:54:39,884 - DEBUG - Verifying the vn in opserver
2025-11-07 19:54:39,884 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-78701961 virtual network link through opserver 10.0.0.38
2025-11-07 19:54:39,884 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-07 19:54:39,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-78701961', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-78701961?flat'}
2025-11-07 19:54:39,894 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20248570:ctest-vn-78701961 is found in opserver
2025-11-07 19:54:39,903 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 19:54:39,907 - DEBUG - VRF ids for VN ctest-vn-78701961: {}
2025-11-07 19:54:39,968 - DEBUG - Services list from nova: [