2025-10-16 09:33:52,432 - INFO - Domain Default found not creating
2025-10-16 09:33:52,562 - INFO - Project ctest-TestBasicPolicy-53848056 not found, creating it
2025-10-16 09:33:53,007 - INFO - Created Project:ctest-TestBasicPolicy-53848056, ID : 0212a624-5ed8-410f-925e-e06bc6e298ae
2025-10-16 09:33:54,404 - INFO - ================================================================================
2025-10-16 09:33:54,404 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-16 09:33:54,404 - 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-16 09:33:54,657 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.18': '0'}} with
2025-10-16 09:33:54,657 - INFO - Initial checks done. Running the testcase now
2025-10-16 09:33:54,657 - INFO -
2025-10-16 09:33:55,189 - DEBUG - Response for create_network : {'network': {'id': '0a62081c-49eb-448f-b856-e35b9a10fb37', 'name': 'ctest-vn-26446542', 'tenant_id': '0212a6245ed8410f925ee06bc6e298ae', 'project_id': '0212a6245ed8410f925ee06bc6e298ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53848056', 'ctest-vn-26446542'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 09:33:55,340 - DEBUG - Response for create_subnet : {'subnet': {'id': '235ccef1-3965-4085-bdfc-1ac07cd24494', 'name': '', 'tenant_id': '0212a6245ed8410f925ee06bc6e298ae', 'network_id': '0a62081c-49eb-448f-b856-e35b9a10fb37', 'ip_version': 4, 'cidr': '205.4.206.0/26', 'allocation_pools': [{'start': '205.4.206.2', 'end': '205.4.206.62'}], 'gateway_ip': '205.4.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.4.206.2', 'tags': [], 'project_id': '0212a6245ed8410f925ee06bc6e298ae'}}
2025-10-16 09:33:55,356 - INFO - Created VN ctest-vn-26446542
2025-10-16 09:33:55,408 - DEBUG - VN ctest-vn-26446542 UUID is 0a62081c-49eb-448f-b856-e35b9a10fb37
2025-10-16 09:33:55,718 - DEBUG - Response for create_network : {'network': {'id': '2fbc8512-aa5c-4e5a-a337-c5714257a495', 'name': 'ctest-vn-84159203', 'tenant_id': '0212a6245ed8410f925ee06bc6e298ae', 'project_id': '0212a6245ed8410f925ee06bc6e298ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53848056', 'ctest-vn-84159203'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 09:33:55,881 - DEBUG - Response for create_subnet : {'subnet': {'id': '37184bc1-7e8b-4a40-8094-93d20eb6e9de', 'name': '', 'tenant_id': '0212a6245ed8410f925ee06bc6e298ae', 'network_id': '2fbc8512-aa5c-4e5a-a337-c5714257a495', 'ip_version': 4, 'cidr': '12.53.228.192/26', 'allocation_pools': [{'start': '12.53.228.194', 'end': '12.53.228.254'}], 'gateway_ip': '12.53.228.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.53.228.194', 'tags': [], 'project_id': '0212a6245ed8410f925ee06bc6e298ae'}}
2025-10-16 09:33:55,896 - INFO - Created VN ctest-vn-84159203
2025-10-16 09:33:55,948 - DEBUG - VN ctest-vn-84159203 UUID is 2fbc8512-aa5c-4e5a-a337-c5714257a495
2025-10-16 09:33:56,092 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-26446542, 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-53848056:ctest-vn-84159203, 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-16 09:33:56,374 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a62081c-49eb-448f-b856-e35b9a10fb37', 'name': 'ctest-vn-26446542', 'tenant_id': '0212a6245ed8410f925ee06bc6e298ae', 'project_id': '0212a6245ed8410f925ee06bc6e298ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['235ccef1-3965-4085-bdfc-1ac07cd24494'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53848056', 'ctest-vn-26446542'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53848056', 'ctest-policy-allow-all-10440518']], 'subnet_ipam': [{'subnet_cidr': '205.4.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 09:33:56,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2fbc8512-aa5c-4e5a-a337-c5714257a495', 'name': 'ctest-vn-84159203', 'tenant_id': '0212a6245ed8410f925ee06bc6e298ae', 'project_id': '0212a6245ed8410f925ee06bc6e298ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37184bc1-7e8b-4a40-8094-93d20eb6e9de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53848056', 'ctest-vn-84159203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53848056', 'ctest-policy-allow-all-10440518']], 'subnet_ipam': [{'subnet_cidr': '12.53.228.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 09:33:56,768 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-16 09:33:57,057 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-16 09:33:57,083 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b5f604ca-949a-4f9d-b947-4f065da907b0
2025-10-16 09:33:57,094 - DEBUG - Requesting: http://10.0.0.242:8082/project/0212a624-5ed8-410f-925e-e06bc6e298ae
2025-10-16 09:33:57,161 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0a62081c-49eb-448f-b856-e35b9a10fb37
2025-10-16 09:33:57,171 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0a62081c-49eb-448f-b856-e35b9a10fb37
2025-10-16 09:33:57,179 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2a291d14-6b69-4a6a-9573-dea435f06ca1
2025-10-16 09:33:57,185 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2a291d14-6b69-4a6a-9573-dea435f06ca1
2025-10-16 09:33:57,192 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/530e8d1c-6c70-4561-a67f-8beb6e8e9084
2025-10-16 09:33:57,198 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 09:33:57,198 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0a62081c-49eb-448f-b856-e35b9a10fb37
2025-10-16 09:33:57,208 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2a291d14-6b69-4a6a-9573-dea435f06ca1
2025-10-16 09:33:57,223 - INFO - Verified VN network id 12 for VN 0a62081c-49eb-448f-b856-e35b9a10fb37
2025-10-16 09:33:57,223 - INFO - Verifications in API Server for VN ctest-vn-26446542 passed
2025-10-16 09:33:57,223 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0a62081c-49eb-448f-b856-e35b9a10fb37
2025-10-16 09:33:57,231 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2a291d14-6b69-4a6a-9573-dea435f06ca1
2025-10-16 09:33:57,236 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2a291d14-6b69-4a6a-9573-dea435f06ca1
2025-10-16 09:33:57,245 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/530e8d1c-6c70-4561-a67f-8beb6e8e9084
2025-10-16 09:33:57,257 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-26446542', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53848056', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '748169405689185423', 'uuid-lslong': '13283054133542189879'}, 'enable': 'true', 'created': '2025-10-16T09:33:55', 'last-modified': '2025-10-16T09:33:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.902998'}
2025-10-16 09:33:57,262 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 09:33:57,262 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26446542 passed
2025-10-16 09:33:57,263 - DEBUG - ====Verifying policy data for ctest-vn-26446542 in API_Server ======
2025-10-16 09:33:57,263 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-16 09:33:57,268 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b5f604ca-949a-4f9d-b947-4f065da907b0
2025-10-16 09:33:57,282 - DEBUG - Requesting: http://10.0.0.242:8082/project/0212a624-5ed8-410f-925e-e06bc6e298ae
2025-10-16 09:33:57,350 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0a62081c-49eb-448f-b856-e35b9a10fb37
2025-10-16 09:33:57,359 - DEBUG - ==>Verifying data for policy with id: e3e2d520-3f71-468c-acfa-5c3d612f689d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53848056', 'ctest-policy-allow-all-10440518']
2025-10-16 09:33:57,359 - INFO - VN ctest-vn-26446542 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 09:33:57,359 - DEBUG - Verifying the vn in opserver
2025-10-16 09:33:57,359 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-26446542 virtual network link through opserver 10.0.0.242
2025-10-16 09:33:57,359 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-16 09:33:57,650 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-16 09:33:57,699 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-26446542', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-26446542?flat'}
2025-10-16 09:33:57,699 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-26446542 is found in opserver
2025-10-16 09:33:57,708 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 09:33:57,712 - DEBUG - VRF ids for VN ctest-vn-26446542: {}
2025-10-16 09:33:57,712 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-16 09:33:57,717 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b5f604ca-949a-4f9d-b947-4f065da907b0
2025-10-16 09:33:57,728 - DEBUG - Requesting: http://10.0.0.242:8082/project/0212a624-5ed8-410f-925e-e06bc6e298ae
2025-10-16 09:33:57,797 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2fbc8512-aa5c-4e5a-a337-c5714257a495
2025-10-16 09:33:57,808 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2fbc8512-aa5c-4e5a-a337-c5714257a495
2025-10-16 09:33:57,816 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb818721-286d-4236-9d32-7284d5fb541e
2025-10-16 09:33:57,822 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb818721-286d-4236-9d32-7284d5fb541e
2025-10-16 09:33:57,828 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9df48551-53d4-4672-9c6d-ac9986989d8c
2025-10-16 09:33:57,834 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 09:33:57,834 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2fbc8512-aa5c-4e5a-a337-c5714257a495
2025-10-16 09:33:57,841 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb818721-286d-4236-9d32-7284d5fb541e
2025-10-16 09:33:57,852 - INFO - Verified VN network id 13 for VN 2fbc8512-aa5c-4e5a-a337-c5714257a495
2025-10-16 09:33:57,852 - INFO - Verifications in API Server for VN ctest-vn-84159203 passed
2025-10-16 09:33:57,852 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2fbc8512-aa5c-4e5a-a337-c5714257a495
2025-10-16 09:33:57,860 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb818721-286d-4236-9d32-7284d5fb541e
2025-10-16 09:33:57,866 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb818721-286d-4236-9d32-7284d5fb541e
2025-10-16 09:33:57,872 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9df48551-53d4-4672-9c6d-ac9986989d8c
2025-10-16 09:33:57,883 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-84159203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53848056', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3439770530618297946', 'uuid-lslong': '11761086042136355989'}, 'enable': 'true', 'created': '2025-10-16T09:33:55', 'last-modified': '2025-10-16T09:33:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.308922'}
2025-10-16 09:33:57,890 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 09:33:57,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84159203 passed
2025-10-16 09:33:57,891 - DEBUG - ====Verifying policy data for ctest-vn-84159203 in API_Server ======
2025-10-16 09:33:57,891 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-16 09:33:57,896 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b5f604ca-949a-4f9d-b947-4f065da907b0
2025-10-16 09:33:57,906 - DEBUG - Requesting: http://10.0.0.242:8082/project/0212a624-5ed8-410f-925e-e06bc6e298ae
2025-10-16 09:33:57,978 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2fbc8512-aa5c-4e5a-a337-c5714257a495
2025-10-16 09:33:57,987 - DEBUG - ==>Verifying data for policy with id: e3e2d520-3f71-468c-acfa-5c3d612f689d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53848056', 'ctest-policy-allow-all-10440518']
2025-10-16 09:33:57,987 - INFO - VN ctest-vn-84159203 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 09:33:57,987 - DEBUG - Verifying the vn in opserver
2025-10-16 09:33:57,987 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-84159203 virtual network link through opserver 10.0.0.242
2025-10-16 09:33:57,987 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-16 09:33:57,996 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-84159203', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-84159203?flat'}
2025-10-16 09:33:57,996 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53848056:ctest-vn-84159203 is found in opserver
2025-10-16 09:33:58,005 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 09:33:58,010 - DEBUG - VRF ids for VN ctest-vn-84159203: {}
2025-10-16 09:33:58,065 - DEBUG - Services list from nova: [