2025-10-22 19:49:29,847 - INFO - Reading existing Domain with UUID cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8
2025-10-22 19:49:29,863 - INFO - Using existing domain ['admin_domain'](cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8)
2025-10-22 19:49:30,238 - INFO - Project ctest-TestBasicPolicy-62691170 not found, creating it
2025-10-22 19:49:30,852 - INFO - Created Project:ctest-TestBasicPolicy-62691170, ID : ddc48095-f979-4bf8-9961-3b70d6706eef
2025-10-22 19:49:32,838 - INFO - ================================================================================
2025-10-22 19:49:32,838 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 19:49:32,838 - 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-22 19:49:33,244 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.0.0.141': '0'}} with
2025-10-22 19:49:33,245 - INFO - Initial checks done. Running the testcase now
2025-10-22 19:49:33,245 - INFO -
2025-10-22 19:49:34,159 - DEBUG - Response for create_network : {'network': {'id': '44de626c-dc45-4f20-8528-422eff9edb2a', 'name': 'ctest-vn-14581148', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'project_id': 'ddc48095f9794bf899613b70d6706eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-vn-14581148'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-22 19:49:34,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '2186add6-e838-4c8f-85a1-ff9aa3c503a6', 'name': '', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'network_id': '44de626c-dc45-4f20-8528-422eff9edb2a', 'ip_version': 4, 'cidr': '123.227.13.192/26', 'allocation_pools': [{'start': '123.227.13.194', 'end': '123.227.13.254'}], 'gateway_ip': '123.227.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T19:49:34.299639', 'updated_at': '2025-10-22T19:49:34.299639', 'dns_server_address': '123.227.13.194', 'tags': [], 'project_id': 'ddc48095f9794bf899613b70d6706eef'}}
2025-10-22 19:49:34,489 - INFO - Created VN ctest-vn-14581148
2025-10-22 19:49:34,547 - DEBUG - VN ctest-vn-14581148 UUID is 44de626c-dc45-4f20-8528-422eff9edb2a
2025-10-22 19:49:35,104 - DEBUG - Response for create_network : {'network': {'id': '4c44bffe-a477-4747-92d0-01c757790c75', 'name': 'ctest-vn-22432770', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'project_id': 'ddc48095f9794bf899613b70d6706eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-vn-22432770'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-22 19:49:35,372 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a06b57ca-5589-4044-a369-db640219bdf9', 'name': '', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'network_id': '4c44bffe-a477-4747-92d0-01c757790c75', 'ip_version': 4, 'cidr': '189.227.110.64/26', 'allocation_pools': [{'start': '189.227.110.66', 'end': '189.227.110.126'}], 'gateway_ip': '189.227.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T19:49:35.257180', 'updated_at': '2025-10-22T19:49:35.257180', 'dns_server_address': '189.227.110.66', 'tags': [], 'project_id': 'ddc48095f9794bf899613b70d6706eef'}}
2025-10-22 19:49:35,441 - INFO - Created VN ctest-vn-22432770
2025-10-22 19:49:35,503 - DEBUG - VN ctest-vn-22432770 UUID is 4c44bffe-a477-4747-92d0-01c757790c75
2025-10-22 19:49:35,729 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770, 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-22 19:49:36,332 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44de626c-dc45-4f20-8528-422eff9edb2a', 'name': 'ctest-vn-14581148', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'project_id': 'ddc48095f9794bf899613b70d6706eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2186add6-e838-4c8f-85a1-ff9aa3c503a6'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-vn-14581148'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-policy-allow-all-28319347']], 'subnet_ipam': [{'subnet_cidr': '123.227.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T19:49:34.070352', 'updated_at': '2025-10-22T19:49:34.320035'}}
2025-10-22 19:49:36,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c44bffe-a477-4747-92d0-01c757790c75', 'name': 'ctest-vn-22432770', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'project_id': 'ddc48095f9794bf899613b70d6706eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a06b57ca-5589-4044-a369-db640219bdf9'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-vn-22432770'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-policy-allow-all-28319347']], 'subnet_ipam': [{'subnet_cidr': '189.227.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T19:49:35.007564', 'updated_at': '2025-10-22T19:49:35.276128'}}
2025-10-22 19:49:36,919 - DEBUG - Requesting: https://10.0.0.141:8082/domains
2025-10-22 19:49:37,278 - DEBUG - Requesting: https://10.0.0.141:8082/domains
2025-10-22 19:49:37,368 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8
2025-10-22 19:49:37,432 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef
2025-10-22 19:49:37,528 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a
2025-10-22 19:49:37,589 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a
2025-10-22 19:49:37,649 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee
2025-10-22 19:49:37,704 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee
2025-10-22 19:49:37,764 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/9c8fb81b-7b0d-473d-a486-c031efb8554c
2025-10-22 19:49:37,819 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 19:49:37,820 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a
2025-10-22 19:49:37,877 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee
2025-10-22 19:49:37,943 - INFO - Verified VN network id 11 for VN 44de626c-dc45-4f20-8528-422eff9edb2a
2025-10-22 19:49:37,943 - INFO - Verifications in API Server for VN ctest-vn-14581148 passed
2025-10-22 19:49:37,943 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a
2025-10-22 19:49:38,001 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee
2025-10-22 19:49:38,056 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee
2025-10-22 19:49:38,116 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/9c8fb81b-7b0d-473d-a486-c031efb8554c
2025-10-22 19:49:38,231 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62691170', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4962512059100385056', 'uuid-lslong': '9594991775737371434'}, 'enable': 'true', 'created': '2025-10-22T19:49:34', 'last-modified': '2025-10-22T19:49:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.026354'}
2025-10-22 19:49:38,291 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 19:49:38,291 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14581148 passed
2025-10-22 19:49:38,292 - DEBUG - ====Verifying policy data for ctest-vn-14581148 in API_Server ======
2025-10-22 19:49:38,292 - DEBUG - Requesting: https://10.0.0.141:8082/domains
2025-10-22 19:49:38,344 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8
2025-10-22 19:49:38,412 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef
2025-10-22 19:49:38,496 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a
2025-10-22 19:49:38,556 - DEBUG - ==>Verifying data for policy with id: def3e206-f037-47cc-9dad-bff585758a84, fqn: ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-policy-allow-all-28319347']
2025-10-22 19:49:38,557 - INFO - VN ctest-vn-14581148 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 19:49:38,557 - DEBUG - Verifying the vn in opserver
2025-10-22 19:49:38,557 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148 virtual network link through opserver 10.0.0.141
2025-10-22 19:49:38,557 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-22 19:49:38,924 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-22 19:49:39,060 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148', 'href': 'https://10.0.0.141:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148?flat'}
2025-10-22 19:49:39,060 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148 is found in opserver
2025-10-22 19:49:39,163 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 19:49:39,216 - DEBUG - VRF ids for VN ctest-vn-14581148: {}
2025-10-22 19:49:39,216 - DEBUG - Requesting: https://10.0.0.141:8082/domains
2025-10-22 19:49:39,271 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8
2025-10-22 19:49:39,332 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef
2025-10-22 19:49:39,424 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75
2025-10-22 19:49:39,485 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75
2025-10-22 19:49:39,545 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f
2025-10-22 19:49:39,600 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f
2025-10-22 19:49:39,661 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/415f670d-3eab-4635-b75c-e1d836adc6a2
2025-10-22 19:49:39,716 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 19:49:39,716 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75
2025-10-22 19:49:39,776 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f
2025-10-22 19:49:39,848 - INFO - Verified VN network id 12 for VN 4c44bffe-a477-4747-92d0-01c757790c75
2025-10-22 19:49:39,848 - INFO - Verifications in API Server for VN ctest-vn-22432770 passed
2025-10-22 19:49:39,848 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75
2025-10-22 19:49:39,909 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f
2025-10-22 19:49:39,965 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f
2025-10-22 19:49:40,024 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/415f670d-3eab-4635-b75c-e1d836adc6a2
2025-10-22 19:49:40,144 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62691170', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5495728545700726599', 'uuid-lslong': '10578957480370965621'}, 'enable': 'true', 'created': '2025-10-22T19:49:35', 'last-modified': '2025-10-22T19:49:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.449397'}
2025-10-22 19:49:40,197 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 19:49:40,197 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22432770 passed
2025-10-22 19:49:40,197 - DEBUG - ====Verifying policy data for ctest-vn-22432770 in API_Server ======
2025-10-22 19:49:40,197 - DEBUG - Requesting: https://10.0.0.141:8082/domains
2025-10-22 19:49:40,251 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8
2025-10-22 19:49:40,313 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef
2025-10-22 19:49:40,405 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75
2025-10-22 19:49:40,465 - DEBUG - ==>Verifying data for policy with id: def3e206-f037-47cc-9dad-bff585758a84, fqn: ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-policy-allow-all-28319347']
2025-10-22 19:49:40,465 - INFO - VN ctest-vn-22432770 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 19:49:40,465 - DEBUG - Verifying the vn in opserver
2025-10-22 19:49:40,465 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770 virtual network link through opserver 10.0.0.141
2025-10-22 19:49:40,465 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-22 19:49:40,524 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770', 'href': 'https://10.0.0.141:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770?flat'}
2025-10-22 19:49:40,524 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770 is found in opserver
2025-10-22 19:49:40,627 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 19:49:40,675 - DEBUG - VRF ids for VN ctest-vn-22432770: {}
2025-10-22 19:49:40,750 - DEBUG - Services list from nova: [