2025-03-20 02:22:07,062 - INFO - Domain Default found not creating 2025-03-20 02:22:07,219 - INFO - Project ctest-TestBasicPolicy-63593993 not found, creating it 2025-03-20 02:22:07,829 - INFO - Created Project:ctest-TestBasicPolicy-63593993, ID : 4166f965-a42d-45fb-974e-88a5c5e7be79 2025-03-20 02:22:09,286 - INFO - ================================================================================ 2025-03-20 02:22:09,286 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-20 02:22:09,286 - 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-20 02:22:10,602 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.5': '0', '10.20.0.23': '0'}, '10.0.0.53': {'10.20.0.11': '0', '10.20.0.5': '0'}} with 2025-03-20 02:22:10,602 - INFO - Initial checks done. Running the testcase now 2025-03-20 02:22:10,602 - INFO - 2025-03-20 02:22:11,447 - DEBUG - Response for create_network : {'network': {'id': 'c5f593d1-87f2-4105-8a3f-38144d333885', 'name': 'ctest-vn-02868774', 'tenant_id': '4166f965a42d45fb974e88a5c5e7be79', 'project_id': '4166f965a42d45fb974e88a5c5e7be79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63593993', 'ctest-vn-02868774'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:22:11,833 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a735c41b-23fc-4a91-b69f-2af85c1ac0b2', 'name': '', 'tenant_id': '4166f965a42d45fb974e88a5c5e7be79', 'network_id': 'c5f593d1-87f2-4105-8a3f-38144d333885', 'ip_version': 4, 'cidr': '62.199.1.192/26', 'allocation_pools': [{'start': '62.199.1.194', 'end': '62.199.1.254'}], 'gateway_ip': '62.199.1.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.199.1.194', 'tags': [], 'project_id': '4166f965a42d45fb974e88a5c5e7be79'}} 2025-03-20 02:22:11,871 - INFO - Created VN ctest-vn-02868774 2025-03-20 02:22:11,894 - DEBUG - VN ctest-vn-02868774 UUID is c5f593d1-87f2-4105-8a3f-38144d333885 2025-03-20 02:22:12,394 - DEBUG - Response for create_network : {'network': {'id': 'b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67', 'name': 'ctest-vn-41400216', 'tenant_id': '4166f965a42d45fb974e88a5c5e7be79', 'project_id': '4166f965a42d45fb974e88a5c5e7be79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63593993', 'ctest-vn-41400216'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:22:12,674 - DEBUG - Response for create_subnet : {'subnet': {'id': '0322214a-e5a1-47b6-b797-2c04adb433d0', 'name': '', 'tenant_id': '4166f965a42d45fb974e88a5c5e7be79', 'network_id': 'b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67', 'ip_version': 4, 'cidr': '6.82.141.64/26', 'allocation_pools': [{'start': '6.82.141.66', 'end': '6.82.141.126'}], 'gateway_ip': '6.82.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.82.141.66', 'tags': [], 'project_id': '4166f965a42d45fb974e88a5c5e7be79'}} 2025-03-20 02:22:12,703 - INFO - Created VN ctest-vn-41400216 2025-03-20 02:22:12,720 - DEBUG - VN ctest-vn-41400216 UUID is b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67 2025-03-20 02:22:12,815 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774, 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-63593993:ctest-vn-41400216, 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-20 02:22:13,207 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c5f593d1-87f2-4105-8a3f-38144d333885', 'name': 'ctest-vn-02868774', 'tenant_id': '4166f965a42d45fb974e88a5c5e7be79', 'project_id': '4166f965a42d45fb974e88a5c5e7be79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a735c41b-23fc-4a91-b69f-2af85c1ac0b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63593993', 'ctest-vn-02868774'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63593993', 'ctest-policy-allow-all-06577781']], 'subnet_ipam': [{'subnet_cidr': '62.199.1.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:22:13,483 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67', 'name': 'ctest-vn-41400216', 'tenant_id': '4166f965a42d45fb974e88a5c5e7be79', 'project_id': '4166f965a42d45fb974e88a5c5e7be79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0322214a-e5a1-47b6-b797-2c04adb433d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63593993', 'ctest-vn-41400216'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63593993', 'ctest-policy-allow-all-06577781']], 'subnet_ipam': [{'subnet_cidr': '6.82.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:22:13,612 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-20 02:22:13,988 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-20 02:22:14,024 - DEBUG - Requesting: http://10.0.0.42:8082/domain/78cb90fb-efc3-49d9-aab8-3061c7ab1bd1 2025-03-20 02:22:14,044 - DEBUG - Requesting: http://10.0.0.42:8082/project/4166f965-a42d-45fb-974e-88a5c5e7be79 2025-03-20 02:22:14,178 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c5f593d1-87f2-4105-8a3f-38144d333885 2025-03-20 02:22:14,191 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c5f593d1-87f2-4105-8a3f-38144d333885 2025-03-20 02:22:14,203 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7b8ddffc-8772-488a-93cb-7ddc58ca5dbe 2025-03-20 02:22:14,211 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7b8ddffc-8772-488a-93cb-7ddc58ca5dbe 2025-03-20 02:22:14,220 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/d8aa836c-3d1f-4043-a50a-5a74cd65722f 2025-03-20 02:22:14,229 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 02:22:14,229 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c5f593d1-87f2-4105-8a3f-38144d333885 2025-03-20 02:22:14,240 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7b8ddffc-8772-488a-93cb-7ddc58ca5dbe 2025-03-20 02:22:14,262 - INFO - Verified VN network id 8 for VN c5f593d1-87f2-4105-8a3f-38144d333885 2025-03-20 02:22:14,262 - INFO - Verifications in API Server for VN ctest-vn-02868774 passed 2025-03-20 02:22:14,262 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c5f593d1-87f2-4105-8a3f-38144d333885 2025-03-20 02:22:14,274 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7b8ddffc-8772-488a-93cb-7ddc58ca5dbe 2025-03-20 02:22:14,282 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7b8ddffc-8772-488a-93cb-7ddc58ca5dbe 2025-03-20 02:22:14,293 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/d8aa836c-3d1f-4043-a50a-5a74cd65722f 2025-03-20 02:22:14,315 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63593993', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14264469922904162565', 'uuid-lslong': '9961742560612530309'}, 'enable': 'true', 'created': '2025-03-20T02:22:11', 'last-modified': '2025-03-20T02:22:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.144339'} 2025-03-20 02:22:14,326 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 02:22:14,334 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63593993', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14264469922904162565', 'uuid-lslong': '9961742560612530309'}, 'enable': 'true', 'created': '2025-03-20T02:22:11', 'last-modified': '2025-03-20T02:22:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.167111'} 2025-03-20 02:22:14,342 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 02:22:14,349 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63593993', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14264469922904162565', 'uuid-lslong': '9961742560612530309'}, 'enable': 'true', 'created': '2025-03-20T02:22:11', 'last-modified': '2025-03-20T02:22:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.190356'} 2025-03-20 02:22:14,356 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 02:22:14,356 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02868774 passed 2025-03-20 02:22:14,356 - DEBUG - ====Verifying policy data for ctest-vn-02868774 in API_Server ====== 2025-03-20 02:22:14,356 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-20 02:22:14,363 - DEBUG - Requesting: http://10.0.0.42:8082/domain/78cb90fb-efc3-49d9-aab8-3061c7ab1bd1 2025-03-20 02:22:14,377 - DEBUG - Requesting: http://10.0.0.42:8082/project/4166f965-a42d-45fb-974e-88a5c5e7be79 2025-03-20 02:22:14,514 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c5f593d1-87f2-4105-8a3f-38144d333885 2025-03-20 02:22:14,526 - DEBUG - ==>Verifying data for policy with id: 17a0997c-95cc-4ce5-8309-8c526a39b00e, fqn: ['default-domain', 'ctest-TestBasicPolicy-63593993', 'ctest-policy-allow-all-06577781'] 2025-03-20 02:22:14,526 - INFO - VN ctest-vn-02868774 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-20 02:22:14,526 - DEBUG - Verifying the vn in opserver 2025-03-20 02:22:14,526 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774 virtual network link through opserver 10.0.0.42 2025-03-20 02:22:14,527 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-20 02:22:14,851 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-20 02:22:14,914 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774?flat'} 2025-03-20 02:22:14,914 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774 virtual network link through opserver 10.0.0.12 2025-03-20 02:22:14,914 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-03-20 02:22:15,220 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-03-20 02:22:15,287 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774?flat'} 2025-03-20 02:22:15,287 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774 virtual network link through opserver 10.0.0.47 2025-03-20 02:22:15,287 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2025-03-20 02:22:15,594 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2025-03-20 02:22:15,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774?flat'} 2025-03-20 02:22:15,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774 is found in opserver 2025-03-20 02:22:15,700 - DEBUG - Do not have enough data to verify VN in agent 2025-03-20 02:22:15,713 - DEBUG - VRF ids for VN ctest-vn-02868774: {} 2025-03-20 02:22:15,713 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-20 02:22:15,722 - DEBUG - Requesting: http://10.0.0.42:8082/domain/78cb90fb-efc3-49d9-aab8-3061c7ab1bd1 2025-03-20 02:22:15,740 - DEBUG - Requesting: http://10.0.0.42:8082/project/4166f965-a42d-45fb-974e-88a5c5e7be79 2025-03-20 02:22:15,870 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67 2025-03-20 02:22:15,886 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67 2025-03-20 02:22:15,899 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/cfa8076d-ce0d-44d8-90c6-cb905e9e8c28 2025-03-20 02:22:15,910 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/cfa8076d-ce0d-44d8-90c6-cb905e9e8c28 2025-03-20 02:22:15,920 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8cf62c90-e062-450d-85c0-321d7b20dc1c 2025-03-20 02:22:15,929 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-20 02:22:15,929 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67 2025-03-20 02:22:15,943 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/cfa8076d-ce0d-44d8-90c6-cb905e9e8c28 2025-03-20 02:22:15,963 - INFO - Verified VN network id 9 for VN b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67 2025-03-20 02:22:15,964 - INFO - Verifications in API Server for VN ctest-vn-41400216 passed 2025-03-20 02:22:15,964 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67 2025-03-20 02:22:15,975 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/cfa8076d-ce0d-44d8-90c6-cb905e9e8c28 2025-03-20 02:22:15,985 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/cfa8076d-ce0d-44d8-90c6-cb905e9e8c28 2025-03-20 02:22:15,994 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8cf62c90-e062-450d-85c0-321d7b20dc1c 2025-03-20 02:22:16,008 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63593993', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13377577021134752232', 'uuid-lslong': '13178894701766741863'}, 'enable': 'true', 'created': '2025-03-20T02:22:12', 'last-modified': '2025-03-20T02:22:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.576181'} 2025-03-20 02:22:16,016 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-20 02:22:16,025 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63593993', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13377577021134752232', 'uuid-lslong': '13178894701766741863'}, 'enable': 'true', 'created': '2025-03-20T02:22:12', 'last-modified': '2025-03-20T02:22:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.582899'} 2025-03-20 02:22:16,034 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-20 02:22:16,041 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63593993', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13377577021134752232', 'uuid-lslong': '13178894701766741863'}, 'enable': 'true', 'created': '2025-03-20T02:22:12', 'last-modified': '2025-03-20T02:22:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.614628'} 2025-03-20 02:22:16,048 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-20 02:22:16,049 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41400216 passed 2025-03-20 02:22:16,049 - DEBUG - ====Verifying policy data for ctest-vn-41400216 in API_Server ====== 2025-03-20 02:22:16,049 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-20 02:22:16,058 - DEBUG - Requesting: http://10.0.0.42:8082/domain/78cb90fb-efc3-49d9-aab8-3061c7ab1bd1 2025-03-20 02:22:16,074 - DEBUG - Requesting: http://10.0.0.42:8082/project/4166f965-a42d-45fb-974e-88a5c5e7be79 2025-03-20 02:22:16,186 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67 2025-03-20 02:22:16,203 - DEBUG - ==>Verifying data for policy with id: 17a0997c-95cc-4ce5-8309-8c526a39b00e, fqn: ['default-domain', 'ctest-TestBasicPolicy-63593993', 'ctest-policy-allow-all-06577781'] 2025-03-20 02:22:16,203 - INFO - VN ctest-vn-41400216 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-20 02:22:16,203 - DEBUG - Verifying the vn in opserver 2025-03-20 02:22:16,203 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216 virtual network link through opserver 10.0.0.42 2025-03-20 02:22:16,203 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-20 02:22:16,265 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216?flat'} 2025-03-20 02:22:16,265 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216 virtual network link through opserver 10.0.0.12 2025-03-20 02:22:16,265 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-03-20 02:22:16,329 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216?flat'} 2025-03-20 02:22:16,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216 virtual network link through opserver 10.0.0.47 2025-03-20 02:22:16,329 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2025-03-20 02:22:16,389 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216?flat'} 2025-03-20 02:22:16,389 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-41400216 is found in opserver 2025-03-20 02:22:16,426 - DEBUG - Do not have enough data to verify VN in agent 2025-03-20 02:22:16,445 - DEBUG - VRF ids for VN ctest-vn-41400216: {} 2025-03-20 02:22:16,503 - DEBUG - Services list from nova: [, , , ] 2025-03-20 02:22:17,617 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2923-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2923-1) 2025-03-20 02:22:19,348 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2923-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2923-2) 2025-03-20 02:22:19,348 - INFO - Waiting for VM ctest-TestBasicPolicy-63593993-25111826 to be up.. 2025-03-20 02:22:19,593 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-20 02:22:24,718 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:22:24,718 - INFO - VM name : ctest-TestBasicPolicy-63593993-25111826 2025-03-20 02:22:24,838 - DEBUG - VM ctest-TestBasicPolicy-63593993-25111826 ID is ee451c3e-c4b3-42f0-9a59-99c26153229b 2025-03-20 02:22:24,864 - DEBUG - VM ctest-TestBasicPolicy-63593993-25111826 launched on Node an-jenkins-deploy-platform-ansible-os-2923-1 2025-03-20 02:22:24,966 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/ee451c3e-c4b3-42f0-9a59-99c26153229b 2025-03-20 02:22:25,343 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/ee451c3e-c4b3-42f0-9a59-99c26153229b 2025-03-20 02:22:25,395 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/c2f61a28-7f08-4f5e-a785-4ed135ea2b16 2025-03-20 02:22:28,624 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-03-20 02:22:28,625 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63593993-25111826 failed! 2025-03-20 02:22:28,644 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63593993:ctest-vn-02868774 is 62.199.1.193 and allocation pool is NOT set 2025-03-20 02:22:30,715 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=13.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.62 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.619/8.134/13.650/5.515 ms') 2025-03-20 02:22:30,715 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63593993-25111826 passed 2025-03-20 02:22:30,837 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:22:30,838 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63593993-25111826, IP 62.199.1.195, Port 22 2025-03-20 02:22:30,904 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-03-20 02:22:31,011 - DEBUG - VM ctest-TestBasicPolicy-63593993-25111826 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-20 02:22:36,011 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:22:36,012 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63593993-25111826, IP 62.199.1.195, Port 22 2025-03-20 02:22:36,180 - DEBUG - VM ctest-TestBasicPolicy-63593993-25111826 is ready for SSH connections 2025-03-20 02:22:36,180 - INFO - Waiting for VM ctest-TestBasicPolicy-63593993-77287184 to be up.. 2025-03-20 02:22:36,277 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:22:36,277 - INFO - VM name : ctest-TestBasicPolicy-63593993-77287184 2025-03-20 02:22:36,388 - DEBUG - VM ctest-TestBasicPolicy-63593993-77287184 ID is 26728f92-f7d1-42b4-8cb7-cf829d87dbb0 2025-03-20 02:22:36,389 - DEBUG - VM ctest-TestBasicPolicy-63593993-77287184 launched on Node an-jenkins-deploy-platform-ansible-os-2923-2 2025-03-20 02:22:36,486 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/26728f92-f7d1-42b4-8cb7-cf829d87dbb0 2025-03-20 02:22:36,498 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/27cea801-d938-4823-be4d-eabab3fcd5f5 2025-03-20 02:22:37,718 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=2.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.446 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.446/1.568/2.691/1.122 ms') 2025-03-20 02:22:37,718 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63593993-77287184 passed 2025-03-20 02:22:37,832 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:22:37,832 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63593993-77287184, IP 6.82.141.67, Port 22 2025-03-20 02:22:37,999 - DEBUG - VM ctest-TestBasicPolicy-63593993-77287184 is ready for SSH connections 2025-03-20 02:22:37,999 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:22:37,999 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 6.82.141.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-03-20 02:22:38,000 - DEBUG - ping -s 56 -c 3 -W 1 6.82.141.67 2025-03-20 02:22:42,058 - DEBUG - PING 6.82.141.67 (6.82.141.67): 56 data bytes 64 bytes from 6.82.141.67: seq=0 ttl=63 time=5.445 ms 64 bytes from 6.82.141.67: seq=1 ttl=63 time=1.390 ms 64 bytes from 6.82.141.67: seq=2 ttl=63 time=1.485 ms --- 6.82.141.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.390/2.773/5.445 ms 2025-03-20 02:22:42,058 - INFO - Ping to IP 6.82.141.67 from VM ctest-TestBasicPolicy-63593993-25111826 passed 2025-03-20 02:22:42,306 - DEBUG - Policy Update Response {"network-policy": {"uuid": "17a0997c-95cc-4ce5-8309-8c526a39b00e", "href": "http://10.0.0.47:8082/network-policy/17a0997c-95cc-4ce5-8309-8c526a39b00e"}} 2025-03-20 02:22:42,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:22:42,306 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 6.82.141.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-03-20 02:22:42,306 - DEBUG - ping -s 56 -c 3 -W 1 6.82.141.67 2025-03-20 02:22:45,540 - DEBUG - PING 6.82.141.67 (6.82.141.67): 56 data bytes --- 6.82.141.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-20 02:22:45,540 - WARNING - Ping to IP 6.82.141.67 from VM ctest-TestBasicPolicy-63593993-25111826 failed 2025-03-20 02:22:45,541 - INFO - Deleting VM ctest-TestBasicPolicy-63593993-77287184 2025-03-20 02:22:45,603 - INFO - Deleting VM ctest-TestBasicPolicy-63593993-25111826 2025-03-20 02:22:46,170 - INFO - Deleted policy ctest-policy-allow-all-06577781 2025-03-20 02:22:46,171 - INFO - Deleting VN ctest-vn-41400216 2025-03-20 02:22:46,239 - DEBUG - VN b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67 still in use: Unable to complete operation on network b9a6b36c-5c2a-49e8-b6e4-d6e80f158f67. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1a73ba73-ba9a-4ee9-963a-866fbbc08ad7'] 2025-03-20 02:22:46,239 - WARNING - Deleting VN ctest-vn-41400216 failed..Will retry 2025-03-20 02:22:48,465 - DEBUG - Response for deleting network () 2025-03-20 02:22:48,465 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/cfa8076d-ce0d-44d8-90c6-cb905e9e8c28 2025-03-20 02:22:48,472 - DEBUG - Response Code: 404 2025-03-20 02:22:48,473 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-20 02:22:48,480 - DEBUG - Requesting: http://10.0.0.42:8082/domain/78cb90fb-efc3-49d9-aab8-3061c7ab1bd1 2025-03-20 02:22:48,548 - DEBUG - Requesting: http://10.0.0.42:8082/project/4166f965-a42d-45fb-974e-88a5c5e7be79 2025-03-20 02:22:48,660 - INFO - Validated that VN ctest-vn-41400216 is not found in API Server 2025-03-20 02:22:48,677 - DEBUG - VN ctest-vn-41400216 is not present in Agent 10.0.0.29 2025-03-20 02:22:48,690 - DEBUG - VN ctest-vn-41400216 is not present in Agent 10.0.0.53 2025-03-20 02:22:48,690 - INFO - Validated that VN ctest-vn-41400216 is not in any agent 2025-03-20 02:22:48,726 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41400216 info 2025-03-20 02:22:48,726 - INFO - Deleting VN ctest-vn-02868774 2025-03-20 02:22:48,966 - DEBUG - Response for deleting network () 2025-03-20 02:22:48,967 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7b8ddffc-8772-488a-93cb-7ddc58ca5dbe 2025-03-20 02:22:48,973 - DEBUG - Response Code: 404 2025-03-20 02:22:48,974 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-20 02:22:48,986 - DEBUG - Requesting: http://10.0.0.42:8082/domain/78cb90fb-efc3-49d9-aab8-3061c7ab1bd1 2025-03-20 02:22:49,001 - DEBUG - Requesting: http://10.0.0.42:8082/project/4166f965-a42d-45fb-974e-88a5c5e7be79 2025-03-20 02:22:49,100 - INFO - Validated that VN ctest-vn-02868774 is not found in API Server 2025-03-20 02:22:49,115 - DEBUG - VN ctest-vn-02868774 is not present in Agent 10.0.0.29 2025-03-20 02:22:49,127 - DEBUG - VN ctest-vn-02868774 is not present in Agent 10.0.0.53 2025-03-20 02:22:49,127 - INFO - Validated that VN ctest-vn-02868774 is not in any agent 2025-03-20 02:22:49,162 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-02868774 info 2025-03-20 02:22:50,454 - DEBUG - No XMPP flaps were noticed during the test 2025-03-20 02:22:50,454 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41] 2025-03-20 02:22:50,455 - INFO - -------------------------------------------------------------------------------- 2025-03-20 02:22:51,492 - INFO - Deleted project: ctest-TestBasicPolicy-63593993, ID : 4166f965-a42d-45fb-974e-88a5c5e7be79