2025-06-23 21:25:35,260 - INFO - Domain Default found not creating
2025-06-23 21:25:35,383 - INFO - Project ctest-TestBasicPolicy-73328022 not found, creating it
2025-06-23 21:25:35,795 - INFO - Created Project:ctest-TestBasicPolicy-73328022, ID : a748d43a-c86d-4300-8007-15402d0f6f00
2025-06-23 21:25:37,129 - INFO - ================================================================================
2025-06-23 21:25:37,129 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 21:25:37,129 - 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-06-23 21:25:37,385 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-06-23 21:25:37,385 - INFO - Initial checks done. Running the testcase now
2025-06-23 21:25:37,386 - INFO -
2025-06-23 21:25:38,042 - DEBUG - Response for create_network : {'network': {'id': 'd0862a74-f1ce-41a2-86b4-cbe8ac701e51', 'name': 'ctest-vn-56152329', 'tenant_id': 'a748d43ac86d4300800715402d0f6f00', 'project_id': 'a748d43ac86d4300800715402d0f6f00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73328022', 'ctest-vn-56152329'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 21:25:38,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '11fcf801-6e1a-4f29-922e-7a5877223436', 'name': '', 'tenant_id': 'a748d43ac86d4300800715402d0f6f00', 'network_id': 'd0862a74-f1ce-41a2-86b4-cbe8ac701e51', 'ip_version': 4, 'cidr': '50.123.34.128/26', 'allocation_pools': [{'start': '50.123.34.130', 'end': '50.123.34.190'}], 'gateway_ip': '50.123.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.123.34.130', 'tags': [], 'project_id': 'a748d43ac86d4300800715402d0f6f00'}}
2025-06-23 21:25:38,274 - INFO - Created VN ctest-vn-56152329
2025-06-23 21:25:38,324 - DEBUG - VN ctest-vn-56152329 UUID is d0862a74-f1ce-41a2-86b4-cbe8ac701e51
2025-06-23 21:25:38,643 - DEBUG - Response for create_network : {'network': {'id': '07d0e57a-4f25-4c81-aa63-0a2fb6564889', 'name': 'ctest-vn-92058124', 'tenant_id': 'a748d43ac86d4300800715402d0f6f00', 'project_id': 'a748d43ac86d4300800715402d0f6f00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73328022', 'ctest-vn-92058124'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 21:25:38,806 - DEBUG - Response for create_subnet : {'subnet': {'id': '638debc8-261e-4068-95b8-4b5bc5e05216', 'name': '', 'tenant_id': 'a748d43ac86d4300800715402d0f6f00', 'network_id': '07d0e57a-4f25-4c81-aa63-0a2fb6564889', 'ip_version': 4, 'cidr': '83.19.210.192/26', 'allocation_pools': [{'start': '83.19.210.194', 'end': '83.19.210.254'}], 'gateway_ip': '83.19.210.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.19.210.194', 'tags': [], 'project_id': 'a748d43ac86d4300800715402d0f6f00'}}
2025-06-23 21:25:38,822 - INFO - Created VN ctest-vn-92058124
2025-06-23 21:25:38,876 - DEBUG - VN ctest-vn-92058124 UUID is 07d0e57a-4f25-4c81-aa63-0a2fb6564889
2025-06-23 21:25:39,016 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-56152329, 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-73328022:ctest-vn-92058124, 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-06-23 21:25:39,300 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0862a74-f1ce-41a2-86b4-cbe8ac701e51', 'name': 'ctest-vn-56152329', 'tenant_id': 'a748d43ac86d4300800715402d0f6f00', 'project_id': 'a748d43ac86d4300800715402d0f6f00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11fcf801-6e1a-4f29-922e-7a5877223436'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73328022', 'ctest-vn-56152329'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73328022', 'ctest-policy-allow-all-06624628']], 'subnet_ipam': [{'subnet_cidr': '50.123.34.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 21:25:39,522 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07d0e57a-4f25-4c81-aa63-0a2fb6564889', 'name': 'ctest-vn-92058124', 'tenant_id': 'a748d43ac86d4300800715402d0f6f00', 'project_id': 'a748d43ac86d4300800715402d0f6f00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['638debc8-261e-4068-95b8-4b5bc5e05216'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73328022', 'ctest-vn-92058124'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73328022', 'ctest-policy-allow-all-06624628']], 'subnet_ipam': [{'subnet_cidr': '83.19.210.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 21:25:39,684 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-23 21:25:39,985 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-23 21:25:40,012 - DEBUG - Requesting: http://10.0.0.50:8082/domain/55562fb9-c42c-4430-9267-edecce4c4658
2025-06-23 21:25:40,023 - DEBUG - Requesting: http://10.0.0.50:8082/project/a748d43a-c86d-4300-8007-15402d0f6f00
2025-06-23 21:25:40,091 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0862a74-f1ce-41a2-86b4-cbe8ac701e51
2025-06-23 21:25:40,102 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0862a74-f1ce-41a2-86b4-cbe8ac701e51
2025-06-23 21:25:40,112 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0fef2a09-4aa1-4260-b61c-27d7aff76a29
2025-06-23 21:25:40,118 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0fef2a09-4aa1-4260-b61c-27d7aff76a29
2025-06-23 21:25:40,125 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9d94e742-3f1f-423d-961f-294bde54496b
2025-06-23 21:25:40,130 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 21:25:40,130 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0862a74-f1ce-41a2-86b4-cbe8ac701e51
2025-06-23 21:25:40,139 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0fef2a09-4aa1-4260-b61c-27d7aff76a29
2025-06-23 21:25:40,152 - INFO - Verified VN network id 9 for VN d0862a74-f1ce-41a2-86b4-cbe8ac701e51
2025-06-23 21:25:40,152 - INFO - Verifications in API Server for VN ctest-vn-56152329 passed
2025-06-23 21:25:40,152 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0862a74-f1ce-41a2-86b4-cbe8ac701e51
2025-06-23 21:25:40,161 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0fef2a09-4aa1-4260-b61c-27d7aff76a29
2025-06-23 21:25:40,168 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0fef2a09-4aa1-4260-b61c-27d7aff76a29
2025-06-23 21:25:40,174 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9d94e742-3f1f-423d-961f-294bde54496b
2025-06-23 21:25:40,185 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-56152329', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73328022', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15025743888529637794', 'uuid-lslong': '9706607297076141649'}, 'enable': 'true', 'created': '2025-06-23T21:25:38', 'last-modified': '2025-06-23T21:25:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908148'}
2025-06-23 21:25:40,191 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 21:25:40,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56152329 passed
2025-06-23 21:25:40,191 - DEBUG - ====Verifying policy data for ctest-vn-56152329 in API_Server ======
2025-06-23 21:25:40,191 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-23 21:25:40,196 - DEBUG - Requesting: http://10.0.0.50:8082/domain/55562fb9-c42c-4430-9267-edecce4c4658
2025-06-23 21:25:40,206 - DEBUG - Requesting: http://10.0.0.50:8082/project/a748d43a-c86d-4300-8007-15402d0f6f00
2025-06-23 21:25:40,277 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0862a74-f1ce-41a2-86b4-cbe8ac701e51
2025-06-23 21:25:40,286 - DEBUG - ==>Verifying data for policy with id: 1a2a66bd-6369-4dc1-bd2d-ea73bb99372b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73328022', 'ctest-policy-allow-all-06624628']
2025-06-23 21:25:40,286 - INFO - VN ctest-vn-56152329 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 21:25:40,286 - DEBUG - Verifying the vn in opserver
2025-06-23 21:25:40,286 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-56152329 virtual network link through opserver 10.0.0.50
2025-06-23 21:25:40,286 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-23 21:25:40,580 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-23 21:25:40,631 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-56152329', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-56152329?flat'}
2025-06-23 21:25:40,631 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-56152329 is found in opserver
2025-06-23 21:25:40,641 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 21:25:40,646 - DEBUG - VRF ids for VN ctest-vn-56152329: {}
2025-06-23 21:25:40,646 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-23 21:25:40,651 - DEBUG - Requesting: http://10.0.0.50:8082/domain/55562fb9-c42c-4430-9267-edecce4c4658
2025-06-23 21:25:40,661 - DEBUG - Requesting: http://10.0.0.50:8082/project/a748d43a-c86d-4300-8007-15402d0f6f00
2025-06-23 21:25:40,729 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07d0e57a-4f25-4c81-aa63-0a2fb6564889
2025-06-23 21:25:40,740 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07d0e57a-4f25-4c81-aa63-0a2fb6564889
2025-06-23 21:25:40,748 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/36b8f43c-34f0-4e2e-8cfe-d210e3f8d632
2025-06-23 21:25:40,754 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/36b8f43c-34f0-4e2e-8cfe-d210e3f8d632
2025-06-23 21:25:40,760 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f911411e-fb89-4e89-962f-97acef8bac62
2025-06-23 21:25:40,766 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 21:25:40,766 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07d0e57a-4f25-4c81-aa63-0a2fb6564889
2025-06-23 21:25:40,774 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/36b8f43c-34f0-4e2e-8cfe-d210e3f8d632
2025-06-23 21:25:40,786 - INFO - Verified VN network id 10 for VN 07d0e57a-4f25-4c81-aa63-0a2fb6564889
2025-06-23 21:25:40,786 - INFO - Verifications in API Server for VN ctest-vn-92058124 passed
2025-06-23 21:25:40,786 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07d0e57a-4f25-4c81-aa63-0a2fb6564889
2025-06-23 21:25:40,795 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/36b8f43c-34f0-4e2e-8cfe-d210e3f8d632
2025-06-23 21:25:40,801 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/36b8f43c-34f0-4e2e-8cfe-d210e3f8d632
2025-06-23 21:25:40,806 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f911411e-fb89-4e89-962f-97acef8bac62
2025-06-23 21:25:40,817 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-92058124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73328022', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '563202266897927297', 'uuid-lslong': '12277668209180952713'}, 'enable': 'true', 'created': '2025-06-23T21:25:38', 'last-modified': '2025-06-23T21:25:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.317310'}
2025-06-23 21:25:40,823 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 21:25:40,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92058124 passed
2025-06-23 21:25:40,823 - DEBUG - ====Verifying policy data for ctest-vn-92058124 in API_Server ======
2025-06-23 21:25:40,823 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-23 21:25:40,827 - DEBUG - Requesting: http://10.0.0.50:8082/domain/55562fb9-c42c-4430-9267-edecce4c4658
2025-06-23 21:25:40,837 - DEBUG - Requesting: http://10.0.0.50:8082/project/a748d43a-c86d-4300-8007-15402d0f6f00
2025-06-23 21:25:40,906 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07d0e57a-4f25-4c81-aa63-0a2fb6564889
2025-06-23 21:25:40,915 - DEBUG - ==>Verifying data for policy with id: 1a2a66bd-6369-4dc1-bd2d-ea73bb99372b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73328022', 'ctest-policy-allow-all-06624628']
2025-06-23 21:25:40,915 - INFO - VN ctest-vn-92058124 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 21:25:40,915 - DEBUG - Verifying the vn in opserver
2025-06-23 21:25:40,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-92058124 virtual network link through opserver 10.0.0.50
2025-06-23 21:25:40,915 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-23 21:25:40,924 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-92058124', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-92058124?flat'}
2025-06-23 21:25:40,924 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73328022:ctest-vn-92058124 is found in opserver
2025-06-23 21:25:40,934 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 21:25:40,938 - DEBUG - VRF ids for VN ctest-vn-92058124: {}
2025-06-23 21:25:40,987 - DEBUG - Services list from nova: [