Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of various problems in OpenStack installation and configuration

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

one,

How to solve CRITICAL glance [-] AttributeError: 'NoneType' object has no attribute' drivername'

Today, when configuring the Glance of OpenStack, everything went smoothly, and the following error occurred when sudo glance-manage db_sync was at this stage

According to the error prompt, I thought it might be a configuration problem, so I looked up the configuration document and found that I needed to add the following sentence to / etc/glance/glance-registry.conf and / etc/glance/glance-api.conf

Sql_connection = mysql://glance:GLANCE_DBPASS@controller/glance

The format is as follows: sql_connection = mysql://USER:PASSWORD@HOST/DBNAME

Then re-execute the command, only to make the following error

Because MySQL-python is not installed, execute pip install MySQL-python to install

Execute the command again, and the following occurs:

It is a table in the database that does not format the row UTF-8, which is set as follows

Execute the order again, and finally succeed!

1 an error is reported when each component synchronizes the database:

Generally speaking, the error reported at this time is that the database refuses to access or cannot find the database. The troubleshooting method is as follows:

1. Check whether the corresponding database is established in the database.

two。 Check whether there is a problem with the permissions of the database. Ubuntu 12.04 MySQL needs to give a permission to the local machine.

Add grant all on keystone.* to 'keystone'@'controller' identified by' ruijie'; to give the machine a permission

3. Check whether the address, user name and password of mysql in the configuration file are filled in correctly

2 Details: [Errno 111] Connection refused

This kind of error is obviously a problem with the connection between keystone and the corresponding module. Check the log of keystone. If there is no error record of the corresponding service, it should be an error in the authorization address of other parts. There are corresponding records. Generally, it is an authorization error. Check whether the authorization token in the configuration file of each component is correct, check whether the data of keystone is correct, and whether users, services, and endpoint exist. If the previous method still doesn't work, restart the service, or simply aptget remove-purge the corresponding components and reinstall them.

3 dependency package error

Example: ImportError: No module named keystone.middleware.auth_token

Since Swift is originally a stand-alone project, the corresponding module of keystone is required after Swift installation. If not, this error will be reported, and the solution is simple: apt-get install Python-keystone python-keystoneclient

This kind of error often occurs in manual installation, but it can often be solved with google

4 bug error in itself

ValueError: invalid literal for int () with base 10: 'true'

When starting the swift proxy node, it was very depressing that I obviously did not change a few places, why the value would be wrong. This error only needs to be changed to delay_auth_decision = 1 in the configuration file. In the popular bug, as soon as you ask du Niang, the answer will come out. If you have not made a fatal change, you can basically suspect that it is the problem of openstack.

5 instance error

It is the most common and the biggest, for a variety of reasons. It is shown that the services are normal in nova-manage service list, but there is an error when starting the instance. You should pay special attention to the location of the error when starting the instance in dashboard, networking? Or spaning? Or scheduler? To view logs in different places at different stages, the most common ones are as follows:

1. The IP address cannot be assigned due to a network configuration error. If the IP address is not assigned, then this may be the error.

Solve; check standard configuration files, check network configuration errors

2. Rabbitmq or some other component is not running

If you look at the log, you can find that there are a variety of reasons for this. Under normal circumstances, these components will not be stopped. Generally, they will not be stopped until the configuration is modified incorrectly. You can recall the changes you made before you made the mistake, and then restore it and repair it.

6. Generation of zombie instances

Generally speaking, a zombie instance is an illegal shutdown of nova or the underlying virtual machine, or an error that cannot be deleted when the instance is wrong. Check whether the underlying virtual machine is still running with virsh list, and then go directly to the database to delete it.

# mysql-u root-p

Enter password:

Mysql > use nova

Mysql > SET FOREIGN_KEY_CHECKS=0

Query OK, 0 rows affected (0.00 sec)

Mysql > delete from instances where id = '29'

Query OK, 1 row affected (0.04 sec)

Mysql > delete from instances where id = '30'

Query OK, 1 row affected (0.04 sec)

Mysql > SET FOREIGN_KEY_CHECKS=1

Query OK, 0 rows affected (0.00 sec)

August 3rd

Root@openstack-controller:~# keystone user-list

Expecting authentication method via

Either a service token,-- token or Env [service _ TOKEN]

Or credentials,-- os_username or Env [OS _ USERNAME].

Export OS_TENANT_NAME=admin

Export OS_USERNAME=admin

Export OS_PASSWORD=admin

Export OS_AUTH_URL= http://localhost:5000/v2.0/

Root@openstack-controller:~# glance index

Failed to show index. Got error:

There was an error connecting to a server

Details: [Errno 111] Connection refused

Check the log of keystone for the problem that is initially determined to be keystone.

Delete service and endpoint and try again

It's the connection between glance and keystone.

Keystone should be installed before glance

Delete glance and reconfigure aptget remove-- purge here

At the same time, pay attention to delete the database.

Starting proxy-server... (/ etc/swift/proxy-server.conf)

Traceback (most recent call last):

File "/ usr/bin/swift-proxy-server", line 22, in

Run_wsgi (conf_file, 'proxy-server', default_port=8080, * * options)

File "/ usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 122, in run_wsgi

Loadapp ('config:%s'% conf_file, global_conf= {' log_name': log_name})

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp

Return loadobj (APP, uri, name=name, * * kw)

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj

Global_conf=global_conf)

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext

Global_conf=global_conf)

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _ loadconfig

Return loader.get_context (object_type, name, global_conf)

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context

Global_additions=global_additions)

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 562, in _ pipeline_app_context

For name in pipeline [:-1]]

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in get_context

Section)

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 517, in _ context_from_explicit

Value = import_string (found_expr)

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 22, in import_string

Return pkg_resources.EntryPoint.parse ("x =" + s) .load (False)

File "/ usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load

Entry = _ _ import__ (self.module_name, globals (), globals (), ['_ _ name__'])

ImportError: No module named keystone.middleware.auth_token

The swift-proxy node also needs to install keystone and will use the functions of swift\ _ auth and auth\ _ token provided in keystone, which are not provided in the code of swift, so apt-get install python-keystone python-keystoneclient

Root@swift-proxy:/etc/swift# swift-init proxy start

Starting proxy-server... (/ etc/swift/proxy-server.conf)

Traceback (most recent call last):

File "/ usr/bin/swift-proxy-server", line 22, in

Run_wsgi (conf_file, 'proxy-server', default_port=8080, * * options)

File "/ usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 122, in run_wsgi

Loadapp ('config:%s'% conf_file, global_conf= {' log_name': log_name})

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp

Return loadobj (APP, uri, name=name, * * kw)

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj

Return context.create ()

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create

Return self.object_type.invoke (self)

File "/ usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 207, in invoke

App = filter (app)

File "/ usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 524, in auth_filter

Return AuthProtocol (app, conf)

File "/ usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 123, in _ _ init__

Self.delay_auth_decision = int (conf.get ('delay_auth_decision', 0))

ValueError: invalid literal for int () with base 10: 'true'

This is bug

Change:

Delay_auth_decision = 1

Root@swift-proxy:/var/log# swift- V 2-A http://172.18.32.7:5000/v2.0-U admin:admin-K admin stat

[Errno 111] ECONNREFUSED

Study the meaning of the-U admin:admin option: it's actually keystone's tenant:user. Here it says service:swift.

Also note the configuration file of proxy

And whether keystone has this user and tenant.

When restarting swift:

Unable to locate config for object-expirer

Need to find out the reason.

Root@openstack-controller:~# nova list

+-+

| | ID | Name | Status | Networks | |

+-+

| | e399f8f0-5d3e-4248-bcab-60ec52a3415c | test1 | ERROR |

+-+

Nova-network log

2012-08-06 14:03:25 INFO nova.rpc.common [-] Connected to AMQP server on 172.18.32.71972

2012-08-07 18:43:05 INFO nova.rpc.common [req-73ad3278-3416-4ed6-a22b-6ef6051a4a26 6ed9496e07724c969e1e470e9ea4621e f4c42d279f124477a487c57f2a96d2df] Connected to AMQP server on 172.18.32.7 purl 5672

2012-08-07 18:44:02 INFO nova.rpc.common [req-01699302-b01e-4b01-81b7-8414400ef471 None None] Connected to AMQP server on 172.18.32.7 purl 5672

2012-08-07 18:44:25 ERROR nova.rpc.common [-] Timed out waiting for RPC response: timed out

2012-08-07 18:44:25 TRACE nova.rpc.common Traceback (most recent call last):

2012-08-07 18:44:25 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 490, in ensure

2012-08-07 18:44:25 TRACE nova.rpc.common return method (* args, * * kwargs)

2012-08-07 18:44:25 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 567, in _ consume

2012-08-07 18:44:25 TRACE nova.rpc.common return self.connection.drain_events (timeout=timeout)

2012-08-07 18:44:25 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/connection.py", line 175, in drain_events

2012-08-07 18:44:25 TRACE nova.rpc.common return self.transport.drain_events (self.connection, * * kwargs)

2012-08-07 18:44:25 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 238, in drain_events

2012-08-07 18:44:25 TRACE nova.rpc.common return connection.drain_events (* kwargs)

2012-08-07 18:44:25 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 57, in drain_events

2012-08-07 18:44:25 TRACE nova.rpc.common return self.wait_multi (self.channels.values (), timeout=timeout)

2012-08-07 18:44:25 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 63, in wait_multi

2012-08-07 18:44:25 TRACE nova.rpc.common chanmap.keys (), allowed_methods, timeout=timeout)

2012-08-07 18:44:25 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 120, in _ wait_multiple

2012-08-07 18:44:25 TRACE nova.rpc.common channel, method_sig, args, content = read_timeout (timeout)

2012-08-07 18:44:25 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 94, in read_timeout

2012-08-07 18:44:25 TRACE nova.rpc.common return self.method_reader.read_method ()

2012-08-07 18:44:25 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/amqplib/client_0_8/method_framing.py", line 221, in read_method

2012-08-07 18:44:25 TRACE nova.rpc.common raise m

2012-08-07 18:44:25 TRACE nova.rpc.common timeout: timed out

2012-08-07 18:44:25 TRACE nova.rpc.common

Nova-sch

2012-08-06 14:03:21 TRACE nova.rpc.common IOError: Socket closed

2012-08-06 14:03:21 TRACE nova.rpc.common

2012-08-06 14:03:21 INFO nova.rpc.common [-] Reconnecting to AMQP server on 172.18.32.71972

2012-08-06 14:03:21 ERROR nova.rpc.common [-] AMQP server on 172.18.32.7 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 1 seconds.

2012-08-06 14:03:21 TRACE nova.rpc.common Traceback (most recent call last):

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 446, in reconnect

2012-08-06 14:03:21 TRACE nova.rpc.common self._connect ()

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 423, in _ connect

2012-08-06 14:03:21 TRACE nova.rpc.common self.connection.connect ()

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/connection.py", line 154, in connect

2012-08-06 14:03:21 TRACE nova.rpc.common return self.connection

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/connection.py", line 560, in connection

2012-08-06 14:03:21 TRACE nova.rpc.common self._connection = self._establish_connection ()

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/connection.py", line 521, in _ establish_connection

2012-08-06 14:03:21 TRACE nova.rpc.common conn = self.transport.establish_connection ()

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 255, in establish_connection

2012-08-06 14:03:21 TRACE nova.rpc.common connect_timeout=conninfo.connect_timeout)

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 52, in _ _ init__

2012-08-06 14:03:21 TRACE nova.rpc.common super (Connection, self). _ _ init__ (* args, * * kwargs)

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/amqplib/client_0_8/connection.py", line 129, in _ _ init__

2012-08-06 14:03:21 TRACE nova.rpc.common self.transport = create_transport (host, connect_timeout, ssl)

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/amqplib/client_0_8/transport.py", line 281, in create_transport

2012-08-06 14:03:21 TRACE nova.rpc.common return TCPTransport (host, connect_timeout)

2012-08-06 14:03:21 TRACE nova.rpc.common File "/ usr/lib/python2.7/dist-packages/amqplib/client_0_8/transport.py", line 85, in _ _ init__

2012-08-06 14:03:21 TRACE nova.rpc.common raise socket.error, msg

2012-08-06 14:03:21 TRACE nova.rpc.common error: [Errno 111] ECONNREFUSED

2012-08-06 14:03:21 TRACE nova.rpc.common

2012-08-06 14:03:24 AUDIT nova.service [-] Starting scheduler node (version 2012.1-LOCALBRANCH:LOCALREVISION)

2012-08-06 14:03:25 INFO nova.rpc.common [req-883fdae1-bf4e-4707-b60e-d768f4ddf0f2 None None] Connected to AMQP server on 172.18.32.7 purl 5672

2012-08-07 18:43:23 INFO nova.rpc.common [req-72804b2a-3d1d-4d38-977d-6e70e491559f 6ed9496e07724c969e1e470e9ea4621e f4c42d279f124477a487c57f2a96d2df] Connected to AMQP server on 172.18.32.75672

~

Rabbitmq crashed and restarted all services.

Restore

2012-08-08 10:43:37 ERROR nova.rpc.amqp [req-b4675e0f-c682-4621-8530-fdc4ea316295 6ed9496e07724c969e1e470e9ea4621e f4c42d279f124477a487c57f2a96d2df] Exception during message handling

2012-08-08 10:43:37 TRACE nova.rpc.amqp Traceback (most recent call last):

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _ process_data

2012-08-08 10:43:37 TRACE nova.rpc.amqp rval = node_func (context=ctxt, * * node_args)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped

2012-08-08 10:43:37 TRACE nova.rpc.amqp return f (* args, * * kw)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line, in decorated_function

2012-08-08 10:43:37 TRACE nova.rpc.amqp sys.exc_info ()

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/contextlib.py", line 24, in _ _ exit__

2012-08-08 10:43:37 TRACE nova.rpc.amqp self.gen.next ()

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in decorated_function

2012-08-08 10:43:37 TRACE nova.rpc.amqp return function (self, context, instance_uuid, * args, * * kwargs)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 657, in run_instance

2012-08-08 10:43:37 TRACE nova.rpc.amqp do_run_instance ()

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/utils.py", line 945, in inner

2012-08-08 10:43:37 TRACE nova.rpc.amqp retval = f (* args, * * kwargs)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 656, in do_run_instance

2012-08-08 10:43:37 TRACE nova.rpc.amqp self._run_instance (context, instance_uuid, * * kwargs)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 457, in _ run_instance

2012-08-08 10:43:37 TRACE nova.rpc.amqp self._set_instance_error_state (context, instance_uuid)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/contextlib.py", line 24, in _ _ exit__

2012-08-08 10:43:37 TRACE nova.rpc.amqp self.gen.next ()

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 430, in _ run_instance

2012-08-08 10:43:37 TRACE nova.rpc.amqp requested_networks)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 565, in _ allocate_network

2012-08-08 10:43:37 TRACE nova.rpc.amqp requested_networks=requested_networks)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/network/api.py", line 170, in allocate_for_instance

2012-08-08 10:43:37 TRACE nova.rpc.amqp 'args': args})

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/__init__.py", line 68, in call

2012-08-08 10:43:37 TRACE nova.rpc.amqp return _ get_impl () .call (context, topic, msg, timeout)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 674, in call

2012-08-08 10:43:37 TRACE nova.rpc.amqp return rpc_amqp.call (context, topic, msg, timeout, Connection.pool)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 343, in call

2012-08-08 10:43:37 TRACE nova.rpc.amqp rv = list (rv)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 304, in _ _ iter__

2012-08-08 10:43:37 TRACE nova.rpc.amqp self.done ()

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/contextlib.py", line 24, in _ _ exit__

2012-08-08 10:43:37 TRACE nova.rpc.amqp self.gen.next ()

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 301, in _ _ iter__

2012-08-08 10:43:37 TRACE nova.rpc.amqp self._iterator.next ()

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 572, in iterconsume

2012-08-08 10:43:37 TRACE nova.rpc.amqp yield self.ensure (_ error_callback, _ consume)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 503, in ensure

2012-08-08 10:43:37 TRACE nova.rpc.amqp error_callback (e)

2012-08-08 10:43:37 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 553, in _ error_callback

2012-08-08 10:43:37 TRACE nova.rpc.amqp raise rpc_common.Timeout ()

2012-08-08 10:43:37 TRACE nova.rpc.amqp Timeout: Timeout while waiting on RPC response.

2012-08-08 10:43:37 TRACE nova.rpc.amqp

Network problem

Dual network card configuration

2012-08-08 15:17:13 TRACE nova.rpc.amqp Traceback (most recent call last):

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _ process_data

2012-08-08 15:17:13 TRACE nova.rpc.amqp rval = node_func (context=ctxt, * * node_args)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped

2012-08-08 15:17:13 TRACE nova.rpc.amqp return f (* args, * * kw)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line, in decorated_function

2012-08-08 15:17:13 TRACE nova.rpc.amqp sys.exc_info ()

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/contextlib.py", line 24, in _ _ exit__

2012-08-08 15:17:13 TRACE nova.rpc.amqp self.gen.next ()

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in decorated_function

2012-08-08 15:17:13 TRACE nova.rpc.amqp return function (self, context, instance_uuid, * args, * * kwargs)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 657, in run_instance

2012-08-08 15:17:13 TRACE nova.rpc.amqp do_run_instance ()

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/utils.py", line 945, in inner

2012-08-08 15:17:13 TRACE nova.rpc.amqp retval = f (* args, * * kwargs)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 656, in do_run_instance

2012-08-08 15:17:13 TRACE nova.rpc.amqp self._run_instance (context, instance_uuid, * * kwargs)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 457, in _ run_instance

2012-08-08 15:17:13 TRACE nova.rpc.amqp self._set_instance_error_state (context, instance_uuid)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/contextlib.py", line 24, in _ _ exit__

2012-08-08 15:17:13 TRACE nova.rpc.amqp self.gen.next ()

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 438, in _ run_instance

2012-08-08 15:17:13 TRACE nova.rpc.amqp self._deallocate_network (context, instance)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/contextlib.py", line 24, in _ _ exit__

2012-08-08 15:17:13 TRACE nova.rpc.amqp self.gen.next ()

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 435, in _ run_instance

2012-08-08 15:17:13 TRACE nova.rpc.amqp injected_files, admin_password)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 598, in _ spawn

2012-08-08 15:17:13 TRACE nova.rpc.amqp self._legacy_nw_info (network_info), block_device_info)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped

2012-08-08 15:17:13 TRACE nova.rpc.amqp return f (* args, * * kw)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 919, in spawn

2012-08-08 15:17:13 TRACE nova.rpc.amqp block_device_info=block_device_info)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1539, in to_xml

2012-08-08 15:17:13 TRACE nova.rpc.amqp rescue, block_device_info)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1422, in _ prepare_xml_info

2012-08-08 15:17:13 TRACE nova.rpc.amqp nics.append (self.vif_driver.plug (instance, network, mapping))

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 99, in plug

2012-08-08 15:17:13 TRACE nova.rpc.amqp return self._get_configurations (network, mapping)

2012-08-08 15:17:13 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 69, in _ get_configurations

2012-08-08 15:17:13 TRACE nova.rpc.amqp 'ip_address': mapping [' ips'] [0] ['ip']

2012-08-08 15:17:13 TRACE nova.rpc.amqp IndexError: list index out of range

Dependency package not installed

Reinstall according to Shaq's website

Sure

But it is a multi-network node structure.

Migration error:

2012-08-09 09:13:28 ERROR nova.scheduler.driver [req-0ed136e0-7694-4320-9f95-7a129bfa459a 6ed9496e07724c969e1e470e9ea4621e f4c42d279f124477a487c57f2a96d2df] Cannot confirm tmpfile at / var/lib/nova/instances is on same shared storage between worker1 and worker2.

2012-08-09 09:13:28 WARNING nova.scheduler.manager [req-0ed136e0-7694-4320-9f95-7a129bfa459a 6ed9496e07724c969e1e470e9ea4621e f4c42d279f124477a487c57f2a96d2df] Failed to schedule_live_migration: File tmpqUEm34 could not be found.

2012-08-09 09:13:28 ERROR nova.rpc.amqp [req-0ed136e0-7694-4320-9f95-7a129bfa459a 6ed9496e07724c969e1e470e9ea4621e f4c42d279f124477a487c57f2a96d2df] Exception during message handling

2012-08-09 09:13:28 TRACE nova.rpc.amqp Traceback (most recent call last):

2012-08-09 09:13:28 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _ process_data

2012-08-09 09:13:28 TRACE nova.rpc.amqp rval = node_func (context=ctxt, * * node_args)

2012-08-09 09:13:28 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 97, in _ schedule

2012-08-09 09:13:28 TRACE nova.rpc.amqp context, ex, * args, * * kwargs)

2012-08-09 09:13:28 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/contextlib.py", line 24, in _ _ exit__

2012-08-09 09:13:28 TRACE nova.rpc.amqp self.gen.next ()

2012-08-09 09:13:28 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 92, in _ schedule

2012-08-09 09:13:28 TRACE nova.rpc.amqp return driver_method (* args, * * kwargs)

2012-08-09 09:13:28 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/scheduler/driver.py", line 222, in schedule_live_migration

2012-08-09 09:13:28 TRACE nova.rpc.amqp disk_over_commit)

2012-08-09 09:13:28 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/scheduler/driver.py", line 322, in _ live_migration_common_check

2012-08-09 09:13:28 TRACE nova.rpc.amqp self.mounted_on_same_shared_storage (context, instance_ref, dest)

2012-08-09 09:13:28 TRACE nova.rpc.amqp File "/ usr/lib/python2.7/dist-packages/nova/scheduler/driver.py", line 521, in mounted_on_same_shared_storage

2012-08-09 09:13:28 TRACE nova.rpc.amqp raise exception.FileNotFound (file_path=filename)

2012-08-09 09:13:28 TRACE nova.rpc.amqp FileNotFound: File tmpqUEm34 could not be found.

2012-08-09 09:13:28 TRACE nova.rpc.amqp

2012-08-09 09:13:28 ERROR nova.rpc.amqp [req-0ed136e0-7694-4320-9f95-7a129bfa459a 6ed9496e07724c969e1e470e9ea4621e f4c42d279f124477a487c57f2a96d2df] Returning exception File tmpqUEm34 could not be found. To caller

2012-08-09 09:13:28 ERROR nova.rpc.amqp [req-0ed136e0-7694-4320-9f95-7a129bfa459a 6ed9496e07724c969e1e470e9ea4621e f4c42d279f124477a487c57f2a96d2df] ['Traceback (most recent call last):\ nQing,' File "/ usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _ process_data\ nrval = node_func (context=ctxt, * * node_args)\ nThe rval, 'File "/ usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 97 In _ schedule\ ncontext, ex, * args, * * kwargs)\ nfarmer, 'File "/ usr/lib/python2.7/contextlib.py", line 24, in _ exit__\ nself.gen.next ()\ nmom,' File "/ usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 92, in _ schedule\ nreturn driver_method (* args, * * kwargs)\ n' 'File "/ usr/lib/python2.7/dist-packages/nova/scheduler/driver.py, line 222, in schedule_live_migration\ ndisk_over_commit)\ n disk_over_commit,' File" / usr/lib/python2.7/dist-packages/nova/scheduler/driver.py ", line 322, in _ live_migration_common_check\ nself.mounted_on_same_shared_storage (context, instance_ref, dest)\ n' 'File "/ usr/lib/python2.7/dist-packages/nova/scheduler/driver.py", line 521, in mounted_on_same_shared_storage\ nraise exception.FileNotFound (file_path=filename)\ nThe FileNotFound: File tmpqUEm34 could not be found.\ n']

LibvirtError: internal error Process exited while reading console log output: chardev: opening backend "file" failed: Permission denied

Insufficient folder permissions for nfs share

It's already 777.

Nfs4 configuration is different from other machines

Calculate the node's / etc/fstab: / / var/lib/nova/instances nfs4 defaults 0 0

The modified / etc/exports content of the nfs server is as follows: / var/lib/nova/instances * (rw,sync,no_root_squash,no_subtree_check,fsid=0)

three, Libvirt modification / etc/libvirt/libvirtd.conf file for each node before migration is as follows: before modification: # listen_tls = 0 after modification: listen_tls = 0 before modification: # listen_tcp = 1 after modification: listen_tcp = 1 add: auth_tcp = "none" modification / etc/init/libvirt-bin.conf before: exec / usr/sbin/libvirtd $libvirtd_opts after modification: exec / usr/sbin/libvirtd-d-l / etc/default/libvirt-bin before: libvirtd_opts= "- d" change: libvirtd_opts= "- d-l" modify / etc/libvirtd/qemu.conf remove the following three lines of comment # vnc_listen = "0.0.0.0" this line may not be modified user = "root" group = "root" sudo / etc/init.d/libvirt-bin restart

Nova-compute.log:

2012-08-09 13:13:03 ERROR nova.manager [-] Error during ComputeManager.update_available_resource: Failed to connect socket to'/ var/run/libvirt/libvirt-sock': No such file or directory

2012-08-09 13:13:03 TRACE nova.manager Traceback (most recent call last):

2012-08-09 13:13:03 TRACE nova.manager File "/ usr/lib/python2.7/dist-packages/nova/manager.py", line 155, in periodic_tasks

2012-08-09 13:13:03 TRACE nova.manager task (self, context)

2012-08-09 13:13:03 TRACE nova.manager File "/ usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2409, in update_available_resource

2012-08-09 13:13:03 TRACE nova.manager self.driver.update_available_resource (context, self.host)

2012-08-09 13:13:03 TRACE nova.manager File "/ usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1936, in update_available_resource

2012-08-09 13:13:03 TRACE nova.manager 'vcpus_used': self.get_vcpu_used ()

2012-08-09 13:13:03 TRACE nova.manager File "/ usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1742, in get_vcpu_used

2012-08-09 13:13:03 TRACE nova.manager for dom_id in self._conn.listDomainsID ():

2012-08-09 13:13:03 TRACE nova.manager File "/ usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 298, in _ get_connection

2012-08-09 13:13:03 TRACE nova.manager self.read_only)

2012-08-09 13:13:03 TRACE nova.manager File "/ usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 341, in _ connect

2012-08-09 13:13:03 TRACE nova.manager return libvirt.openAuth (uri, auth, 0)

2012-08-09 13:13:03 TRACE nova.manager File "/ usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth

2012-08-09 13:13:03 TRACE nova.manager if ret is None:raise libvirtError ('virConnectOpenAuth () failed')

2012-08-09 13:13:03 TRACE nova.manager libvirtError: Failed to connect socket to'/ var/run/libvirt/libvirt-sock': No such file or directory

2012-08-09 13:13:03 TRACE nova.manager

Libvirt.log:

2012-08-09 08 pm-is-supported' in path 2915 38.318 0000: 346: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Frey 29pur38.3180000: 346: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08Partition 29140000: 469: info: libvirt version: 0.9.8

2012-08-09 08 pm-is-supported' in path 2915 39.271: 0000: 469: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29140000: 469: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08Partition 29purl 40.0640000: 591: info: libvirt version: 0.9.8

2012-08-09 08 pm-is-supported' in path 2915 40.064 0000: 591: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 40.0640000: 591: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08Partition 29purl 40.7450000706: info: libvirt version: 0.9.8

2012-08-09 08 pm-is-supported' in path 29displacement 40.745 0000: 706: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 40.7450000706: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08Partition 29purl 41.3950000: 820: info: libvirt version: 0.9.8

2012-08-09 08Partition 29purl 41.3950000: 820: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 41.3950000: 820: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08Partition 29purl 42.0920000: 942: info: libvirt version: 0.9.8

2012-08-09 08 pm-is-supported' in path 2915 42.092 0000: 942: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 42.0920000: 942: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08Partition 29purl 42.7450000: 1058: info: libvirt version: 0.9.8

2012-08-09 08 pm-is-supported' in path 29 pm-is-supported' in path 42.745 0000: 1058: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 42.7450000: 1058: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 2915 43.9800000: 1058: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 43.9690000: 1058: warning: lxcCapsInit:77: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 2915 43.969 pm-is-supported' in path 0000: 1058: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 43.9690000: 1058: warning: umlCapsInit:87: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 2915 44.068 0000: 1048: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 44.06800000: 1048: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 2915 45.018 0000: 1045: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 0818: 0000: 1045: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08Partition 29purl 50.8380000: 1211: info: libvirt version: 0.9.8

2012-08-09 08 pm-is-supported' in path 2915 50.838 0000: 1211: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 50.8380000: 1211: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 2915 52.072 0000: 1211: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 52.0730000: 1211: warning: lxcCapsInit:77: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 2915 52.073 0000: 1211: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 52.0734th 0000: 1211: warning: umlCapsInit:87: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 29 pm-is-supported' in path 52.150 0000: 1201: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 29purl 52.150mm 0000: 1201: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 2915 53.193 0000: 1197: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08 Failed to get host power management capabilities 2915 53.193 0000: 1197: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08 End of file while reading data 2915 54.057 0000: 1196: error: virNetSocketReadWire:996: End of file while reading data: Input/output error

2012-08-09 08Distillation 46.1240000: 1581: info: libvirt version: 0.9.8

2012-08-09 08 pm-is-supported' in path 40 pm-is-supported' in path 46.124 0000: 1581: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Distillation 46.1240000: 1581: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 40 pm-is-supported' in path 47.36450000: 1581: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 40 Failed to get host power management capabilities 47.3651500000: 1581: warning: lxcCapsInit:77: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 40 pm-is-supported' in path 47.36550000: 1581: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 40 Failed to get host power management capabilities 47.3651500000: 1581: warning: umlCapsInit:87: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 40 pm-is-supported' in path 47.460 0000: 1571: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Parade 40 Failed to get host power management capabilities 47.4600000: 1571: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08 pm-is-supported' in path 40 purl 48.312 0000: 1570: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-09 08Partition 40purl 48.3120000: 1570: warning: qemuCapsInit:856: Failed to get host power management capabilities

2012-08-09 08Partition 40purl 49.0940000: 1567: error: virNetSocketReadWire:996: End of file while reading data: Input/output error

Reinstall, skip this error

Worker1 storage node failure, shelved

2012-08-12 23 pm-is-supported' in path 36V 37.652mm 0000: 24256: error: virExecWithHook:328: Cannot find 'pm-is-supported' in path: No such file or directory

2012-08-12 23 Failed to get host power management capabilities 36V 37.652mm 0000: 24256: warning: qemuCapsInit:856: Failed to get host power management capabilities

This error is a package that lacks power management and can be ignored

Sudo apt-get-y install pm-utils

Migrate worker1 to worker2: yes, but the virtual machine is still in worker1

Libvirt.log:

Error: virNetClientProgramDispatchError:174: Unable to read from monitor: Connection reset by peer

Vnc snooping in nova.conf is changed to network-wide 0.0.0.0. I don't understand why it has something to do with vnc.

Bizarre problems that have not yet been solved:

1. Restart the All-In-One control node with an instance. The nova-compute on the control node did not start. Check the log that the connection RabbitMQ timed out.

The functions of other computing nodes are intact, and the nova-compute of the manual restart control node is restarted successfully.

Delete the instance and restart the system successfully

Shut down the computing node and restart successfully

two。 After assigning FloatingIP, associate the virtual machine. At first, the ping can be connected, and the ssh can also be used. After the HTTP is deployed,

After a while, ssh is not available, ping is not available, remote is not available, can only connect through dashboard, but access to the external network fails.

But! Unexpectedly, the deployed HTTP service still provides services normally.

It is constantly updated.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report