2025-07-16 17:16:13,187 - INFO - Domain Default found not creating
2025-07-16 17:16:13,331 - INFO - Project ctest-TestBasicPolicy-97276240 not found, creating it
2025-07-16 17:16:13,797 - INFO - Created Project:ctest-TestBasicPolicy-97276240, ID : 7c0080c3-8437-4d79-ba9a-c2e127c2ff70
2025-07-16 17:16:15,280 - INFO - ================================================================================
2025-07-16 17:16:15,280 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-16 17:16:15,280 - 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-07-16 17:16:15,534 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.18': '0'}} with
2025-07-16 17:16:15,535 - INFO - Initial checks done. Running the testcase now
2025-07-16 17:16:15,535 - INFO -
2025-07-16 17:16:16,103 - DEBUG - Response for create_network : {'network': {'id': 'bdf5ce96-0348-43f3-87c8-a1f7addc92c8', 'name': 'ctest-vn-35405290', 'tenant_id': '7c0080c384374d79ba9ac2e127c2ff70', 'project_id': '7c0080c384374d79ba9ac2e127c2ff70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97276240', 'ctest-vn-35405290'], 'port_security_enabled': True, 'description': ''}}
2025-07-16 17:16:16,282 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b5749d7-f294-4273-9f2b-670693672209', 'name': '', 'tenant_id': '7c0080c384374d79ba9ac2e127c2ff70', 'network_id': 'bdf5ce96-0348-43f3-87c8-a1f7addc92c8', 'ip_version': 4, 'cidr': '74.48.16.128/26', 'allocation_pools': [{'start': '74.48.16.130', 'end': '74.48.16.190'}], 'gateway_ip': '74.48.16.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.48.16.130', 'tags': [], 'project_id': '7c0080c384374d79ba9ac2e127c2ff70'}}
2025-07-16 17:16:16,300 - INFO - Created VN ctest-vn-35405290
2025-07-16 17:16:16,351 - DEBUG - VN ctest-vn-35405290 UUID is bdf5ce96-0348-43f3-87c8-a1f7addc92c8
2025-07-16 17:16:16,676 - DEBUG - Response for create_network : {'network': {'id': '592e5541-9071-4e80-8a4d-1c9f2af941d1', 'name': 'ctest-vn-83827956', 'tenant_id': '7c0080c384374d79ba9ac2e127c2ff70', 'project_id': '7c0080c384374d79ba9ac2e127c2ff70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97276240', 'ctest-vn-83827956'], 'port_security_enabled': True, 'description': ''}}
2025-07-16 17:16:16,829 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e697413-9c8e-4a56-8758-dc67fd029747', 'name': '', 'tenant_id': '7c0080c384374d79ba9ac2e127c2ff70', 'network_id': '592e5541-9071-4e80-8a4d-1c9f2af941d1', 'ip_version': 4, 'cidr': '204.203.23.192/26', 'allocation_pools': [{'start': '204.203.23.194', 'end': '204.203.23.254'}], 'gateway_ip': '204.203.23.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.203.23.194', 'tags': [], 'project_id': '7c0080c384374d79ba9ac2e127c2ff70'}}
2025-07-16 17:16:16,848 - INFO - Created VN ctest-vn-83827956
2025-07-16 17:16:16,903 - DEBUG - VN ctest-vn-83827956 UUID is 592e5541-9071-4e80-8a4d-1c9f2af941d1
2025-07-16 17:16:17,016 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-35405290, 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-97276240:ctest-vn-83827956, 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-07-16 17:16:17,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdf5ce96-0348-43f3-87c8-a1f7addc92c8', 'name': 'ctest-vn-35405290', 'tenant_id': '7c0080c384374d79ba9ac2e127c2ff70', 'project_id': '7c0080c384374d79ba9ac2e127c2ff70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b5749d7-f294-4273-9f2b-670693672209'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97276240', 'ctest-vn-35405290'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97276240', 'ctest-policy-allow-all-83612034']], 'subnet_ipam': [{'subnet_cidr': '74.48.16.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-16 17:16:17,568 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '592e5541-9071-4e80-8a4d-1c9f2af941d1', 'name': 'ctest-vn-83827956', 'tenant_id': '7c0080c384374d79ba9ac2e127c2ff70', 'project_id': '7c0080c384374d79ba9ac2e127c2ff70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e697413-9c8e-4a56-8758-dc67fd029747'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97276240', 'ctest-vn-83827956'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97276240', 'ctest-policy-allow-all-83612034']], 'subnet_ipam': [{'subnet_cidr': '204.203.23.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-16 17:16:17,731 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 17:16:18,026 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 17:16:18,054 - DEBUG - Requesting: http://10.0.0.241:8082/domain/76053c12-2658-44f5-8a2e-635878ac7110
2025-07-16 17:16:18,070 - DEBUG - Requesting: http://10.0.0.241:8082/project/7c0080c3-8437-4d79-ba9a-c2e127c2ff70
2025-07-16 17:16:18,149 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/bdf5ce96-0348-43f3-87c8-a1f7addc92c8
2025-07-16 17:16:18,162 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/bdf5ce96-0348-43f3-87c8-a1f7addc92c8
2025-07-16 17:16:18,173 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c3d9f9f3-5af6-45f7-89d4-ab5a9785a2f3
2025-07-16 17:16:18,182 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c3d9f9f3-5af6-45f7-89d4-ab5a9785a2f3
2025-07-16 17:16:18,190 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/4256175e-4880-409f-9970-e5f6896280f1
2025-07-16 17:16:18,197 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-16 17:16:18,197 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/bdf5ce96-0348-43f3-87c8-a1f7addc92c8
2025-07-16 17:16:18,207 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c3d9f9f3-5af6-45f7-89d4-ab5a9785a2f3
2025-07-16 17:16:18,224 - INFO - Verified VN network id 8 for VN bdf5ce96-0348-43f3-87c8-a1f7addc92c8
2025-07-16 17:16:18,224 - INFO - Verifications in API Server for VN ctest-vn-35405290 passed
2025-07-16 17:16:18,224 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/bdf5ce96-0348-43f3-87c8-a1f7addc92c8
2025-07-16 17:16:18,236 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c3d9f9f3-5af6-45f7-89d4-ab5a9785a2f3
2025-07-16 17:16:18,244 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c3d9f9f3-5af6-45f7-89d4-ab5a9785a2f3
2025-07-16 17:16:18,253 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/4256175e-4880-409f-9970-e5f6896280f1
2025-07-16 17:16:18,265 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-35405290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97276240', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13688073786157974515', 'uuid-lslong': '9784248275608310472'}, 'enable': 'true', 'created': '2025-07-16T17:16:16', 'last-modified': '2025-07-16T17:16:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.970502'}
2025-07-16 17:16:18,273 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-16 17:16:18,273 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35405290 passed
2025-07-16 17:16:18,273 - DEBUG - ====Verifying policy data for ctest-vn-35405290 in API_Server ======
2025-07-16 17:16:18,273 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 17:16:18,279 - DEBUG - Requesting: http://10.0.0.241:8082/domain/76053c12-2658-44f5-8a2e-635878ac7110
2025-07-16 17:16:18,291 - DEBUG - Requesting: http://10.0.0.241:8082/project/7c0080c3-8437-4d79-ba9a-c2e127c2ff70
2025-07-16 17:16:18,364 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/bdf5ce96-0348-43f3-87c8-a1f7addc92c8
2025-07-16 17:16:18,374 - DEBUG - ==>Verifying data for policy with id: 5c57b758-8f53-45aa-9112-3f318d9e31c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-97276240', 'ctest-policy-allow-all-83612034']
2025-07-16 17:16:18,374 - INFO - VN ctest-vn-35405290 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-16 17:16:18,374 - DEBUG - Verifying the vn in opserver
2025-07-16 17:16:18,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-35405290 virtual network link through opserver 10.0.0.241
2025-07-16 17:16:18,375 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-07-16 17:16:18,668 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-07-16 17:16:18,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-35405290', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-35405290?flat'}
2025-07-16 17:16:18,731 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-35405290 is found in opserver
2025-07-16 17:16:18,743 - DEBUG - Do not have enough data to verify VN in agent
2025-07-16 17:16:18,748 - DEBUG - VRF ids for VN ctest-vn-35405290: {}
2025-07-16 17:16:18,748 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 17:16:18,755 - DEBUG - Requesting: http://10.0.0.241:8082/domain/76053c12-2658-44f5-8a2e-635878ac7110
2025-07-16 17:16:18,769 - DEBUG - Requesting: http://10.0.0.241:8082/project/7c0080c3-8437-4d79-ba9a-c2e127c2ff70
2025-07-16 17:16:18,846 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/592e5541-9071-4e80-8a4d-1c9f2af941d1
2025-07-16 17:16:18,860 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/592e5541-9071-4e80-8a4d-1c9f2af941d1
2025-07-16 17:16:18,872 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/78ce11ff-5150-4fe6-9685-ecd8afd3f4c5
2025-07-16 17:16:18,882 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/78ce11ff-5150-4fe6-9685-ecd8afd3f4c5
2025-07-16 17:16:18,892 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/1d86c2c7-e77c-4d22-96f0-17691cdd04e5
2025-07-16 17:16:18,901 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-16 17:16:18,901 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/592e5541-9071-4e80-8a4d-1c9f2af941d1
2025-07-16 17:16:18,913 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/78ce11ff-5150-4fe6-9685-ecd8afd3f4c5
2025-07-16 17:16:18,933 - INFO - Verified VN network id 9 for VN 592e5541-9071-4e80-8a4d-1c9f2af941d1
2025-07-16 17:16:18,933 - INFO - Verifications in API Server for VN ctest-vn-83827956 passed
2025-07-16 17:16:18,933 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/592e5541-9071-4e80-8a4d-1c9f2af941d1
2025-07-16 17:16:18,944 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/78ce11ff-5150-4fe6-9685-ecd8afd3f4c5
2025-07-16 17:16:18,952 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/78ce11ff-5150-4fe6-9685-ecd8afd3f4c5
2025-07-16 17:16:18,960 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/1d86c2c7-e77c-4d22-96f0-17691cdd04e5
2025-07-16 17:16:18,973 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-83827956', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97276240', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6426167458388856448', 'uuid-lslong': '9965653020387131857'}, 'enable': 'true', 'created': '2025-07-16T17:16:16', 'last-modified': '2025-07-16T17:16:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438662'}
2025-07-16 17:16:18,981 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-16 17:16:18,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83827956 passed
2025-07-16 17:16:18,981 - DEBUG - ====Verifying policy data for ctest-vn-83827956 in API_Server ======
2025-07-16 17:16:18,981 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 17:16:18,987 - DEBUG - Requesting: http://10.0.0.241:8082/domain/76053c12-2658-44f5-8a2e-635878ac7110
2025-07-16 17:16:19,001 - DEBUG - Requesting: http://10.0.0.241:8082/project/7c0080c3-8437-4d79-ba9a-c2e127c2ff70
2025-07-16 17:16:19,081 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/592e5541-9071-4e80-8a4d-1c9f2af941d1
2025-07-16 17:16:19,092 - DEBUG - ==>Verifying data for policy with id: 5c57b758-8f53-45aa-9112-3f318d9e31c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-97276240', 'ctest-policy-allow-all-83612034']
2025-07-16 17:16:19,092 - INFO - VN ctest-vn-83827956 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-16 17:16:19,092 - DEBUG - Verifying the vn in opserver
2025-07-16 17:16:19,092 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-83827956 virtual network link through opserver 10.0.0.241
2025-07-16 17:16:19,092 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-07-16 17:16:19,103 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-83827956', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-83827956?flat'}
2025-07-16 17:16:19,103 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97276240:ctest-vn-83827956 is found in opserver
2025-07-16 17:16:19,114 - DEBUG - Do not have enough data to verify VN in agent
2025-07-16 17:16:19,120 - DEBUG - VRF ids for VN ctest-vn-83827956: {}
2025-07-16 17:16:19,182 - DEBUG - Services list from nova: [