2025-06-09 16:38:01,789 - INFO - Domain Default found not creating
2025-06-09 16:38:01,963 - INFO - Project ctest-TestBasicPolicy-04545253 not found, creating it
2025-06-09 16:38:02,464 - INFO - Created Project:ctest-TestBasicPolicy-04545253, ID : ae260c9a-fb0b-4fa5-9dd6-fe838240d79a
2025-06-09 16:38:04,176 - INFO - ================================================================================
2025-06-09 16:38:04,177 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-09 16:38:04,177 - 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-06-09 16:38:04,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-06-09 16:38:04,437 - INFO - Initial checks done. Running the testcase now
2025-06-09 16:38:04,437 - INFO -
2025-06-09 16:38:05,058 - DEBUG - Response for create_network : {'network': {'id': '97fe9806-03d5-43b4-8a23-3efcea28f6ec', 'name': 'ctest-vn-28503963', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-vn-28503963'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 16:38:05,255 - DEBUG - Response for create_subnet : {'subnet': {'id': '3422bbb7-5cce-4f8b-865d-8f4b5b92bb09', 'name': '', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'network_id': '97fe9806-03d5-43b4-8a23-3efcea28f6ec', 'ip_version': 4, 'cidr': '14.199.235.0/26', 'allocation_pools': [{'start': '14.199.235.2', 'end': '14.199.235.62'}], 'gateway_ip': '14.199.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.199.235.2', 'tags': [], 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a'}}
2025-06-09 16:38:05,275 - INFO - Created VN ctest-vn-28503963
2025-06-09 16:38:05,327 - DEBUG - VN ctest-vn-28503963 UUID is 97fe9806-03d5-43b4-8a23-3efcea28f6ec
2025-06-09 16:38:05,656 - DEBUG - Response for create_network : {'network': {'id': 'a4035604-3f24-4609-b562-5ae9a3d10a86', 'name': 'ctest-vn-22044875', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-vn-22044875'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 16:38:05,912 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2b30c64-adf5-4515-99d3-dac294862f40', 'name': '', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'network_id': 'a4035604-3f24-4609-b562-5ae9a3d10a86', 'ip_version': 4, 'cidr': '223.147.189.0/26', 'allocation_pools': [{'start': '223.147.189.2', 'end': '223.147.189.62'}], 'gateway_ip': '223.147.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.147.189.2', 'tags': [], 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a'}}
2025-06-09 16:38:05,932 - INFO - Created VN ctest-vn-22044875
2025-06-09 16:38:05,987 - DEBUG - VN ctest-vn-22044875 UUID is a4035604-3f24-4609-b562-5ae9a3d10a86
2025-06-09 16:38:06,116 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963, 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-04545253:ctest-vn-22044875, 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-06-09 16:38:06,435 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97fe9806-03d5-43b4-8a23-3efcea28f6ec', 'name': 'ctest-vn-28503963', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3422bbb7-5cce-4f8b-865d-8f4b5b92bb09'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-vn-28503963'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-policy-allow-all-86542225']], 'subnet_ipam': [{'subnet_cidr': '14.199.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 16:38:06,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4035604-3f24-4609-b562-5ae9a3d10a86', 'name': 'ctest-vn-22044875', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2b30c64-adf5-4515-99d3-dac294862f40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-vn-22044875'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-policy-allow-all-86542225']], 'subnet_ipam': [{'subnet_cidr': '223.147.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 16:38:06,887 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 16:38:07,225 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 16:38:07,260 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018
2025-06-09 16:38:07,283 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a
2025-06-09 16:38:07,369 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec
2025-06-09 16:38:07,382 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec
2025-06-09 16:38:07,392 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e
2025-06-09 16:38:07,401 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e
2025-06-09 16:38:07,409 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/437e354a-f3be-4d75-9457-995ac6bc9d96
2025-06-09 16:38:07,417 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 16:38:07,417 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec
2025-06-09 16:38:07,428 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e
2025-06-09 16:38:07,446 - INFO - Verified VN network id 8 for VN 97fe9806-03d5-43b4-8a23-3efcea28f6ec
2025-06-09 16:38:07,446 - INFO - Verifications in API Server for VN ctest-vn-28503963 passed
2025-06-09 16:38:07,446 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec
2025-06-09 16:38:07,457 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e
2025-06-09 16:38:07,467 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e
2025-06-09 16:38:07,478 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/437e354a-f3be-4d75-9457-995ac6bc9d96
2025-06-09 16:38:07,501 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04545253', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10952358495413158836', 'uuid-lslong': '9953868857400162028'}, 'enable': 'true', 'created': '2025-06-09T16:38:05', 'last-modified': '2025-06-09T16:38:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092742'}
2025-06-09 16:38:07,509 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 16:38:07,509 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28503963 passed
2025-06-09 16:38:07,509 - DEBUG - ====Verifying policy data for ctest-vn-28503963 in API_Server ======
2025-06-09 16:38:07,509 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 16:38:07,516 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018
2025-06-09 16:38:07,533 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a
2025-06-09 16:38:07,615 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec
2025-06-09 16:38:07,630 - DEBUG - ==>Verifying data for policy with id: 20ad5cdc-6444-4c75-8dd6-671e2857ecb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-policy-allow-all-86542225']
2025-06-09 16:38:07,630 - INFO - VN ctest-vn-28503963 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 16:38:07,630 - DEBUG - Verifying the vn in opserver
2025-06-09 16:38:07,630 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963 virtual network link through opserver 10.0.0.27
2025-06-09 16:38:07,630 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-09 16:38:07,972 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-09 16:38:08,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963?flat'}
2025-06-09 16:38:08,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963 is found in opserver
2025-06-09 16:38:08,046 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 16:38:08,051 - DEBUG - VRF ids for VN ctest-vn-28503963: {}
2025-06-09 16:38:08,051 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 16:38:08,059 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018
2025-06-09 16:38:08,073 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a
2025-06-09 16:38:08,149 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86
2025-06-09 16:38:08,163 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86
2025-06-09 16:38:08,174 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b
2025-06-09 16:38:08,186 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b
2025-06-09 16:38:08,195 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7b21dfe5-f4c1-4347-8d7c-30e8395ecb5b
2025-06-09 16:38:08,203 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 16:38:08,203 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86
2025-06-09 16:38:08,214 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b
2025-06-09 16:38:08,230 - INFO - Verified VN network id 9 for VN a4035604-3f24-4609-b562-5ae9a3d10a86
2025-06-09 16:38:08,231 - INFO - Verifications in API Server for VN ctest-vn-22044875 passed
2025-06-09 16:38:08,231 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86
2025-06-09 16:38:08,241 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b
2025-06-09 16:38:08,250 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b
2025-06-09 16:38:08,258 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7b21dfe5-f4c1-4347-8d7c-30e8395ecb5b
2025-06-09 16:38:08,272 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04545253', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11818384423389513225', 'uuid-lslong': '13070109028104866438'}, 'enable': 'true', 'created': '2025-06-09T16:38:05', 'last-modified': '2025-06-09T16:38:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598836'}
2025-06-09 16:38:08,280 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 16:38:08,280 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22044875 passed
2025-06-09 16:38:08,280 - DEBUG - ====Verifying policy data for ctest-vn-22044875 in API_Server ======
2025-06-09 16:38:08,280 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 16:38:08,287 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018
2025-06-09 16:38:08,303 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a
2025-06-09 16:38:08,384 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86
2025-06-09 16:38:08,396 - DEBUG - ==>Verifying data for policy with id: 20ad5cdc-6444-4c75-8dd6-671e2857ecb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-policy-allow-all-86542225']
2025-06-09 16:38:08,396 - INFO - VN ctest-vn-22044875 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 16:38:08,396 - DEBUG - Verifying the vn in opserver
2025-06-09 16:38:08,396 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875 virtual network link through opserver 10.0.0.27
2025-06-09 16:38:08,396 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-09 16:38:08,407 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875?flat'}
2025-06-09 16:38:08,407 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875 is found in opserver
2025-06-09 16:38:08,419 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 16:38:08,426 - DEBUG - VRF ids for VN ctest-vn-22044875: {}
2025-06-09 16:38:08,501 - DEBUG - Services list from nova: [