Ask Your Question
0

some help to get this work please !!!

asked 2018-08-07 17:49:54 -0500

raniaadouni gravatar image

Hi , I want to deploy the solution openstack EC2 driver to to make Hybrid cloud so I can burst to public cloud I get difficult with this tutorial ("https://github.com/openstack/ec2-driver " ) , I don't have a much experience with API !! I am not working with devstack , I get openstack installed service by service !! any help well be great to get this done for my graduation ? https://www.youtube.com/watch?v=DiMbp9go-To (https://www.youtube.com/watch?v=DiMbp...) thanks !!

edit retag flag offensive close merge delete

Comments

You can't expect getting help without a description of your problem. What have you tried, and how did it fail?

I don't think devstack or API experience are required, but the EC2 driver you plan to use was written for Juno. It may not work on current OpenStack versions.

Bernd Bausch gravatar imageBernd Bausch ( 2018-08-07 22:42:45 -0500 )edit

hi Bernd , I don't get what will be difference between the configuration of nova-compute with hypervisor kvm and the configuration of this ec2 driver !!! I hope you get what i want to say !!!

raniaadouni gravatar imageraniaadouni ( 2018-08-08 06:10:38 -0500 )edit

Each compute node can have a single hypervisor. You can set up a compute node with KVM, and another compute node that uses the EC2 driver. The first compute node runs KVM and QEMU, the second compute node is just a bridge to EC2.

Bernd Bausch gravatar imageBernd Bausch ( 2018-08-08 06:51:14 -0500 )edit

To configure a compute node for KVM: https://docs.openstack.org/nova/lates....

To configure a compute node for EC2: https://github.com/openstack/ec2-driv... (probably a bit outdated because it was written for Icehouse and Juno).

Bernd Bausch gravatar imageBernd Bausch ( 2018-08-08 06:54:44 -0500 )edit

Bernd , I did read that instruction multiple time but I don't know what to do , I just add new compute to my cluster then I am just stuck there I don't know what is the second thing to do to make this happening :( if i need install nova-compute or what !!!

raniaadouni gravatar imageraniaadouni ( 2018-08-08 07:19:36 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-08-10 09:11:28 -0500

raniaadouni gravatar image

updated 2018-08-10 09:23:07 -0500

Bernd , I did what you told me and I clone the repository under /usr/lib/python2.7/dist-packages/nova/virt then when I restart nova-compute I get this error !!!

2018-08-10 15:10:34.130 30548 INFO nova.virt.driver [req-d0fdbda1-4791-44e2-9be5-892a0797e11c - - - - -] Loading compute driver 'ec2.EC2Driver'
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver [req-d0fdbda1-4791-44e2-9be5-892a0797e11c - - - - -] Unable to load the virtualization driver
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver Traceback (most recent call last):
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1626, in load_compute_driver
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver     virtapi)
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 44, in import_object
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver     return import_class(import_str)(*args, **kwargs)
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 30, in import_class
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver     __import__(mod_str)
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/ec2/__init__.py", line 15, in <module>
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver     from nova.virt.ec2 import ec2driver
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/ec2/ec2driver.py", line 44, in <module>
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver     from nova.openstack.common import log as logging
2018-08-10 15:10:34.158 30548 ERROR nova.virt.driver ImportError: No module named openstack.common
2018-08-10 15:10:34.158 30548 ERROR nova.virt.drive

!!! any help please

edit flag offensive delete link more

Comments

The error is No module named openstack.common. I guess that your OpenStack version doesn't have openstack.common. As I said, the EC2 driver is old and may not work on newer versions.

Unfortunately I don't know how to fix this, except porting the code.

Bernd Bausch gravatar imageBernd Bausch ( 2018-08-10 09:19:40 -0500 )edit

ec2driver.py imports two modules from openstack.common. You could try to replace the two lines with from oslo_log import log as logging and from oslo_service import loopingcall, respectively. You are likely to hit other, similar problems later, though.

Bernd Bausch gravatar imageBernd Bausch ( 2018-08-10 09:27:36 -0500 )edit

Hi bernd , Yes it is really annoying thing I get other error , and I did search for make some update of the modules but nothing !!

raniaadouni gravatar imageraniaadouni ( 2018-08-11 05:47:11 -0500 )edit

You either need to find another EC2 driver, or adapt this one to the newest version of OpenStack.

Bernd Bausch gravatar imageBernd Bausch ( 2018-08-11 06:24:59 -0500 )edit

Yes I am trying to get this done Looking for solution :( Bernd I want to ask you if you hava any idea about How I can do the scaling or migration my openstack instance to AWS , I am open to any solution to get them work and get done with task !!! thanks for taking time and response to my questions

raniaadouni gravatar imageraniaadouni ( 2018-08-11 12:45:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-08-07 17:49:54 -0500

Seen: 77 times

Last updated: Aug 10