Re: [Openstack] How to integrate Cloudsim

2013-05-01 Thread harryxiyou
On Wed, May 1, 2013 at 9:23 PM, Lorin Hochstein
lo...@nimbisservices.com wrote:
 Harry:

 I believe that Cloudsim is a cloud simulator, intended to be run on your
 local desktop/laptop. You wouldn't actually run it on a cloud such as
 OpenStack.


Yeah, that's the problem. So i wanna realize that run Cloudsim with Openstack.
Add this feature for both Openstack and Cloudsim ;-)



--
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] How to integrate Cloudsim

2013-04-30 Thread harryxiyou
Hi all,

I just wonder how to integrate Cloudsim(https://code.google.com/p/cloudsim)
into Openstack, that is to say i wanna use Cloudsim in local clouds with
Openstack. Would anyone please give me some suggestions about this
one? Or give me an example patch that is integrated into Openstack. Thanks
very much in advance ;-)

--
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Create Sheepdog Volume by Openstack Dashboard error

2013-02-21 Thread harryxiyou
On Thu, Feb 21, 2013 at 3:50 PM, Jean-Baptiste RANSY
jean-baptiste.ra...@alyseo.com wrote:
 Hi,

Hi Jean-Baptiste RANSY,


 $ screen -r

 than navigate to c-vol with Ctrl+A then N

 To detach from screen : Ctrl+A then D


This really helps me a lot. Thanks very much ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Installed Openstack errors

2013-02-21 Thread harryxiyou
Hi all,

After i installed Openstack by Devstack, i got following error logs.

1, Some errors with django
===
[Thu Feb 21 14:57:07 2013] [error] Exception AttributeError:
AttributeError('_DummyThread' object has no attribute
'_Thread__block',) in module 'threading' from
'/usr/lib/python2.7/threading.pyc' ignored
[Thu Feb 21 14:57:08 2013] [error] DEBUG:django.db.backends:(0.000)
SELECT (1) AS a FROM django_session WHERE
django_session.session_key = 0d697e90142c66f6bbca10728485fded
LIMIT 1; args=('0d697e90142c66f6bbca10728485fded',)
[Thu Feb 21 14:57:08 2013] [error] DEBUG:django.db.backends:(0.001)
UPDATE django_session SET session_data =
NzQ3NjQ1NTVkNDU0MzFiZDQ0MjgxMjFiNzU2MTE4NmJjZTJlYTQ4YzqAAn1xAVUKdGVzdGNvb2tp
[Thu Feb 21 14:57:08 2013] [error] ZXECVQZ3b3JrZWRxA3Mu
[Thu Feb 21 14:57:08 2013] [error] , expire_date = 2013-03-07
14:57:08.501759 WHERE django_session.session_key =
0d697e90142c66f6bbca10728485fded ;
args=('NzQ3NjQ1NTVkNDU0MzFiZDQ0MjgxMjFiNzU2MTE4NmJjZTJlYTQ4YzqAAn1xAVUKdGVzdGNvb2tp\\nZXECVQZ3b3JrZWRxA3Mu\\n',
u'2013-03-07 14:57:08.501759', '0d697e90142c66f6bbca10728485fded')
[Thu Feb 21 14:57:08 2013] [error] DEBUG:django.db.backends:(0.001)
SELECT django_session.session_key,
django_session.session_data, django_session.expire_date FROM
django_session WHERE (django_session.session_key =
0d697e90142c66f6bbca10728485fded  AND django_session.expire_date 
2013-02-21 14:57:08.742937 );
args=('0d697e90142c66f6bbca10728485fded', u'2013-02-21
14:57:08.742937')
[Thu Feb 21 14:57:08 2013] [error] DEBUG:django.db.backends:(0.001)
SELECT django_session.session_key,
django_session.session_data, django_session.expire_date FROM
django_session WHERE (django_session.session_key =
0d697e90142c66f6bbca10728485fded  AND django_session.expire_date 
2013-02-21 14:57:08.744029 );
args=('0d697e90142c66f6bbca10728485fded', u'2013-02-21
14:57:08.744029')
[Thu Feb 21 14:57:08 2013] [error] DEBUG:django.db.backends:(0.095)
SELECT django_session.session_key,
django_session.session_data, django_session.expire_date FROM
django_session WHERE (django_session.session_key =
0d697e90142c66f6bbca10728485fded  AND django_session.expire_date 
2013-02-21 14:57:08.747999 );
args=('0d697e90142c66f6bbca10728485fded', u'2013-02-21
14:57:08.747999')
[Thu Feb 21 14:57:08 2013] [error] DEBUG:django.db.backends:(0.010)
SELECT django_session.session_key,
django_session.session_data, django_session.expire_date FROM
django_session WHERE (django_session.session_key =
0d697e90142c66f6bbca10728485fded  AND django_session.expire_date 
2013-02-21 14:57:08.818199 );
args=('0d697e90142c66f6bbca10728485fded', u'2013-02-21
14:57:08.818199')
[Thu Feb 21 14:57:09 2013] [error] DEBUG:django.db.backends:(0.001)
SELECT django_session.session_key,
django_session.session_data, django_session.expire_date FROM
django_session WHERE (django_session.session_key =
0d697e90142c66f6bbca10728485fded  AND django_session.expire_date 
2013-02-21 14:57:09.115517 );
args=('0d697e90142c66f6bbca10728485fded', u'2013-02-21
14:57:09.115517')

2, some errors about emulator
=
2013-02-22 01:01:03.282 TRACE nova return hubs.get_hub().switch()
2013-02-22 01:01:03.282 TRACE nova   File
/usr/local/lib/python2.7/dist-packages/eventlet-0.12.1-py2.7.egg/eventlet/hubs/hub.py,
line 187, in switch
2013-02-22 01:01:03.282 TRACE nova return self.greenlet.switch()
2013-02-22 01:01:03.282 TRACE nova   File
/usr/local/lib/python2.7/dist-packages/eventlet-0.12.1-py2.7.egg/eventlet/greenthread.py,
line 194, in main
2013-02-22 01:01:03.282 TRACE nova result = function(*args, **kwargs)
2013-02-22 01:01:03.282 TRACE nova   File
/opt/stack/nova/nova/service.py, line 147, in run_server
2013-02-22 01:01:03.282 TRACE nova server.start()
2013-02-22 01:01:03.282 TRACE nova   File
/opt/stack/nova/nova/service.py, line 429, in start
2013-02-22 01:01:03.282 TRACE nova self.manager.init_host()
2013-02-22 01:01:03.282 TRACE nova   File
/opt/stack/nova/nova/compute/manager.py, line 521, in init_host
2013-02-22 01:01:03.282 TRACE nova self._report_driver_status(context)
2013-02-22 01:01:03.282 TRACE nova   File
/opt/stack/nova/nova/compute/manager.py, line 3353, in
_report_driver_status
2013-02-22 01:01:03.282 TRACE nova capabilities =
self.driver.get_host_stats(refresh=True)
2013-02-22 01:01:03.282 TRACE nova   File
/opt/stack/nova/nova/virt/libvirt/driver.py, line 3041, in
get_host_stats
2013-02-22 01:01:03.282 TRACE nova return
self.host_state.get_host_stats(refresh=refresh)
2013-02-22 01:01:03.282 TRACE nova   File
/opt/stack/nova/nova/virt/libvirt/driver.py, line 322, in host_state
2013-02-22 01:01:03.282 TRACE nova self._host_state = HostState(self)
2013-02-22 01:01:03.282 TRACE nova   File
/opt/stack/nova/nova/virt/libvirt/driver.py, line 3313, in __init__
2013-02-22 01:01:03.282 TRACE nova self.update_status()
2013-02-22 01:01:03.282 TRACE nova   File
/opt/stack/nova/nova/virt/libvirt/driver.py, line 3337, in

[Openstack] How to get debug logs in Openstack Cinder

2013-02-21 Thread harryxiyou
Hi all,

I add some print logs for cinder/cinder/volume/drivers/sheepdog.py
like following.

[...]
 57 def create_volume(self, volume):
 58 Creates a sheepdog volume
 59 LOG.debug(_('999 volume name is %s') % volume['name'])
^
 60 self._try_execute('qemu-img', 'create',
 61   sheepdog:%s % volume['name'],
 62   '%sG' % volume['size'])
[...]

However, i could not catch this, LOG.debug(_('999 volume name is %s')
% volume['name']),
logs by 'screen -r'. How could i get the logs? Maybe i should print
logs with other formats, right?
Has anyone add print logs for openstack? Please give me some
suggestions. Thanks a lot ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [cloudxy] Re: [openstack-dev] Restart devstack errors

2013-02-20 Thread harryxiyou
On Wed, Feb 20, 2013 at 8:00 PM, Liang Liang lyon.lian...@gmail.com wrote:
 you need analyze your keystone log to get the reason why keystone fails,
 they are in /opt/stack/logs/screen/


I cannot find /opt/stack/logs dir.

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [cloudxy] Re: [openstack-dev] Restart devstack errors

2013-02-20 Thread harryxiyou
On Thu, Feb 21, 2013 at 12:44 AM, Yujie Du duyujie@gmail.com wrote:



 2013/2/20 harryxiyou harryxi...@gmail.com

[...]
 Use screen to see the logging output:
 $screen -d -m -S screen-name  -t shell -s /bin/bash
 $ screen -x stack


After  executed
$ screen -d -m -S stack  -t shell -s /bin/bash
$ screen -x stack

I saw nothing logs.



-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Restart devstack errors

2013-02-20 Thread harryxiyou
On Wed, Feb 20, 2013 at 3:14 PM, Hirendra Rathor
hirendra.rat...@gmail.com wrote:

Hi Hirendra Rathor,

 I was getting same error when I picked up devstack for the first time few
 days ago. I could have tried troubleshooting it but I wasn't particularly
 happy with the fact that I had to launch stack.sh every time on reboot. The
 script updates the source code and then compiles it which means that the
 product behavior could be different after running the script. This is not
 necessarily a problem but I felt less in control.

 I, therefore, modified my local copy of stack.sh to _not_ do operations that
 should be required for the first run. Examples of such operations include
 creating user accounts, configuration files, mysql database etc. The result
 was a script that just launches the openstack processes. Running this lean
 script resulted in successful launch of keystone process, so I didn't have
 to troubleshoot the original problem!


I am not clear about how you can solve 'keystone did not start'.
Cloud you please attach your modified stack.sh, which solved this problem.

Now, i can get some logs for my 'keystone did not start' like following.

$ screen -S stack -p key -X stuff
$ screen -x stack

jiawei@jiawei:~/workshop1/devstack$ cd /opt/stack/keystone 
/opt/stack/keystone/bin/keystone-all --config-file
/etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d
--debug || touch /opt/stack/status/stack/key.failure
Traceback (most recent call last):
  File /opt/stack/keystone/bin/keystone-all, line 22, in module
from paste import deploy
  File 
/usr/local/lib/python2.7/dist-packages/Paste-1.7.5.1-py2.7.egg/paste/__init__.py,
line 4, in module
import pkg_resources
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2727,
in module
add_activation_listener(lambda dist: dist.activate())
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 700,
in subscribe
callback(dist)
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2727,
in lambda
add_activation_listener(lambda dist: dist.activate())
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2227,
in activate
self.insert_on(path)
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2334,
in insert_on
self.check_version_conflict()
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2373,
in check_version_conflict
for modname in self._get_metadata('top_level.txt'):
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2221,
in _get_metadata
for line in self.get_metadata_lines(name):
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 1209,
in get_metadata_lines
return yield_lines(self.get_metadata(name))
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 1201,
in get_metadata
return self._get(self._fn(self.egg_info,name))
  File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 1316, in _get
stream = open(path, 'rb')
IOError: [Errno 13] Permission denied:
'/usr/local/lib/python2.7/dist-packages/httplib2-0.7.7-py2.7.egg/EGG-INFO/top_level.txt'


Could anyone give me some suggestions to this problem? Thanks
in advance.



-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Restart devstack errors

2013-02-20 Thread harryxiyou
On Thu, Feb 21, 2013 at 12:14 PM, Chris Behrens cbehr...@codestud.com wrote:
 [Removed the dev list -- no need to cross-post.]

 It looks like you have broken permissions on 
 '/usr/local/lib/python2.7/dist-packages/httplib2-0.7.7-py2.7.egg'
nd/or subdirectories.  Make sure everything is world readable.


You are right. After sudo chmod -R 777 dist-packages/
I could solve this problem successfully.
Thanks.



-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Restart devstack errors

2013-02-20 Thread harryxiyou
On Thu, Feb 21, 2013 at 1:35 PM, Chris Behrens cbehr...@codestud.com wrote:
 Well, you probably don't want world writeable, but :)
755 on dirs and 644 on files is probably more appropriate!

Ah..., this may be better ;-)

But at least you know the issue.


Yup, thanks.


-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Run ./run_tests.sh test_libvirt error

2013-02-19 Thread harryxiyou
Hi all,

After i installed Openstack by Devstack, i wanna run the tests
in the nova/tests/test_libvirt.py file. I ran the command
'./run_tests.sh test_libvirt' and i caught following error.

$ ./run_tests.sh test_libvirt
Running `tools/with_venv.sh python setup.py testr --slowest
--testr-args='--subunit  test_libvirt'`
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'testr'

--
Ran 0 tests in 0.268s

OK
cp: cannot stat `.testrepository/-1': No such file or directory


Could anyone give me some suggestions? Thanks a lot in advance.

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Install devstack problem

2013-02-16 Thread harryxiyou
Hi all,

When i installed Openstack by devstack, i was stucking in following
condition.

[...]
Downloading/unpacking prettytable (from -r
python_keystoneclient.egg-info/requires.txt (line 2))


It just got stuck here... and not moving forward.

Has anyone ever got the same problem? How did you solve this problem?
Please give me some suggestions. Thanks a lot in advance ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Install devstack in Ubuntu 10.04

2013-02-14 Thread harryxiyou
Hi all,

Has anyone installed devstack in Ubuntu 10.04? Following are
my distro's detail infomations.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 10.04.4 LTS
Release:10.04
Codename:   lucid

Has anyone ever configured devstack for this Ubuntu distro?
Do i have to install devstack in Ubuntu 12.04 (Precise) or Fedora 16?
Could anyone give me some suggestions? Thanks in advance ;-)


-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Sheepdog][Libvirt][Qemu]Add a new block storage driver by Libvirt/Qemu way for Openstack

2013-01-25 Thread harryxiyou
On Sat, Jan 19, 2013 at 10:04 PM, MORITA Kazutaka
morita.kazut...@gmail.com wrote:
[...]
 If you do the above work, I think you can use your file system with
 OpenStack.

 But I suggest doing them step by step.  If your file system is not
 supported in QEMU, I think libvirt won't support it.  If libvirt
 doesn't support it, OpenStack shouldn't support it too.


Hi Mortita,

If i just wanna test sheepdog driver in Libvirt separately(without
QEMU and Openstack),
how should i do this job. You can suppose i wanna test if sheepdog
driver, you add, is
working well in Libvirt. Could you please give me some suggestions?
Thanks in advance ;-)

PS: Your patch for Libvirt can be seen here:
http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=036ad5052b43fe9f0d197e89fd16715950408e1d



-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev]Where is libvirt library packages in Openstack Nova branch

2013-01-21 Thread harryxiyou
On Mon, Jan 21, 2013 at 8:14 PM, Daniel P. Berrange berra...@redhat.com wrote:
[...]
 The nova driver for talking to libvirt is in nova/virt/libvirt/

Yup, i think so. Therefore, i also think nova driver in nova/virt/libvirt
has some relationships with libvirt code itself, right? Nova driver
send parameters to libvirt client(in Nova branch), then libvirt client
send these parameters to libvirt serever(libvirt code itself). How do
they(libvirt client and libvirt server) communicate with each other
in details? I wonder if they(libvirt client and libvirt server) are a whole
one in libvirt code itself. And Openstack just call libvirt client interfaces,
which Openstack just package libvirt code itself to be a library for calling.
Daniel, do you understand my meanings? Do you agree with me?

 The libvirt code itself is not part of openstack, and available from
 our website http://libvirt.org
Of course, Libvirt and Openstack are two independent and wonderful projects,
i love them very much ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev]Where is libvirt library packages in Openstack Nova branch

2013-01-21 Thread harryxiyou
On Tue, Jan 22, 2013 at 12:20 AM, Daniel P. Berrange
berra...@redhat.com wrote:
[...]
 Nova simply uses the standard libvirt python module, which is a thin
 python wrapper around the libvirt.so C library.

I think so, but i wonder if the standard libvirt python module is
nova/virt/libvirt/driver.py?

 This library talks to the libvirtd server via a private RPC service. Nova
only includes its own custom libvirt integration code, the libvirt python
module isn't part of Nova.

But the libvirt python module is in the Nova branch. Why do you think it
is not a part of Nova? Is it part of libvirt code itself?

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev]Where is libvirt library packages in Openstack Nova branch

2013-01-21 Thread harryxiyou
On Tue, Jan 22, 2013 at 1:10 AM, Daniel P. Berrange berra...@redhat.com wrote:
[...]
 That isn't the libvirt python module. That is Nova's libvirt integration
 driver code.

That is to say, libvirt.so is from standard libvirt code itself and libvirt
python module is from libvirt.so. They(libvirt.so and libvirt python module)
are part of libvirt. And Nova just uses libvirt integration driver codes.
But i wonder if they(libvirt integration codes and libvirt python module)
have any relationships? What and how do they have? Nova's libvirt integration
codes call libvirt python module, right?

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev]Where is libvirt library packages in Openstack Nova branch

2013-01-21 Thread harryxiyou
On Tue, Jan 22, 2013 at 9:21 AM, longeek mengql112...@gmail.com wrote:
 Hi friends,

Hi Meng,

 the python interface of libvirt maybe help you, because openstack uses it in
 nova/virt/libvirt/

If openstack use it direactly, how to call these interface effectively? I think
Nova should place libvirt python module to its source codes directory tree,
then he can call these interfaces. Therefore, i cannot find the libvirt python
module in Nova branch.

Daniel said  libvirt.so is from standard libvirt code itself and libvirt
python module is from libvirt.so. They(libvirt.so and libvirt python module)
are part of libvirt. And Nova just uses libvirt integration driver codes.
But i wonder if they(libvirt integration codes and libvirt python module)
have any relationships? What and how do they have? Nova's libvirt integration
codes call libvirt python module, right? Where does Nova place libvirt python
module? How to call libvirt python module?



-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [Sheepdog][Libvirt][Qemu]Add a new block storage driver by Libvirt/Qemu way for Openstack

2013-01-19 Thread harryxiyou
Hi all,

I wanna add a new block storage driver by Libvirt/Qemu way for Openstack, which
is as same as Sheepdog driver for Openstack. So i think the theories
are like this.

1, In the Openstack Nova branch, Openstck driver call libvirt client
and send parameters
to libvirt client.(From this point, i should modify Openstack Nova
source codes. They are
a, nova/nova/virt/libvirt/driver.pyadd new driver way
b, /OpenStack/nova/nova/tests/test_libvirt.py  add new driver test)

2, According to own protocol, libvirt client in Openstack Nova branch
send parameters to
Libvirt server.(From this point, i should modify libvirt library to
let libvirt library support this
new driver like Sheepdog).

3, Libvirt server call Qemu interfaces to send parameters to
Qemu.(From this point, i should
modify Qemu source codes to let Qemu support this new driver like Sheepdog).

4, In Openstack Cinder branch, Openstack driver use Qemu commands to
create this new volumes
to Qemu.(From this point, i should modify Openstack Cinder branch
source codes like this.
a, Add new driver file
/OpenStack/cinder/cinder/volume/drivers/new_driver.py like Sheepdog.py
b, Change file /OpenStack/cinder/cinder/tests/test_drivers_compatibility.py
to test new driver).

5, At last, i should also modify
/OpenStack/manuals/doc/src/docbkx/openstack-compute-admin/tables/hypervisors-nova-conf.xml
to configure this new driver.

Are my theories right? Should i do any other stuffs? Could anyone give
me any other suggestions?
Thanks in advance ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-19 Thread harryxiyou
On Sat, Jan 19, 2013 at 5:27 PM, MORITA Kazutaka
morita.kazut...@gmail.com wrote:
 At Sat, 19 Jan 2013 13:14:42 +0800,
 harryxiyou wrote:
[...]

 Sheepdog uses an own protocol, and I think your file system is similar.

 IIUC, what you need to do are:
  1. modify libvirt so that you can specify your file system as a QEMU
 disk
  2. add a volume driver to Cinder to handle your file system

 You don't need to modify Nova.  You can use
 nova.virt.libvirt.volume.LibvirtNetVolumeDriver as a libvirt volume
 driver like sheepdog and rbd.


I have the same thoughts. Morita, thanks for your help.
You can also see another emali i sent to you a moment ago named
Add a new block storage driver by Libvirt/Qemu way for Openstack,
which says how to add a new block storage for Openstack in details.
I hope you can review that one and give me your suggestions if you
have free time. Thanks in advance ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-19 Thread harryxiyou
On Sat, Jan 19, 2013 at 7:00 PM, Huang Zhiteng winsto...@gmail.com wrote:
 Until the QEMU support is official, I don't think it's a good idea
to have HLFS driver in Cinder.


It sounds reasonable, we will send our patches to QEMULibvirt
community. After the patches are merged, we will send patch to
Openstack. Do you have any other suggestions?


-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Sheepdog][Libvirt][Qemu]Add a new block storage driver by Libvirt/Qemu way for Openstack

2013-01-19 Thread harryxiyou
On Sat, Jan 19, 2013 at 10:04 PM, MORITA Kazutaka
morita.kazut...@gmail.com wrote:
 At Sat, 19 Jan 2013 16:47:37 +0800,
[...]
 If you do the above work, I think you can use your file system with
 OpenStack.


Thanks for your review ;-)

 But I suggest doing them step by step.  If your file system is not
 supported in QEMU, I think libvirt won't support it.  If libvirt
 doesn't support it, OpenStack shouldn't support it too.


Yes, i think so. I will finish this job step by step ;-)



-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-19 Thread harryxiyou
On Sat, Jan 19, 2013 at 10:09 PM, Huang Zhiteng winsto...@gmail.com wrote:
 It seems you also have tgt patch for HLFS, personally I'd prefer iSCSI
 support over qEMU support since iSCSI is well supported by almost every
 hypervisor.

We will first realize HLFS driver by Qemu/Libvirt way for Openstack. Then,
we will also realize iSCSI way. Thanks for your suggestions ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [Openstack-dev]Where is libvirt library packages in Openstack Nova branch

2013-01-19 Thread harryxiyou
Hi all,

I read the source code of Openstack Nova branch source codes but i
can not find the  standard libvirt library packages, which i think
Nova uses libvirt
interfaces they are from standard libvirt library to attach Sheepdog(or others)
volumes to QEMU. If i add a new block storage driver for standard libvirt,
i have to update these libvirt library packages in Openstack Nova brahch.
Cloud anyone give me some suggestions? Thanks in advance ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Cannot install Cinder doc successfully

2013-01-18 Thread harryxiyou
On Fri, Jan 18, 2013 at 4:37 PM, Razique Mahroua
razique.mahr...@gmail.comwrote:

 Hi,


Hi Razique,

is python-paramiko installed on your box?

After i installed python-paramiko, i get the following errors.

$ make
sphinx-build -b html -d build/doctrees   source build/html
Making output directory...
Running Sphinx v1.1.3

Extension error:
Could not import extension ext.cinder_autodoc (exception: No module named
eventlet)
make: *** [html] error 1

And i tried install python-eventlet. There is no python-eventlet. What
should i do?




-- 
Thanks
Harry Wei
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Cannot install Cinder doc successfully

2013-01-18 Thread harryxiyou
On Fri, Jan 18, 2013 at 4:54 PM, harryxiyou harryxi...@gmail.com wrote:


 On Fri, Jan 18, 2013 at 4:37 PM, Razique Mahroua razique.mahr...@gmail.com
 wrote:

 Hi,


 Hi Razique,


is python-paramiko installed on your box?

 After i installed python-paramiko, i get the following errors.


 $ make
 sphinx-build -b html -d build/doctrees   source build/html
 Making output directory...
 Running Sphinx v1.1.3

 Extension error:
 Could not import extension ext.cinder_autodoc (exception: No module named
 eventlet)

 make: *** [html] error 1

 And i tried install python-eventlet. There is no python-eventlet. What
 should i do?


I tried '$ sudo pip install eventlet', which has solved this problem.
But when i execute
'make' command, i caught following errors.

$ make
sphinx-build -b html -d build/doctrees   source build/html
Running Sphinx v1.1.3

Extension error:
Could not import extension ext.cinder_autodoc (exception: No module
named webob.exc)

PS: I have tried 'pip install' and 'sudo apt-get install' commands.


-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Volume driver in Cinder by ISCSI way

2013-01-18 Thread harryxiyou
On Fri, Jan 18, 2013 at 8:35 PM, yang, xing xing.y...@emc.com wrote:
 Hi Harry,

 If you have questions about EMC volume driver, you can email me.


Thanks for your help, that's very kind of you ;-)

EMC is not open-source code project, right? And Openstack support EMC
by iSCSI way. That is to say, iSCSI is the bridge to connect Openstack and
EMC, right? Could you please give me the docs of
https://github.com/openstack/cinder/blob/master/cinder/volume/drivers/emc.py
I wanna understand how to realize EMC's iSCSI driver.

By the way, if i wanna add a driver(a block storage system by iSCSI way) for
Openstack Cinder, i should just add my driver file under the dir,
https://github.com/openstack/cinder/blob/master/cinder/volume/drivers
like emc.py, right?




-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Volume driver in Cinder by ISCSI way

2013-01-18 Thread harryxiyou
On Fri, Jan 18, 2013 at 9:40 PM, Huang Zhiteng winsto...@gmail.com wrote:
 For development efforts, it is better to use openstack-dev list instead of
 this general openstack list.  You can also join #openstack-cinder IRC
 channel in freenode for online discussion with cinder developers.


Okay, i will. Thanks for your suggestions.



-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Volume driver in Cinder by ISCSI way

2013-01-18 Thread harryxiyou
On Fri, Jan 18, 2013 at 10:13 PM, yang, xing xing.y...@emc.com wrote:
 Harry,

Hi Xing,

 EMC’s volume driver (implemented in emc.py) is open source but EMC storage
 is not.  EMC volume driver allows users to provision EMC storage in
 OpenStack.  This is the same case with many other vendor provided drivers.
 The EMC volume driver that is available currently supports iSCSI protocol on
 VNX and VMAX/VMAXe arrays.

 I have a README for how to use this driver in Folsom.  See the following
 link:
 https://github.com/xing-yang/emc-openstack-cinder


 We are still doing development for Grizzly, so I don’t have a README yet.
 You can take a look of the Folsom doc to get started.  Let me know if you
 have any questions.

 To add another driver, you can just add it under cinder/volume/drivers like
 emc.py.


Thanks for your help ;-)
Actually i wanna let Openstack support HLFS, which is a sub-project of Cloudxy.
Our project web is: http://code.google.com/p/cloudxy/
HLFS's doc is: http://code.google.com/p/cloudxy/wiki/HlfsDesign .

And we will first realize Openstack support driver by QEMU/Libvirt way like
Sheepdog. Then we will also realize Openstack support driver by iSCSI. At
that time, if i happen to some questions, i will suerly ask you, would
you? ;-)
Do you understand sheepdog's driver by QEMU/Libvirt in details? If i add a
QEMU/Libvirt driver to let Openstack support HLFS, I should change following
stuffs, right?

1, add driver file to the dir (the same as sheepdog),
  https://github.com/openstack/cinder/blob/master/cinder/volume/drivers
2, change the file (Let libvirt attach HLFS volumes to QEMU, the same
as sheepdog),
  https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py

Do you have any other suggestions?

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-18 Thread harryxiyou
Hi Morita and other developers,

If i add a QEMU/Libvirt driver(the same as Sheepdog volumes driver in
Openstack Cinder branch) to let Openstack Cinder support a new block-level
storage system, I should change following stuffs, right?

1, Add a driver file to the dir in Openstack Cinder branch(the same as
sheepdog.py),
  https://github.com/openstack/cinder/blob/master/cinder/volume/drivers
2, Change the file in Openstack Nova branch(Let libvirt attach HLFS volumes
to QEMU, the same as sheepdog),
  https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py

Do I should change/add any other files for Openstack? Cloud anyone give me
some suggestions?Thanks in advance ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for OpenstackCinder like Sheepdog volumes

2013-01-18 Thread harryxiyou
On Sat, Jan 19, 2013 at 10:57 AM, 张家龙 zhan...@awcloud.com wrote:
 Maybe,you need to modify the nova/virt/libvirt.xml.template.In our tesing of
 nova and sheepdog,

Hi Zhang jia long,

What are the functions of libvirt.xml.template? Currently, we just
wanna to add a new
block driver(a new one as the same as sheepdog driver) to Openstack Cinder ;-)
The performances will be enhenced later.


[...]
 Hi Morita and other developers,

 If i add a QEMU/Libvirt driver(the same as Sheepdog volumes driver in
 Openstack Cinder branch) to let Openstack Cinder support a new block-level
 storage system, I should change following stuffs, right?

 1, Add a driver file to the dir in Openstack Cinder branch(the same as
 sheepdog.py),
   https://github.com/openstack/cinder/blob/master/cinder/volume/drivers
 2, Change the file in Openstack Nova branch(Let libvirt attach HLFS volumes
 to QEMU, the same as sheepdog),

 https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py

 Do I should change/add any other files for Openstack? Cloud anyone give me
 some suggestions?Thanks in advance ;-)


Hi Openstack developers and Sheepdog developers,

I also have following questions, please give me some suggestions.
Thanks in advance ;-)

1, The libvirt codes in Nova branch are just interfaces which call the
standard Libvirt library, right?
(Or the libvirt codes in Nova branch are the standard Libvirt library.)

2, If i add a new block storage driver for Openstack by QEMU/Libvirt
way, should i also modify standard libvirt library and QEMU source
codes to let them support this new driver so that i can use this new
driver to let libvirt attach the new driver volumes to QEMU in Openstack?

3, Certainly, i should also do following stuffs.

 a, Add a driver file to the dir in Openstack Cinder branch(the same as
 sheepdog.py),
https://github.com/openstack/cinder/blob/master/cinder/volume/drivers
 b, Change the file in Openstack Nova branch(Let libvirt attach
the new driver
 volumes to QEMU, the same as sheepdog),

https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py

4, Should i have to do any other stuffs?



-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-18 Thread harryxiyou
On Sat, Jan 19, 2013 at 12:24 PM, MORITA Kazutaka
morita.kazut...@gmail.com wrote:
 At Fri, 18 Jan 2013 22:56:38 +0800,
[...]

 The answer depends on the protocol between QEMU and HLFS.  What is
 used for accessing HLFS volumes from QEMU?  Is it iSCSI, NFS, or
 something else?


Actually, we just realize the block driver interfaces QEMU provided.
You can see our
patch from
http://code.google.com/p/cloudxy/source/browse/trunk/hlfs/patches/hlfs_driver_for_qemu.patch

And what about Sheepdog? What is used for accessing Sheepdog volumes from QEMU?
Is it iSCSI, NFS, or something else?

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Difference between Swift and Cinder

2013-01-17 Thread harryxiyou
On Thu, Jan 17, 2013 at 1:01 AM, Syed Armani dce3...@gmail.com wrote:
 This question was also discussed last week. You may want to have a look at
 the answers there.
 https://lists.launchpad.net/openstack/msg19997.html

Thanks, i see ;-)


-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Cannot install Cinder doc successfully

2013-01-17 Thread harryxiyou
Hi all,

I wanna install Cinder docs for reading but i cannot install them according
to cinder/doc/README.rst.

My PC environment are
==
$ lsb_release -a
Distributor ID: Ubuntu
Description:Ubuntu 10.04.4 LTS
Release:10.04
Codename:   lucid

$ pip --version
pip 0.3.1 from /usr/lib/python2.6/dist-packages (python 2.6)

My operation steps


1, download cinder branch from https://github.com/openstack/cinder .
2, sudo apt-get install python-pip.
3, sudo pip install Sphinx
4, sudo apt-get install graphviz
5, make

After step 5, i catch the following errors.

$ make
sphinx-build -b html -d build/doctrees   source build/html
Making output directory...
Running Sphinx v1.1.3

Extension error:
Could not import extension ext.cinder_autodoc (exception: No module
named paramiko)
make: *** [html] error 1

Could anyone give me some suggestions? Thanks in advance ;-)



-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Difference between Swift and Cinder

2013-01-16 Thread harryxiyou
Hi all,

Swift is oriented Openstack object storage but Cinder is oriented Openstack
block storage. What are the detail differences betwwen object storage and
block storage? Cloud anyone tell me his/her ideas? Thanks inadvance.

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] How can openstack support Sheepdog in details?

2013-01-15 Thread harryxiyou
Hi all,

I find openstack can support sheepdog(modify qemu and libvirt), but i
can't find how openstack support sheepdog in details. Could anyone
give me some suggestions?
Thanks in advance.


-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] How can openstack support Sheepdog in details?

2013-01-15 Thread harryxiyou
On Tue, Jan 15, 2013 at 11:46 PM, Razique Mahroua razique.mahr...@gmail.com
 wrote:

 Hi,

Hi

 unfortunately, we don't have much feedback/ tests that have been done,

so the doc is not top notch regarding Sheepdog.

Could you please tell me where is the doc? Or send me this doc.

 It would be interesting if someone helps us with extra infos on that

Maybe i would give some tests ;-)



-- 
Thanks
Harry Wei
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] How can openstack support Sheepdog in details?

2013-01-15 Thread harryxiyou
On Tue, Jan 15, 2013 at 11:47 PM, Huang Zhiteng winsto...@gmail.com wrote:

Hi Huang,
 What kind of details do you need? How to setup a SheepDog cluster? Or
 how to configure Cinder to use SheepDog?

Thanks for your reply. But i find sheepdog developers modify Openstack Nova
for supporting sheepdog but Openstack Cinder. Actually, i want to know how
sheepdog developers change qemu and libvirt in Openstack to support sheepdog.
I can not find Openstack's patch for supporting sheepdog. And if
support sheepdog,
we should modify nova, glance, swift,cinder? If you have any docs for
these matters,
please send them to me or some links about them to me. Thanks in advance.


-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [openstack]Test if i have join this maillist, don't read

2013-01-14 Thread harryxiyou
Test if i have join this maillist, don't read

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp