Info nova compute manager updating host status

These are some notes from troubleshooting common Open Stack Errors that I have run into in the past year. Got error: The request returned 500 Internal Server Error Solution: Fix the OS ENV variables (insert your values from your API configs.) e.g.

These were mostly from Diablo and Essex but some are applicable to future releases especially surrounding Nova. declare -x OS_AUTH_KEY=”openstack” declare -x OS_AUTH_URL=” declare -x OS_PASSWORD=”openstack” declare -x OS_TENANT_NAME=”admin” declare -x OS_USERNAME=”admin” Local file storage of the image files. Instance Not Found(instance_id=instance_name) 2012-05-09 TRACE nova Instance Not Found: Instance instance-00000002 could not be found.

Errors: Invalid: Instance has already been created Instance Not Found: Instance instance-00000001 could not be found.

/var/lib/nova/instances/instance-000000ed//var/lib/nova/instances/instance-000000f5//var/lib/nova/instances/instance-000000f5/disk /var/lib/nova/instances/instance-000000f5//var/log/libvirt/qemu/instance-00000001/var/log/libvirt/qemu/instance-00000002/var/log/libvirt/qemu/instance-00000003/var/log/libvirt/qemu/instance-00000004/etc/libvirt/nwfilter/nova-instance-instance-000000bd-fa163e668ec9/etc/libvirt/nwfilter/nova-instance-instance-000000c3-fa163e5b0541/etc/libvirt/nwfilter/nova-instance-instance-000000c9-fa163e77d2c5$rm –f /var/log/libvirt/qemu/instance* $rm –f /etc/libvirt/nwfilter/nova* $rm –f /var/lib/nova/instances/instance-* $rm –f /var/log/libvirt/qemu/inst* $rm -f /etc/libvirt/nwfilter/nova-* $mysql -u root -p drop database nova; Then recreate the DB.

/*Re-create the Nova database CREATE DATABASE nova; GRANT ALL PRIVILEGES ON nova.* TO ‘novadbadmin’@’%’ IDENTIFIED BY ‘password’; Maybe restart for good measure before a resync.

$nova-manage db sync Problem:~# keystone-manage db_sync File “/usr/lib/python2.7/dist-packages/migrate/versioning/util/__init__.py”, line 116, in construct_engine raise Value Error(“you need to pass either an existing engine or a database uri”) Value Error: you need to pass either an existing engine or a database uri Resolution: Check Make sure it looks like this: connection = mysql://keystone:[email protected]:3306/keystone Not that is for glance.registry :/ mysql_connection = mysql://keystone:[email protected]:3306/keystone Problem: No handlers could be found for logger “keystoneclient.client” Authorization Failed: Unable to communicate with identity service: ‘\xe2\x80\x9dhttp’.

(HTTP 400) Resolution: Make sure you have the following variables: [email protected]:~# export SERVICE_TOKEN=openstack [email protected]:~# export OS_TENANT_NAME=admin [email protected]:~# export OS_USERNAME=admin [email protected]:~# export OS_PASSWORD=openstack [email protected]:~# export OS_AUTH_URL=” [email protected]:~# export SERVICE_ENDPOINT= [email protected]:~# keystone user-list +———————————-+———+——————–+———+ | id | enabled | email | name | +———————————-+———+——————–+———+ | 149136826c504aaf896645ee169aec7b | True | [email protected]| glance | | 6ba91505d57a44b3abff9c957d10b463 | True | [email protected]| nova | | bba82931db1a4236a6af9e377ab1aebb | True | [email protected]| admin | | bd36f79a3708445593200b50a32b4127 | True | [email protected]| quantum | | d49d9dda0b95496594f0d142c5f25d22 | True | [email protected]| demo | | f0c159e20b244477b02ae448b8029051 | True | [email protected]| swift | +———————————-+———+——————–+———+ Problem:# keystone-manage db_sync File “/usr/lib/python2.7/dist-packages/My SQLdb/connections.py”, line 187, in __init__ super(Connection, self).__init__(*args, **kwargs2)

bathroom-blowjob

/bin/bash mysql -uroot -popenstack -e “drop database nova;” mysql -uroot -popenstack -e “drop database glance;” mysql -uroot -popenstack -e “drop database keystone;” apt-get purge nova-api nova-cert nova-common nova-compute nova-compute-kvm nova-doc nova-network nova-objectstore nova-scheduler nova-vncproxy nova-volume python-nova python-novaclient apt-get autoremove rm -rf /var/lib/glance rm -rf /var/lib/keystone/ rm -rf /var/lib/nova/ rm -rf /var/lib/mysql Sometimes things go screwy as you are testing things and compute can crash leaving a headless instance out there.

Track down the instance files and delete them and drop the database and rebuild it.

/*Check all services $nova-manage service list (check for XXX or smiley face) Binary Host Zone Status State Updated_At nova-scheduler openstack1 nova enabled : – ) 2012-05-12 nova-compute openstack1 nova enabled : – ) 2012-05-12 nova-network openstack1 nova enabled : – ) 2012-05-12 $ ps -ea | grep nova 11448 ? 2012-05-09 TRACE nova Solution: Logs are at cat /var/log/libvirt/either delete the instance in My SQL or drop the database and start a new one. $mysql –u root –p DROP DATABASE nova; Recreate the DB: CREATE DATABASE nova; (strip formatting if you copy and paste any of this) GRANT ALL PRIVILEGES ON nova.* TO ‘novadbadmin’@’%’ IDENTIFIED BY ‘’; Quit Resync DB $nova-manage db sync Restart Nova $for a in libvirt-bin nova-network nova-compute nova-api nova-objectstore nova-scheduler nova-volume nova-vncproxy; do service “$a” stop; done $for a in libvirt-bin nova-network nova-compute nova-api nova-objectstore nova-scheduler nova-volume nova-vncproxy; do service “$a” start; done Regen keys $nova keypair-add ssh_key ssh_re-apply security policy. There are ways to recover a VM I have seen in the o Stack channel if someone needs a hand. $rm -rf /etc/libvirt/qemu/instance-00000043$rm -rf/var/lib/libvirt/qemu/instance-00000043.monitor $rm -rf/var/lib/nova/instances/instance-00000043 $rm -rf/var/lib/nova/instances/instance-00000043/$rm -rf/var/lib/nova/instances/instance-00000043/disk $rm -rf/var/lib/nova/instances/instance-00000043/$rm -rf/var/log/libvirt/qemu/instance-00000043Restart (maybe not nessecary) /etc/init.d/libvirt-bin Check libvirt logs for errors after restart: tail -n 200 cat /var/log/libvirt/Error [email protected]:/home/brent/openstack# ./keystone_No handlers could be found for logger “keystoneclient.client” Unable to authorize user No handlers could be found for logger “keystoneclient.client” Unable to authorize user No handlers could be found for logger “keystoneclient.client” Unable to authorize user Fix: Adjust the admin token to be the same as your script and your /etc/keystone/Also make sure has the following. Templated Catalog template_file = /etc/keystone/default_catalog.templates Someone say pain in the ass?

Make sure dbus is running ps –ea |grep dbus And sudo apt-get install lxc https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/918343 Error Failed to add image.

nova-compute openstack1 nova enabled XXX 2012-05-12 $tail –n 400 /var/log/nova-compute Errors: thon2.7/dist-packages/nova/virt/libvirt/connection.py”, line 338, in _connect 2012-05-09 TRACE nova return Auth(uri, auth, 0) 2012-05-09 TRACE nova File “/usr/lib/python2.7/dist-packages/libvirt.py”, line 102, in open Auth 2012-05-09 TRACE nova if ret is None:raise libvirt Error(‘vir Connect Open Auth() failed’) 2012-05-09 TRACE nova libvirt Error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock’: No such file or directory 012-05-09 .909+0000: 12466: info : libvirt version: 0.9.8 2012-05-09 .909+0000: 12466: error : vir Net Server MDNSStart:460 : internal error Failed to create m DNS client: Daemon not running Look in: [email protected]:/home/brent/openstack# cat /var/log/libvirt/Solution: libvirt-bin service will not start without dbus installed.

nova-objectstor If you are missing services or an XXX check the logs and look for errors i.e.

uefa-europa-league.ru

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>