2025-04-23 16:28:38,688 - INFO - Domain Default found not creating
2025-04-23 16:28:38,926 - INFO - Project ctest-TestBasicPolicy-74095587 not found, creating it
2025-04-23 16:28:39,389 - INFO - Created Project:ctest-TestBasicPolicy-74095587, ID : 3a9a9c09-982a-4360-b49e-871ed8438ed3
2025-04-23 16:28:40,938 - INFO - ================================================================================
2025-04-23 16:28:40,938 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 16:28:40,938 - 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-04-23 16:28:41,195 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.254': '0'}} with
2025-04-23 16:28:41,195 - INFO - Initial checks done. Running the testcase now
2025-04-23 16:28:41,195 - INFO -
2025-04-23 16:28:41,796 - DEBUG - Response for create_network : {'network': {'id': '458254f4-7395-4939-900e-8e91d3c4a225', 'name': 'ctest-vn-56383174', 'tenant_id': '3a9a9c09982a4360b49e871ed8438ed3', 'project_id': '3a9a9c09982a4360b49e871ed8438ed3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74095587', 'ctest-vn-56383174'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 16:28:42,005 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f47cc08b-1595-4754-98f6-cc3436ba417e', 'name': '', 'tenant_id': '3a9a9c09982a4360b49e871ed8438ed3', 'network_id': '458254f4-7395-4939-900e-8e91d3c4a225', 'ip_version': 4, 'cidr': '28.242.205.192/26', 'allocation_pools': [{'start': '28.242.205.194', 'end': '28.242.205.254'}], 'gateway_ip': '28.242.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.242.205.194', 'tags': [], 'project_id': '3a9a9c09982a4360b49e871ed8438ed3'}}
2025-04-23 16:28:42,024 - INFO - Created VN ctest-vn-56383174
2025-04-23 16:28:42,076 - DEBUG - VN ctest-vn-56383174 UUID is 458254f4-7395-4939-900e-8e91d3c4a225
2025-04-23 16:28:42,496 - DEBUG - Response for create_network : {'network': {'id': '5470c65c-d3ed-4689-a7f6-ffccb83704a1', 'name': 'ctest-vn-65923976', 'tenant_id': '3a9a9c09982a4360b49e871ed8438ed3', 'project_id': '3a9a9c09982a4360b49e871ed8438ed3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74095587', 'ctest-vn-65923976'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 16:28:42,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fc18f5c-dc56-4927-b8b9-400a8907008f', 'name': '', 'tenant_id': '3a9a9c09982a4360b49e871ed8438ed3', 'network_id': '5470c65c-d3ed-4689-a7f6-ffccb83704a1', 'ip_version': 4, 'cidr': '136.143.7.128/26', 'allocation_pools': [{'start': '136.143.7.130', 'end': '136.143.7.190'}], 'gateway_ip': '136.143.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.143.7.130', 'tags': [], 'project_id': '3a9a9c09982a4360b49e871ed8438ed3'}}
2025-04-23 16:28:42,732 - INFO - Created VN ctest-vn-65923976
2025-04-23 16:28:42,784 - DEBUG - VN ctest-vn-65923976 UUID is 5470c65c-d3ed-4689-a7f6-ffccb83704a1
2025-04-23 16:28:42,897 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-56383174, 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-74095587:ctest-vn-65923976, 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-04-23 16:28:43,206 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '458254f4-7395-4939-900e-8e91d3c4a225', 'name': 'ctest-vn-56383174', 'tenant_id': '3a9a9c09982a4360b49e871ed8438ed3', 'project_id': '3a9a9c09982a4360b49e871ed8438ed3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f47cc08b-1595-4754-98f6-cc3436ba417e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74095587', 'ctest-vn-56383174'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74095587', 'ctest-policy-allow-all-60653769']], 'subnet_ipam': [{'subnet_cidr': '28.242.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 16:28:43,446 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5470c65c-d3ed-4689-a7f6-ffccb83704a1', 'name': 'ctest-vn-65923976', 'tenant_id': '3a9a9c09982a4360b49e871ed8438ed3', 'project_id': '3a9a9c09982a4360b49e871ed8438ed3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fc18f5c-dc56-4927-b8b9-400a8907008f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74095587', 'ctest-vn-65923976'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74095587', 'ctest-policy-allow-all-60653769']], 'subnet_ipam': [{'subnet_cidr': '136.143.7.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 16:28:43,612 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 16:28:43,951 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 16:28:43,981 - DEBUG - Requesting: http://10.0.0.130:8082/domain/8673d2dd-018a-4793-93e5-874637249f7b
2025-04-23 16:28:43,996 - DEBUG - Requesting: http://10.0.0.130:8082/project/3a9a9c09-982a-4360-b49e-871ed8438ed3
2025-04-23 16:28:44,066 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/458254f4-7395-4939-900e-8e91d3c4a225
2025-04-23 16:28:44,079 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/458254f4-7395-4939-900e-8e91d3c4a225
2025-04-23 16:28:44,090 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f091adf-53c2-4a48-970d-f25484c83c3b
2025-04-23 16:28:44,098 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f091adf-53c2-4a48-970d-f25484c83c3b
2025-04-23 16:28:44,105 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/3db78ba6-3582-490b-ac50-7a98b3b8677c
2025-04-23 16:28:44,113 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 16:28:44,113 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/458254f4-7395-4939-900e-8e91d3c4a225
2025-04-23 16:28:44,123 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f091adf-53c2-4a48-970d-f25484c83c3b
2025-04-23 16:28:44,138 - INFO - Verified VN network id 9 for VN 458254f4-7395-4939-900e-8e91d3c4a225
2025-04-23 16:28:44,138 - INFO - Verifications in API Server for VN ctest-vn-56383174 passed
2025-04-23 16:28:44,138 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/458254f4-7395-4939-900e-8e91d3c4a225
2025-04-23 16:28:44,148 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f091adf-53c2-4a48-970d-f25484c83c3b
2025-04-23 16:28:44,155 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f091adf-53c2-4a48-970d-f25484c83c3b
2025-04-23 16:28:44,162 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/3db78ba6-3582-490b-ac50-7a98b3b8677c
2025-04-23 16:28:44,175 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-56383174', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74095587', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5008659144477329721', 'uuid-lslong': '10380390948109853221'}, 'enable': 'true', 'created': '2025-04-23T16:28:41', 'last-modified': '2025-04-23T16:28:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997885'}
2025-04-23 16:28:44,182 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 16:28:44,182 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56383174 passed
2025-04-23 16:28:44,182 - DEBUG - ====Verifying policy data for ctest-vn-56383174 in API_Server ======
2025-04-23 16:28:44,182 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 16:28:44,188 - DEBUG - Requesting: http://10.0.0.130:8082/domain/8673d2dd-018a-4793-93e5-874637249f7b
2025-04-23 16:28:44,201 - DEBUG - Requesting: http://10.0.0.130:8082/project/3a9a9c09-982a-4360-b49e-871ed8438ed3
2025-04-23 16:28:44,279 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/458254f4-7395-4939-900e-8e91d3c4a225
2025-04-23 16:28:44,290 - DEBUG - ==>Verifying data for policy with id: 1cc16011-687f-4102-8b12-7e2d5593c727, fqn: ['default-domain', 'ctest-TestBasicPolicy-74095587', 'ctest-policy-allow-all-60653769']
2025-04-23 16:28:44,290 - INFO - VN ctest-vn-56383174 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 16:28:44,290 - DEBUG - Verifying the vn in opserver
2025-04-23 16:28:44,290 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-56383174 virtual network link through opserver 10.0.0.130
2025-04-23 16:28:44,290 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-23 16:28:44,621 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-23 16:28:44,678 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-56383174', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-56383174?flat'}
2025-04-23 16:28:44,678 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-56383174 is found in opserver
2025-04-23 16:28:44,690 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 16:28:44,696 - DEBUG - VRF ids for VN ctest-vn-56383174: {}
2025-04-23 16:28:44,696 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 16:28:44,702 - DEBUG - Requesting: http://10.0.0.130:8082/domain/8673d2dd-018a-4793-93e5-874637249f7b
2025-04-23 16:28:44,714 - DEBUG - Requesting: http://10.0.0.130:8082/project/3a9a9c09-982a-4360-b49e-871ed8438ed3
2025-04-23 16:28:44,837 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5470c65c-d3ed-4689-a7f6-ffccb83704a1
2025-04-23 16:28:44,849 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5470c65c-d3ed-4689-a7f6-ffccb83704a1
2025-04-23 16:28:44,859 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d6dcf2fe-5f44-4f6c-9e7e-f0985729a9ca
2025-04-23 16:28:44,867 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d6dcf2fe-5f44-4f6c-9e7e-f0985729a9ca
2025-04-23 16:28:44,874 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/6c746758-fc27-40e7-a4e3-f2e069cfe1e4
2025-04-23 16:28:44,881 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 16:28:44,881 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5470c65c-d3ed-4689-a7f6-ffccb83704a1
2025-04-23 16:28:44,891 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d6dcf2fe-5f44-4f6c-9e7e-f0985729a9ca
2025-04-23 16:28:44,905 - INFO - Verified VN network id 10 for VN 5470c65c-d3ed-4689-a7f6-ffccb83704a1
2025-04-23 16:28:44,905 - INFO - Verifications in API Server for VN ctest-vn-65923976 passed
2025-04-23 16:28:44,905 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5470c65c-d3ed-4689-a7f6-ffccb83704a1
2025-04-23 16:28:44,914 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d6dcf2fe-5f44-4f6c-9e7e-f0985729a9ca
2025-04-23 16:28:44,922 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d6dcf2fe-5f44-4f6c-9e7e-f0985729a9ca
2025-04-23 16:28:44,929 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/6c746758-fc27-40e7-a4e3-f2e069cfe1e4
2025-04-23 16:28:44,941 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-65923976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74095587', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6084581198572373641', 'uuid-lslong': '12103142303333811361'}, 'enable': 'true', 'created': '2025-04-23T16:28:42', 'last-modified': '2025-04-23T16:28:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.522313'}
2025-04-23 16:28:44,949 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 16:28:44,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65923976 passed
2025-04-23 16:28:44,950 - DEBUG - ====Verifying policy data for ctest-vn-65923976 in API_Server ======
2025-04-23 16:28:44,950 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 16:28:44,956 - DEBUG - Requesting: http://10.0.0.130:8082/domain/8673d2dd-018a-4793-93e5-874637249f7b
2025-04-23 16:28:44,969 - DEBUG - Requesting: http://10.0.0.130:8082/project/3a9a9c09-982a-4360-b49e-871ed8438ed3
2025-04-23 16:28:45,039 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5470c65c-d3ed-4689-a7f6-ffccb83704a1
2025-04-23 16:28:45,050 - DEBUG - ==>Verifying data for policy with id: 1cc16011-687f-4102-8b12-7e2d5593c727, fqn: ['default-domain', 'ctest-TestBasicPolicy-74095587', 'ctest-policy-allow-all-60653769']
2025-04-23 16:28:45,050 - INFO - VN ctest-vn-65923976 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 16:28:45,050 - DEBUG - Verifying the vn in opserver
2025-04-23 16:28:45,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-65923976 virtual network link through opserver 10.0.0.130
2025-04-23 16:28:45,050 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-23 16:28:45,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-65923976', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-65923976?flat'}
2025-04-23 16:28:45,061 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74095587:ctest-vn-65923976 is found in opserver
2025-04-23 16:28:45,072 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 16:28:45,077 - DEBUG - VRF ids for VN ctest-vn-65923976: {}
2025-04-23 16:28:45,137 - DEBUG - Services list from nova: [