2025-11-20 17:27:40,961 - INFO - Domain Default found not creating
2025-11-20 17:27:41,124 - INFO - Project ctest-TestBasicPolicy-31108039 not found, creating it
2025-11-20 17:27:41,589 - INFO - Created Project:ctest-TestBasicPolicy-31108039, ID : 6337f272-1471-42b3-b4fb-17b1f9bb7043
2025-11-20 17:27:43,722 - INFO - ================================================================================
2025-11-20 17:27:43,722 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-20 17:27:43,723 - 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-11-20 17:27:43,981 - DEBUG - Nothing to compare xmpp stats {'10.0.0.145': {'10.20.0.249': '0'}} with
2025-11-20 17:27:43,981 - INFO - Initial checks done. Running the testcase now
2025-11-20 17:27:43,981 - INFO -
2025-11-20 17:27:44,539 - DEBUG - Response for create_network : {'network': {'id': '82f6c886-9f38-402c-8a24-9aeda9aa8d32', 'name': 'ctest-vn-20793551', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'project_id': '6337f272147142b3b4fb17b1f9bb7043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-vn-20793551'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:27:44,749 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d5289c3-df4b-4658-b94a-1ac1f66ffd8a', 'name': '', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'network_id': '82f6c886-9f38-402c-8a24-9aeda9aa8d32', 'ip_version': 4, 'cidr': '196.170.199.192/26', 'allocation_pools': [{'start': '196.170.199.194', 'end': '196.170.199.254'}], 'gateway_ip': '196.170.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.170.199.194', 'tags': [], 'project_id': '6337f272147142b3b4fb17b1f9bb7043'}}
2025-11-20 17:27:44,766 - INFO - Created VN ctest-vn-20793551
2025-11-20 17:27:44,827 - DEBUG - VN ctest-vn-20793551 UUID is 82f6c886-9f38-402c-8a24-9aeda9aa8d32
2025-11-20 17:27:45,139 - DEBUG - Response for create_network : {'network': {'id': '98e67367-23be-444e-b37e-dcad46f5527a', 'name': 'ctest-vn-20684599', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'project_id': '6337f272147142b3b4fb17b1f9bb7043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-vn-20684599'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:27:45,346 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1f52f6c-0f8d-4f6f-9403-8fa29fd8ed14', 'name': '', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'network_id': '98e67367-23be-444e-b37e-dcad46f5527a', 'ip_version': 4, 'cidr': '161.221.40.0/26', 'allocation_pools': [{'start': '161.221.40.2', 'end': '161.221.40.62'}], 'gateway_ip': '161.221.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.221.40.2', 'tags': [], 'project_id': '6337f272147142b3b4fb17b1f9bb7043'}}
2025-11-20 17:27:45,363 - INFO - Created VN ctest-vn-20684599
2025-11-20 17:27:45,416 - DEBUG - VN ctest-vn-20684599 UUID is 98e67367-23be-444e-b37e-dcad46f5527a
2025-11-20 17:27:45,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551, 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-31108039:ctest-vn-20684599, 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-11-20 17:27:45,850 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82f6c886-9f38-402c-8a24-9aeda9aa8d32', 'name': 'ctest-vn-20793551', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'project_id': '6337f272147142b3b4fb17b1f9bb7043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d5289c3-df4b-4658-b94a-1ac1f66ffd8a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-vn-20793551'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-policy-allow-all-77700383']], 'subnet_ipam': [{'subnet_cidr': '196.170.199.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:27:46,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98e67367-23be-444e-b37e-dcad46f5527a', 'name': 'ctest-vn-20684599', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'project_id': '6337f272147142b3b4fb17b1f9bb7043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1f52f6c-0f8d-4f6f-9403-8fa29fd8ed14'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-vn-20684599'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-policy-allow-all-77700383']], 'subnet_ipam': [{'subnet_cidr': '161.221.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:27:46,244 - DEBUG - Requesting: http://10.0.0.145:8082/domains
2025-11-20 17:27:46,537 - DEBUG - Requesting: http://10.0.0.145:8082/domains
2025-11-20 17:27:46,572 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948
2025-11-20 17:27:46,584 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043
2025-11-20 17:27:46,655 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32
2025-11-20 17:27:46,664 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32
2025-11-20 17:27:46,673 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa
2025-11-20 17:27:46,679 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa
2025-11-20 17:27:46,686 - DEBUG - Requesting: http://10.0.0.145:8082/route-target/3d4a99cb-727c-45eb-b8d6-34d87eab9afa
2025-11-20 17:27:46,692 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 17:27:46,692 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32
2025-11-20 17:27:46,700 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa
2025-11-20 17:27:46,714 - INFO - Verified VN network id 11 for VN 82f6c886-9f38-402c-8a24-9aeda9aa8d32
2025-11-20 17:27:46,714 - INFO - Verifications in API Server for VN ctest-vn-20793551 passed
2025-11-20 17:27:46,714 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32
2025-11-20 17:27:46,722 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa
2025-11-20 17:27:46,728 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa
2025-11-20 17:27:46,734 - DEBUG - Requesting: http://10.0.0.145:8082/route-target/3d4a99cb-727c-45eb-b8d6-34d87eab9afa
2025-11-20 17:27:46,746 - DEBUG - Control-node 10.0.0.145 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31108039', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9436950549723889708', 'uuid-lslong': '9954251421940092210'}, 'enable': 'true', 'created': '2025-11-20T17:27:44', 'last-modified': '2025-11-20T17:27:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915720'}
2025-11-20 17:27:46,752 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 17:27:46,752 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20793551 passed
2025-11-20 17:27:46,752 - DEBUG - ====Verifying policy data for ctest-vn-20793551 in API_Server ======
2025-11-20 17:27:46,753 - DEBUG - Requesting: http://10.0.0.145:8082/domains
2025-11-20 17:27:46,759 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948
2025-11-20 17:27:46,770 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043
2025-11-20 17:27:46,847 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32
2025-11-20 17:27:46,856 - DEBUG - ==>Verifying data for policy with id: 51b84581-2a7c-45c9-b916-da398d1cf2bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-policy-allow-all-77700383']
2025-11-20 17:27:46,856 - INFO - VN ctest-vn-20793551 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 17:27:46,856 - DEBUG - Verifying the vn in opserver
2025-11-20 17:27:46,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551 virtual network link through opserver 10.0.0.145
2025-11-20 17:27:46,856 - DEBUG - Requesting: http://10.0.0.145:8081/analytics/uves/virtual-networks
2025-11-20 17:27:47,146 - DEBUG - Requesting: http://10.0.0.145:8081/analytics/uves/virtual-networks
2025-11-20 17:27:47,201 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551', 'href': 'http://10.0.0.145:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551?flat'}
2025-11-20 17:27:47,201 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551 is found in opserver
2025-11-20 17:27:47,211 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 17:27:47,216 - DEBUG - VRF ids for VN ctest-vn-20793551: {}
2025-11-20 17:27:47,216 - DEBUG - Requesting: http://10.0.0.145:8082/domains
2025-11-20 17:27:47,221 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948
2025-11-20 17:27:47,231 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043
2025-11-20 17:27:47,299 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a
2025-11-20 17:27:47,311 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a
2025-11-20 17:27:47,320 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516
2025-11-20 17:27:47,326 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516
2025-11-20 17:27:47,333 - DEBUG - Requesting: http://10.0.0.145:8082/route-target/789913aa-070d-4c06-b9fa-6d74cf7c7aaa
2025-11-20 17:27:47,338 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 17:27:47,338 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a
2025-11-20 17:27:47,347 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516
2025-11-20 17:27:47,360 - INFO - Verified VN network id 12 for VN 98e67367-23be-444e-b37e-dcad46f5527a
2025-11-20 17:27:47,360 - INFO - Verifications in API Server for VN ctest-vn-20684599 passed
2025-11-20 17:27:47,360 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a
2025-11-20 17:27:47,370 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516
2025-11-20 17:27:47,377 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516
2025-11-20 17:27:47,383 - DEBUG - Requesting: http://10.0.0.145:8082/route-target/789913aa-070d-4c06-b9fa-6d74cf7c7aaa
2025-11-20 17:27:47,394 - DEBUG - Control-node 10.0.0.145 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31108039', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11017620425226994766', 'uuid-lslong': '12934017816632578682'}, 'enable': 'true', 'created': '2025-11-20T17:27:45', 'last-modified': '2025-11-20T17:27:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.332520'}
2025-11-20 17:27:47,400 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 17:27:47,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20684599 passed
2025-11-20 17:27:47,400 - DEBUG - ====Verifying policy data for ctest-vn-20684599 in API_Server ======
2025-11-20 17:27:47,400 - DEBUG - Requesting: http://10.0.0.145:8082/domains
2025-11-20 17:27:47,406 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948
2025-11-20 17:27:47,416 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043
2025-11-20 17:27:47,483 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a
2025-11-20 17:27:47,492 - DEBUG - ==>Verifying data for policy with id: 51b84581-2a7c-45c9-b916-da398d1cf2bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-policy-allow-all-77700383']
2025-11-20 17:27:47,492 - INFO - VN ctest-vn-20684599 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 17:27:47,492 - DEBUG - Verifying the vn in opserver
2025-11-20 17:27:47,492 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599 virtual network link through opserver 10.0.0.145
2025-11-20 17:27:47,492 - DEBUG - Requesting: http://10.0.0.145:8081/analytics/uves/virtual-networks
2025-11-20 17:27:47,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599', 'href': 'http://10.0.0.145:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599?flat'}
2025-11-20 17:27:47,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599 is found in opserver
2025-11-20 17:27:47,511 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 17:27:47,515 - DEBUG - VRF ids for VN ctest-vn-20684599: {}
2025-11-20 17:27:47,577 - DEBUG - Services list from nova: [