deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DTACLOUD-302) DC throw an exception when launched with multiple frontends
Date Thu, 30 Aug 2012 22:00:09 GMT

     [ https://issues.apache.org/jira/browse/DTACLOUD-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ronelle Landy closed DTACLOUD-302.
----------------------------------

    Resolution: Fixed

Closing this issues as fixed in Deltacloud commit version: e4867b99d547b0b87fd4ae600671d406e2642c54.
Test output included below:

Starting Deltacloud with all three front ends:
>> ./bin/deltacloudd -i mock -f deltacloud,ec2,cimi -r <server> -p 3009

Accessing deltacloud Frontend:
 curl -X GET --user "un:pw" "nec-em6.rhts.eng.bos.redhat.com:3009/api/instances?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instances>
  <instance href='http://nec-em6.rhts.eng.bos.redhat.com:3009/api/instances/inst0' id='inst0'>
    <name>Mock Instance With Profile Change</name>
    <owner_id>xxxxxx</owner_id>
    <image href='http://nec-em6.rhts.eng.bos.redhat.com:3009/api/images/img1' id='img1'></image>
    <realm href='http://nec-em6.rhts.eng.bos.redhat.com:3009/api/realms/us' id='us'></realm>
    <state>RUNNING</state>
    <hardware_profile href='http://nec-em6.rhts.eng.bos.redhat.com:3009/api/hardware_profiles/m1-large'
id='m1-large'>
      <property kind='fixed' name='memory' unit='MB' value='12288'></property>
    </hardware_profile>
    <actions>
      <link href='http://nec-em6.rhts.eng.bos.redhat.com:3009/api/instances/inst0/reboot'
method='post' rel='reboot' />
      <link href='http://nec-em6.rhts.eng.bos.redhat.com:3009/api/instances/inst0/stop'
method='post' rel='stop' />
      <link href='http://nec-em6.rhts.eng.bos.redhat.com:3009/api/run_instances/inst0;id=inst0'
method='post' rel='run' />
      <link href='http://nec-em6.rhts.eng.bos.redhat.com:3009/api/create_image;instance_id=inst0'
method='post' rel='create_image' />
    </actions>
    <public_addresses><address type='hostname'>img1.inst0.public.com</address></public_addresses>
    <private_addresses><address type='hostname'>img1.inst0.private.com</address></private_addresses>
    <storage_volumes></storage_volumes>
    <authentication type='key'>
    </authentication>
  </instance>
.....
</instances>

Accessing CIMI Front end (same server, same port):
curl -X GET --user "un:pw" "nec-em6.rhts.eng.bos.redhat.com:3009/cimi/networks?format=xml"
<NetworkCollection xmlns="http://www.dmtf.org/cimi">
  <id>http://nec-em6.rhts.eng.bos.redhat.com:3009/cimi/networks</id>
  <name>default</name>
  <description>Mock NetworkCollection</description>
  <created>2012-08-30 17:56:37 -0400</created>
  <network href="http://nec-em6.rhts.eng.bos.redhat.com:3009/cimi/networks/network2" />
  <network href="http://nec-em6.rhts.eng.bos.redhat.com:3009/cimi/networks/network1" />
</NetworkCollection>

Accessing EC2 Front end (same server, same port):
curl -X GET --user "mockuser:mockpassword" "nec-em6.rhts.eng.bos.redhat.com:3009/?Action=DescribeInstances"
<DescribeInstancesResponse xmlns='http://ec2.amazonaws.com/doc/2012-04-01/'>
  <requestId>3b5130bc5f5f54a6b6ff883bd8c0746c</requestId>
  <reservationSet>
  <item>
    <reservationId>r-11111111</reservationId>
    <ownerId>deltacloud</ownerId>
    <groupSet>
      <item>
        <groupId>sg-11111111</groupId>
        <groupName>default</groupName>
      </item>
    </groupSet>
    <instanceSet>
  <item>
    <instanceId>inst0</instanceId>
    <imageId>img1</imageId>
    <instanceType>m1-large</instanceType>
    <launchTime>2012-08-30 17:57:44 -0400</launchTime>
    <ipAddress>img1.inst0.public.com</ipAddress>
    <dnsName>img1.inst0.public.com</dnsName>
    <privateIpAddress>img1.inst0.private.com</privateIpAddress>
    <privateDnsName>img1.inst0.private.com</privateDnsName>
    <architecture>i386</architecture>
    <instanceState>
      <code>16</code>
      <name>running</name>
    </instanceState>
    <placement>
      <availabilityZone>us</availabilityZone>
      <groupName></groupName>
      <tenancy>default</tenancy>
    </placement>
  </item>
  <item>
......






                
> DC throw an exception when launched with multiple frontends
> -----------------------------------------------------------
>
>                 Key: DTACLOUD-302
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-302
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: ./bin/deltacloudd -i mock -f deltacloud,ec2,cimi
>            Reporter: Michal Fojtik
>            Assignee: Michal Fojtik
>            Priority: Blocker
>              Labels: blocker-1.0.3
>
> /Users/mfojtik/code/core/server/lib/deltacloud/collections/addresses.rb:19:in `respond_to?'
> /Users/mfojtik/code/core/server/lib/deltacloud/collections/addresses.rb:19:in `block
in '
> /Users/mfojtik/code/core/server/lib/deltacloud/helpers/deltacloud_helper.rb:29:in `block
(2 levels) in supported_collections'
> /Users/mfojtik/code/core/server/lib/deltacloud/helpers/deltacloud_helper.rb:24:in `each'
> /Users/mfojtik/code/core/server/lib/deltacloud/helpers/deltacloud_helper.rb:24:in `block
in supported_collections'
> /Users/mfojtik/code/core/server/lib/deltacloud/helpers/deltacloud_helper.rb:23:in `each'
> /Users/mfojtik/code/core/server/lib/deltacloud/helpers/deltacloud_helper.rb:23:in `supported_collections'
> /Users/mfojtik/code/core/server/lib/deltacloud/../../views/api/show.html.haml:6:in `evaluate_source'

--
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

Mime
View raw message