Re: [Openstack] Inner Exception: cannot import name v1_1 from (pid=xxx) import_class
For the benefit of the list, I rebuilt my server in the end. I have found that updating django when installing the dashboard can be hazardous (not being a python man I could not work out why all of a sudden pip was installing libraries into /usr/local/lib and that of course meant other installed python modules couldn't be found). Thanks for the help anyway. Den On Fri, Dec 16, 2011 at 12:59 AM, Dong-In David Kang dk...@isi.edu wrote: How about adding the following two flags in nova.conf file? We are running flat dhcp without problem. You need to customize the values of the flags. --flat_network_dhcp_start=10.99.1.2 --flat_interface=eth0 David. -- Dr. Dong-In David Kang Computer Scientist USC/ISI - Original Message - Anyone? On 14/12/2011, at 15:24, denmat tu2bg...@gmail.com wrote: Hi all, I have been following the installation instructions here: http://cssoss.files.wordpress.com/2011/08/openstackbookv1-0_csscorp.pdf And I had a successful install at one stage - then I tried to install the dashboard, which wanted keystone and now things have gone a little messy. Previously this returned successfully: localadmin@au-mel-kvm-3:~$ euca-describe-availability-zones verbose [Errno 111] Connection refused This is because the nova services cannot be started. Each nova service complains in a similar way: == /var/log/nova/nova-network.log == 2011-12-14 15:12:20,129 DEBUG nova.utils [-] Inner Exception: cannot import name v1_1 from (pid=3298) import_class /usr/lib/python2.7/dist-packages/nova/utils.py:65 2011-12-14 15:12:20,130 CRITICAL nova [-] Class FlatDHCPManager could not be found (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File /usr/bin/nova-network, line 47, in module (nova): TRACE: server = service.Service.create(binary='nova-network') (nova): TRACE: File /usr/lib/python2.7/dist-packages/nova/service.py, line 216, in create (nova): TRACE: report_interval, periodic_interval) (nova): TRACE: File /usr/lib/python2.7/dist-packages/nova/service.py, line 125, in __init__ (nova): TRACE: manager_class = utils.import_class(self.manager_class_name) (nova): TRACE: File /usr/lib/python2.7/dist-packages/nova/utils.py, line 66, in import_class (nova): TRACE: raise exception.ClassNotFound(class_name=class_str) (nova): TRACE: ClassNotFound: Class FlatDHCPManager could not be found (nova): TRACE: Keystone currently works (curl tests respond) and the I can use the dashboard to sign in but I receive these (understandably): Error: Unable to get usage info: [Errno 111] ECONNREFUSED Below are my config files: nova.conf --allow_admin_api --api_paste_config=/etc/nova/nova-api-paste.ini --cc_host=10.61.2.246 --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --ec2_url=http://172.31.0.10:8773/services/Cloud --FAKE_subdomain=ec2 --fixed_range=172.31.0.0/16 --glance_api_servers=172.31.0.10:9292 --image_service=nova.image.glance.GlanceImageService --iscsi_ip_prefix=172.31. --lock_path=/var/lock/nova --logdir=/var/log/nova --network_manager=nova.network.manager.FlatDHCPManager --network_size=16 --osapi_extension=extensions.admin.Admin --osapi_extension=nova.api.openstack.v2.contrib.standard_extensions --osapi_extensions_path=/opt/build/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/extensions --rabbit_host=10.61.2.246 --routing_source_ip=10.61.2.246 --s3_host=172.31.0.10 --scheduler_driver=nova.scheduler.simple.SimpleScheduler --sql_connection=mysql://root:removed@172.31.0.10/nova --state_path=/var/lib/nova --verbose nova-api-paste.ini [composite:ec2] use = egg:Paste#urlmap /: ec2versions /services/Cloud: ec2cloud /services/Admin: ec2admin /latest: ec2metadata /2007-01-19: ec2metadata /2007-03-01: ec2metadata /2007-08-29: ec2metadata /2007-10-10: ec2metadata /2007-12-15: ec2metadata /2008-02-01: ec2metadata /2008-09-01: ec2metadata /2009-04-04: ec2metadata /1.0: ec2metadata [pipeline:ec2cloud] pipeline = logrequest totoken authtoken keystonecontext cloudrequest authorizer ec2executor [pipeline:ec2admin] pipeline = logrequest totoken authtoken keystonecontext adminrequest authorizer ec2executor [pipeline:ec2metadata] pipeline = logrequest ec2md [pipeline:ec2versions] pipeline = logrequest ec2ver [filter:logrequest] paste.filter_factory = nova.api.ec2:RequestLogging.factory [filter:ec2lockout] paste.filter_factory = nova.api.ec2:Lockout.factory [filter:totoken] paste.filter_factory = keystone.middleware.ec2_token:EC2Token.factory [filter:ec2noauth] paste.filter_factory = nova.api.ec2:NoAuth.factory [filter:authenticate] paste.filter_factory = nova.api.ec2:Authenticate.factory [filter:cloudrequest] controller = nova.api.ec2.cloud.CloudController paste.filter_factory =
Re: [Openstack] Inner Exception: cannot import name v1_1 from (pid=xxx) import_class
How about adding the following two flags in nova.conf file? We are running flat dhcp without problem. You need to customize the values of the flags. --flat_network_dhcp_start=10.99.1.2 --flat_interface=eth0 David. -- Dr. Dong-In David Kang Computer Scientist USC/ISI - Original Message - Anyone? On 14/12/2011, at 15:24, denmat tu2bg...@gmail.com wrote: Hi all, I have been following the installation instructions here: http://cssoss.files.wordpress.com/2011/08/openstackbookv1-0_csscorp.pdf And I had a successful install at one stage - then I tried to install the dashboard, which wanted keystone and now things have gone a little messy. Previously this returned successfully: localadmin@au-mel-kvm-3:~$ euca-describe-availability-zones verbose [Errno 111] Connection refused This is because the nova services cannot be started. Each nova service complains in a similar way: == /var/log/nova/nova-network.log == 2011-12-14 15:12:20,129 DEBUG nova.utils [-] Inner Exception: cannot import name v1_1 from (pid=3298) import_class /usr/lib/python2.7/dist-packages/nova/utils.py:65 2011-12-14 15:12:20,130 CRITICAL nova [-] Class FlatDHCPManager could not be found (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File /usr/bin/nova-network, line 47, in module (nova): TRACE: server = service.Service.create(binary='nova-network') (nova): TRACE: File /usr/lib/python2.7/dist-packages/nova/service.py, line 216, in create (nova): TRACE: report_interval, periodic_interval) (nova): TRACE: File /usr/lib/python2.7/dist-packages/nova/service.py, line 125, in __init__ (nova): TRACE: manager_class = utils.import_class(self.manager_class_name) (nova): TRACE: File /usr/lib/python2.7/dist-packages/nova/utils.py, line 66, in import_class (nova): TRACE: raise exception.ClassNotFound(class_name=class_str) (nova): TRACE: ClassNotFound: Class FlatDHCPManager could not be found (nova): TRACE: Keystone currently works (curl tests respond) and the I can use the dashboard to sign in but I receive these (understandably): Error: Unable to get usage info: [Errno 111] ECONNREFUSED Below are my config files: nova.conf --allow_admin_api --api_paste_config=/etc/nova/nova-api-paste.ini --cc_host=10.61.2.246 --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --ec2_url=http://172.31.0.10:8773/services/Cloud --FAKE_subdomain=ec2 --fixed_range=172.31.0.0/16 --glance_api_servers=172.31.0.10:9292 --image_service=nova.image.glance.GlanceImageService --iscsi_ip_prefix=172.31. --lock_path=/var/lock/nova --logdir=/var/log/nova --network_manager=nova.network.manager.FlatDHCPManager --network_size=16 --osapi_extension=extensions.admin.Admin --osapi_extension=nova.api.openstack.v2.contrib.standard_extensions --osapi_extensions_path=/opt/build/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/extensions --rabbit_host=10.61.2.246 --routing_source_ip=10.61.2.246 --s3_host=172.31.0.10 --scheduler_driver=nova.scheduler.simple.SimpleScheduler --sql_connection=mysql://root:removed@172.31.0.10/nova --state_path=/var/lib/nova --verbose nova-api-paste.ini [composite:ec2] use = egg:Paste#urlmap /: ec2versions /services/Cloud: ec2cloud /services/Admin: ec2admin /latest: ec2metadata /2007-01-19: ec2metadata /2007-03-01: ec2metadata /2007-08-29: ec2metadata /2007-10-10: ec2metadata /2007-12-15: ec2metadata /2008-02-01: ec2metadata /2008-09-01: ec2metadata /2009-04-04: ec2metadata /1.0: ec2metadata [pipeline:ec2cloud] pipeline = logrequest totoken authtoken keystonecontext cloudrequest authorizer ec2executor [pipeline:ec2admin] pipeline = logrequest totoken authtoken keystonecontext adminrequest authorizer ec2executor [pipeline:ec2metadata] pipeline = logrequest ec2md [pipeline:ec2versions] pipeline = logrequest ec2ver [filter:logrequest] paste.filter_factory = nova.api.ec2:RequestLogging.factory [filter:ec2lockout] paste.filter_factory = nova.api.ec2:Lockout.factory [filter:totoken] paste.filter_factory = keystone.middleware.ec2_token:EC2Token.factory [filter:ec2noauth] paste.filter_factory = nova.api.ec2:NoAuth.factory [filter:authenticate] paste.filter_factory = nova.api.ec2:Authenticate.factory [filter:cloudrequest] controller = nova.api.ec2.cloud.CloudController paste.filter_factory = nova.api.ec2:Requestify.factory [filter:adminrequest] controller = nova.api.ec2.admin.AdminController paste.filter_factory = nova.api.ec2:Requestify.factory [filter:authorizer] paste.filter_factory = nova.api.ec2:Authorizer.factory [app:ec2executor] paste.app_factory = nova.api.ec2:Executor.factory [app:ec2ver] paste.app_factory = nova.api.ec2:Versions.factory [app:ec2md] paste.app_factory =
Re: [Openstack] Inner Exception: cannot import name v1_1 from (pid=xxx) import_class
Anyone? On 14/12/2011, at 15:24, denmat tu2bg...@gmail.com wrote: Hi all, I have been following the installation instructions here: http://cssoss.files.wordpress.com/2011/08/openstackbookv1-0_csscorp.pdf And I had a successful install at one stage - then I tried to install the dashboard, which wanted keystone and now things have gone a little messy. Previously this returned successfully: localadmin@au-mel-kvm-3:~$ euca-describe-availability-zones verbose [Errno 111] Connection refused This is because the nova services cannot be started. Each nova service complains in a similar way: == /var/log/nova/nova-network.log == 2011-12-14 15:12:20,129 DEBUG nova.utils [-] Inner Exception: cannot import name v1_1 from (pid=3298) import_class /usr/lib/python2.7/dist-packages/nova/utils.py:65 2011-12-14 15:12:20,130 CRITICAL nova [-] Class FlatDHCPManager could not be found (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File /usr/bin/nova-network, line 47, in module (nova): TRACE: server = service.Service.create(binary='nova-network') (nova): TRACE: File /usr/lib/python2.7/dist-packages/nova/service.py, line 216, in create (nova): TRACE: report_interval, periodic_interval) (nova): TRACE: File /usr/lib/python2.7/dist-packages/nova/service.py, line 125, in __init__ (nova): TRACE: manager_class = utils.import_class(self.manager_class_name) (nova): TRACE: File /usr/lib/python2.7/dist-packages/nova/utils.py, line 66, in import_class (nova): TRACE: raise exception.ClassNotFound(class_name=class_str) (nova): TRACE: ClassNotFound: Class FlatDHCPManager could not be found (nova): TRACE: Keystone currently works (curl tests respond) and the I can use the dashboard to sign in but I receive these (understandably): Error: Unable to get usage info: [Errno 111] ECONNREFUSED Below are my config files: nova.conf --allow_admin_api --api_paste_config=/etc/nova/nova-api-paste.ini --cc_host=10.61.2.246 --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --ec2_url=http://172.31.0.10:8773/services/Cloud --FAKE_subdomain=ec2 --fixed_range=172.31.0.0/16 --glance_api_servers=172.31.0.10:9292 --image_service=nova.image.glance.GlanceImageService --iscsi_ip_prefix=172.31. --lock_path=/var/lock/nova --logdir=/var/log/nova --network_manager=nova.network.manager.FlatDHCPManager --network_size=16 --osapi_extension=extensions.admin.Admin --osapi_extension=nova.api.openstack.v2.contrib.standard_extensions --osapi_extensions_path=/opt/build/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/extensions --rabbit_host=10.61.2.246 --routing_source_ip=10.61.2.246 --s3_host=172.31.0.10 --scheduler_driver=nova.scheduler.simple.SimpleScheduler --sql_connection=mysql://root:removed@172.31.0.10/nova --state_path=/var/lib/nova --verbose nova-api-paste.ini [composite:ec2] use = egg:Paste#urlmap /: ec2versions /services/Cloud: ec2cloud /services/Admin: ec2admin /latest: ec2metadata /2007-01-19: ec2metadata /2007-03-01: ec2metadata /2007-08-29: ec2metadata /2007-10-10: ec2metadata /2007-12-15: ec2metadata /2008-02-01: ec2metadata /2008-09-01: ec2metadata /2009-04-04: ec2metadata /1.0: ec2metadata [pipeline:ec2cloud] pipeline = logrequest totoken authtoken keystonecontext cloudrequest authorizer ec2executor [pipeline:ec2admin] pipeline = logrequest totoken authtoken keystonecontext adminrequest authorizer ec2executor [pipeline:ec2metadata] pipeline = logrequest ec2md [pipeline:ec2versions] pipeline = logrequest ec2ver [filter:logrequest] paste.filter_factory = nova.api.ec2:RequestLogging.factory [filter:ec2lockout] paste.filter_factory = nova.api.ec2:Lockout.factory [filter:totoken] paste.filter_factory = keystone.middleware.ec2_token:EC2Token.factory [filter:ec2noauth] paste.filter_factory = nova.api.ec2:NoAuth.factory [filter:authenticate] paste.filter_factory = nova.api.ec2:Authenticate.factory [filter:cloudrequest] controller = nova.api.ec2.cloud.CloudController paste.filter_factory = nova.api.ec2:Requestify.factory [filter:adminrequest] controller = nova.api.ec2.admin.AdminController paste.filter_factory = nova.api.ec2:Requestify.factory [filter:authorizer] paste.filter_factory = nova.api.ec2:Authorizer.factory [app:ec2executor] paste.app_factory = nova.api.ec2:Executor.factory [app:ec2ver] paste.app_factory = nova.api.ec2:Versions.factory [app:ec2md] paste.app_factory = nova.api.ec2.metadatarequesthandler:MetadataRequestHandler.factory # # Openstack # # [composite:osapi] use = egg:Paste#urlmap /: osversions /v1.1: openstackapi [pipeline:openstackapi] pipeline = faultwrap authtoken keystonecontext ratelimit extensions osapiapp [filter:faultwrap] paste.filter_factory = nova.api.openstack:FaultWrapper.factory [filter:auth] paste.filter_factory =