2025-11-24 18:09:10,074 - INFO - Domain Default found not creating
2025-11-24 18:09:10,250 - INFO - Project ctest-TestBasicPolicy-88799036 not found, creating it
2025-11-24 18:09:10,710 - INFO - Created Project:ctest-TestBasicPolicy-88799036, ID : 17034ef3-d8f4-4114-95db-b6e001ca24a9
2025-11-24 18:09:12,128 - INFO - ================================================================================
2025-11-24 18:09:12,128 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 18:09:12,128 - 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-24 18:09:12,384 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-11-24 18:09:12,384 - INFO - Initial checks done. Running the testcase now
2025-11-24 18:09:12,384 - INFO -
2025-11-24 18:09:12,902 - DEBUG - Response for create_network : {'network': {'id': 'e18096a0-ba7a-4dc7-987e-3f53bf722b74', 'name': 'ctest-vn-99404952', 'tenant_id': '17034ef3d8f4411495dbb6e001ca24a9', 'project_id': '17034ef3d8f4411495dbb6e001ca24a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88799036', 'ctest-vn-99404952'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:09:13,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '363e2a45-d52f-42b3-82c7-302176786183', 'name': '', 'tenant_id': '17034ef3d8f4411495dbb6e001ca24a9', 'network_id': 'e18096a0-ba7a-4dc7-987e-3f53bf722b74', 'ip_version': 4, 'cidr': '14.28.252.192/26', 'allocation_pools': [{'start': '14.28.252.194', 'end': '14.28.252.254'}], 'gateway_ip': '14.28.252.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.28.252.194', 'tags': [], 'project_id': '17034ef3d8f4411495dbb6e001ca24a9'}}
2025-11-24 18:09:13,081 - INFO - Created VN ctest-vn-99404952
2025-11-24 18:09:13,131 - DEBUG - VN ctest-vn-99404952 UUID is e18096a0-ba7a-4dc7-987e-3f53bf722b74
2025-11-24 18:09:13,411 - DEBUG - Response for create_network : {'network': {'id': 'af22189e-c698-4d02-bee3-32023572148e', 'name': 'ctest-vn-03812232', 'tenant_id': '17034ef3d8f4411495dbb6e001ca24a9', 'project_id': '17034ef3d8f4411495dbb6e001ca24a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88799036', 'ctest-vn-03812232'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:09:13,570 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b429ac4-d8cb-4946-8944-21bd90e8cc92', 'name': '', 'tenant_id': '17034ef3d8f4411495dbb6e001ca24a9', 'network_id': 'af22189e-c698-4d02-bee3-32023572148e', 'ip_version': 4, 'cidr': '216.54.161.128/26', 'allocation_pools': [{'start': '216.54.161.130', 'end': '216.54.161.190'}], 'gateway_ip': '216.54.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.54.161.130', 'tags': [], 'project_id': '17034ef3d8f4411495dbb6e001ca24a9'}}
2025-11-24 18:09:13,585 - INFO - Created VN ctest-vn-03812232
2025-11-24 18:09:13,635 - DEBUG - VN ctest-vn-03812232 UUID is af22189e-c698-4d02-bee3-32023572148e
2025-11-24 18:09:13,791 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-99404952, 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-88799036:ctest-vn-03812232, 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-24 18:09:14,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e18096a0-ba7a-4dc7-987e-3f53bf722b74', 'name': 'ctest-vn-99404952', 'tenant_id': '17034ef3d8f4411495dbb6e001ca24a9', 'project_id': '17034ef3d8f4411495dbb6e001ca24a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['363e2a45-d52f-42b3-82c7-302176786183'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88799036', 'ctest-vn-99404952'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88799036', 'ctest-policy-allow-all-68292712']], 'subnet_ipam': [{'subnet_cidr': '14.28.252.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:09:14,292 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af22189e-c698-4d02-bee3-32023572148e', 'name': 'ctest-vn-03812232', 'tenant_id': '17034ef3d8f4411495dbb6e001ca24a9', 'project_id': '17034ef3d8f4411495dbb6e001ca24a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b429ac4-d8cb-4946-8944-21bd90e8cc92'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88799036', 'ctest-vn-03812232'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88799036', 'ctest-policy-allow-all-68292712']], 'subnet_ipam': [{'subnet_cidr': '216.54.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:09:14,455 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 18:09:14,755 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 18:09:14,784 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d4f84fef-8b6d-4cbc-af66-f93dd86acbde
2025-11-24 18:09:14,794 - DEBUG - Requesting: http://10.0.0.22:8082/project/17034ef3-d8f4-4114-95db-b6e001ca24a9
2025-11-24 18:09:14,864 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e18096a0-ba7a-4dc7-987e-3f53bf722b74
2025-11-24 18:09:14,874 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e18096a0-ba7a-4dc7-987e-3f53bf722b74
2025-11-24 18:09:14,883 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1714e23d-ed16-49ea-94e9-1a491c6cea6e
2025-11-24 18:09:14,890 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1714e23d-ed16-49ea-94e9-1a491c6cea6e
2025-11-24 18:09:14,897 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1cb743d7-ec9a-4153-b3d9-d87eb8cfa63c
2025-11-24 18:09:14,905 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 18:09:14,905 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e18096a0-ba7a-4dc7-987e-3f53bf722b74
2025-11-24 18:09:14,915 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1714e23d-ed16-49ea-94e9-1a491c6cea6e
2025-11-24 18:09:14,929 - INFO - Verified VN network id 11 for VN e18096a0-ba7a-4dc7-987e-3f53bf722b74
2025-11-24 18:09:14,929 - INFO - Verifications in API Server for VN ctest-vn-99404952 passed
2025-11-24 18:09:14,929 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e18096a0-ba7a-4dc7-987e-3f53bf722b74
2025-11-24 18:09:14,936 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1714e23d-ed16-49ea-94e9-1a491c6cea6e
2025-11-24 18:09:14,942 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1714e23d-ed16-49ea-94e9-1a491c6cea6e
2025-11-24 18:09:14,948 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1cb743d7-ec9a-4153-b3d9-d87eb8cfa63c
2025-11-24 18:09:14,958 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-99404952', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88799036', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16249153072620260807', 'uuid-lslong': '10988289769757354868'}, 'enable': 'true', 'created': '2025-11-24T18:09:12', 'last-modified': '2025-11-24T18:09:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.902147'}
2025-11-24 18:09:14,966 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 18:09:14,966 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99404952 passed
2025-11-24 18:09:14,967 - DEBUG - ====Verifying policy data for ctest-vn-99404952 in API_Server ======
2025-11-24 18:09:14,967 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 18:09:14,971 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d4f84fef-8b6d-4cbc-af66-f93dd86acbde
2025-11-24 18:09:14,981 - DEBUG - Requesting: http://10.0.0.22:8082/project/17034ef3-d8f4-4114-95db-b6e001ca24a9
2025-11-24 18:09:15,051 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e18096a0-ba7a-4dc7-987e-3f53bf722b74
2025-11-24 18:09:15,059 - DEBUG - ==>Verifying data for policy with id: 92508b43-eb9e-4c20-8ce7-185b1ed9e89f, fqn: ['default-domain', 'ctest-TestBasicPolicy-88799036', 'ctest-policy-allow-all-68292712']
2025-11-24 18:09:15,059 - INFO - VN ctest-vn-99404952 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 18:09:15,059 - DEBUG - Verifying the vn in opserver
2025-11-24 18:09:15,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-99404952 virtual network link through opserver 10.0.0.22
2025-11-24 18:09:15,060 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-24 18:09:15,353 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-24 18:09:15,410 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-99404952', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-99404952?flat'}
2025-11-24 18:09:15,410 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-99404952 is found in opserver
2025-11-24 18:09:15,418 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 18:09:15,423 - DEBUG - VRF ids for VN ctest-vn-99404952: {}
2025-11-24 18:09:15,423 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 18:09:15,427 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d4f84fef-8b6d-4cbc-af66-f93dd86acbde
2025-11-24 18:09:15,438 - DEBUG - Requesting: http://10.0.0.22:8082/project/17034ef3-d8f4-4114-95db-b6e001ca24a9
2025-11-24 18:09:15,511 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af22189e-c698-4d02-bee3-32023572148e
2025-11-24 18:09:15,523 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af22189e-c698-4d02-bee3-32023572148e
2025-11-24 18:09:15,531 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cedd2478-5920-423b-9f45-910522d60cb7
2025-11-24 18:09:15,538 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cedd2478-5920-423b-9f45-910522d60cb7
2025-11-24 18:09:15,545 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d1b33003-7139-4dad-af2e-96a3c82ca569
2025-11-24 18:09:15,552 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 18:09:15,552 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af22189e-c698-4d02-bee3-32023572148e
2025-11-24 18:09:15,560 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cedd2478-5920-423b-9f45-910522d60cb7
2025-11-24 18:09:15,574 - INFO - Verified VN network id 12 for VN af22189e-c698-4d02-bee3-32023572148e
2025-11-24 18:09:15,574 - INFO - Verifications in API Server for VN ctest-vn-03812232 passed
2025-11-24 18:09:15,574 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af22189e-c698-4d02-bee3-32023572148e
2025-11-24 18:09:15,584 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cedd2478-5920-423b-9f45-910522d60cb7
2025-11-24 18:09:15,592 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cedd2478-5920-423b-9f45-910522d60cb7
2025-11-24 18:09:15,599 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d1b33003-7139-4dad-af2e-96a3c82ca569
2025-11-24 18:09:15,610 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-03812232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88799036', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12619676176061320450', 'uuid-lslong': '13754892671987618958'}, 'enable': 'true', 'created': '2025-11-24T18:09:13', 'last-modified': '2025-11-24T18:09:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338286'}
2025-11-24 18:09:15,615 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 18:09:15,615 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03812232 passed
2025-11-24 18:09:15,615 - DEBUG - ====Verifying policy data for ctest-vn-03812232 in API_Server ======
2025-11-24 18:09:15,615 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 18:09:15,621 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d4f84fef-8b6d-4cbc-af66-f93dd86acbde
2025-11-24 18:09:15,631 - DEBUG - Requesting: http://10.0.0.22:8082/project/17034ef3-d8f4-4114-95db-b6e001ca24a9
2025-11-24 18:09:15,708 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af22189e-c698-4d02-bee3-32023572148e
2025-11-24 18:09:15,717 - DEBUG - ==>Verifying data for policy with id: 92508b43-eb9e-4c20-8ce7-185b1ed9e89f, fqn: ['default-domain', 'ctest-TestBasicPolicy-88799036', 'ctest-policy-allow-all-68292712']
2025-11-24 18:09:15,718 - INFO - VN ctest-vn-03812232 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 18:09:15,718 - DEBUG - Verifying the vn in opserver
2025-11-24 18:09:15,718 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-03812232 virtual network link through opserver 10.0.0.22
2025-11-24 18:09:15,718 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-24 18:09:15,726 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-03812232', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-03812232?flat'}
2025-11-24 18:09:15,726 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88799036:ctest-vn-03812232 is found in opserver
2025-11-24 18:09:15,736 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 18:09:15,741 - DEBUG - VRF ids for VN ctest-vn-03812232: {}
2025-11-24 18:09:15,806 - DEBUG - Services list from nova: [