2025-09-12 19:16:06,981 - INFO - Domain Default found not creating
2025-09-12 19:16:07,137 - INFO - Project ctest-TestBasicPolicy-42873324 not found, creating it
2025-09-12 19:16:07,600 - INFO - Created Project:ctest-TestBasicPolicy-42873324, ID : 8e3c5458-d083-41fd-b843-6e8904935024
2025-09-12 19:16:09,071 - INFO - ================================================================================
2025-09-12 19:16:09,071 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-12 19:16:09,071 - 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-12 19:16:09,329 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-09-12 19:16:09,329 - INFO - Initial checks done. Running the testcase now
2025-09-12 19:16:09,329 - INFO -
2025-09-12 19:16:09,883 - DEBUG - Response for create_network : {'network': {'id': 'aaf68de7-a838-43da-a3ef-791b204717b3', 'name': 'ctest-vn-83670975', 'tenant_id': '8e3c5458d08341fdb8436e8904935024', 'project_id': '8e3c5458d08341fdb8436e8904935024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42873324', 'ctest-vn-83670975'], 'port_security_enabled': True, 'description': ''}}
2025-09-12 19:16:10,058 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c30278c-86b6-4e6d-9d99-23e19caa0c59', 'name': '', 'tenant_id': '8e3c5458d08341fdb8436e8904935024', 'network_id': 'aaf68de7-a838-43da-a3ef-791b204717b3', 'ip_version': 4, 'cidr': '144.58.253.64/26', 'allocation_pools': [{'start': '144.58.253.66', 'end': '144.58.253.126'}], 'gateway_ip': '144.58.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.58.253.66', 'tags': [], 'project_id': '8e3c5458d08341fdb8436e8904935024'}}
2025-09-12 19:16:10,075 - INFO - Created VN ctest-vn-83670975
2025-09-12 19:16:10,127 - DEBUG - VN ctest-vn-83670975 UUID is aaf68de7-a838-43da-a3ef-791b204717b3
2025-09-12 19:16:10,417 - DEBUG - Response for create_network : {'network': {'id': '287952fb-1861-4403-afa6-dfef740118e0', 'name': 'ctest-vn-17772260', 'tenant_id': '8e3c5458d08341fdb8436e8904935024', 'project_id': '8e3c5458d08341fdb8436e8904935024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42873324', 'ctest-vn-17772260'], 'port_security_enabled': True, 'description': ''}}
2025-09-12 19:16:10,602 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd46dcb15-065e-4b27-9348-5c0dbbd1aee3', 'name': '', 'tenant_id': '8e3c5458d08341fdb8436e8904935024', 'network_id': '287952fb-1861-4403-afa6-dfef740118e0', 'ip_version': 4, 'cidr': '41.206.69.128/26', 'allocation_pools': [{'start': '41.206.69.130', 'end': '41.206.69.190'}], 'gateway_ip': '41.206.69.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.206.69.130', 'tags': [], 'project_id': '8e3c5458d08341fdb8436e8904935024'}}
2025-09-12 19:16:10,619 - INFO - Created VN ctest-vn-17772260
2025-09-12 19:16:10,675 - DEBUG - VN ctest-vn-17772260 UUID is 287952fb-1861-4403-afa6-dfef740118e0
2025-09-12 19:16:10,791 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-83670975, 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-42873324:ctest-vn-17772260, 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-12 19:16:11,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aaf68de7-a838-43da-a3ef-791b204717b3', 'name': 'ctest-vn-83670975', 'tenant_id': '8e3c5458d08341fdb8436e8904935024', 'project_id': '8e3c5458d08341fdb8436e8904935024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c30278c-86b6-4e6d-9d99-23e19caa0c59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42873324', 'ctest-vn-83670975'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42873324', 'ctest-policy-allow-all-69541766']], 'subnet_ipam': [{'subnet_cidr': '144.58.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-12 19:16:11,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '287952fb-1861-4403-afa6-dfef740118e0', 'name': 'ctest-vn-17772260', 'tenant_id': '8e3c5458d08341fdb8436e8904935024', 'project_id': '8e3c5458d08341fdb8436e8904935024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d46dcb15-065e-4b27-9348-5c0dbbd1aee3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42873324', 'ctest-vn-17772260'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42873324', 'ctest-policy-allow-all-69541766']], 'subnet_ipam': [{'subnet_cidr': '41.206.69.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-12 19:16:11,487 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-12 19:16:11,794 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-12 19:16:11,826 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5fc60ce0-d9b1-4dbe-bd58-22de9b8cf07b
2025-09-12 19:16:11,839 - DEBUG - Requesting: http://10.0.0.22:8082/project/8e3c5458-d083-41fd-b843-6e8904935024
2025-09-12 19:16:11,909 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aaf68de7-a838-43da-a3ef-791b204717b3
2025-09-12 19:16:11,920 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aaf68de7-a838-43da-a3ef-791b204717b3
2025-09-12 19:16:11,931 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/aa5bb25e-4568-4973-923d-5eba7fc2699e
2025-09-12 19:16:11,938 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/aa5bb25e-4568-4973-923d-5eba7fc2699e
2025-09-12 19:16:11,945 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/93607d2b-7f2e-4fec-8b57-aea4cc323b61
2025-09-12 19:16:11,952 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-12 19:16:11,952 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aaf68de7-a838-43da-a3ef-791b204717b3
2025-09-12 19:16:11,962 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/aa5bb25e-4568-4973-923d-5eba7fc2699e
2025-09-12 19:16:11,977 - INFO - Verified VN network id 11 for VN aaf68de7-a838-43da-a3ef-791b204717b3
2025-09-12 19:16:11,977 - INFO - Verifications in API Server for VN ctest-vn-83670975 passed
2025-09-12 19:16:11,978 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aaf68de7-a838-43da-a3ef-791b204717b3
2025-09-12 19:16:11,987 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/aa5bb25e-4568-4973-923d-5eba7fc2699e
2025-09-12 19:16:11,995 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/aa5bb25e-4568-4973-923d-5eba7fc2699e
2025-09-12 19:16:12,002 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/93607d2b-7f2e-4fec-8b57-aea4cc323b61
2025-09-12 19:16:12,015 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-83670975', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42873324', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12319189856817791962', 'uuid-lslong': '11812793505028708275'}, 'enable': 'true', 'created': '2025-09-12T19:16:09', 'last-modified': '2025-09-12T19:16:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953695'}
2025-09-12 19:16:12,022 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-12 19:16:12,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83670975 passed
2025-09-12 19:16:12,022 - DEBUG - ====Verifying policy data for ctest-vn-83670975 in API_Server ======
2025-09-12 19:16:12,023 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-12 19:16:12,028 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5fc60ce0-d9b1-4dbe-bd58-22de9b8cf07b
2025-09-12 19:16:12,046 - DEBUG - Requesting: http://10.0.0.22:8082/project/8e3c5458-d083-41fd-b843-6e8904935024
2025-09-12 19:16:12,120 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aaf68de7-a838-43da-a3ef-791b204717b3
2025-09-12 19:16:12,129 - DEBUG - ==>Verifying data for policy with id: da033d86-8c1d-4b78-9dc0-82feba62407e, fqn: ['default-domain', 'ctest-TestBasicPolicy-42873324', 'ctest-policy-allow-all-69541766']
2025-09-12 19:16:12,129 - INFO - VN ctest-vn-83670975 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-12 19:16:12,129 - DEBUG - Verifying the vn in opserver
2025-09-12 19:16:12,129 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-83670975 virtual network link through opserver 10.0.0.22
2025-09-12 19:16:12,129 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-12 19:16:12,434 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-12 19:16:12,493 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-83670975', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-83670975?flat'}
2025-09-12 19:16:12,493 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-83670975 is found in opserver
2025-09-12 19:16:12,502 - DEBUG - Do not have enough data to verify VN in agent
2025-09-12 19:16:12,506 - DEBUG - VRF ids for VN ctest-vn-83670975: {}
2025-09-12 19:16:12,506 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-12 19:16:12,511 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5fc60ce0-d9b1-4dbe-bd58-22de9b8cf07b
2025-09-12 19:16:12,522 - DEBUG - Requesting: http://10.0.0.22:8082/project/8e3c5458-d083-41fd-b843-6e8904935024
2025-09-12 19:16:12,594 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/287952fb-1861-4403-afa6-dfef740118e0
2025-09-12 19:16:12,606 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/287952fb-1861-4403-afa6-dfef740118e0
2025-09-12 19:16:12,615 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c9fca24d-7c06-4162-a66b-5077d600fa70
2025-09-12 19:16:12,623 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c9fca24d-7c06-4162-a66b-5077d600fa70
2025-09-12 19:16:12,629 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e8d0442-b363-4545-a394-1ae034227ce4
2025-09-12 19:16:12,636 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-12 19:16:12,636 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/287952fb-1861-4403-afa6-dfef740118e0
2025-09-12 19:16:12,646 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c9fca24d-7c06-4162-a66b-5077d600fa70
2025-09-12 19:16:12,662 - INFO - Verified VN network id 12 for VN 287952fb-1861-4403-afa6-dfef740118e0
2025-09-12 19:16:12,663 - INFO - Verifications in API Server for VN ctest-vn-17772260 passed
2025-09-12 19:16:12,663 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/287952fb-1861-4403-afa6-dfef740118e0
2025-09-12 19:16:12,672 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c9fca24d-7c06-4162-a66b-5077d600fa70
2025-09-12 19:16:12,678 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c9fca24d-7c06-4162-a66b-5077d600fa70
2025-09-12 19:16:12,684 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e8d0442-b363-4545-a394-1ae034227ce4
2025-09-12 19:16:12,694 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-17772260', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42873324', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2916453472098403331', 'uuid-lslong': '12657050022307764448'}, 'enable': 'true', 'created': '2025-09-12T19:16:10', 'last-modified': '2025-09-12T19:16:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.414272'}
2025-09-12 19:16:12,702 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-12 19:16:12,702 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17772260 passed
2025-09-12 19:16:12,702 - DEBUG - ====Verifying policy data for ctest-vn-17772260 in API_Server ======
2025-09-12 19:16:12,702 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-12 19:16:12,709 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5fc60ce0-d9b1-4dbe-bd58-22de9b8cf07b
2025-09-12 19:16:12,720 - DEBUG - Requesting: http://10.0.0.22:8082/project/8e3c5458-d083-41fd-b843-6e8904935024
2025-09-12 19:16:12,787 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/287952fb-1861-4403-afa6-dfef740118e0
2025-09-12 19:16:12,799 - DEBUG - ==>Verifying data for policy with id: da033d86-8c1d-4b78-9dc0-82feba62407e, fqn: ['default-domain', 'ctest-TestBasicPolicy-42873324', 'ctest-policy-allow-all-69541766']
2025-09-12 19:16:12,799 - INFO - VN ctest-vn-17772260 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-12 19:16:12,799 - DEBUG - Verifying the vn in opserver
2025-09-12 19:16:12,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-17772260 virtual network link through opserver 10.0.0.22
2025-09-12 19:16:12,799 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-12 19:16:12,810 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-17772260', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-17772260?flat'}
2025-09-12 19:16:12,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42873324:ctest-vn-17772260 is found in opserver
2025-09-12 19:16:12,820 - DEBUG - Do not have enough data to verify VN in agent
2025-09-12 19:16:12,825 - DEBUG - VRF ids for VN ctest-vn-17772260: {}
2025-09-12 19:16:12,886 - DEBUG - Services list from nova: [