2025-06-24 12:48:36,490 - INFO - Domain Default found not creating
2025-06-24 12:48:36,726 - INFO - Project ctest-TestBasicPolicy-77037757 not found, creating it
2025-06-24 12:48:37,254 - INFO - Created Project:ctest-TestBasicPolicy-77037757, ID : 416ce4d4-dbe1-44d7-840e-b34bab33ad83
2025-06-24 12:48:38,813 - INFO - ================================================================================
2025-06-24 12:48:38,813 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 12:48:38,813 - 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-24 12:48:39,068 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.14': '0'}} with
2025-06-24 12:48:39,068 - INFO - Initial checks done. Running the testcase now
2025-06-24 12:48:39,068 - INFO -
2025-06-24 12:48:39,717 - DEBUG - Response for create_network : {'network': {'id': 'dd40f8aa-fc72-4993-8d80-ae53a97c8b60', 'name': 'ctest-vn-60083455', 'tenant_id': '416ce4d4dbe144d7840eb34bab33ad83', 'project_id': '416ce4d4dbe144d7840eb34bab33ad83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77037757', 'ctest-vn-60083455'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:48:39,912 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a47130b-ea75-4f47-92a9-71604ee26487', 'name': '', 'tenant_id': '416ce4d4dbe144d7840eb34bab33ad83', 'network_id': 'dd40f8aa-fc72-4993-8d80-ae53a97c8b60', 'ip_version': 4, 'cidr': '40.97.7.64/26', 'allocation_pools': [{'start': '40.97.7.66', 'end': '40.97.7.126'}], 'gateway_ip': '40.97.7.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.97.7.66', 'tags': [], 'project_id': '416ce4d4dbe144d7840eb34bab33ad83'}}
2025-06-24 12:48:39,935 - INFO - Created VN ctest-vn-60083455
2025-06-24 12:48:39,993 - DEBUG - VN ctest-vn-60083455 UUID is dd40f8aa-fc72-4993-8d80-ae53a97c8b60
2025-06-24 12:48:40,317 - DEBUG - Response for create_network : {'network': {'id': '3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d', 'name': 'ctest-vn-16274468', 'tenant_id': '416ce4d4dbe144d7840eb34bab33ad83', 'project_id': '416ce4d4dbe144d7840eb34bab33ad83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77037757', 'ctest-vn-16274468'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:48:40,527 - DEBUG - Response for create_subnet : {'subnet': {'id': '4600be1c-e041-4ac1-beab-e1095159b41a', 'name': '', 'tenant_id': '416ce4d4dbe144d7840eb34bab33ad83', 'network_id': '3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d', 'ip_version': 4, 'cidr': '89.204.28.128/26', 'allocation_pools': [{'start': '89.204.28.130', 'end': '89.204.28.190'}], 'gateway_ip': '89.204.28.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.204.28.130', 'tags': [], 'project_id': '416ce4d4dbe144d7840eb34bab33ad83'}}
2025-06-24 12:48:40,548 - INFO - Created VN ctest-vn-16274468
2025-06-24 12:48:40,606 - DEBUG - VN ctest-vn-16274468 UUID is 3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d
2025-06-24 12:48:40,728 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-60083455, 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-77037757:ctest-vn-16274468, 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-24 12:48:41,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd40f8aa-fc72-4993-8d80-ae53a97c8b60', 'name': 'ctest-vn-60083455', 'tenant_id': '416ce4d4dbe144d7840eb34bab33ad83', 'project_id': '416ce4d4dbe144d7840eb34bab33ad83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a47130b-ea75-4f47-92a9-71604ee26487'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77037757', 'ctest-vn-60083455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77037757', 'ctest-policy-allow-all-16258270']], 'subnet_ipam': [{'subnet_cidr': '40.97.7.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:48:41,359 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d', 'name': 'ctest-vn-16274468', 'tenant_id': '416ce4d4dbe144d7840eb34bab33ad83', 'project_id': '416ce4d4dbe144d7840eb34bab33ad83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4600be1c-e041-4ac1-beab-e1095159b41a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77037757', 'ctest-vn-16274468'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77037757', 'ctest-policy-allow-all-16258270']], 'subnet_ipam': [{'subnet_cidr': '89.204.28.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:48:41,529 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-24 12:48:41,854 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-24 12:48:41,903 - DEBUG - Requesting: http://10.0.0.240:8082/domain/02e3b17e-6409-408d-b2e5-c24001a2c702
2025-06-24 12:48:41,918 - DEBUG - Requesting: http://10.0.0.240:8082/project/416ce4d4-dbe1-44d7-840e-b34bab33ad83
2025-06-24 12:48:41,999 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/dd40f8aa-fc72-4993-8d80-ae53a97c8b60
2025-06-24 12:48:42,013 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/dd40f8aa-fc72-4993-8d80-ae53a97c8b60
2025-06-24 12:48:42,027 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c81c0fd1-1995-4c6d-8285-2db94197519e
2025-06-24 12:48:42,037 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c81c0fd1-1995-4c6d-8285-2db94197519e
2025-06-24 12:48:42,046 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/cec57412-3e64-48f0-b7c0-554c01ce67f9
2025-06-24 12:48:42,054 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 12:48:42,054 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/dd40f8aa-fc72-4993-8d80-ae53a97c8b60
2025-06-24 12:48:42,069 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c81c0fd1-1995-4c6d-8285-2db94197519e
2025-06-24 12:48:42,086 - INFO - Verified VN network id 8 for VN dd40f8aa-fc72-4993-8d80-ae53a97c8b60
2025-06-24 12:48:42,086 - INFO - Verifications in API Server for VN ctest-vn-60083455 passed
2025-06-24 12:48:42,086 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/dd40f8aa-fc72-4993-8d80-ae53a97c8b60
2025-06-24 12:48:42,097 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c81c0fd1-1995-4c6d-8285-2db94197519e
2025-06-24 12:48:42,106 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c81c0fd1-1995-4c6d-8285-2db94197519e
2025-06-24 12:48:42,116 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/cec57412-3e64-48f0-b7c0-554c01ce67f9
2025-06-24 12:48:42,134 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-60083455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77037757', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15943016094155032979', 'uuid-lslong': '10196341230715833184'}, 'enable': 'true', 'created': '2025-06-24T12:48:39', 'last-modified': '2025-06-24T12:48:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087654'}
2025-06-24 12:48:42,143 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 12:48:42,144 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60083455 passed
2025-06-24 12:48:42,144 - DEBUG - ====Verifying policy data for ctest-vn-60083455 in API_Server ======
2025-06-24 12:48:42,144 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-24 12:48:42,152 - DEBUG - Requesting: http://10.0.0.240:8082/domain/02e3b17e-6409-408d-b2e5-c24001a2c702
2025-06-24 12:48:42,165 - DEBUG - Requesting: http://10.0.0.240:8082/project/416ce4d4-dbe1-44d7-840e-b34bab33ad83
2025-06-24 12:48:42,250 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/dd40f8aa-fc72-4993-8d80-ae53a97c8b60
2025-06-24 12:48:42,261 - DEBUG - ==>Verifying data for policy with id: 85ac1c91-b474-488e-8168-1a8a8abc93fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-77037757', 'ctest-policy-allow-all-16258270']
2025-06-24 12:48:42,261 - INFO - VN ctest-vn-60083455 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 12:48:42,262 - DEBUG - Verifying the vn in opserver
2025-06-24 12:48:42,262 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-60083455 virtual network link through opserver 10.0.0.240
2025-06-24 12:48:42,262 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2025-06-24 12:48:42,562 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2025-06-24 12:48:42,631 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-60083455', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-60083455?flat'}
2025-06-24 12:48:42,631 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-60083455 is found in opserver
2025-06-24 12:48:42,647 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 12:48:42,653 - DEBUG - VRF ids for VN ctest-vn-60083455: {}
2025-06-24 12:48:42,653 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-24 12:48:42,660 - DEBUG - Requesting: http://10.0.0.240:8082/domain/02e3b17e-6409-408d-b2e5-c24001a2c702
2025-06-24 12:48:42,673 - DEBUG - Requesting: http://10.0.0.240:8082/project/416ce4d4-dbe1-44d7-840e-b34bab33ad83
2025-06-24 12:48:42,750 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d
2025-06-24 12:48:42,765 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d
2025-06-24 12:48:42,776 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c96324ad-277d-418b-a571-0d954e56f5bb
2025-06-24 12:48:42,785 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c96324ad-277d-418b-a571-0d954e56f5bb
2025-06-24 12:48:42,794 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/8700974a-4754-416d-86bc-1f24d3f114c1
2025-06-24 12:48:42,803 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 12:48:42,803 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d
2025-06-24 12:48:42,814 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c96324ad-277d-418b-a571-0d954e56f5bb
2025-06-24 12:48:42,832 - INFO - Verified VN network id 9 for VN 3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d
2025-06-24 12:48:42,832 - INFO - Verifications in API Server for VN ctest-vn-16274468 passed
2025-06-24 12:48:42,832 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d
2025-06-24 12:48:42,844 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c96324ad-277d-418b-a571-0d954e56f5bb
2025-06-24 12:48:42,855 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/c96324ad-277d-418b-a571-0d954e56f5bb
2025-06-24 12:48:42,864 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/8700974a-4754-416d-86bc-1f24d3f114c1
2025-06-24 12:48:42,880 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-16274468', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77037757', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4430290353054631786', 'uuid-lslong': '10076697794531188525'}, 'enable': 'true', 'created': '2025-06-24T12:48:40', 'last-modified': '2025-06-24T12:48:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.556385'}
2025-06-24 12:48:42,887 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 12:48:42,887 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16274468 passed
2025-06-24 12:48:42,888 - DEBUG - ====Verifying policy data for ctest-vn-16274468 in API_Server ======
2025-06-24 12:48:42,888 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2025-06-24 12:48:42,895 - DEBUG - Requesting: http://10.0.0.240:8082/domain/02e3b17e-6409-408d-b2e5-c24001a2c702
2025-06-24 12:48:42,911 - DEBUG - Requesting: http://10.0.0.240:8082/project/416ce4d4-dbe1-44d7-840e-b34bab33ad83
2025-06-24 12:48:42,987 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/3d7b8d9a-79a9-476a-8bd7-9f4167fe5f2d
2025-06-24 12:48:43,000 - DEBUG - ==>Verifying data for policy with id: 85ac1c91-b474-488e-8168-1a8a8abc93fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-77037757', 'ctest-policy-allow-all-16258270']
2025-06-24 12:48:43,000 - INFO - VN ctest-vn-16274468 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 12:48:43,000 - DEBUG - Verifying the vn in opserver
2025-06-24 12:48:43,000 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-16274468 virtual network link through opserver 10.0.0.240
2025-06-24 12:48:43,000 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2025-06-24 12:48:43,014 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-16274468', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-16274468?flat'}
2025-06-24 12:48:43,014 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77037757:ctest-vn-16274468 is found in opserver
2025-06-24 12:48:43,027 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 12:48:43,033 - DEBUG - VRF ids for VN ctest-vn-16274468: {}
2025-06-24 12:48:43,102 - DEBUG - Services list from nova: [