2025-01-02 02:00:12,066 - INFO - Reading existing Domain with UUID 89a6a7fa-b5bc-4ab0-88aa-35431bfe084f 2025-01-02 02:00:12,079 - INFO - Using existing domain ['admin_domain'](89a6a7fa-b5bc-4ab0-88aa-35431bfe084f) 2025-01-02 02:00:12,291 - INFO - Project ctest-TestBasicPolicy-38573048 not found, creating it 2025-01-02 02:00:12,818 - INFO - Created Project:ctest-TestBasicPolicy-38573048, ID : 7b3b9dde-0b01-4bb3-9d45-192f61abd40f 2025-01-02 02:00:14,537 - INFO - ================================================================================ 2025-01-02 02:00:14,537 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-02 02:00:14,537 - 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-01-02 02:00:14,929 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.0.0.47': '0'}} with 2025-01-02 02:00:14,930 - INFO - Initial checks done. Running the testcase now 2025-01-02 02:00:14,930 - INFO - 2025-01-02 02:00:15,695 - DEBUG - Response for create_network : {'network': {'id': 'faa48854-3431-4dc2-94cb-2d41198ea7d6', 'name': 'ctest-vn-49365109', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'project_id': '7b3b9dde0b014bb39d45192f61abd40f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-vn-49365109'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-01-02 02:00:15,969 - DEBUG - Response for create_subnet : {'subnet': {'id': '0669b1f2-8305-4892-9749-f109ef51b8a9', 'name': '', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'network_id': 'faa48854-3431-4dc2-94cb-2d41198ea7d6', 'ip_version': 4, 'cidr': '30.223.37.192/26', 'allocation_pools': [{'start': '30.223.37.194', 'end': '30.223.37.254'}], 'gateway_ip': '30.223.37.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-01-02T02:00:15.850376', 'updated_at': '2025-01-02T02:00:15.850376', 'dns_server_address': '30.223.37.194', 'tags': [], 'project_id': '7b3b9dde0b014bb39d45192f61abd40f'}} 2025-01-02 02:00:16,038 - INFO - Created VN ctest-vn-49365109 2025-01-02 02:00:16,092 - DEBUG - VN ctest-vn-49365109 UUID is faa48854-3431-4dc2-94cb-2d41198ea7d6 2025-01-02 02:00:16,609 - DEBUG - Response for create_network : {'network': {'id': 'd7d774a7-f408-4463-805b-08d12f33c93e', 'name': 'ctest-vn-83580402', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'project_id': '7b3b9dde0b014bb39d45192f61abd40f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-vn-83580402'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-01-02 02:00:16,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '4bb0682c-2db1-46ac-908a-8fd2e0943d89', 'name': '', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'network_id': 'd7d774a7-f408-4463-805b-08d12f33c93e', 'ip_version': 4, 'cidr': '200.251.27.128/26', 'allocation_pools': [{'start': '200.251.27.130', 'end': '200.251.27.190'}], 'gateway_ip': '200.251.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-01-02T02:00:16.752442', 'updated_at': '2025-01-02T02:00:16.752442', 'dns_server_address': '200.251.27.130', 'tags': [], 'project_id': '7b3b9dde0b014bb39d45192f61abd40f'}} 2025-01-02 02:00:16,938 - INFO - Created VN ctest-vn-83580402 2025-01-02 02:00:17,000 - DEBUG - VN ctest-vn-83580402 UUID is d7d774a7-f408-4463-805b-08d12f33c93e 2025-01-02 02:00:17,213 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402, 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-01-02 02:00:17,665 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'faa48854-3431-4dc2-94cb-2d41198ea7d6', 'name': 'ctest-vn-49365109', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'project_id': '7b3b9dde0b014bb39d45192f61abd40f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0669b1f2-8305-4892-9749-f109ef51b8a9'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-vn-49365109'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-policy-allow-all-30108994']], 'subnet_ipam': [{'subnet_cidr': '30.223.37.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-01-02T02:00:15.590695', 'updated_at': '2025-01-02T02:00:15.865229'}} 2025-01-02 02:00:18,036 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7d774a7-f408-4463-805b-08d12f33c93e', 'name': 'ctest-vn-83580402', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'project_id': '7b3b9dde0b014bb39d45192f61abd40f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4bb0682c-2db1-46ac-908a-8fd2e0943d89'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-vn-83580402'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-policy-allow-all-30108994']], 'subnet_ipam': [{'subnet_cidr': '200.251.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-01-02T02:00:16.528172', 'updated_at': '2025-01-02T02:00:16.767382'}} 2025-01-02 02:00:18,256 - DEBUG - Requesting: https://10.0.0.47:8082/domains 2025-01-02 02:00:18,603 - DEBUG - Requesting: https://10.0.0.47:8082/domains 2025-01-02 02:00:18,685 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f 2025-01-02 02:00:18,745 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f 2025-01-02 02:00:18,838 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6 2025-01-02 02:00:18,899 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6 2025-01-02 02:00:18,958 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff 2025-01-02 02:00:19,013 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff 2025-01-02 02:00:19,069 - DEBUG - Requesting: https://10.0.0.47:8082/route-target/20b5dc88-a4da-42a3-87ea-7b8fef4e7567 2025-01-02 02:00:19,133 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-02 02:00:19,133 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6 2025-01-02 02:00:19,190 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff 2025-01-02 02:00:19,261 - INFO - Verified VN network id 8 for VN faa48854-3431-4dc2-94cb-2d41198ea7d6 2025-01-02 02:00:19,261 - INFO - Verifications in API Server for VN ctest-vn-49365109 passed 2025-01-02 02:00:19,261 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6 2025-01-02 02:00:19,327 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff 2025-01-02 02:00:19,382 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff 2025-01-02 02:00:19,442 - DEBUG - Requesting: https://10.0.0.47:8082/route-target/20b5dc88-a4da-42a3-87ea-7b8fef4e7567 2025-01-02 02:00:19,549 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38573048', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18060710300896808386', 'uuid-lslong': '10721713095510501334'}, 'enable': 'true', 'created': '2025-01-02T02:00:15', 'last-modified': '2025-01-02T02:00:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.926078'} 2025-01-02 02:00:19,608 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-02 02:00:19,608 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49365109 passed 2025-01-02 02:00:19,608 - DEBUG - ====Verifying policy data for ctest-vn-49365109 in API_Server ====== 2025-01-02 02:00:19,608 - DEBUG - Requesting: https://10.0.0.47:8082/domains 2025-01-02 02:00:19,665 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f 2025-01-02 02:00:19,730 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f 2025-01-02 02:00:19,823 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6 2025-01-02 02:00:19,883 - DEBUG - ==>Verifying data for policy with id: 8fba791f-3749-4a78-a653-4d650b3000f4, fqn: ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-policy-allow-all-30108994'] 2025-01-02 02:00:19,883 - INFO - VN ctest-vn-49365109 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-02 02:00:19,883 - DEBUG - Verifying the vn in opserver 2025-01-02 02:00:19,883 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109 virtual network link through opserver 10.0.0.47 2025-01-02 02:00:19,884 - DEBUG - Requesting: https://10.0.0.47:8081/analytics/uves/virtual-networks 2025-01-02 02:00:20,236 - DEBUG - Requesting: https://10.0.0.47:8081/analytics/uves/virtual-networks 2025-01-02 02:00:20,365 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109', 'href': 'https://10.0.0.47:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109?flat'} 2025-01-02 02:00:20,365 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109 is found in opserver 2025-01-02 02:00:20,469 - DEBUG - Do not have enough data to verify VN in agent 2025-01-02 02:00:20,521 - DEBUG - VRF ids for VN ctest-vn-49365109: {} 2025-01-02 02:00:20,521 - DEBUG - Requesting: https://10.0.0.47:8082/domains 2025-01-02 02:00:20,573 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f 2025-01-02 02:00:20,642 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f 2025-01-02 02:00:20,738 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e 2025-01-02 02:00:20,804 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e 2025-01-02 02:00:20,863 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6 2025-01-02 02:00:20,921 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6 2025-01-02 02:00:20,977 - DEBUG - Requesting: https://10.0.0.47:8082/route-target/2c58f71a-b3dc-4bce-820f-a2d91d2d75aa 2025-01-02 02:00:21,068 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-02 02:00:21,068 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e 2025-01-02 02:00:21,126 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6 2025-01-02 02:00:21,191 - INFO - Verified VN network id 9 for VN d7d774a7-f408-4463-805b-08d12f33c93e 2025-01-02 02:00:21,191 - INFO - Verifications in API Server for VN ctest-vn-83580402 passed 2025-01-02 02:00:21,191 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e 2025-01-02 02:00:21,253 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6 2025-01-02 02:00:21,309 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6 2025-01-02 02:00:21,365 - DEBUG - Requesting: https://10.0.0.47:8082/route-target/2c58f71a-b3dc-4bce-820f-a2d91d2d75aa 2025-01-02 02:00:21,477 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38573048', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15553028102849840227', 'uuid-lslong': '9248995954268555582'}, 'enable': 'true', 'created': '2025-01-02T02:00:16', 'last-modified': '2025-01-02T02:00:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.476842'} 2025-01-02 02:00:21,534 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-02 02:00:21,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83580402 passed 2025-01-02 02:00:21,534 - DEBUG - ====Verifying policy data for ctest-vn-83580402 in API_Server ====== 2025-01-02 02:00:21,534 - DEBUG - Requesting: https://10.0.0.47:8082/domains 2025-01-02 02:00:21,589 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f 2025-01-02 02:00:21,653 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f 2025-01-02 02:00:21,735 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e 2025-01-02 02:00:21,798 - DEBUG - ==>Verifying data for policy with id: 8fba791f-3749-4a78-a653-4d650b3000f4, fqn: ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-policy-allow-all-30108994'] 2025-01-02 02:00:21,798 - INFO - VN ctest-vn-83580402 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-02 02:00:21,798 - DEBUG - Verifying the vn in opserver 2025-01-02 02:00:21,798 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402 virtual network link through opserver 10.0.0.47 2025-01-02 02:00:21,798 - DEBUG - Requesting: https://10.0.0.47:8081/analytics/uves/virtual-networks 2025-01-02 02:00:21,858 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402', 'href': 'https://10.0.0.47:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402?flat'} 2025-01-02 02:00:21,858 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402 is found in opserver 2025-01-02 02:00:21,957 - DEBUG - Do not have enough data to verify VN in agent 2025-01-02 02:00:22,005 - DEBUG - VRF ids for VN ctest-vn-83580402: {} 2025-01-02 02:00:22,076 - DEBUG - Services list from nova: [, , ] 2025-01-02 02:00:23,182 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-461-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-461-1) 2025-01-02 02:00:24,732 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-461-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-461-1) 2025-01-02 02:00:24,732 - INFO - Waiting for VM ctest-TestBasicPolicy-38573048-03683680 to be up.. 2025-01-02 02:00:24,896 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-02 02:00:30,043 - DEBUG - VM is in ACTIVE state now 2025-01-02 02:00:30,044 - INFO - VM name : ctest-TestBasicPolicy-38573048-03683680 2025-01-02 02:00:30,206 - DEBUG - VM ctest-TestBasicPolicy-38573048-03683680 ID is bd52bdd0-a46b-4100-aeec-cf00a7ce2c62 2025-01-02 02:00:30,251 - DEBUG - VM ctest-TestBasicPolicy-38573048-03683680 launched on Node cn-jenkins-deploy-platform-juju-os-461-1 2025-01-02 02:00:30,407 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-machine/bd52bdd0-a46b-4100-aeec-cf00a7ce2c62 2025-01-02 02:00:30,466 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-machine-interface/76ff3936-68f0-4259-8a40-46da39293e01 2025-01-02 02:00:33,963 - 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 1007ms') 2025-01-02 02:00:33,963 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38573048-03683680 failed! 2025-01-02 02:00:34,020 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109 is 30.223.37.193 and allocation pool is NOT set 2025-01-02 02:00:38,124 - 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=2 ttl=63 time=6.64 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1017ms\r\nrtt min/avg/max/mdev = 6.640/6.640/6.640/0.000 ms') 2025-01-02 02:00:38,124 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38573048-03683680 passed 2025-01-02 02:00:38,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 02:00:38,280 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38573048-03683680, IP 30.223.37.195, Port 22 2025-01-02 02:00:38,506 - DEBUG - VM ctest-TestBasicPolicy-38573048-03683680 is ready for SSH connections 2025-01-02 02:00:38,507 - INFO - Waiting for VM ctest-TestBasicPolicy-38573048-72140901 to be up.. 2025-01-02 02:00:38,657 - DEBUG - VM is in ACTIVE state now 2025-01-02 02:00:38,657 - INFO - VM name : ctest-TestBasicPolicy-38573048-72140901 2025-01-02 02:00:38,937 - DEBUG - VM ctest-TestBasicPolicy-38573048-72140901 ID is 2c18b006-6df3-494b-8414-6649bb084d3e 2025-01-02 02:00:38,937 - DEBUG - VM ctest-TestBasicPolicy-38573048-72140901 launched on Node cn-jenkins-deploy-platform-juju-os-461-1 2025-01-02 02:00:39,072 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-machine/2c18b006-6df3-494b-8414-6649bb084d3e 2025-01-02 02:00:39,129 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-machine-interface/44d11239-abbb-4d18-8eb3-846062c80987 2025-01-02 02:00:40,578 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.423 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.423/1.627/2.832/1.204 ms') 2025-01-02 02:00:40,578 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-38573048-72140901 passed 2025-01-02 02:00:40,732 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 02:00:40,733 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38573048-72140901, IP 200.251.27.131, Port 22 2025-01-02 02:00:40,942 - DEBUG - VM ctest-TestBasicPolicy-38573048-72140901 is ready for SSH connections 2025-01-02 02:00:40,943 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 02:00:40,943 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.251.27.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2025-01-02 02:00:40,943 - DEBUG - ping -s 56 -c 3 -W 1 200.251.27.131 2025-01-02 02:00:44,607 - DEBUG - PING 200.251.27.131 (200.251.27.131): 56 data bytes 64 bytes from 200.251.27.131: seq=0 ttl=63 time=3.329 ms 64 bytes from 200.251.27.131: seq=1 ttl=63 time=1.057 ms 64 bytes from 200.251.27.131: seq=2 ttl=63 time=0.953 ms --- 200.251.27.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.953/1.779/3.329 ms 2025-01-02 02:00:44,607 - INFO - Ping to IP 200.251.27.131 from VM ctest-TestBasicPolicy-38573048-03683680 passed 2025-01-02 02:00:44,808 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8fba791f-3749-4a78-a653-4d650b3000f4", "href": "https://10.0.0.47:8082/network-policy/8fba791f-3749-4a78-a653-4d650b3000f4"}} 2025-01-02 02:00:44,808 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 02:00:44,808 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.251.27.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2025-01-02 02:00:44,808 - DEBUG - ping -s 56 -c 3 -W 1 200.251.27.131 2025-01-02 02:00:48,015 - DEBUG - PING 200.251.27.131 (200.251.27.131): 56 data bytes --- 200.251.27.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-02 02:00:48,015 - WARNING - Ping to IP 200.251.27.131 from VM ctest-TestBasicPolicy-38573048-03683680 failed 2025-01-02 02:00:48,015 - INFO - Deleting VM ctest-TestBasicPolicy-38573048-72140901 2025-01-02 02:00:48,274 - INFO - Deleting VM ctest-TestBasicPolicy-38573048-03683680 2025-01-02 02:00:49,232 - INFO - Deleted policy ctest-policy-allow-all-30108994 2025-01-02 02:00:49,233 - INFO - Deleting VN ctest-vn-83580402 2025-01-02 02:00:49,388 - DEBUG - VN d7d774a7-f408-4463-805b-08d12f33c93e still in use: Unable to complete operation on network d7d774a7-f408-4463-805b-08d12f33c93e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d40285be-4bc1-4c08-968a-2534f1075f0d'] 2025-01-02 02:00:49,388 - WARNING - Deleting VN ctest-vn-83580402 failed..Will retry 2025-01-02 02:00:51,579 - DEBUG - Response for deleting network () 2025-01-02 02:00:51,579 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6 2025-01-02 02:00:51,640 - DEBUG - Response Code: 404 2025-01-02 02:00:51,641 - DEBUG - Requesting: https://10.0.0.47:8082/domains 2025-01-02 02:00:51,697 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f 2025-01-02 02:00:51,757 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f 2025-01-02 02:00:51,841 - INFO - Validated that VN ctest-vn-83580402 is not found in API Server 2025-01-02 02:00:51,945 - DEBUG - VN ctest-vn-83580402 is not present in Agent 10.0.0.47 2025-01-02 02:00:51,945 - INFO - Validated that VN ctest-vn-83580402 is not in any agent 2025-01-02 02:00:52,101 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83580402 info 2025-01-02 02:00:52,101 - INFO - Deleting VN ctest-vn-49365109 2025-01-02 02:00:52,291 - DEBUG - Response for deleting network () 2025-01-02 02:00:52,291 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff 2025-01-02 02:00:52,344 - DEBUG - Response Code: 404 2025-01-02 02:00:52,344 - DEBUG - Requesting: https://10.0.0.47:8082/domains 2025-01-02 02:00:52,400 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f 2025-01-02 02:00:52,461 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f 2025-01-02 02:00:52,545 - INFO - Validated that VN ctest-vn-49365109 is not found in API Server 2025-01-02 02:00:52,649 - DEBUG - VN ctest-vn-49365109 is not present in Agent 10.0.0.47 2025-01-02 02:00:52,649 - INFO - Validated that VN ctest-vn-49365109 is not in any agent 2025-01-02 02:00:52,805 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49365109 info 2025-01-02 02:00:53,185 - DEBUG - No XMPP flaps were noticed during the test
2025-01-02 02:00:53,185 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2025-01-02 02:00:53,185 - INFO - -------------------------------------------------------------------------------- 2025-01-02 02:00:53,926 - INFO - Deleted project: ctest-TestBasicPolicy-38573048, ID : 7b3b9dde-0b01-4bb3-9d45-192f61abd40f