Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E22AD16A for ; Thu, 14 Feb 2013 17:30:13 +0000 (UTC) Received: (qmail 62048 invoked by uid 500); 14 Feb 2013 17:30:13 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 62033 invoked by uid 500); 14 Feb 2013 17:30:13 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 62025 invoked by uid 99); 14 Feb 2013 17:30:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 17:30:13 +0000 Date: Thu, 14 Feb 2013 17:30:13 +0000 (UTC) From: "Ronelle Landy (JIRA)" To: dev@deltacloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DTACLOUD-477) Openstack provider: Realms id not correctly reported from GET /api/instance/Instance_id MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DTACLOUD-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ronelle Landy updated DTACLOUD-477: ----------------------------------- Description: Create an instance passing a realm_id - note that this realm is the same as the one where the image resides: >> curl -X POST -F "image_id=67663" -F "realm_id=az-2.region-a.geo-1" --user "un:pw" "http://amd-pike-06.lab.bos.redhat.com:3001/api/instances?format=json" {"instance":{"id":"1099283","href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/instances/1099283","name":"server2013-02-14 12:17:20 -0500","state":"PENDING","owner":"....","image":{"href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/images/67663","id":"67663","rel":"image"}, "realm":{"href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/realms/az-2.region-a.geo-1","id":"az-2.region-a.geo-1","rel":"realm"}," actions":[],"hardware_profile":{"id":"100","href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/hardware_profiles/100","rel":"hardware_profile","properties":{}},"public_addresses":[],"private_addresses":[],"create_time":"2013-02-14T17:17:28Z","storage_volumes":[],"authentication_type":"key","authentication":{"user":"root","password":"uQiHTRW5ircK5Mzz"}}} All good above. Now GET the instance ... not that the realm is reported as: >> curl -X GET --user "un:pw" "http://amd-pike-06.lab.bos.redhat.com:3001/api/instances/1099283?format=xml" server2013-02-14 12:17:20 -0500 ... RUNNING 2013-02-14T17:17:28Z
15.185.178.1
10.7.103.19
root
[root@cloud-qe-3 tests]# This fails deltacloud/test/instances_test.rb. test_0011_should allow to create new instance using image, realm and hardware_profile(Deltacloud API instances collection) [instances_test.rb:282]: Expected: "az-2.region-a.geo-1" Actual: "n/a" was: Create an instance passing a realm_id - note that this realm is the same as the one where the image resides: >> curl -X POST -F "image_id=67663" -F "realm_id=az-2.region-a.geo-1" --user "un:pw" "http://amd-pike-06.lab.bos.redhat.com:3001/api/instances?format=json" {"instance":{"id":"1099283","href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/instances/1099283","name":"server2013-02-14 12:17:20 -0500","state":"PENDING","owner":"....","image":{"href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/images/67663","id":"67663","rel":"image"}, "realm":{"href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/realms/az-2.region-a.geo-1","id":"az-2.region-a.geo-1","rel":"realm"}," actions":[],"hardware_profile":{"id":"100","href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/hardware_profiles/100","rel":"hardware_profile","properties":{}},"public_addresses":[],"private_addresses":[],"create_time":"2013-02-14T17:17:28Z","storage_volumes":[],"authentication_type":"key","authentication":{"user":"root","password":"uQiHTRW5ircK5Mzz"}}} All good above. Now GET the instance ... not that the realm is reported as: >> curl -X GET --user "un:pw" "http://amd-pike-06.lab.bos.redhat.com:3001/api/instances/1099283?format=xml" server2013-02-14 12:17:20 -0500 ... RUNNING 2013-02-14T17:17:28Z
15.185.178.1
10.7.103.19
root
[root@cloud-qe-3 tests]# This fails deltacloud/test/instances_test.rb. Summary: Openstack provider: Realms id not correctly reported from GET /api/instance/Instance_id (was: Openstack provider: Realms not correct reported from GET /api/instance/Instance_id) > Openstack provider: Realms id not correctly reported from GET /api/instance/Instance_id > --------------------------------------------------------------------------------------- > > Key: DTACLOUD-477 > URL: https://issues.apache.org/jira/browse/DTACLOUD-477 > Project: DeltaCloud > Issue Type: Bug > Components: Native/Frontend > Environment: Deltacloud 1.1.1 - gem under test > Openstack provider > Reporter: Ronelle Landy > > Create an instance passing a realm_id - note that this realm is the same as the one where the image resides: > >> curl -X POST -F "image_id=67663" -F "realm_id=az-2.region-a.geo-1" --user "un:pw" "http://amd-pike-06.lab.bos.redhat.com:3001/api/instances?format=json" > {"instance":{"id":"1099283","href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/instances/1099283","name":"server2013-02-14 12:17:20 -0500","state":"PENDING","owner":"....","image":{"href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/images/67663","id":"67663","rel":"image"}, > "realm":{"href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/realms/az-2.region-a.geo-1","id":"az-2.region-a.geo-1","rel":"realm"}," > actions":[],"hardware_profile":{"id":"100","href":"http://amd-pike-06.lab.bos.redhat.com:3001/api/hardware_profiles/100","rel":"hardware_profile","properties":{}},"public_addresses":[],"private_addresses":[],"create_time":"2013-02-14T17:17:28Z","storage_volumes":[],"authentication_type":"key","authentication":{"user":"root","password":"uQiHTRW5ircK5Mzz"}}} > All good above. > Now GET the instance ... not that the realm is reported as: > > >> curl -X GET --user "un:pw" "http://amd-pike-06.lab.bos.redhat.com:3001/api/instances/1099283?format=xml" > > server2013-02-14 12:17:20 -0500 > ... > > > RUNNING > > > > > > > > 2013-02-14T17:17:28Z >
15.185.178.1
>
10.7.103.19
> > > > root > > > >
> [root@cloud-qe-3 tests]# > This fails deltacloud/test/instances_test.rb. > test_0011_should allow to create new instance using image, realm and hardware_profile(Deltacloud API instances collection) [instances_test.rb:282]: > Expected: "az-2.region-a.geo-1" > Actual: "n/a" -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira