Return-Path: Delivered-To: apmail-incubator-libcloud-archive@minotaur.apache.org Received: (qmail 78764 invoked from network); 29 Aug 2010 15:38:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Aug 2010 15:38:13 -0000 Received: (qmail 84051 invoked by uid 500); 29 Aug 2010 15:38:13 -0000 Delivered-To: apmail-incubator-libcloud-archive@incubator.apache.org Received: (qmail 83940 invoked by uid 500); 29 Aug 2010 15:38:12 -0000 Mailing-List: contact libcloud-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: libcloud@incubator.apache.org Delivered-To: mailing list libcloud@incubator.apache.org Received: (qmail 83931 invoked by uid 99); 29 Aug 2010 15:38:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Aug 2010 15:38:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sengork@gmail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qy0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Aug 2010 15:38:07 +0000 Received: by qyk8 with SMTP id 8so2326573qyk.6 for ; Sun, 29 Aug 2010 08:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=nzM17jeOPecYrFV+7xc0NFEprBSVji8oSsuwdPbvUWI=; b=H8CQ+HIMFjr+l9uM5l43QknkH9BWrdP5AJzxsNNyGiYDm+Osp5h7xx3RiF/cJCVa3w DuFIhS2J+CHgQnH8WYR4MLJ+O6yDY6OtVnu4FPOZVjyBp8hiIE3lCPUI+MURco5WPA9u 28gnnRXCKlqoIpixSkJuHC+xXM6qJ/LH8kbPk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ioY788uO60hhK1St1LPsVJG/B/tyNRto+SE6LcD5gJyKguN5zfQPYaNlQow789DcA6 /QLnw3WsWo5JG/q18781KYB5s88+uXslz2a47cNcQfDK0OJ7gkUoSmIv+xd2uPln3dMz 5uAvXeIP7ZaY0PQ6POvwlRkGy2wN1+qKNjSwE= MIME-Version: 1.0 Received: by 10.224.64.167 with SMTP id e39mr2075356qai.271.1283096266252; Sun, 29 Aug 2010 08:37:46 -0700 (PDT) Received: by 10.229.85.8 with HTTP; Sun, 29 Aug 2010 08:37:46 -0700 (PDT) Date: Mon, 30 Aug 2010 01:37:46 +1000 Message-ID: From: Sengor To: libcloud@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e64bbf0229a223048ef821a9 Subject: [libcloud] Image state not recognised within drivers/ibm_sbc.py --0016e64bbf0229a223048ef821a9 Content-Type: text/plain; charset=ISO-8859-1 Hi, Looks like the driver does not know about "Deprovisioning" instance state, form REST API /computecloud/enterprise/api/rest/20100331/instances XML response: 12 This causes: Traceback (most recent call last): File "C:\instance_delete.py", line 36, in nodes = conn.list_nodes() File "C:\Python25\Lib\site-packages\libcloud\drivers\ibm_sbc.py", line 138, in list_nodes return self._to_nodes(self.connection.request(REST_BASE + '/instances').object) File "C:\Python25\Lib\site-packages\libcloud\drivers\ibm_sbc.py", line 156, in _to_nodes return [ self._to_node(instance) for instance in object.findall('Instance') ] File "C:\Python25\Lib\site-packages\libcloud\drivers\ibm_sbc.py", line 161, in _to_node state = self.NODE_STATE_MAP[int(instance.findtext('Status'))], KeyError: 12 I believe NODE_STATE_MAP within drivers/ibm_sbc.py would need to be updated. -- sengork --0016e64bbf0229a223048ef821a9--