2025-09-09 07:04:42,144 - INFO - Domain Default found not creating
2025-09-09 07:04:42,289 - INFO - Project ctest-TestBasicPolicy-47115783 not found, creating it
2025-09-09 07:04:42,743 - INFO - Created Project:ctest-TestBasicPolicy-47115783, ID : c676c38c-0788-43f6-b3d6-4363684d245e
2025-09-09 07:04:44,308 - INFO - ================================================================================
2025-09-09 07:04:44,308 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-09 07:04:44,308 - 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-09-09 07:04:44,568 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-09-09 07:04:44,568 - INFO - Initial checks done. Running the testcase now
2025-09-09 07:04:44,568 - INFO -
2025-09-09 07:04:45,145 - DEBUG - Response for create_network : {'network': {'id': 'f3f1b83a-796d-4061-834d-ec697a43b320', 'name': 'ctest-vn-05931792', 'tenant_id': 'c676c38c078843f6b3d64363684d245e', 'project_id': 'c676c38c078843f6b3d64363684d245e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47115783', 'ctest-vn-05931792'], 'port_security_enabled': True, 'description': ''}}
2025-09-09 07:04:45,362 - DEBUG - Response for create_subnet : {'subnet': {'id': '60c9f73c-e7d7-48ec-b910-aad02aa843d5', 'name': '', 'tenant_id': 'c676c38c078843f6b3d64363684d245e', 'network_id': 'f3f1b83a-796d-4061-834d-ec697a43b320', 'ip_version': 4, 'cidr': '89.60.247.64/26', 'allocation_pools': [{'start': '89.60.247.66', 'end': '89.60.247.126'}], 'gateway_ip': '89.60.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.60.247.66', 'tags': [], 'project_id': 'c676c38c078843f6b3d64363684d245e'}}
2025-09-09 07:04:45,380 - INFO - Created VN ctest-vn-05931792
2025-09-09 07:04:45,434 - DEBUG - VN ctest-vn-05931792 UUID is f3f1b83a-796d-4061-834d-ec697a43b320
2025-09-09 07:04:45,726 - DEBUG - Response for create_network : {'network': {'id': '96b447ee-0add-4de9-8d51-2daa210db9ef', 'name': 'ctest-vn-32889197', 'tenant_id': 'c676c38c078843f6b3d64363684d245e', 'project_id': 'c676c38c078843f6b3d64363684d245e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47115783', 'ctest-vn-32889197'], 'port_security_enabled': True, 'description': ''}}
2025-09-09 07:04:45,949 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce0e66d4-aaf8-44b2-8534-ad20631cd191', 'name': '', 'tenant_id': 'c676c38c078843f6b3d64363684d245e', 'network_id': '96b447ee-0add-4de9-8d51-2daa210db9ef', 'ip_version': 4, 'cidr': '8.81.212.0/26', 'allocation_pools': [{'start': '8.81.212.2', 'end': '8.81.212.62'}], 'gateway_ip': '8.81.212.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.81.212.2', 'tags': [], 'project_id': 'c676c38c078843f6b3d64363684d245e'}}
2025-09-09 07:04:45,968 - INFO - Created VN ctest-vn-32889197
2025-09-09 07:04:46,018 - DEBUG - VN ctest-vn-32889197 UUID is 96b447ee-0add-4de9-8d51-2daa210db9ef
2025-09-09 07:04:46,133 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-05931792, 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-47115783:ctest-vn-32889197, 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-09-09 07:04:46,435 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3f1b83a-796d-4061-834d-ec697a43b320', 'name': 'ctest-vn-05931792', 'tenant_id': 'c676c38c078843f6b3d64363684d245e', 'project_id': 'c676c38c078843f6b3d64363684d245e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60c9f73c-e7d7-48ec-b910-aad02aa843d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47115783', 'ctest-vn-05931792'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47115783', 'ctest-policy-allow-all-93013417']], 'subnet_ipam': [{'subnet_cidr': '89.60.247.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-09 07:04:46,660 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96b447ee-0add-4de9-8d51-2daa210db9ef', 'name': 'ctest-vn-32889197', 'tenant_id': 'c676c38c078843f6b3d64363684d245e', 'project_id': 'c676c38c078843f6b3d64363684d245e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce0e66d4-aaf8-44b2-8534-ad20631cd191'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47115783', 'ctest-vn-32889197'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47115783', 'ctest-policy-allow-all-93013417']], 'subnet_ipam': [{'subnet_cidr': '8.81.212.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-09 07:04:46,822 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 07:04:47,159 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 07:04:47,189 - DEBUG - Requesting: http://10.0.0.48:8082/domain/466173c5-d85f-4e10-a140-912a3b737343
2025-09-09 07:04:47,202 - DEBUG - Requesting: http://10.0.0.48:8082/project/c676c38c-0788-43f6-b3d6-4363684d245e
2025-09-09 07:04:47,276 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f3f1b83a-796d-4061-834d-ec697a43b320
2025-09-09 07:04:47,288 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f3f1b83a-796d-4061-834d-ec697a43b320
2025-09-09 07:04:47,298 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a3299822-4672-4819-ae2d-eb27df6c9aea
2025-09-09 07:04:47,306 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a3299822-4672-4819-ae2d-eb27df6c9aea
2025-09-09 07:04:47,314 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/d4119f8c-7e16-4c14-ace1-8e569f8391b4
2025-09-09 07:04:47,320 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-09 07:04:47,320 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f3f1b83a-796d-4061-834d-ec697a43b320
2025-09-09 07:04:47,329 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a3299822-4672-4819-ae2d-eb27df6c9aea
2025-09-09 07:04:47,343 - INFO - Verified VN network id 11 for VN f3f1b83a-796d-4061-834d-ec697a43b320
2025-09-09 07:04:47,343 - INFO - Verifications in API Server for VN ctest-vn-05931792 passed
2025-09-09 07:04:47,344 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f3f1b83a-796d-4061-834d-ec697a43b320
2025-09-09 07:04:47,352 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a3299822-4672-4819-ae2d-eb27df6c9aea
2025-09-09 07:04:47,359 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a3299822-4672-4819-ae2d-eb27df6c9aea
2025-09-09 07:04:47,366 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/d4119f8c-7e16-4c14-ace1-8e569f8391b4
2025-09-09 07:04:47,380 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-05931792', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47115783', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17578033381888573537', 'uuid-lslong': '9461478329942258464'}, 'enable': 'true', 'created': '2025-09-09T07:04:45', 'last-modified': '2025-09-09T07:04:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968997'}
2025-09-09 07:04:47,387 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-09 07:04:47,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05931792 passed
2025-09-09 07:04:47,387 - DEBUG - ====Verifying policy data for ctest-vn-05931792 in API_Server ======
2025-09-09 07:04:47,387 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 07:04:47,393 - DEBUG - Requesting: http://10.0.0.48:8082/domain/466173c5-d85f-4e10-a140-912a3b737343
2025-09-09 07:04:47,407 - DEBUG - Requesting: http://10.0.0.48:8082/project/c676c38c-0788-43f6-b3d6-4363684d245e
2025-09-09 07:04:47,487 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f3f1b83a-796d-4061-834d-ec697a43b320
2025-09-09 07:04:47,498 - DEBUG - ==>Verifying data for policy with id: f70cdc5e-4bb9-4b90-8654-9529b943a4fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-47115783', 'ctest-policy-allow-all-93013417']
2025-09-09 07:04:47,498 - INFO - VN ctest-vn-05931792 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-09 07:04:47,498 - DEBUG - Verifying the vn in opserver
2025-09-09 07:04:47,498 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-05931792 virtual network link through opserver 10.0.0.48
2025-09-09 07:04:47,498 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-09 07:04:47,839 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-09 07:04:47,898 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-05931792', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-05931792?flat'}
2025-09-09 07:04:47,898 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-05931792 is found in opserver
2025-09-09 07:04:47,908 - DEBUG - Do not have enough data to verify VN in agent
2025-09-09 07:04:47,912 - DEBUG - VRF ids for VN ctest-vn-05931792: {}
2025-09-09 07:04:47,912 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 07:04:47,918 - DEBUG - Requesting: http://10.0.0.48:8082/domain/466173c5-d85f-4e10-a140-912a3b737343
2025-09-09 07:04:47,929 - DEBUG - Requesting: http://10.0.0.48:8082/project/c676c38c-0788-43f6-b3d6-4363684d245e
2025-09-09 07:04:48,000 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/96b447ee-0add-4de9-8d51-2daa210db9ef
2025-09-09 07:04:48,012 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/96b447ee-0add-4de9-8d51-2daa210db9ef
2025-09-09 07:04:48,021 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/753d5d2c-45b2-4d27-a2b2-ca5fa42c61eb
2025-09-09 07:04:48,029 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/753d5d2c-45b2-4d27-a2b2-ca5fa42c61eb
2025-09-09 07:04:48,035 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/fe7b52cf-b0df-467c-a4e1-550ba8b69401
2025-09-09 07:04:48,042 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-09 07:04:48,042 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/96b447ee-0add-4de9-8d51-2daa210db9ef
2025-09-09 07:04:48,050 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/753d5d2c-45b2-4d27-a2b2-ca5fa42c61eb
2025-09-09 07:04:48,062 - INFO - Verified VN network id 12 for VN 96b447ee-0add-4de9-8d51-2daa210db9ef
2025-09-09 07:04:48,062 - INFO - Verifications in API Server for VN ctest-vn-32889197 passed
2025-09-09 07:04:48,062 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/96b447ee-0add-4de9-8d51-2daa210db9ef
2025-09-09 07:04:48,071 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/753d5d2c-45b2-4d27-a2b2-ca5fa42c61eb
2025-09-09 07:04:48,077 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/753d5d2c-45b2-4d27-a2b2-ca5fa42c61eb
2025-09-09 07:04:48,090 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/fe7b52cf-b0df-467c-a4e1-550ba8b69401
2025-09-09 07:04:48,103 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-32889197', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47115783', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10859383689207172585', 'uuid-lslong': '10182970441183640047'}, 'enable': 'true', 'created': '2025-09-09T07:04:45', 'last-modified': '2025-09-09T07:04:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467309'}
2025-09-09 07:04:48,111 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-09 07:04:48,111 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32889197 passed
2025-09-09 07:04:48,111 - DEBUG - ====Verifying policy data for ctest-vn-32889197 in API_Server ======
2025-09-09 07:04:48,111 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 07:04:48,117 - DEBUG - Requesting: http://10.0.0.48:8082/domain/466173c5-d85f-4e10-a140-912a3b737343
2025-09-09 07:04:48,129 - DEBUG - Requesting: http://10.0.0.48:8082/project/c676c38c-0788-43f6-b3d6-4363684d245e
2025-09-09 07:04:48,205 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/96b447ee-0add-4de9-8d51-2daa210db9ef
2025-09-09 07:04:48,216 - DEBUG - ==>Verifying data for policy with id: f70cdc5e-4bb9-4b90-8654-9529b943a4fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-47115783', 'ctest-policy-allow-all-93013417']
2025-09-09 07:04:48,216 - INFO - VN ctest-vn-32889197 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-09 07:04:48,216 - DEBUG - Verifying the vn in opserver
2025-09-09 07:04:48,216 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-32889197 virtual network link through opserver 10.0.0.48
2025-09-09 07:04:48,216 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-09 07:04:48,226 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-32889197', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-32889197?flat'}
2025-09-09 07:04:48,226 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47115783:ctest-vn-32889197 is found in opserver
2025-09-09 07:04:48,238 - DEBUG - Do not have enough data to verify VN in agent
2025-09-09 07:04:48,242 - DEBUG - VRF ids for VN ctest-vn-32889197: {}
2025-09-09 07:04:48,301 - DEBUG - Services list from nova: [