Ask Your Question

guanxiaohua2k6's profile - activity

2019-01-27 16:06:29 -0500 received badge  Popular Question (source)
2016-03-17 11:50:28 -0500 received badge  Notable Question (source)
2015-04-10 17:03:02 -0500 received badge  Popular Question (source)
2014-11-11 00:30:55 -0500 received badge  Self-Learner (source)
2014-11-11 00:30:55 -0500 received badge  Teacher (source)
2011-05-20 08:00:56 -0500 answered a question Instance failed to spawn (BIOS Virtualisation enabled ?)

I think it failed to download kernel to /var/lib/nova/instances/instance-00000000e/kernel. Please check whether the file exists and the size of the file is correct.

2011-05-20 07:50:30 -0500 answered a question SQL access denied which nova-manage db sync

Execute the following command before do nova-mange db sync.

sudo sed -i "s/127.0.0.1/0.0.0.0/g" /etc/mysql/my.cnf

2011-05-20 07:45:57 -0500 asked a question How to use multiple nics?

I've seen multiple nics feature in Cactus vesion. Does anybody know how to set in nova.conf to enable multiple nics.

Thanks in advance.

2011-04-07 01:11:16 -0500 answered a question Is it possible to install nova-objectstore on a machine different with the one where nova-api is installed?

I am Kan. Thank you, Itoh san.

The version I used is 2011.2~bzr942-0ubuntu0ppa1~maverick1.

2011-04-06 06:57:08 -0500 asked a question Is it possible to install nova-objectstore on a machine different with the one where nova-api is installed?

I tried to install nova-objectstore on a different machine with the one where nova-api. But When I added images using the command "uec-publish-tarball", the error occurred.

Wed Apr 6 15:44:40 JST 2011: ====== extracting image ====== kernel : ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz ramdisk: ttylinux-uec-amd64-12.1_2.6.35-22_1-initrd image : ttylinux-uec-amd64-12.1_2.6.35-22_1.img Wed Apr 6 15:44:40 JST 2011: ====== bundle/upload kernel ====== Traceback (most recent call last): File "/usr/bin/euca-upload-bundle", line 231, in <module> main() File "/usr/bin/euca-upload-bundle", line 214, in main bucket_instance = ensure_bucket(conn, bucket, canned_acl) File "/usr/bin/euca-upload-bundle", line 87, in ensure_bucket bucket_instance = connection.get_bucket(bucket) File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 275, in get_bucket rs = bucket.get_all_keys(headers, maxkeys=0) File "/usr/lib/pymodules/python2.6/boto/s3/bucket.py", line 204, in get_all_keys headers=headers, query_args=s) File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 342, in make_request data, host, auth_path, sender) File "/usr/lib/pymodules/python2.6/boto/connection.py", line 459, in make_request return self._mexe(method, path, data, headers, host, sender) File "/usr/lib/pymodules/python2.6/boto/connection.py", line 437, in _mexe raise e socket.error: [Errno 111] Connection refused failed to upload bundle to mybucket/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml failed to upload kernel

And I found the that the novarc created by nova-manage command was wrong. The value of S3_URL is the ip address of the local machine where the uec-publish-tarball was executed.

Here is my question. Is it possible to install nova-objectstore on a machine different with the one where nova-api is installed?

Thanks.

2011-02-23 02:37:09 -0500 answered a question You do not have permission to access bucket: mybucket

It means you didn't have permission to do such operation. Maybe the cert you used was wrong. Please do the following things.

sudo nova-manage project zipfile IRT anne unzip nova.zip . novarc

euca-bundle-image .... euca-upload-image ...

2011-02-23 02:30:43 -0500 answered a question Can't start nova-volume

Add the following line with command "sudo visudo"

nova ALL=(ALL) NOPASSWD:ALL

Please see 1.2 of http://wiki.openstack.org/NovaInstall/NovaDeploymentTool (http://wiki.openstack.org/NovaInstall...) for detail info.

2011-02-21 10:12:15 -0500 answered a question Should nova-network be installed into the same machine with nova-compute if network-manager is FlatDHCPManager

Thanks Vish Ishaya, that solved my question.

2011-02-21 10:11:45 -0500 answered a question can't start instances

Please paste log in file /var/log/nova/nova-network.log

2011-02-21 06:26:11 -0500 answered a question Should nova-network be installed into the same machine with nova-compute if network-manager is FlatDHCPManager

Thank you for your reply.

I tried with flag flat_interface. But I still failed. Now the error was the status of instance was network. After I confirmed connectivity of the network, I found it couldn't be connected between nova-network and nova-compute and I found the only one network interface(other than lo) was used by bridge br100.

Here is my assumption. In order to install with FlatDHCPManager, I need two physical network card in both nova-compute and nova-network if I don't want to use vlan. Could anyone tell me whether it is right or not?

2011-02-16 06:18:53 -0500 asked a question Should nova-network be installed into the same machine with nova-compute if network-manager is FlatDHCPManager

I tried to use FlatDHCPManager as the network-manager. I succeeded when nova-network was installed into the same machine with nova-compute. But when the nova-network is installed into a different machine, the status of instance I started became running, but I couldn't ping or ssh to the instance from the machine with nova-network. And it wasn't due to security group's setting. I had add rules to the security group.

So I wonder that the nova-network should be installed into the same machine with nova-compute if the network-manager is FlatDHCPManager.

2011-02-04 01:27:30 -0500 answered a question Where is the ppa of bexar-gamma?

The bexar-gamma is closed, so there will be no ppa for bexar-gamma.

And the ppa for bexar has already been created. Please refer to http://wiki.openstack.org/Packaging/Ubuntu (http://wiki.openstack.org/Packaging/U...) .

2011-02-01 05:52:19 -0500 asked a question Where is the ppa of bexar-gamma?

Hello,

I want to try bexar-gamma. But there is only the source tarball which can be downloaded. I want to use a ppa something like "ppa:nova-core/trunk".

Is there any plan to create ppa for bexar-gamma and bexar?

Thanks.

2011-01-31 01:16:21 -0500 answered a question Is it possible to run "nova-manage project zipfile" outside the machine installed with nova-api?

Thanks Vish Ishaya, that solved my question.

2011-01-31 01:15:47 -0500 answered a question Is it possible to run "nova-manage project zipfile" outside the machine installed with nova-api?

Thank you very much.

2011-01-28 11:00:21 -0500 asked a question Is it possible to run "nova-manage project zipfile" outside the machine installed with nova-api?

I tried to install nova-manage into a different machine from nova-api. I copied files related with credentials from the machine installed with nova-api to the machine installed with nova-manage. And finally I got nova.zip. But after I checked the content of novarc, the values of EC2_URL and S3_URL were wrong. The values were not IP of the machine installed with nova-api, but the machine where nova-manage command was executed.

Could anyone tell me whether command "nova-manage project zipfile" should be executed on the same machine where nova-api was installed?

Thanks.

2011-01-28 06:33:15 -0500 answered a question GPG error occured when add ppa on ubuntu10.04

I tried again today. It becomes ok.

2011-01-25 04:52:48 -0500 answered a question Is it possible to create zipfile correctly using nova-mange when nova-api and nova-objectstore are installed on different machine?

Thanks Vish Ishaya, that solved my question.

2011-01-25 02:26:14 -0500 asked a question Is it possible to create zipfile correctly using nova-mange when nova-api and nova-objectstore are installed on different machine?

Hello,

I tried to create zipfile using command "nova-manage project zipfile IRT anne" on the machine installed with nova-api. And nova-objectstore is installed into another machine. I got the file nova.zip, but I found that the value of S3_URL in file novarc is wrong. It wasn't using ip address of nova-objectstore but nova-api.

I read the source "nova/auth/manager.py", and found that the value of FLAGS.ec2_host is used as S3 IP address. I think it is like a bug. Could anyone confirm it?

The relative source is function get_credentials(self, user, project=None, use_dmz=True), __generate_rc() in file "nova/auth/manager.py".

2011-01-24 10:48:10 -0500 answered a question What will "ppa:nova-core/trunk" be after bexar is released

Thank you very much.

2011-01-24 10:27:53 -0500 asked a question GPG error occured when add ppa on ubuntu10.04

I got an GPG eror (NO_PUBKEY) when I tried to add ppa:nova-core/trunk on ubuntu10.04. But I didn't got this error when I added the ppa on ubuntu10.10. So I guess the pubkey was forgotten when the packages for ubuntu10.04 were created. Is it right?

2011-01-24 10:21:56 -0500 asked a question What will "ppa:nova-core/trunk" be after bexar is released

Hello,

I am developing nova Deployment Tool. As a precondition of the tool, the repository should be added to the source.list of apt-get. Now I used "ppa:nova-core/trunk" as the repository. I want to know whether the ppa will be used and updated even after bexar is released.

Please answer me if anybody knows it. Thanks.

2011-01-21 05:06:35 -0500 answered a question Couldn't run instance due to "negative shift count" ValueError

I tried 2011.1~bzr597-0ubuntu0ppa1~maverick1, it seemed that the problem is solved.

2011-01-21 03:52:46 -0500 answered a question Couldn't start nova-compute service due to sql error

Thanks Hyunsun Moon, that solved my question.

2011-01-21 03:24:29 -0500 answered a question Couldn't run instance due to "negative shift count" ValueError

The error occured only if flag network_manager is FlatManager.

2011-01-21 03:22:35 -0500 asked a question Couldn't run instance due to "negative shift count" ValueError

Hello, I couldn't run instance due to the following error.

(nova.virt.libvirt_conn 2011.1-workspace:tarmac-20110115022500-fcgl1yga6csc221i): DEBUG [N/A] instance instance-00000001: starting toXML method from MainProcess (pid=15753) to_xml /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:650 (nova.exception 2011.1-workspace:tarmac-20110115022500-fcgl1yga6csc221i): ERROR [N/A] Uncaught exception (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 86, in _wrap (nova.exception): TRACE: return f(args, *kw) (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 383, in spawn (nova.exception): TRACE: xml = self.to_xml(instance) (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 667, in to_xml (nova.exception): TRACE: network['cidr_v6']) (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 134, in _get_net_and_prefixlen (nova.exception): TRACE: net = IPy.IP(cidr) (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/IPy.py", line 202, in __init__ (nova.exception): TRACE: self._prefixlen, self._ipversion): (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/IPy.py", line 1266, in _checkNetaddrWorksWithPrefixlen (nova.exception): TRACE: if net & _prefixlenToNetmask(prefixlen, version) == net: (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/IPy.py", line 1295, in _prefixlenToNetmask (nova.exception): TRACE: return ((2L<<prefixlen-1)-1) &lt;&lt;="" (_ipversiontolen(version)="" -="" prefixlen)="" (nova.exception):="" trace:="" valueerror:="" negative="" shift="" count<="" p="">

And the version I used is 2011.1~bzr569-0ubuntu0ppa1~maverick3.

Please give me some advices.

Thanks.

2011-01-21 03:17:25 -0500 answered a question Couldn't run instance due to dnsmasq error.

Thanks Hyunsun Moon, that solved my question.

2011-01-20 08:59:17 -0500 asked a question Couldn't start nova-compute service due to sql error

I tried to install the newest version(2011.1~bzr592-0ubuntu0ppa1~maverick1) from ppa. But I couldn't start nova-compute service due to the following error.

Traceback (most recent call last): File "/usr/bin/nova-compute", line 44, in <module> service.serve() File "/usr/lib/pymodules/python2.6/nova/service.py", line 228, in serve x.start() File "/usr/lib/pymodules/python2.6/nova/service.py", line 86, in start self.binary) File "/usr/lib/pymodules/python2.6/nova/db/api.py", line 132, in service_get_by_args return IMPL.service_get_by_args(context, host, binary) File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/api.py", line 96, in wrapper return f(args, *kwargs) File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/api.py", line 247, in service_get_by_args filter_by(deleted=can_read_deleted(context)).\ File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 1496, in first ret = list(self[0:1]) File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 1405, in __getitem__ return list(res) File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 1565, in __iter__ return self._execute_and_instances(context) File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 1570, in _execute_and_instances mapper=self._mapper_zero_or_none()) File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 735, in execute clause, params or {}) File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute params) File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement return self.__execute_context(context) File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context context.parameters[0], context=context) File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute context) File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute context) File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute cursor.execute(statement, parameters) File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 166, in execute self.errorhandler(self, exc, value) File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in defaulterrorhandler raise errorclass, errorvalue sqlalchemy.exc.ProgrammingError: (ProgrammingError) (1146, "Table 'nova.services' doesn't exist") 'SELECT services.created_at AS services_created_at, services.updated_at AS services_updated_at, services.deleted_at AS services_deleted_at, services.deleted AS services_deleted, services.id AS services_id, services.host AS services_host, services.binary AS services_binary, services.topic AS services_topic, services.report_count AS services_report_count, services.disabled AS services_disabled, services.availability_zone AS services_availability_zone \nFROM services \nWHERE services.host = %s AND services.binary = %s AND services.deleted = %s \n LIMIT 0, 1' ('ubuntu7', 'nova-compute', False)

BTW, I used mysql as db server. I logged into mysql server, find there is no tables in db nova. I guessed something wrong in the installation.

Please tell me why.

Thank you.

2011-01-20 08:25:12 -0500 asked a question Couldn't run instance due to dnsmasq error.

I couldn't run instance due to the following error.

(nova.root 2011.1-workspace:tarmac-20110115022500-fcgl1yga6csc221i): ERROR [N/A] Exception during message handling (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "/usr/lib/pymodules/python2.6/nova/rpc.py", line 191, in receive (nova.root): TRACE: rval = node_func(context=ctxt, *node_args) (nova.root): TRACE: File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 143, in set_network_host (nova.root): TRACE: self._on_set_network_host(context, network_id) (nova.root): TRACE: File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 570, in _on_set_network_host (nova.root): TRACE: self.driver.update_dhcp(context, network_id) (nova.root): TRACE: File "/usr/lib/pymodules/python2.6/nova/network/linux_net.py", line 267, in update_dhcp (nova.root): TRACE: _execute(command, addl_env=env) (nova.root): TRACE: File "/usr/lib/pymodules/python2.6/nova/network/linux_net.py", line 328, in _execute (nova.root): TRACE: return utils.execute(cmd, *args, *kwargs) (nova.root): TRACE: File "/usr/lib/pymodules/python2.6/nova/utils.py", line 147, in execute (nova.root): TRACE: cmd=cmd) (nova.root): TRACE: ProcessExecutionError: Unexpected error while running command. (nova.root): TRACE: Command: sudo -E dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=10.0.0.1 --except-interface=lo --dhcp-range=10.0.0.3,static,120s --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro (nova.root): TRACE: Exit code: 2 (nova.root): TRACE: Stdout: '' (nova.root): TRACE: Stderr: '\ndnsmasq: failed to bind listening socket for 10.0.0.1: Address already in use\n' (nova.root): TRACE: (nova.rpc 2011.1-workspace:tarmac-20110115022500-fcgl1yga6csc221i): ERROR [N/A] Returning exception Unexpected error while running command.

The version I used is 2011.1~bzr569-0ubuntu0ppa1~maverick3, and the flag network_manager is VlanManager.

Please give me some advices.

Thank you.

2010-11-19 08:56:20 -0500 answered a question About steps of installing nova on multiple servers

Thanks Vish Ishaya, that solved my question.

2010-11-18 02:21:13 -0500 asked a question About steps of installing nova on multiple servers

I want to install nova on multiple servers. So I tried it according to the steps in page http://wiki.openstack.org/NovaInstall/MultipleServer (http://wiki.openstack.org/NovaInstall...)

But it seemed something wrong with the steps, could anyone make them clear? The followings are my questions.

  1. Is there any step for installing nova-compute? There is no nova-compute in the step 1.

  2. In step 4, the command "usr/bin/python /usr/bin/nova-manage project create network" is used to create network. But when I executed the command, the following error occured.

Possible wrong number of arguments supplied project create: Creates a new project arguments: name project_manager [description] Traceback (most recent call last): File "/usr/bin/nova-manage", line 508, in <module> main() File "/usr/bin/nova-manage", line 500, in main fn(*argv) TypeError: create() takes at least 3 arguments (2 given)