<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 03/11/2012 01:45 AM, Berezovski, Vladimir wrote:
<blockquote
cite="mid:EF198B0FF62B394C9A29B21B1CF47A7406E35D@ilmbx02.IL.NDS.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style>
<!--
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
<div class="WordSection1">
<p class="MsoNormal"> </p>
<p class="MsoNormal">When I try to add new account to the
vshepre provider I get this error:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Cannot add the provider account.</p>
<p class="MsoNormal"><strong><span
style="font-family:"Calibri","sans-serif"">1
error prohibited this record from being saved:</span></strong></p>
<p class="MsoNormal">Failed to populate hardware_profiles:
Validation failed: Memory is invalid, Cpu is invalid</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </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 ?
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Also , what if there are some datastores
- how to define them ?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">/Vlad .</p>
<p class="MsoNormal"> </p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This message is confidential and intended only for the
addressee. If you have received this message in error, please
immediately notify the <a class="moz-txt-link-abbreviated" 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 class="moz-txt-link-abbreviated" href="http://www.nds.com">www.nds.com</a><br>
</font>
</blockquote>
<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 class="moz-txt-link-freetext" 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>
<br>
</body>
</html>