| Summary: | exception in conductor ui when not specifying which realm for rhevm deployment | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Dave Johnson <dajohnso> | ||||
| Component: | deltacloud-core | Assignee: | Michal Fojtik <mfojtik> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Ronelle Landy <rlandy> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.0.0 | CC: | cpelland, rananda, whayutin | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-05-15 20:32:30 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Dave Johnson
2012-01-13 18:41:07 UTC
Created attachment 555121 [details]
ss
Hi, I have patch in list that will fix this issue: http://mail-archives.apache.org/mod_mbox/deltacloud-dev/201201.mbox/raw/%3C1326368315-28892-2-git-send-email-mfojtik%40redhat.com%3E It's related to DTACLOUD-126 Tested this change using rhevm with multiple datacenters and two realms (clusters) in the datacenter under test:
>> Find images in datacenter
curl -X GET --user 'username:password "server:3001/api/images?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<images>
<image href='server:3001/api/images/ccf52584-4ec8-49cb-9f1b-9d214abfff5f' id='ccf52584-4ec8-49cb-9f1b-9d214abfff5f'>
<name>63fa88a6-b9f2-452d-a2be-fdf3b0a72c2e</name>
<owner_id>xxxl</owner_id>
<description>Template by iwhd</description>
<architecture>x86_64</architecture>
<state>ok</state>
<actions>
<link href='server:3001/api/instances;image_id=ccf52584-4ec8-49cb-9f1b-9d214abfff5f' method='post' rel='create_instance' />
</actions>
</image>
</images>
>> Create instance - no realm specified
curl -X POST -F "image_id=ccf52584-4ec8-49cb-9f1b-9d214abfff5f" -F "name=noRealmSpecified" --user 'username:password' "server:3001/api/instances?format=xml"<?xml version='1.0' encoding='utf-8' ?>
<instance href='server:3001/api/instances/07d8538f-e459-4138-aa9f-318bb547a99f' id='07d8538f-e459-4138-aa9f-318bb547a99f'>
<name>noRealmSpecified</name>
<owner_id>xxx</owner_id>
<image href='server:3001/api/images/ccf52584-4ec8-49cb-9f1b-9d214abfff5f' id='ccf52584-4ec8-49cb-9f1b-9d214abfff5f'></image>
<realm href='server:3001/api/realms/d21bab08-4086-11e1-922a-5cf3fc1c861c' id='d21bab08-4086-11e1-922a-5cf3fc1c861c'></realm>
<state>PENDING</state>
<hardware_profile href='server:3001/api/hardware_profiles/DESKTOP' id='DESKTOP'>
<property kind='fixed' name='memory' unit='MB' value='512'></property>
<property kind='fixed' name='storage' unit='GB' value='1'></property>
<property kind='fixed' name='cpu' unit='count' value='1'></property>
</hardware_profile>
<actions>
<link href='server:3001/api/images;instance_id=07d8538f-e459-4138-aa9f-318bb547a99f' method='post' rel='create_image' />
</actions>
<launch_time>2012-01-17T09:54:11.017-05:00</launch_time>
<public_addresses><address port='5890' type='vnc'>xxx</address></public_addresses>
<private_addresses></private_addresses>
</instance>
>> Create Instance - specify different realm - same datacenter
curl -X POST -F "image_id=ccf52584-4ec8-49cb-9f1b-9d214abfff5f" -F "name=differentRealmSpecified" -F "realm_id=bdce3f96-4070-11e1-9f90-5cf3fc1c861c" --user 'username:password' "server:3001/api/instances?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instance href='serverm:3001/api/instances/0c71d995-954e-4292-ace5-ed0890e5bb61' id='0c71d995-954e-4292-ace5-ed0890e5bb61'>
<name>differentRealmSpecified</name>
<owner_id>xxx</owner_id>
<image href='server:3001/api/images/ccf52584-4ec8-49cb-9f1b-9d214abfff5f' id='ccf52584-4ec8-49cb-9f1b-9d214abfff5f'></image>
<realm href='server:3001/api/realms/bdce3f96-4070-11e1-9f90-5cf3fc1c861c' id='bdce3f96-4070-11e1-9f90-5cf3fc1c861c'></realm>
<state>PENDING</state>
<hardware_profile href='server:3001/api/hardware_profiles/DESKTOP' id='DESKTOP'>
<property kind='fixed' name='memory' unit='MB' value='512'></property>
<property kind='fixed' name='storage' unit='GB' value='1'></property>
<property kind='fixed' name='cpu' unit='count' value='1'></property>
</hardware_profile>
<actions>
<link href='server:3001/api/images;instance_id=0c71d995-954e-4292-ace5-ed0890e5bb61' method='post' rel='create_image' />
</actions>
<launch_time>2012-01-17T09:57:41.841-05:00</launch_time>
<public_addresses><address port='5890' type='vnc'>xxx</address></public_addresses>
<private_addresses></private_addresses>
</instance>
>> same cluster/realm specified
curl -X POST -F "image_id=ccf52584-4ec8-49cb-9f1b-9d214abfff5f" -F "name=sameRealmSpecified" -F "realm_id=d21bab08-4086-11e1-922a-5cf3fc1c861c" --user username:password' "server:3001/api/instances?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instance href='server:3001/api/instances/4cbeda67-cd5f-4614-a40e-39a661f5fd0b' id='4cbeda67-cd5f-4614-a40e-39a661f5fd0b'>
<name>sameRealmSpecified</name>
<owner_id>xxx</owner_id>
<image href='server:3001/api/images/ccf52584-4ec8-49cb-9f1b-9d214abfff5f' id='ccf52584-4ec8-49cb-9f1b-9d214abfff5f'></image>
<realm href='server:3001/api/realms/d21bab08-4086-11e1-922a-5cf3fc1c861c' id='d21bab08-4086-11e1-922a-5cf3fc1c861c'></realm>
<state>PENDING</state>
<hardware_profile href='http://bigisis.rhts.eng.bos.redhat.com:3001/api/hardware_profiles/DESKTOP' id='DESKTOP'>
<property kind='fixed' name='memory' unit='MB' value='512'></property>
<property kind='fixed' name='storage' unit='GB' value='1'></property>
<property kind='fixed' name='cpu' unit='count' value='1'></property>
</hardware_profile>
<actions>
<link href='server:3001/api/images;instance_id=4cbeda67-cd5f-4614-a40e-39a661f5fd0b' method='post' rel='create_image' />
</actions>
<launch_time>2012-01-17T10:15:58.704-05:00</launch_time>
<public_addresses><address port='5890' type='vnc'>xxx</address></public_addresses>
<private_addresses></private_addresses>
</instance>
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2012-0587.html |