After successfully trying out cloud module with Amazon AWS, we were interested in configuring it with a local instance of Openstack or libvirt(KVM). We want to utilize our local data center for this.

Is it possible to setup cloud module with a local instance of Openstack Nova? If yes how do we achieve that?

Regards
Siva

CommentFileSizeAuthor
#4 novarc.txt1.02 KBdisymus
#4 nova-run-log.txt70.33 KBdisymus

Comments

yas’s picture

@disymus

Here is the example settings if you install Cloud module onto the same OpenStack nova machine:

  • API Version: 2011-02-28
  • API URI: 127.0.0.1:8773/services/Cloud (or change the part of IP address <127.0.0.1 > to 192.168.0.1 or actual FQDN etc.)
  • Access Key: admin
  • AWS Secret Key: admin:admin
  • User ID: 42
  • Image Upload URL: http://127.0.0.1:8773
  • Image Register URL: http://127.0.0.1:8773
  • X.509 Certificate: Just put "dummy data" or copy and paste an appropriate certificate
disymus’s picture

After configuring as mentioned above it says "The variables are not correctly configured". When we dsm($myclient->data) in aws/modules/aws_ec2/aws_ec2_lib_elastic_ips_db.inc, we got the following output

<?xml version="1.0"?> <Response><Errors><Error><Code>NoFloatingIpsDefined</Code><Message>Zero floating ips exist.</Message></Error></Errors><RequestID>T9DJQ7YTWJ3E8OFQQ9DX</RequestID></Response>

Just the nova/contrib/nova.sh run doesn't work out of the box. How can we fix this?

yas’s picture

@disymus

Sorry I gave you the wrong info (I corrected the above info).
Please note the following:

Access Key: admin:admin
AWS Secret Key: admin
User ID: 42

Refer a .novarc file

disymus’s picture

StatusFileSize
new70.33 KB
new1.02 KB

Yeah, i did try the above changes but i still get the "NoFloatingIpsDefined" error. Also i tried putting 192.168.10.0 in place of 127.0.0.1 also but in vain. Hereby i attach the novarc file & the log file of running 'nova/contrib/nova.sh run'.

yas’s picture

@disymus

1) Are you successful to install nova?
2) Can you manually launch an instance from nova by command line?
3) Which version of nova are you using? --- We are only testing Bexar, not Cactus. Try Baxer.
4) Search google with the keyword 'NoFloatingIpsDefined' --- as a result, https://code.launchpad.net/~jtran/nova/lp794651/+merge/63943

disymus’s picture

Thank you very much. I will switch to bexar now. Would be better if cloud/modules/iaas/modules/openstack/README.txt is updated with
bzr branch lp:nova/bexar

Thanks
Disymus

yas’s picture

@disymus

Thank you for your suggestion, I will include that in the next update. FYI, I also confirmed to run:

bzr branch lp:nova/cactus

disymus’s picture

While trying to run a instance i get the following error
* There was a problem while launching the instance. An unknown error has occurred. Please try your request again.
* Failed to launch instance.

error value during dsm($myclient) in aws/modules/aws_ec2/aws_ec2_lib_instances_db.inc says "Bad Request" and code is "400". Value of request was

GET /services/Cloud/?Action=RunInstances&ImageId=ami-7055b519&MinCount=1&MaxCount=1&InstanceType=m1.small&Version=2011-02-28&KeyName=Siva&SecurityGroup.2=&AWSAccessKeyId=admin%3Aadmin&SignatureVersion=1&SignatureMethod=HmacSHA1&Timestamp=2011-08-04T09%3A41%3A50Z&Signature=sawI2Pd8MfwrEQDD80ACzKY%2FoSg%3D HTTP/1.0 Host: localhost:8773 User-Agent: Drupal (+http://drupal.org/)

and response was

<?xml version="1.0"?> <Response><Errors><Error><Code>UnknownError</Code><Message>An unknown error has occurred. Please try your request again.</Message></Error></Errors><RequestID>B43WVLYLUNGIUCFG9NF3</RequestID></Response>

Also do we need to download iso images seperately and add it manually to nova? What is the requirement to add a SSH key pair name?

yas’s picture

@disymus

Could you launch an instance of OpenStack on console (command line tool like eucatool) ? What is the version of OpenStack? As long as I used a script / command "/home/ubuntu/nova/contrib/nova.sh install", it is working. The script also installs minimal images such as kernel, ramdisk, and root filesystem. In Clanavi, as long as we can make server template, it should be able to launch instance(s). I don't know the SSH key pair name requirement on OpenStack nova. The default key is okay to launch.

yas’s picture

Issue summary: View changes
Status: Active » Closed (outdated)