[Openstack] Help, How to restore existing vms after host reboot?

2012-03-08 Thread DeadSun
As we all know, if host reboot since of some failure or hardware problem, the vms will actually shutoff. But after host up, info in nova db show vm state are "active", and using "nova list" return the same. Now how to start the vms. In Daiblo, I always just using "nova reboot", it works.But in ess

[Openstack] question of novncproxy

2012-03-08 Thread DeadSun
Essex4 In mutil hosts, does any nova-compute need to install novnc? How to set these parameters in nova.conf in each node? --novncproxy_base_url=http://192.168.1.202:6080/vnc_auto.html (is this controller ip or nova-compute ip?) --xvpvncproxy_base_url=http://192.168.1.202:6081/console (is this con

Re: [Openstack] Eorro happens sometimes when I create instance in essex4

2012-03-08 Thread DeadSun
I have tested that command manually. I think it is because "e2fsck" failed my own image. root@controller:/data/stack/glance/images# e2fsck -fp bfd0d705-281c-4ee1-a896-bf4c0d6c1f94 e2fsck: Bad magic number in super-block while trying to open bfd0d705-281c-4ee1-a896-bf4c0d6c1f94 bfd0d705-281c-4ee1-a

[Openstack] Eorro happens sometimes when I create instance in essex4

2012-03-07 Thread DeadSun
2012-03-08 14:46:58 DEBUG nova.utils [-] Attempting to grab semaphore "252f77f9ae919d0e87c7bf2c73772e0cd8f74e04" for method "call_if_not_exists"... from (pid=1567) inner /data/stack/nova/nova/utils.py:834 2012-03-08 14:46:58 DEBUG nova.utils [-] Got semaphore "252f77f9ae919d0e87c7bf2c73772e0cd8f74e

[Openstack] keystoneclient cannot work .

2012-03-06 Thread DeadSun
Hi, all I have installed nova, glance , keystone and dashboard well. Then I use keystone command to do something. # export SERVICE_ENDPOINT=http://192.168.1.211:5000/v2.0/ # export SERVICE_TOKEN=9876543210 stack@vm-openstack-1:~$ keystone user-list 2012-03-06 17:35:23 DEBUG [root] **

[Openstack] How to set mutil nova-api in nova.conf

2012-03-05 Thread DeadSun
I want to run nova-api on each nova-compute node. How to set it in nova,conf? Thank you. -- 非淡薄无以明志,非宁静无以致远 ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack Mo

Re: [Openstack] nova-compute cannot be started.

2012-03-05 Thread DeadSun
(kvm) and > didn't see this issue. > > Any details? > Jesse > > On Sun, Mar 4, 2012 at 11:12 PM, Shang Wu wrote: > > What is the environment that you used to deploy this? Did you specify the > > connection_type in the nova.conf file? > > > > &

[Openstack] nova-compute cannot be started.

2012-03-04 Thread DeadSun
when I use "sg libvirtd /data/stack/nova/bin/nova-compute &" it show: stack@n-cpu-1:~/nova$ 2012-03-05 13:47:56 CRITICAL nova [-] Unknown connection type "None" (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "/data/stack/nova/bin/nova-compute", line 47, in (nova): TRACE: s

Re: [Openstack] Required services on compute node

2012-02-17 Thread DeadSun
I think: using n-net if you set mutil_host in nova.conf using n-vol if you want use this node as a nova-volume service using n-api if you want mutil nova-api nodes not single On Sat, Feb 18, 2012 at 6:31 AM, Mohammad Banikazemi wrote: > What are the services one need to run on a compute node? >

[Openstack] How to resolve error "Domain not found: no domain with matching ..."

2012-01-20 Thread DeadSun
When I reboot my vm today(reboot works well before), it show : *2012-01-20 16:55:19,112 WARNING nova.virt.libvirt_conn [-] Error from libvirt during undefine of instance-0013. Code=42 Error=Domain not found: no domain with matching uuid '60f24c80-aee7-8e21-a14f-0682b82b13e2'** * *2012-01-20 16

[Openstack] how to re-attach volume after vm and host down unexpectedly

2011-12-27 Thread DeadSun
I have write a blog about re-attach http://livemoon.dyndns.org/life/2011/12/how-to-re-attach-volume-in-openstack-if-vm-down-since-of-host-down.html I think my way is stupid . Better way should exists. The case is: The vm using volume, and then host where vm is runnning down because some reason. A

Re: [Openstack] How to using keystone with ldap

2011-11-30 Thread DeadSun
out : > http://mirantis.blogspot.com/2011/08/ldap-identity-store-for-openstack.html > > Regards > > 2011/11/30 DeadSun > >> Now I according to keystone/test/etc/ldap.conf.template to set ldap >> configuration in my keystone.conf >> >> But I have no idea that

[Openstack] How to using keystone with ldap

2011-11-29 Thread DeadSun
Now I according to keystone/test/etc/ldap.conf.template to set ldap configuration in my keystone.conf But I have no idea that wich dn in ldap keystone used and there is no dn in keystone.ldif . How to set it? Anyone using keystone with ldap can help me? -- 非淡薄无以明志,非宁静无以致远 ___

Re: [Openstack] nova service in dashboard cannot work.

2011-11-12 Thread DeadSun
d install as pips python-novaclient and > openstackx (among others), if Dashboard is using any wrong version it won't > work properly > > When I've got problems like yours, tcpflow is very useful so you can see > requests/responses and try them directly on API > > El 12/11/

[Openstack] nova service in dashboard cannot work.

2011-11-11 Thread DeadSun
Hi, First I installed nova, glance, keystone and python-novaclient from git and them work fine. Now I am ready to use dashboard. I use clouderbuilders's git and according devstack scripts to install it. Now it seems I can login in webGUI and get some things fine(images, floating, flavor), but the

[Openstack] dashboard running error since of "NameError: name '_' is not defined" in glance code

2011-11-07 Thread DeadSun
I installed openstack-dashboard and input ip in web browse. Then it show NameError at / name '_' is not definedRequest Method: GET Request URL: http://192.168.1.85/ Django Version: 1.3 Exception Type: NameError Exception Value: name '_' is not defined Exception Location: /usr/local/lib/python2.7/d

Re: [Openstack] how to configure nova block_migration

2011-11-01 Thread DeadSun
I think you can report it as bug But why nova-compute need to grab from glance rather than instances/_bases and instances-i000x 2011/11/1 > I have exactly the same problem myself DeadSun. > > > > nova-compute on the target node is attempting to retrieve the base image > f

Re: [Openstack] how to configure nova block_migration

2011-11-01 Thread DeadSun
thank you for your help 2011/11/1 > I have exactly the same problem myself DeadSun. > > > > nova-compute on the target node is attempting to retrieve the base image > from Glance. Glance in response is saying the requestor is unauthenticated. > > > > Unfortunatel

Re: [Openstack] how to configure nova block_migration

2011-11-01 Thread DeadSun
ction.py", line 311, in destroy (nova.rpc): TRACE: virt_dom.undefine() (nova.rpc): TRACE: AttributeError: 'NoneType' object has no attribute 'undefine' (nova.rpc): TRACE:* 2011/11/1 > There isn't really any block migration specific configuration. So long as > your

[Openstack] how to configure nova block_migration

2011-11-01 Thread DeadSun
because I have no shared storage, I want to know how nova use kvm block migration and how to configure it -- 非淡薄无以明志,非宁静无以致远 ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.n

Re: [Openstack] nova-compute often stop since of libvirt-bin

2011-10-27 Thread DeadSun
hi,it's my libvirt-bin version: dpkg -l | grep libvirt ii libvirt-bin 0.9.2-4ubuntu15 the programs for the libvirt library ii libvirt0 0.9.2-4ubuntu15 library for interfacing with different virtualization systems ii python-libvirt 0.9.2-4ubuntu15 libvirt Python bindings 2011/10/28 Jesse Andrews

Re: [Openstack] volume cannot be attached to a server

2011-10-25 Thread DeadSun
umber: 2* > > From the node which is supposed to get the volume, run : > $ iscsiadm -m discovery -t st -p 10.200.200.4 > > You should see a list of volumes (aka "targets"): > IP NAME > > Then run : > $iscsiadmn -m node --targetname $NAME -p 10.200.200.4 -l > >

[Openstack] volume cannot be attached to a server

2011-10-24 Thread DeadSun
I have create a volume sucessfully. When I use it to attach a server, the nova-compute log show :"ERROR nova.compute.manager [df1f81f6-66b4-441e-8996-690e74265fef admin 1] instance 7: attach failed /dev/vdc, removing" how to fix it? Thank you; $ nova --debug volume-attach 7 3 /dev/vdc nova-compu

Re: [Openstack] error when create volume use "nova volume-create"

2011-10-24 Thread DeadSun
27; File "/data/nova/nova/volume/driver.py", line 406, in initialize_connection\n iscsi_properties = self._get_iscsi_properties(volume)\n', ' File "/data/nova/nova/volume/driver.py", line 350, in _get_iscsi_properties\n (volume[\'name\']))\n', 'Error: Could not find

[Openstack] Fwd: error when create volume use "nova volume-create"

2011-10-24 Thread DeadSun
Hi.Razique, I am livemoon I have install tgt via package. Now I have "nova volume-create" a volume. * openstack@node2:/data/nova$ sudo tgtadm --lld iscsi --op show --mode target Target 8: iqn.2010-10.org.openstack:volume-0001 System

[Openstack] error when create volume use "nova volume-create"

2011-10-23 Thread DeadSun
When I use novaclient to create volume, it happened: *$ nova volume-create --display-name vol 10* 2011-10-24 11:26:33,709 DEBUG nova.rpc [-] received {u'_context_roles': [u'Admin', u'Admin', u'KeystoneAdmin', u'KeystoneServiceAdmin'], u'_context_request_id': u'fd416e80-af32-4674-a93b-9d4d67b3a5f

[Openstack] why the instances reboot when I restart libvirt-bin, nova-compute services.

2011-10-23 Thread DeadSun
Sometimes I find nova-compute not update to db of controller. So I restart nova-compute. But it stops in the stat: "Connecting to libvirt: qemu:///system from (pid=22152) _get_connection /data/nova/nova/virt/libvirt/connection.py:205". Then I restart libvirt-bin service. After that, the log show in

[Openstack] using novaclient to boot instance error

2011-10-21 Thread DeadSun
Yesterday I use "nova boot" command to boot instance sucessfully. Today I just resintall keystone using https;//github.com/openstack then I use "nova boot --flavor 1 --image 8 test", it show errors: openstack@nova-test:/data$ nova --debug boot --flavor 1 --image 8 test connect: (127.0.0.1, 5000)

[Openstack] nova-compute cannot running after one or two days running.

2011-10-19 Thread DeadSun
my server is 11,10 and nova is installed via apt-get after two days running, using nova-manage service list show nova-compute XXX state then I restart nova-compute service, but the log nova-compute is stopping in: nova.virt.libvirt_conn [-] Connecting to libvirt: qemu:///system from (pid=28157)

[Openstack] error when glance command

2011-10-18 Thread DeadSun
I use apt-get install nova, glance use git to install keystone now I use glance via keystone, for example upload image or delete image error show: Failed to show details. Got error: Internal Server error: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py"

[Openstack] Some confusedness about network between host and vm

2011-10-12 Thread DeadSun
My environment: public ip internal ip(br100) netmaskgateway controller: 10.11.3.62 10.200.200.2 255.255.255.010.11.3.1 node: 10.11.3.63 10.200.200.3 255.255.255.010.11.3.1 I used

[Openstack] glance-api errors and stop

2011-10-11 Thread DeadSun
I logon dashboard and when I click to images/instances web, error occurs on terminal. Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/eventlet/greenpool.py", line 80, in _spawn_n_impl func(*args, **kwargs) File "/usr/lib/pymodules/python2.7/eventlet/wsgi.py", line 508, in pro

[Openstack] Can someone test this issue about token in keystone

2011-10-11 Thread DeadSun
I use a token ")", tht last char is ")", then when I logon dashboard to instances or images or keypairs web. it occurs: Unable to get instance list: 401 Unauthorized This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong cre

[Openstack] How to upgrade nova, glance, keystone and dashboard via git?

2011-10-10 Thread DeadSun
I used devstack script to install openstack and use openstack in our company. Now there are bug be found and be fixed, I need upgrade the openstack in my machine? How can I do that upgrade? -- 非淡薄无以明志,非宁静无以致远 ___ Mailing list: https://launchpad.net/~ope

[Openstack] Some error when I lunch images in dashboard

2011-10-10 Thread DeadSun
when I click lunch images in dashboard. The console will show error: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/eventlet/greenpool.py", line 80, in _spawn_n_impl func(*args, **kwargs) File "/usr/lib/pymodules/python2.7/eventlet/wsgi.py", line 508, in process_requ

[Openstack] nova-manage is not related to nova database anymore after useing devstack installation.

2011-10-09 Thread DeadSun
Hi, all I used devstack project script to install openstack. It works well in dashboard. Now I have two problems: 1. I use nova-manage to create floating ips, list the networks, add fixed_ips, etc. But nova-manage command cannot do any change in nova db. It seems it is not related to the nova db.

[Openstack] br100 ip assigned problem

2011-09-26 Thread DeadSun
Hi, erveryone: I used FLATDHCP network. And I set br100 on eth0 only. The ip is 192.168.200.20. Then I assign the fixed_ips range "192.168.200.0/24". But when nova-network restarted, br100 is assigned to 192.168.200.1. This is not what I want. Dose anyone can help me? 2011.3 (2011.3-nova-milesto

[Openstack] Cannot start nova service because of permission of nova.conf

2011-09-22 Thread DeadSun
nova service cannot be started if 0640 root:nova /etc/nova/nova.conf if set 0644 root:nova ,there is no problem. mysql db username:nova OS: ubuntu 11.04 openstack version:2011.3 (2011.3-nova-milestone-tarball:tarmac-20110922115702-k9nkvxqzhj130av2) -- 非淡薄无以明志,非宁静无以致远 __