2025-10-07 16:51:15,412 - INFO - Domain Default found not creating
2025-10-07 16:51:15,573 - INFO - Project ctest-TestBasicPolicy-39490800 not found, creating it
2025-10-07 16:51:16,078 - INFO - Created Project:ctest-TestBasicPolicy-39490800, ID : 2c867e7d-ce38-486d-8b06-a3a5526d1da7
2025-10-07 16:51:17,688 - INFO - ================================================================================
2025-10-07 16:51:17,688 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-07 16:51:17,689 - 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-07 16:51:17,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-07 16:51:17,952 - INFO - Initial checks done. Running the testcase now
2025-10-07 16:51:17,952 - INFO -
2025-10-07 16:51:18,502 - DEBUG - Response for create_network : {'network': {'id': 'cd893745-cea1-4864-b54c-89dc4bc5d0f5', 'name': 'ctest-vn-54146838', 'tenant_id': '2c867e7dce38486d8b06a3a5526d1da7', 'project_id': '2c867e7dce38486d8b06a3a5526d1da7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39490800', 'ctest-vn-54146838'], 'port_security_enabled': True, 'description': ''}}
2025-10-07 16:51:18,671 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1584aca-f8bf-4387-9f09-2cca02400d9d', 'name': '', 'tenant_id': '2c867e7dce38486d8b06a3a5526d1da7', 'network_id': 'cd893745-cea1-4864-b54c-89dc4bc5d0f5', 'ip_version': 4, 'cidr': '148.248.94.192/26', 'allocation_pools': [{'start': '148.248.94.194', 'end': '148.248.94.254'}], 'gateway_ip': '148.248.94.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.248.94.194', 'tags': [], 'project_id': '2c867e7dce38486d8b06a3a5526d1da7'}}
2025-10-07 16:51:18,693 - INFO - Created VN ctest-vn-54146838
2025-10-07 16:51:18,750 - DEBUG - VN ctest-vn-54146838 UUID is cd893745-cea1-4864-b54c-89dc4bc5d0f5
2025-10-07 16:51:19,054 - DEBUG - Response for create_network : {'network': {'id': '138b3158-afc0-4e3d-8b15-5f3e3ffa92a9', 'name': 'ctest-vn-83638284', 'tenant_id': '2c867e7dce38486d8b06a3a5526d1da7', 'project_id': '2c867e7dce38486d8b06a3a5526d1da7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39490800', 'ctest-vn-83638284'], 'port_security_enabled': True, 'description': ''}}
2025-10-07 16:51:19,259 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4ea2cbb-6693-4f45-9105-eeb5d21c1f0c', 'name': '', 'tenant_id': '2c867e7dce38486d8b06a3a5526d1da7', 'network_id': '138b3158-afc0-4e3d-8b15-5f3e3ffa92a9', 'ip_version': 4, 'cidr': '33.163.63.192/26', 'allocation_pools': [{'start': '33.163.63.194', 'end': '33.163.63.254'}], 'gateway_ip': '33.163.63.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.163.63.194', 'tags': [], 'project_id': '2c867e7dce38486d8b06a3a5526d1da7'}}
2025-10-07 16:51:19,277 - INFO - Created VN ctest-vn-83638284
2025-10-07 16:51:19,330 - DEBUG - VN ctest-vn-83638284 UUID is 138b3158-afc0-4e3d-8b15-5f3e3ffa92a9
2025-10-07 16:51:19,446 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-54146838, 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-39490800:ctest-vn-83638284, 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-07 16:51:19,738 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd893745-cea1-4864-b54c-89dc4bc5d0f5', 'name': 'ctest-vn-54146838', 'tenant_id': '2c867e7dce38486d8b06a3a5526d1da7', 'project_id': '2c867e7dce38486d8b06a3a5526d1da7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1584aca-f8bf-4387-9f09-2cca02400d9d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39490800', 'ctest-vn-54146838'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39490800', 'ctest-policy-allow-all-92416060']], 'subnet_ipam': [{'subnet_cidr': '148.248.94.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-07 16:51:19,964 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '138b3158-afc0-4e3d-8b15-5f3e3ffa92a9', 'name': 'ctest-vn-83638284', 'tenant_id': '2c867e7dce38486d8b06a3a5526d1da7', 'project_id': '2c867e7dce38486d8b06a3a5526d1da7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4ea2cbb-6693-4f45-9105-eeb5d21c1f0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39490800', 'ctest-vn-83638284'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39490800', 'ctest-policy-allow-all-92416060']], 'subnet_ipam': [{'subnet_cidr': '33.163.63.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-07 16:51:20,127 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 16:51:20,423 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 16:51:20,451 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c5cc07ef-53b4-4807-908f-62edecbcce18
2025-10-07 16:51:20,462 - DEBUG - Requesting: http://10.0.0.254:8082/project/2c867e7d-ce38-486d-8b06-a3a5526d1da7
2025-10-07 16:51:20,535 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cd893745-cea1-4864-b54c-89dc4bc5d0f5
2025-10-07 16:51:20,544 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cd893745-cea1-4864-b54c-89dc4bc5d0f5
2025-10-07 16:51:20,553 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1778216e-b06b-4149-b3c3-8303038e7246
2025-10-07 16:51:20,561 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1778216e-b06b-4149-b3c3-8303038e7246
2025-10-07 16:51:20,567 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eb5aeeb4-5490-49e8-b47f-3367738339c0
2025-10-07 16:51:20,573 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-07 16:51:20,573 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cd893745-cea1-4864-b54c-89dc4bc5d0f5
2025-10-07 16:51:20,581 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1778216e-b06b-4149-b3c3-8303038e7246
2025-10-07 16:51:20,594 - INFO - Verified VN network id 11 for VN cd893745-cea1-4864-b54c-89dc4bc5d0f5
2025-10-07 16:51:20,594 - INFO - Verifications in API Server for VN ctest-vn-54146838 passed
2025-10-07 16:51:20,594 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cd893745-cea1-4864-b54c-89dc4bc5d0f5
2025-10-07 16:51:20,601 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1778216e-b06b-4149-b3c3-8303038e7246
2025-10-07 16:51:20,607 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1778216e-b06b-4149-b3c3-8303038e7246
2025-10-07 16:51:20,614 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eb5aeeb4-5490-49e8-b47f-3367738339c0
2025-10-07 16:51:20,625 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-54146838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39490800', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14810429622543534180', 'uuid-lslong': '13063968198352031989'}, 'enable': 'true', 'created': '2025-10-07T16:51:18', 'last-modified': '2025-10-07T16:51:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907805'}
2025-10-07 16:51:20,630 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-07 16:51:20,630 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54146838 passed
2025-10-07 16:51:20,631 - DEBUG - ====Verifying policy data for ctest-vn-54146838 in API_Server ======
2025-10-07 16:51:20,631 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 16:51:20,635 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c5cc07ef-53b4-4807-908f-62edecbcce18
2025-10-07 16:51:20,647 - DEBUG - Requesting: http://10.0.0.254:8082/project/2c867e7d-ce38-486d-8b06-a3a5526d1da7
2025-10-07 16:51:20,718 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cd893745-cea1-4864-b54c-89dc4bc5d0f5
2025-10-07 16:51:20,729 - DEBUG - ==>Verifying data for policy with id: 5bcb3f3d-116b-458d-a140-196fa9e12d1a, fqn: ['default-domain', 'ctest-TestBasicPolicy-39490800', 'ctest-policy-allow-all-92416060']
2025-10-07 16:51:20,729 - INFO - VN ctest-vn-54146838 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-07 16:51:20,729 - DEBUG - Verifying the vn in opserver
2025-10-07 16:51:20,729 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-54146838 virtual network link through opserver 10.0.0.254
2025-10-07 16:51:20,729 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-07 16:51:21,025 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-07 16:51:21,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-54146838', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-54146838?flat'}
2025-10-07 16:51:21,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-54146838 is found in opserver
2025-10-07 16:51:21,089 - DEBUG - Do not have enough data to verify VN in agent
2025-10-07 16:51:21,094 - DEBUG - VRF ids for VN ctest-vn-54146838: {}
2025-10-07 16:51:21,094 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 16:51:21,100 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c5cc07ef-53b4-4807-908f-62edecbcce18
2025-10-07 16:51:21,110 - DEBUG - Requesting: http://10.0.0.254:8082/project/2c867e7d-ce38-486d-8b06-a3a5526d1da7
2025-10-07 16:51:21,179 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/138b3158-afc0-4e3d-8b15-5f3e3ffa92a9
2025-10-07 16:51:21,190 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/138b3158-afc0-4e3d-8b15-5f3e3ffa92a9
2025-10-07 16:51:21,199 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e14527d-8764-413a-8592-1fe3643273ef
2025-10-07 16:51:21,205 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e14527d-8764-413a-8592-1fe3643273ef
2025-10-07 16:51:21,212 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/07f95fa4-d7dc-4ee9-b484-06a13a9bc170
2025-10-07 16:51:21,217 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-07 16:51:21,217 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/138b3158-afc0-4e3d-8b15-5f3e3ffa92a9
2025-10-07 16:51:21,225 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e14527d-8764-413a-8592-1fe3643273ef
2025-10-07 16:51:21,238 - INFO - Verified VN network id 12 for VN 138b3158-afc0-4e3d-8b15-5f3e3ffa92a9
2025-10-07 16:51:21,238 - INFO - Verifications in API Server for VN ctest-vn-83638284 passed
2025-10-07 16:51:21,238 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/138b3158-afc0-4e3d-8b15-5f3e3ffa92a9
2025-10-07 16:51:21,246 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e14527d-8764-413a-8592-1fe3643273ef
2025-10-07 16:51:21,252 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e14527d-8764-413a-8592-1fe3643273ef
2025-10-07 16:51:21,258 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/07f95fa4-d7dc-4ee9-b484-06a13a9bc170
2025-10-07 16:51:21,268 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-83638284', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39490800', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1408273565458910781', 'uuid-lslong': '10022021266748904105'}, 'enable': 'true', 'created': '2025-10-07T16:51:19', 'last-modified': '2025-10-07T16:51:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318612'}
2025-10-07 16:51:21,275 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-07 16:51:21,275 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83638284 passed
2025-10-07 16:51:21,275 - DEBUG - ====Verifying policy data for ctest-vn-83638284 in API_Server ======
2025-10-07 16:51:21,275 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 16:51:21,281 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c5cc07ef-53b4-4807-908f-62edecbcce18
2025-10-07 16:51:21,291 - DEBUG - Requesting: http://10.0.0.254:8082/project/2c867e7d-ce38-486d-8b06-a3a5526d1da7
2025-10-07 16:51:21,357 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/138b3158-afc0-4e3d-8b15-5f3e3ffa92a9
2025-10-07 16:51:21,370 - DEBUG - ==>Verifying data for policy with id: 5bcb3f3d-116b-458d-a140-196fa9e12d1a, fqn: ['default-domain', 'ctest-TestBasicPolicy-39490800', 'ctest-policy-allow-all-92416060']
2025-10-07 16:51:21,370 - INFO - VN ctest-vn-83638284 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-07 16:51:21,370 - DEBUG - Verifying the vn in opserver
2025-10-07 16:51:21,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-83638284 virtual network link through opserver 10.0.0.254
2025-10-07 16:51:21,370 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-07 16:51:21,380 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-83638284', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-83638284?flat'}
2025-10-07 16:51:21,380 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39490800:ctest-vn-83638284 is found in opserver
2025-10-07 16:51:21,389 - DEBUG - Do not have enough data to verify VN in agent
2025-10-07 16:51:21,393 - DEBUG - VRF ids for VN ctest-vn-83638284: {}
2025-10-07 16:51:21,448 - DEBUG - Services list from nova: [