<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Vladimir,<br>
<br>
Please see comments below.<br>
<br>
On 03/14/2012 04:46 AM, Berezovski, Vladimir wrote:
<blockquote
cite="mid:EF198B0FF62B394C9A29B21B1CF47A7406F7D5@ilmbx02.IL.NDS.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--
[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif][if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">I repeated all
suggested steps and do may see a default provider
hardware profile within
</span><span style="font-size:12.0pt;font-family:"Times
New Roman","serif""> <a
moz-do-not-send="true"
href="http://localhost:3003/api/hardware_profiles">http://localhost:3003/api/hardware_profiles</a></span><span
style="color:#1F497D"> -exactly as you mentioned .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Since
I already have a rhevm as default provider it causes the
problem ? looks like vsphere doesn’t catch the hwp1 .</span></p>
</div>
</blockquote>
Configuring vsphere after rhevm shouldn't be an issue.
aeolus-configure was built so that you could run it multiple times
to configure multiple cloud providers.<br>
<br>
What did deltacloud show for vsphere's provider hardware profiles?
That is what did you see on
<a class="moz-txt-link-freetext" href="http://localhost:3003/api/hardware_profiles">http://localhost:3003/api/hardware_profiles</a>?<br>
<br>
There are two sets of hardware profiles.: 1. The provider-level
hardware profile which can be seen from deltacloud. 1. The hardware
one specifies in conductor and used to size a deployment.<br>
<br>
The default hardware profile hwp1 in conductor has the following
attributes:<br>
arch = x86_64<br>
memory = 512mb<br>
storage = any<br>
cpu = 1<br>
<br>
Vsphere's provider hardware profile will have to match hwp1 for it
to "catch".<br>
<br>
<blockquote
cite="mid:EF198B0FF62B394C9A29B21B1CF47A7406F7D5@ilmbx02.IL.NDS.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">In the
conductor : Content – Hardware – hwp1 properties I see the
list of “ Matching Provider Hardware Profiles “ .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">The
only items is in the list is the rhevm-default . I suspect
that the vsphere should be there as well , right ? Should
be added ?</span></p>
</div>
</blockquote>
<br>
You will see it if hwp1 fits the ranges listed in vsphere's hardware
profile. Is this the case in your environment?<br>
<br>
<blockquote
cite="mid:EF198B0FF62B394C9A29B21B1CF47A7406F7D5@ilmbx02.IL.NDS.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">/Vlad .<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
<a class="moz-txt-link-abbreviated" href="mailto:aeolus-devel-bounces@lists.fedorahosted.org">aeolus-devel-bounces@lists.fedorahosted.org</a>
[<a class="moz-txt-link-freetext" href="mailto:aeolus-devel-bounces@lists.fedorahosted.org">mailto:aeolus-devel-bounces@lists.fedorahosted.org</a>]
<b>On Behalf Of </b>Richard Su<br>
<b>Sent:</b> Tuesday, March 13, 2012 2:13 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:aeolus-devel@lists.fedorahosted.org">aeolus-devel@lists.fedorahosted.org</a><br>
<b>Subject:</b> Re: problem to add vsphere account<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On 03/11/2012 01:45 AM, Berezovski,
Vladimir wrote: <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">When I try to add new account to the
vshepre provider I get this error:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Cannot add the provider account.<o:p></o:p></p>
<p class="MsoNormal"><strong><span
style="font-family:"Calibri","sans-serif"">1
error prohibited this record from being saved:</span></strong><o:p></o:p></p>
<p class="MsoNormal">Failed to populate hardware_profiles:
Validation failed: Memory is invalid, Cpu is invalid<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Is the “hardware_profiles” missing in
the /etc/aeolus-configure/nodes/vsphere_configure and
should be created prior adding provider’s account ?
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Also , what if there are some
datastores - how to define them ?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">/Vlad .<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><o:p> </o:p></span></p>
<div class="MsoNormal" style="text-align:center" align="center"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif"">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray"><br>
This message is confidential and intended only for the
addressee. If you have received this message in error,
please immediately notify the
<a moz-do-not-send="true" href="mailto:postmaster@nds.com">postmaster@nds.com</a>
and delete it from your system as well as any copies. The
content of e-mails as well as traffic data may be monitored
by NDS for employment and security purposes.<br>
To protect the environment please do not print this e-mail
unless necessary.<br>
<br>
An NDS Group Limited company. <a moz-do-not-send="true"
href="http://www.nds.com">www.nds.com</a></span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><br>
Vladimir,<br>
<br>
The hardware_profiles error feels like it is coming from the
provider side. Do you have any hosts up in vsphere? I'd be
interested to see what deltacloud shows as the vsphere
hardware profiles. To see this, bring up a second deltacloud
instance using this command:<br>
<br>
deltacloudd -i vsphere -P <deltacloud_provider in
/etc/aeolus-configures/nodes/vsphere_configure> -p 3003<br>
<br>
Then point your browser to <a moz-do-not-send="true"
href="http://localhost:3003/api/hardware_profiles">
http://localhost:3003/api/hardware_profiles</a>. Enter
your vsphere username and password.<br>
<br>
You should then see a default provider hardware profile with
something like this:<br>
default<br>
Architecture: x86_64, i386 (default: x86_64) Memory:
128-31657 (default: 128) Storage: nil<br>
<br>
To match against the provider hardware profile,
aeolus-configure creates a default hardware profile named
hwp1. It should have Memory = 512m, cpu = 1, and storage =
nil.
<br>
You can find it listed under Administer -> Content ->
Catalogs -> Hardware. I don't think this is the issue
because I am able to create a provider account with and
without a hwp1 defined.<br>
<br>
As for datastores, in
/etc/aeolus-configure/nodes/vsphere_configure, for each
vsphere provider/instance, you designate a datastore. You
can configure multiple providers/instances in
vsphere_configure by listing each of them in the file.
Example:<br>
<br>
aeolus::profiles::vsphere:<br>
instances:<br>
datastore1provider:<br>
deltacloud_provider: vsphere.example.com<br>
datastore: datastore1<br>
network_name: "My Network"<br>
username: username<br>
password: password<br>
datastore2provider:<br>
deltacloud_provider: vsphere.example.com<br>
datastore: datastore2<br>
network_name: "My Network"<br>
username: username2<br>
password: password2<br>
<br>
<o:p></o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>