2025-03-27 13:38:13,788 - INFO - Domain Default found not creating
2025-03-27 13:38:13,964 - INFO - Project ctest-TestBasicPolicy-69147711 not found, creating it
2025-03-27 13:38:14,471 - INFO - Created Project:ctest-TestBasicPolicy-69147711, ID : 6827610e-43a6-43f5-b9ea-5222a5f5d882
2025-03-27 13:38:16,119 - INFO - ================================================================================
2025-03-27 13:38:16,119 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 13:38:16,119 - 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-03-27 13:38:16,384 - DEBUG - Nothing to compare xmpp stats {'10.0.0.55': {'10.20.0.5': '0'}} with
2025-03-27 13:38:16,385 - INFO - Initial checks done. Running the testcase now
2025-03-27 13:38:16,385 - INFO -
2025-03-27 13:38:17,008 - DEBUG - Response for create_network : {'network': {'id': 'c43e7a22-a12b-40da-abdf-bfb27d181d90', 'name': 'ctest-vn-59740294', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'project_id': '6827610e43a643f5b9ea5222a5f5d882', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-vn-59740294'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:38:17,211 - DEBUG - Response for create_subnet : {'subnet': {'id': '7767f6fb-4cbb-43b4-b28c-76801813d90a', 'name': '', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'network_id': 'c43e7a22-a12b-40da-abdf-bfb27d181d90', 'ip_version': 4, 'cidr': '21.228.66.0/26', 'allocation_pools': [{'start': '21.228.66.2', 'end': '21.228.66.62'}], 'gateway_ip': '21.228.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.228.66.2', 'tags': [], 'project_id': '6827610e43a643f5b9ea5222a5f5d882'}}
2025-03-27 13:38:17,230 - INFO - Created VN ctest-vn-59740294
2025-03-27 13:38:17,285 - DEBUG - VN ctest-vn-59740294 UUID is c43e7a22-a12b-40da-abdf-bfb27d181d90
2025-03-27 13:38:17,608 - DEBUG - Response for create_network : {'network': {'id': '8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd', 'name': 'ctest-vn-13398759', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'project_id': '6827610e43a643f5b9ea5222a5f5d882', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-vn-13398759'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:38:17,792 - DEBUG - Response for create_subnet : {'subnet': {'id': '11407ee5-d112-44a7-87b3-ab2f2c4b562c', 'name': '', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'network_id': '8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd', 'ip_version': 4, 'cidr': '103.144.130.0/26', 'allocation_pools': [{'start': '103.144.130.2', 'end': '103.144.130.62'}], 'gateway_ip': '103.144.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.144.130.2', 'tags': [], 'project_id': '6827610e43a643f5b9ea5222a5f5d882'}}
2025-03-27 13:38:17,813 - INFO - Created VN ctest-vn-13398759
2025-03-27 13:38:17,869 - DEBUG - VN ctest-vn-13398759 UUID is 8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd
2025-03-27 13:38:18,008 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294, 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-69147711:ctest-vn-13398759, 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-03-27 13:38:18,340 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c43e7a22-a12b-40da-abdf-bfb27d181d90', 'name': 'ctest-vn-59740294', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'project_id': '6827610e43a643f5b9ea5222a5f5d882', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7767f6fb-4cbb-43b4-b28c-76801813d90a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-vn-59740294'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-policy-allow-all-39275159']], 'subnet_ipam': [{'subnet_cidr': '21.228.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:38:18,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd', 'name': 'ctest-vn-13398759', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'project_id': '6827610e43a643f5b9ea5222a5f5d882', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11407ee5-d112-44a7-87b3-ab2f2c4b562c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-vn-13398759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-policy-allow-all-39275159']], 'subnet_ipam': [{'subnet_cidr': '103.144.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:38:18,773 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-03-27 13:38:19,120 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-03-27 13:38:19,153 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03
2025-03-27 13:38:19,171 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882
2025-03-27 13:38:19,255 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90
2025-03-27 13:38:19,270 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90
2025-03-27 13:38:19,283 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c
2025-03-27 13:38:19,292 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c
2025-03-27 13:38:19,301 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/252fa472-9bb9-46d7-b64b-0537c9b5b0dd
2025-03-27 13:38:19,310 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 13:38:19,310 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90
2025-03-27 13:38:19,321 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c
2025-03-27 13:38:19,338 - INFO - Verified VN network id 9 for VN c43e7a22-a12b-40da-abdf-bfb27d181d90
2025-03-27 13:38:19,338 - INFO - Verifications in API Server for VN ctest-vn-59740294 passed
2025-03-27 13:38:19,338 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90
2025-03-27 13:38:19,350 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c
2025-03-27 13:38:19,358 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c
2025-03-27 13:38:19,367 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/252fa472-9bb9-46d7-b64b-0537c9b5b0dd
2025-03-27 13:38:19,383 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69147711', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14140874169141379290', 'uuid-lslong': '12384828273615969680'}, 'enable': 'true', 'created': '2025-03-27T13:38:16', 'last-modified': '2025-03-27T13:38:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074976'}
2025-03-27 13:38:19,391 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 13:38:19,391 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59740294 passed
2025-03-27 13:38:19,391 - DEBUG - ====Verifying policy data for ctest-vn-59740294 in API_Server ======
2025-03-27 13:38:19,391 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-03-27 13:38:19,399 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03
2025-03-27 13:38:19,415 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882
2025-03-27 13:38:19,499 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90
2025-03-27 13:38:19,512 - DEBUG - ==>Verifying data for policy with id: ca360d01-5d74-45d2-802f-0907921f7e75, fqn: ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-policy-allow-all-39275159']
2025-03-27 13:38:19,512 - INFO - VN ctest-vn-59740294 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 13:38:19,512 - DEBUG - Verifying the vn in opserver
2025-03-27 13:38:19,513 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294 virtual network link through opserver 10.0.0.55
2025-03-27 13:38:19,513 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2025-03-27 13:38:19,858 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2025-03-27 13:38:19,926 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294?flat'}
2025-03-27 13:38:19,926 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294 is found in opserver
2025-03-27 13:38:19,939 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 13:38:19,944 - DEBUG - VRF ids for VN ctest-vn-59740294: {}
2025-03-27 13:38:19,944 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-03-27 13:38:19,951 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03
2025-03-27 13:38:19,965 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882
2025-03-27 13:38:20,041 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd
2025-03-27 13:38:20,056 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd
2025-03-27 13:38:20,072 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db
2025-03-27 13:38:20,082 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db
2025-03-27 13:38:20,091 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/27a8ddb5-7f52-44f1-bba4-6cd691ff00a8
2025-03-27 13:38:20,100 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 13:38:20,100 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd
2025-03-27 13:38:20,112 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db
2025-03-27 13:38:20,134 - INFO - Verified VN network id 10 for VN 8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd
2025-03-27 13:38:20,134 - INFO - Verifications in API Server for VN ctest-vn-13398759 passed
2025-03-27 13:38:20,134 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd
2025-03-27 13:38:20,150 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db
2025-03-27 13:38:20,162 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db
2025-03-27 13:38:20,174 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/27a8ddb5-7f52-44f1-bba4-6cd691ff00a8
2025-03-27 13:38:20,191 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69147711', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10355717973910768178', 'uuid-lslong': '11791161992240996605'}, 'enable': 'true', 'created': '2025-03-27T13:38:17', 'last-modified': '2025-03-27T13:38:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.624250'}
2025-03-27 13:38:20,199 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 13:38:20,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13398759 passed
2025-03-27 13:38:20,199 - DEBUG - ====Verifying policy data for ctest-vn-13398759 in API_Server ======
2025-03-27 13:38:20,199 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-03-27 13:38:20,207 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03
2025-03-27 13:38:20,224 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882
2025-03-27 13:38:20,302 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd
2025-03-27 13:38:20,317 - DEBUG - ==>Verifying data for policy with id: ca360d01-5d74-45d2-802f-0907921f7e75, fqn: ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-policy-allow-all-39275159']
2025-03-27 13:38:20,317 - INFO - VN ctest-vn-13398759 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 13:38:20,317 - DEBUG - Verifying the vn in opserver
2025-03-27 13:38:20,317 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759 virtual network link through opserver 10.0.0.55
2025-03-27 13:38:20,317 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2025-03-27 13:38:20,331 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759?flat'}
2025-03-27 13:38:20,331 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759 is found in opserver
2025-03-27 13:38:20,345 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 13:38:20,350 - DEBUG - VRF ids for VN ctest-vn-13398759: {}
2025-03-27 13:38:20,417 - DEBUG - Services list from nova: [