2025-10-16 15:21:18,571 - INFO - Domain Default found not creating
2025-10-16 15:21:18,771 - INFO - Project ctest-TestBasicPolicy-87381598 not found, creating it
2025-10-16 15:21:19,375 - INFO - Created Project:ctest-TestBasicPolicy-87381598, ID : f48f779a-eca9-4833-817b-53780d8d575c
2025-10-16 15:21:20,971 - INFO - ================================================================================
2025-10-16 15:21:20,971 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-16 15:21:20,971 - 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 15:21:21,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-10-16 15:21:21,231 - INFO - Initial checks done. Running the testcase now
2025-10-16 15:21:21,231 - INFO -
2025-10-16 15:21:21,826 - DEBUG - Response for create_network : {'network': {'id': 'f9b27c7b-1e62-473a-9c15-3d9167a8914d', 'name': 'ctest-vn-35744525', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'project_id': 'f48f779aeca94833817b53780d8d575c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-vn-35744525'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 15:21:22,018 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e5d7c4b-df69-4710-8bb6-2826ad347ea4', 'name': '', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'network_id': 'f9b27c7b-1e62-473a-9c15-3d9167a8914d', 'ip_version': 4, 'cidr': '14.45.209.64/26', 'allocation_pools': [{'start': '14.45.209.66', 'end': '14.45.209.126'}], 'gateway_ip': '14.45.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.45.209.66', 'tags': [], 'project_id': 'f48f779aeca94833817b53780d8d575c'}}
2025-10-16 15:21:22,038 - INFO - Created VN ctest-vn-35744525
2025-10-16 15:21:22,095 - DEBUG - VN ctest-vn-35744525 UUID is f9b27c7b-1e62-473a-9c15-3d9167a8914d
2025-10-16 15:21:22,417 - DEBUG - Response for create_network : {'network': {'id': 'bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647', 'name': 'ctest-vn-97911301', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'project_id': 'f48f779aeca94833817b53780d8d575c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-vn-97911301'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 15:21:22,628 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f021b6da-045e-47b3-89a2-b882d93c7f9b', 'name': '', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'network_id': 'bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647', 'ip_version': 4, 'cidr': '46.32.239.192/26', 'allocation_pools': [{'start': '46.32.239.194', 'end': '46.32.239.254'}], 'gateway_ip': '46.32.239.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.32.239.194', 'tags': [], 'project_id': 'f48f779aeca94833817b53780d8d575c'}}
2025-10-16 15:21:22,647 - INFO - Created VN ctest-vn-97911301
2025-10-16 15:21:22,702 - DEBUG - VN ctest-vn-97911301 UUID is bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647
2025-10-16 15:21:22,829 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525, 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-87381598:ctest-vn-97911301, 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 15:21:23,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9b27c7b-1e62-473a-9c15-3d9167a8914d', 'name': 'ctest-vn-35744525', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'project_id': 'f48f779aeca94833817b53780d8d575c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e5d7c4b-df69-4710-8bb6-2826ad347ea4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-vn-35744525'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-policy-allow-all-41249665']], 'subnet_ipam': [{'subnet_cidr': '14.45.209.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 15:21:23,424 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647', 'name': 'ctest-vn-97911301', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'project_id': 'f48f779aeca94833817b53780d8d575c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f021b6da-045e-47b3-89a2-b882d93c7f9b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-vn-97911301'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-policy-allow-all-41249665']], 'subnet_ipam': [{'subnet_cidr': '46.32.239.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 15:21:23,595 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 15:21:23,910 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 15:21:23,946 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2
2025-10-16 15:21:23,963 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c
2025-10-16 15:21:24,054 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d
2025-10-16 15:21:24,069 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d
2025-10-16 15:21:24,085 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96
2025-10-16 15:21:24,095 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96
2025-10-16 15:21:24,105 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/711e35e3-ebff-43ee-9654-46eb060a7915
2025-10-16 15:21:24,114 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 15:21:24,114 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d
2025-10-16 15:21:24,125 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96
2025-10-16 15:21:24,146 - INFO - Verified VN network id 12 for VN f9b27c7b-1e62-473a-9c15-3d9167a8914d
2025-10-16 15:21:24,146 - INFO - Verifications in API Server for VN ctest-vn-35744525 passed
2025-10-16 15:21:24,146 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d
2025-10-16 15:21:24,157 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96
2025-10-16 15:21:24,164 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96
2025-10-16 15:21:24,172 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/711e35e3-ebff-43ee-9654-46eb060a7915
2025-10-16 15:21:24,184 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87381598', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17992580329531131706', 'uuid-lslong': '11246963339146334541'}, 'enable': 'true', 'created': '2025-10-16T15:21:21', 'last-modified': '2025-10-16T15:21:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032666'}
2025-10-16 15:21:24,191 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 15:21:24,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35744525 passed
2025-10-16 15:21:24,192 - DEBUG - ====Verifying policy data for ctest-vn-35744525 in API_Server ======
2025-10-16 15:21:24,192 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 15:21:24,198 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2
2025-10-16 15:21:24,213 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c
2025-10-16 15:21:24,290 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d
2025-10-16 15:21:24,304 - DEBUG - ==>Verifying data for policy with id: 3554eb2f-c8f5-4a23-af1f-17d8c62e4733, fqn: ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-policy-allow-all-41249665']
2025-10-16 15:21:24,304 - INFO - VN ctest-vn-35744525 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 15:21:24,304 - DEBUG - Verifying the vn in opserver
2025-10-16 15:21:24,304 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525 virtual network link through opserver 10.0.0.22
2025-10-16 15:21:24,304 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-16 15:21:24,605 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-16 15:21:24,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525?flat'}
2025-10-16 15:21:24,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525 is found in opserver
2025-10-16 15:21:24,688 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 15:21:24,694 - DEBUG - VRF ids for VN ctest-vn-35744525: {}
2025-10-16 15:21:24,694 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 15:21:24,700 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2
2025-10-16 15:21:24,713 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c
2025-10-16 15:21:24,786 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647
2025-10-16 15:21:24,797 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647
2025-10-16 15:21:24,808 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130
2025-10-16 15:21:24,816 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130
2025-10-16 15:21:24,825 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a2e5762f-7646-4710-aef2-22fc51cded09
2025-10-16 15:21:24,833 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 15:21:24,833 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647
2025-10-16 15:21:24,846 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130
2025-10-16 15:21:24,864 - INFO - Verified VN network id 13 for VN bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647
2025-10-16 15:21:24,864 - INFO - Verifications in API Server for VN ctest-vn-97911301 passed
2025-10-16 15:21:24,864 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647
2025-10-16 15:21:24,888 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130
2025-10-16 15:21:24,898 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130
2025-10-16 15:21:24,908 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a2e5762f-7646-4710-aef2-22fc51cded09
2025-10-16 15:21:24,923 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87381598', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13685276049748675635', 'uuid-lslong': '12894567599127184967'}, 'enable': 'true', 'created': '2025-10-16T15:21:22', 'last-modified': '2025-10-16T15:21:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530072'}
2025-10-16 15:21:24,929 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 15:21:24,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97911301 passed
2025-10-16 15:21:24,930 - DEBUG - ====Verifying policy data for ctest-vn-97911301 in API_Server ======
2025-10-16 15:21:24,930 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 15:21:24,938 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2
2025-10-16 15:21:24,952 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c
2025-10-16 15:21:25,033 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647
2025-10-16 15:21:25,043 - DEBUG - ==>Verifying data for policy with id: 3554eb2f-c8f5-4a23-af1f-17d8c62e4733, fqn: ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-policy-allow-all-41249665']
2025-10-16 15:21:25,043 - INFO - VN ctest-vn-97911301 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 15:21:25,043 - DEBUG - Verifying the vn in opserver
2025-10-16 15:21:25,043 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301 virtual network link through opserver 10.0.0.22
2025-10-16 15:21:25,043 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-16 15:21:25,055 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301?flat'}
2025-10-16 15:21:25,055 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301 is found in opserver
2025-10-16 15:21:25,068 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 15:21:25,074 - DEBUG - VRF ids for VN ctest-vn-97911301: {}
2025-10-16 15:21:25,136 - DEBUG - Services list from nova: [