Ask Your Question

fred-yang's profile - activity

2016-12-04 02:09:20 -0500 received badge  Notable Question (source)
2016-12-04 02:09:20 -0500 received badge  Famous Question (source)
2015-06-03 03:09:46 -0500 received badge  Popular Question (source)
2015-05-13 04:40:20 -0500 received badge  Notable Question (source)
2014-11-13 17:38:27 -0500 received badge  Popular Question (source)
2011-10-18 23:47:09 -0500 answered a question Glance Registry ECONNREFUSED

Glance issue resolved ThX

2011-10-18 22:18:52 -0500 answered a question Glance Registry ECONNREFUSED

Glance is running fine after reboot now -

fred@snipy:~/1018/nova$ curl -v http://0.0.0.0:9191/v1/images * About to connect() to 0.0.0.0 port 9191 (#0) * Trying 0.0.0.0... connected * Connected to 0.0.0.0 (0.0.0.0) port 9191 (#0)

GET /v1/images HTTP/1.1 User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18 Host: 0.0.0.0:9191 Accept: /

< HTTP/1.1 404 Not Found < Content-Length: 154 < Content-Type: text/html; charset=UTF-8 < Date: Tue, 18 Oct 2011 22:15:54 GMT < <html>

Somehow it is now EC2_URL="http://192.168.0.17:8773/services/Cloud" doesn't work ..

fred@snipy:~/1018/nova$ curl -v http://0.0.0.0:8773/services/Cloud * About to connect() to 0.0.0.0 port 8773 (#0) * Trying 0.0.0.0... Connection refused * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host

2011-10-18 18:58:24 -0500 asked a question Glance Registry ECONNREFUSED

/etc/glance/.conf unchanged, used as star configuration Glance-registry failed to connect though Glance-api can be connected through http - I did fred@snipy:~$ sudo glance-control all start /etc/glance Starting glance-api with /etc/glance Starting glance-registry with /etc/glance Starting glance-scrubber with /etc/glance fred@snipy:~$ glance --version glance 2011.3 fred@snipy:~$ sudo glance show all Failed to show image. Got error: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED From browser, I can connect to 0.0.0.0:9292 but no connection to 0.0.0.0:9191 /var/log/api.log - 2011-10-18 08:52:32 DEBUG [glance-api] verbose True 2011-10-18 08:52:32 DEBUG [glance-api] ************************* 2011-10-18 08:52:32 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True 2011-10-18 08:52:32 DEBUG [eventlet.wsgi.server] (2386) wsgi starting up on http://0.0.0.0:9292/

/var/log/registry.log shows 2011-10-18 08:53:40 DEBUG [sqlalchemy.engine.base.Engine.0x...7f10] Row (6, u'name', u'VARCHAR(255)', 1, None, 0) 2011-10-18 08:53:40 DEBUG [sqlalchemy.engine.base.Engine.0x...7f10] Row (7, u'value', u'TEXT', 0, None, 0) 2011-10-18 08:53:40 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True 2011-10-18 08:53:40 DEBUG [eventlet.wsgi.server] (2397) wsgi starting up on http://0.0.0.0:9191/

The reason gets CLI is when I do euca-describe-images, api.log shows 2011-10-18 08:15:50,849 ERROR nova.api [5c0a4180-76a2-4c58-9520-6e6a8671ffe5 fred ras] Unexpected error raised: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED (nova.api): TRACE: Traceback (most recent call last): (nova.api): TRACE: File "/home/fred/1013/nova/nova/api/ec2/__init__.py", line 348, in __call__ (nova.api): TRACE: result = api_request.invoke(context) (nova.api): TRACE: File "/home/fred/1013/nova/nova/api/ec2/apirequest.py", line 78, in invoke (nova.api): TRACE: result = method(context, args) (nova.api): TRACE: File "/home/fred/1013/nova/nova/api/ec2/cloud.py", line 1617, in describe_images (nova.api): TRACE: images = self.image_service.detail(context) (nova.api): TRACE: File "/home/fred/1013/nova/nova/image/s3.py", line 77, in detail (nova.api): TRACE: return self.service.detail(context) (nova.api): TRACE: File "/home/fred/1013/nova/nova/image/glance.py", line 152, in detail (nova.api): TRACE: for image_meta in image_metas: (nova.api): TRACE: File "/home/fred/1013/nova/nova/image/glance.py", line 181, in _fetch_images (nova.api): TRACE: images = fetch_func(kwargs) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/client.py", line 69, in get_images_detailed

(nova.api): TRACE: res = self.do_request("GET", "/images/detail", params=params) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/common/client.py", line 140, in do_request (nova.api): TRACE: method, action, body=body, headers=headers, params=params) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/common/client.py", line 238 ... (more)

2011-10-18 18:53:35 -0500 answered a question Glance registry ECONNREFUSED

Move question to glance launchpad

2011-10-18 16:28:13 -0500 asked a question Glance registry ECONNREFUSED

Glance-registry failed to connect - I did fred@snipy:~$ sudo glance-control all start /etc/glance Starting glance-api with /etc/glance Starting glance-registry with /etc/glance Starting glance-scrubber with /etc/glance fred@snipy:~$ glance --version glance 2011.3 fred@snipy:~$ sudo glance show all Failed to show image. Got error: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED From browser, I can connect to 0.0.0.0:9292 but no connection to 0.0.0.0:9191 /var/log/api.log - 2011-10-18 08:52:32 DEBUG [glance-api] verbose True 2011-10-18 08:52:32 DEBUG [glance-api] ************************** 2011-10-18 08:52:32 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True 2011-10-18 08:52:32 DEBUG [eventlet.wsgi.server] (2386) wsgi starting up on http://0.0.0.0:9292/

/var/log/registry.log shows 2011-10-18 08:53:40 DEBUG [sqlalchemy.engine.base.Engine.0x...7f10] Row (6, u'name', u'VARCHAR(255)', 1, None, 0) 2011-10-18 08:53:40 DEBUG [sqlalchemy.engine.base.Engine.0x...7f10] Row (7, u'value', u'TEXT', 0, None, 0) 2011-10-18 08:53:40 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True 2011-10-18 08:53:40 DEBUG [eventlet.wsgi.server] (2397) wsgi starting up on http://0.0.0.0:9191/

The reason gets CLI is when I do euca-describe-images, api.log shows 2011-10-18 08:15:50,849 ERROR nova.api [5c0a4180-76a2-4c58-9520-6e6a8671ffe5 fred ras] Unexpected error raised: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED (nova.api): TRACE: Traceback (most recent call last): (nova.api): TRACE: File "/home/fred/1013/nova/nova/api/ec2/__init__.py", line 348, in __call__ (nova.api): TRACE: result = api_request.invoke(context) (nova.api): TRACE: File "/home/fred/1013/nova/nova/api/ec2/apirequest.py", line 78, in invoke (nova.api): TRACE: result = method(context, args) (nova.api): TRACE: File "/home/fred/1013/nova/nova/api/ec2/cloud.py", line 1617, in describe_images (nova.api): TRACE: images = self.image_service.detail(context) (nova.api): TRACE: File "/home/fred/1013/nova/nova/image/s3.py", line 77, in detail (nova.api): TRACE: return self.service.detail(context) (nova.api): TRACE: File "/home/fred/1013/nova/nova/image/glance.py", line 152, in detail (nova.api): TRACE: for image_meta in image_metas: (nova.api): TRACE: File "/home/fred/1013/nova/nova/image/glance.py", line 181, in _fetch_images (nova.api): TRACE: images = fetch_func(kwargs) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/client.py", line 69, in get_images_detailed (nova.api): TRACE: res = self.do_request("GET", "/images/detail", params=params) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/common/client.py", line 140, in do_request (nova.api): TRACE: method, action, body=body, headers=headers, params=params) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/common/client.py", line 238, in _do_request (nova.api): TRACE: "server. Got error: %s" % e) (nova.api): TRACE: ClientConnectionError: Unable ... (more)

2011-09-17 02:48:20 -0500 answered a question Host_filter for BaseScheduler

Resolved through --compute_scheduler_driver & --default_host_filter settings Thanks,

2011-09-15 22:49:08 -0500 asked a question Host_filter for BaseScheduler

Hi,

I was working to push code for review on a new filter driver based on previous ZoneAwaredScheduler with host_filter driver model, and found out the latest code, revision 1576, has no ZoneAwareScheduler. I am stuck!

LeastCostScheduler(BaseScheduler) is now the one that can invoke JsonFiler. But I can't locate corresponding document for configurations, can someone provide a basic nova.conf for me to jump start?

For example, I was using following configuration for ZoneAwaredSchedule for new filter driver, what are the corresponding ones for LeastCostScheduler for me to invoke ~/filter/JsonFiler()?

Thanks, -Fred

--scheduler_manager=nova.scheduler.manager.SchedulerManager --allow_admin_api=true --enable_zone_routing=true --zone_name=zone1 --build_plan_encryption_key=c286696d887c9aa0611bbb3e2025a45b --scheduler_driver=nova.scheduler.host_filter.HostFilterScheduler --default_host_filter=nova.scheduler.host_filter.JsonFilter

2011-08-19 14:17:59 -0500 answered a question run_test.py w/ new directory

Thanks Brian Lamar, that solved my question.

2011-08-18 17:50:29 -0500 asked a question run_test.py w/ new directory

Hi,

I have created a new subdiretory ~/nova/nova/attestation with a new file service.py. I have also create a new unit test under ~/nova/tests/scheduler/test_attestation.py where has "from nova.attestation import service"

When I run "python run_tests.py scheduler.test_attestation:TestAttestation.test_sdk", I am experiencing following error. that can't locate attestation directory. Do I need to specify new created directory in anyplace for testing?

Thanks,

fred@storky:~/d2/nova$ python run_tests.py scheduler.test_attestation:TestAttestation.test_sdk 2011-08-18 10:37:51,066 INFO rdflib [-] version: 2.4.2 Failure runTest ERROR

======================================================================

ERROR: Failure: ImportError (No module named attestation)

Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/nose/loader.py", line 382, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/fred/d2/nova/nova/tests/scheduler/test_attestation.py", line 40, in <module> from nova.attestation import service ImportError: No module named attestation


Ran 1 test in 0.001s

FAILED (errors=1)

2011-08-03 15:55:30 -0500 answered a question admin context in host_filter.py

Got it! Thanks,

2011-08-02 22:24:02 -0500 answered a question admin context in host_filter.py

It works! Thanks,

BTW, any sample application to exercise Openstck API select() or run-instances through JsonFilter() than through existing hard-coded instance-type through ec2 API? Which we can to modify to test inherited host_filter.JsonFilter() for trusted computing pool though I have modified test_host_filter() for unit testing

Thanks,

2011-08-02 01:42:22 -0500 asked a question admin context in host_filter.py

Hi,

What will be the best way to get amdin context within derived class JasonFilter(host_filter.JsonFilter) in order to perform db.get_all_by_topic(). zone_aware_scheduler._scheduler(...context...) calls into filter_hosts() without passing "context"

Thanks, -Fred

2011-07-12 16:10:46 -0500 answered a question heartbeats for compute nodes?

GreenThread is a cooperative yield model according to Eventlet doc, so it should be safe. Thanks for sharing the light.

2011-07-11 21:25:10 -0500 answered a question heartbeats for compute nodes?

Sandy,

Continue ZoneManager.service_states[] locking question on this same thread.

ZoneManager.update_service_capabilities() is updating service_states per compute_node periodic_tasks, where JsonFilter.filter_hosts() is also looping through service_states[] to filter each hosts. There is no data locking while accessing service_states[] from both controls, is it implicitly serialized through AMQP by nova-scheduler executing zoneManger and filter_hosts. Am I read it correct?!

nova-scheduler also schedules SchedulerManager.ping() periodically through greenthread. If we derive ping() from SchedulerManager() to update service_states[] periodically on the same scheduler node, any data locking needed or what will be the better locking method?

Thanks, -Fred

2011-06-14 00:56:28 -0500 answered a question heartbeats for compute nodes?

Thanks Sandy Walsh, that solved my question.

2011-06-10 19:17:08 -0500 answered a question heartbeats for compute nodes?

You may have addressed 2 issues for me :-) though my usage model may be out of this question's scope

  1. Adding started_time, or service_boot_time, as last_capabilities to post to scheduler, which can be used to check if node service got restarted or be used by Host_filter drivers to remove newly booted compute nodes, if needed, during zone_aware_scheduler.

  2. scheduler.api.get_zone_capabilities() query derivation can be applied to build hosts trusted database though a service daemon, with refreshing host trust states when a host rebooted - This trust computing pool RFC will be posted to OpenStack mailing list for comment soon

Thanks, -Fred

2011-06-10 16:50:47 -0500 answered a question heartbeats for compute nodes?

Sandy,

so the checking can be derived from Zonemanager.ping -> scheduler.hosts_up -> service_is_up for the zone

Thanks, -Fred

2011-06-09 23:47:33 -0500 answered a question heartbeats for compute nodes?

Ok, it seems the polling is the way.. But I don't see service create time got reset when a compute node rebooted - I guess the logic is only to do compute_node_update() if it finds its service entry already. Any possibility to identify a compute node has been rebooted since a predefined time? the "watch" mechanism can only identify a new online node which doesn't have service entry yet I would like to build host trustiness state and would like to rebuild the information when a node got rebooted or got on-lined Thanks, -Fred

2011-06-09 20:18:58 -0500 asked a question heartbeats for compute nodes?

nova-compute creates "nova-compute" into CC DB.service table and new entry into DB.services table. nova-compute then periodically update DB.services.updated_at and report_count fields.

Any way for CC to know a compute node is restarted or the nova-compute service is restarted? any event notification method than continually polling nova DB in monitoring update_at & report_count?

Thanks -Fred

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

Thanks Vish Ishaya, that solved my question.

2011-05-20 05:35:22 -0500 asked a question SQL access denied which nova-manage db sync

I am installing nova from source code on ubuntu 10.10. If following $ mysql -uroot -ppassword

CREATE DATABASE nova; GRANT ALL PRIVILEGES ON . TO 'root'@'%' WITH GRANT OPTION; SET PASSWORD FOR 'root'@'%' = PASSWORD('nova'); to grant password to nova, and specify "--sql_connection=mysql://root:nova@192.168.0.13/nova" in bin/nova.conf, then I will get Access denied while running nova-manage db sync.

But if I change to 'root'@localhost in Mysql and root://root:nova@localhost/nova in conf, then db sync works fine. It seems no others has this issue, can you share your fixes? Thanks, -Fred

Error log attached

2011-05-19 22:22:08,200 DEBUG migrate.versioning.util [-] Disposing SQLAlchemy engine Engine(mysql://root:nova@192.168.0.13/nova) from (pid=2269) with_engine /usr/lib/pymodules/python2.6/migrate/versioning/util/__init__.py:163 Command failed, please check log for more info 2011-05-19 22:22:08,205 CRITICAL nova [-] (OperationalError) (1045, "Access denied for user 'root'@'story' (using password: YES)") None None (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "./bin/nova-manage", line 1142, in <module> (nova): TRACE: main() (nova): TRACE: File "./bin/nova-manage", line 1131, in main (nova): TRACE: fn(argv) (nova): TRACE: File "./bin/nova-manage", line 755, in sync (nova): TRACE: return migration.db_sync(version) (nova): TRACE: File "/home/fred/o1/nova/nova/db/migration.py", line 35, in db_sync (nova): TRACE: return IMPL.db_sync(version=version) (nova): TRACE: File "/home/fred/o1/nova/nova/db/sqlalchemy/migration.py", line 41, in db_sync (nova): TRACE: db_version() (nova): TRACE: File "/home/fred/o1/nova/nova/db/sqlalchemy/migration.py", line 56, in db_version (nova): TRACE: meta.reflect(bind=engine) (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/schema.py", line 1925, in reflect (nova): TRACE: conn = bind.contextual_connect() (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1742, in contextual_connect (nova): TRACE: self.pool.connect(), (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/pool.py", line 158, in connect (nova): TRACE: return _ConnectionFairy(self).checkout() (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/pool.py", line 329, in __init__ (nova): TRACE: rec = self._connection_record = pool.get() (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/pool.py", line 177, in get (nova): TRACE: return self.do_get() (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/pool.py", line 692, in do_get (nova): TRACE: con = self.create_connection() (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/pool.py", line 138, in create_connection (nova): TRACE: return _ConnectionRecord(self) (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/pool.py", line 213, in __init__ (nova): TRACE: self.connection = self.__connect() (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/pool.py", line 279, in __connect (nova): TRACE: connection = self.__pool._creator() (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/strategies.py", line 76, in connect (nova): TRACE: return dialect.connect(cargs, *cparams) (nova): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line ... (more)

2011-05-19 12:07:13 -0500 answered a question instance stuck in building nova_key

Similar nova.conf from https://answers.launchpad.net/nova/+question/156120 (https://answers.launchpad.net/nova/+q...) w/o glance gets Cactus to Running mode. Thanks,

2011-05-18 23:54:31 -0500 answered a question instance stuck in building nova_key

modified nova.conf, removed database & make sure host can boot KVM gust, reboot to get setup db from scratch couple times. Now I am always getting instance in launching state and I can't spot any error from logs. Checked rabbitmqctl list_queues, all 0. I suspect it is network setup, any hint, hint? Thanks

nova.conf and logs snips are attached, , $ euca-describe-instances RESERVATION r-gtdlwqtm RAS default INSTANCE i-00000001 ami-2b1b4131 10.0.0.2 10.0.0.2 launching mykey (RAS, stocky) 0 m1.tiny 2011-05-18T22:44:51Z nova

instance is created by following http://wiki.openstack.org/RunningNova using ttylinux test image

With ./bin/nova-manage network create 10.0.0.0/8 3 16 $ cat bin/nova.conf --network_manager=nova.network.manager.FlatManager --use_ipv6=false #--dhcpbridge_flagfile=/home/fred/open/nova/bin/nova.conf #--dhcpbridge=nova-dhcpbridge --verbose --s3_host=192.168.0.14 --cc_host=192.168.0.14 --ec2_url=http://192.168.0.14:8773/services/Cloud --fixed_range=10.0.0.0/12 --network_size=48 --routing_source_ip=192.168.0.14 --verbose --sql_connection=mysql://root:nova@localhost/nova --lock_path=/tmp --auth_driver=nova.auth.dbdriver.DbDriver

Compute.log -- 2011-05-18 15:44:52,252 DEBUG nova.rpc [-] received {u'_context_request_id': u'-GBWLO580A36T5HQ3WLO', u'_context_read_deleted': False, u'args': {u'instance_id': 1, u'injected_files': None, u'availability_zone': None}, u'_context_is_admin': True, u'_context_timestamp': u'2011-05-18T22:44:51Z', u'_context_user': u'fredy', u'method': u'run_instance', u'_context_project': u'RAS', u'_context_remote_address': u'192.168.0.14'} from (pid=2261) _receive /home/fred/open/nova/nova/rpc.py:167 2011-05-18 15:44:52,252 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-05-18T22:44:51Z', 'remote_address': u'192.168.0.14', 'project': u'RAS', 'is_admin': True, 'user': u'fredy', 'request_id': u'-GBWLO580A36T5HQ3WLO', 'read_deleted': False} from (pid=2261) _unpack_context /home/fred/open/nova/nova/rpc.py:331 2011-05-18 15:44:52,299 AUDIT nova.compute.manager [-GBWLO580A36T5HQ3WLO fredy RAS] instance 1: starting... 2011-05-18 15:44:52,299 DEBUG nova.compute.manager [-GBWLO580A36T5HQ3WLO fredy RAS] host stocky: lauched on stocky... from (pid=2261) run_instance /home/fred/open/nova/nova/compute/manager.py:205 2011-05-18 15:44:52,385 DEBUG nova.rpc [-] Making asynchronous call on network ... from (pid=2261) call /home/fred/open/nova/nova/rpc.py:350 2011-05-18 15:44:52,385 DEBUG nova.rpc [-] MSG_ID is da3c661a6a4f43539a0014e6677b383d from (pid=2261) call /home/fred/open/nova/nova/rpc.py:353 2011-05-18 15:44:52,687 DEBUG nova.rpc [-] Making asynchronous call on network.stocky ... from (pid=2261) call /home/fred/open/nova/nova/rpc.py:350 2011-05-18 15:44:52,687 DEBUG nova.rpc [-] MSG_ID is cc2514f2e0c14064b0a188f8fc29c08b from (pid=2261) call /home/fred/open/nova/nova/rpc.py:353 2011-05-18 15:44:53,086 DEBUG nova.compute.manager [-GBWLO580A36T5HQ3WLO fredy RAS] allocated fixed IP stocky: from (pid=2261) run_instance /home/fred/open/nova/nova/compute/manager.py:229 2011-05-18 15:44:53,136 DEBUG nova.compute.manager [-GBWLO580A36T5HQ3WLO fredy RAS] set Spawning stocky: from (pid=2261) run_instance /home/fred/open/nova/nova/compute/manager.py:240 2011-05-18 15:44:53 ... (more)

2011-05-17 16:46:45 -0500 asked a question instance stuck in building nova_key

Doing "euca-run-instances ami-595fe7fc -k nova_key -t m1.tiny" , the instance is stuck in "building nova_key(Ras, stocky) 0" - logs seems fine, any hint? Thanks,

$ euca-describe-instances RESERVATION r-ir2svb20 Ras default INSTANCE i-00000004 ami-595fe7fc 10.0.0.2 10.0.0.2 building nova_key (Ras, stocky) 0 m1.tiny 2011-05-17T14:40:33Z nova RESERVATION r-7dadcvps Ras default INSTANCE i-00000002 ami-595fe7fc scheduling nova_key (Ras, None) 0 m1.tiny 2011-05-17T05:31:55Z unknown zone RESERVATION r-v9bnwoxr Ras default INSTANCE i-00000001 ami-595fe7fc scheduling mykey (Ras, None) 0 m1.tiny 2011-05-17T05:29:53Z unknown zone RESERVATION r-wogqc75e Ras default INSTANCE i-00000003 ami-595fe7fc scheduling nova_key (Ras, None) 0 m1.tiny 2011-05-17T05:54:21Z unknown zone

api.log - 2011-05-17 07:40:33,596 DEBUG nova.rpc [-] received {u'_context_request_id': u'JANVAYDFOHF7JSV-KNXC', u'_context_read_deleted': False, u'args': {u'instance_id': 4, u'injected_files': None, u'availability_zone': None}, u'_context_is_admin': True, u'_context_timestamp': u'2011-05-17T14:40:33Z', u'_context_user': u'fredy', u'method': u'run_instance', u'_context_project': u'Ras', u'_context_remote_address': u'192.168.0.14'} from (pid=2394) _receive /home/fred/openstack/nova/nova/rpc.py:177 2011-05-17 07:40:33,596 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-05-17T14:40:33Z', 'remote_address': u'192.168.0.14', 'project': u'Ras', 'is_admin': True, 'user': u'fredy', 'request_id': u'JANVAYDFOHF7JSV-KNXC', 'read_deleted': False} from (pid=2394) _unpack_context /home/fred/openstack/nova/nova/rpc.py:350 2011-05-17 07:40:33,643 AUDIT nova.compute.manager [JANVAYDFOHF7JSV-KNXC fredy Ras] instance 4: starting... 2011-05-17 07:40:33,743 DEBUG nova.rpc [-] Making asynchronous call on network ... from (pid=2394) call /home/fred/openstack/nova/nova/rpc.py:370 2011-05-17 07:40:33,743 DEBUG nova.rpc [-] MSG_ID is 50414ef869074031ae9d8331745fd9ab from (pid=2394) call /home/fred/openstack/nova/nova/rpc.py:373 2011-05-17 07:40:34,027 DEBUG nova.rpc [-] Making asynchronous call on network.stocky ... from (pid=2394) call /home/fred/openstack/nova/nova/rpc.py:370 2011-05-17 07:40:34,027 DEBUG nova.rpc [-] MSG_ID is 82a45bfab7714519b1f316e80e6d825c from (pid=2394) call /home/fred/openstack/nova/nova/rpc.py:373 2011-05-17 07:40:34,493 DEBUG nova.virt.libvirt_conn [-] instance instance-00000004: starting toXML method from (pid=2394) to_xml /home/fred/openstack/nova/nova/virt/libvirt_conn.py:1039 2011-05-17 07:40:34,593 DEBUG nova.virt.libvirt_conn [-] instance instance-00000004: finished toXML method from (pid=2394) to_xml /home/fred/openstack/nova/nova/virt/libvirt_conn.py:1042 2011-05-17 07:40:34,608 INFO nova [-] called setup_basic_filtering in nwfilter 2011-05-17 07:40:34,609 INFO nova [-] ensuring static filters 2011-05-17 07:40:34,673 DEBUG nova.utils [-] Attempting to grab semaphore "iptables" for method "apply"... from (pid=2394) inner /home/fred/openstack/nova/nova/utils.py:576 2011-05-17 07:40:34,673 DEBUG nova.utils [-] Attempting to grab file lock "iptables" for method "apply"... from (pid=2394) inner /home/fred/openstack/nova/nova/utils.py:581 2011-05-17 07:40:34,677 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=2394) execute /home/fred/openstack/nova/nova/utils.py:141 2011-05-17 07:41:14,984 INFO ... (more)

2011-05-12 13:15:13 -0500 answered a question nova-compute get_connection cannot be found

"--image_service=nova.image.local.LocalImageService" must be specified to fix glance import_class error, though Administrator guide indicates it is as default. Thanks,

2011-05-12 06:19:12 -0500 answered a question nova-compute get_connection cannot be found

Ok, fixed glance import_class issue by adding --image_service=nova.image.local.LocalImageService into nova.conf. Now the vm is always on "Networking" mode - fred@stoky:~/openstack/nova$ euca-describe-instances RESERVATION r-f28bcye7 Ras default INSTANCE i-00000003 ami-60db44f3 networking nova_key (Ras, stoky) 0 m1.tiny 2011-05-12T06:01:39Z nova

Find network.log with following error, is this the possible issue?

2011-05-11 22:56:08,633 CRITICAL nova [-] f(ile) should be int, str, unicode or file, not <open greenpipe="" '<fd:5="">', mode 'wb' at 0x2fe0f80> (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "./bin/nova-network", line 48, in <module> (nova): TRACE: service.serve() (nova): TRACE: File "/home/fred/openstack/nova/nova/service.py", line 295, in serve (nova): TRACE: x.start() (nova): TRACE: File "/home/fred/openstack/nova/nova/service.py", line 84, in start (nova): TRACE: self.manager.init_host() (nova): TRACE: File "/home/fred/openstack/nova/nova/network/manager.py", line 499, in init_host (nova): TRACE: super(VlanManager, self).init_host() (nova): TRACE: File "/home/fred/openstack/nova/nova/network/manager.py", line 128, in init_host (nova): TRACE: self.driver.init_host() (nova): TRACE: File "/home/fred/openstack/nova/nova/network/linux_net.py", line 378, in init_host (nova): TRACE: iptables_manager.apply() (nova): TRACE: File "/home/fred/openstack/nova/nova/utils.py", line 607, in inner (nova): TRACE: retval = f(args, *kwargs) (nova): TRACE: File "/home/fred/openstack/nova/nova/network/linux_net.py", line 286, in apply (nova): TRACE: attempts=5) (nova): TRACE: File "/home/fred/openstack/nova/nova/network/linux_net.py", line 666, in _execute (nova): TRACE: return utils.execute(cmd, *kwargs) (nova): TRACE: File "/home/fred/openstack/nova/nova/utils.py", line 158, in execute (nova): TRACE: env=env) (nova): TRACE: File "/usr/lib/pymodules/python2.6/eventlet/green/subprocess.py", line 31, in __init__ (nova): TRACE: wrapped_pipe = greenio.GreenPipe(pipe, pipe.mode, bufsize) (nova): TRACE: File "/usr/lib/pymodules/python2.6/eventlet/greenio.py", line 376, in __init__ (nova): TRACE: raise TypeError('f(ile) should be int, str, unicode or file, not %r' % f) (nova): TRACE: TypeError: f(ile) should be int, str, unicode or file, not <open greenpipe="" '<fd:5="">', mode 'wb' at 0x2fe0f80> (nova): TRACE:

2011-05-12 03:01:43 -0500 answered a question nova-compute get_connection cannot be found

Debug output shows

2011-05-11 19:38:28,554 DEBUG nova.utils [-] Inner Exception: No module named glance from (pid=16719) import_class /home/fred/openstack/nova/nova/utils.py:65 2011-05-11 19:38:28,554 ERROR nova [-] in Service.create() (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "/home/fred/openstack/nova/nova/service.py", line 275, in serve (nova): TRACE: services = [Service.create()] (nova): TRACE: File "/home/fred/openstack/nova/nova/service.py", line 173, in create (nova): TRACE: report_interval, periodic_interval) (nova): TRACE: File "/home/fred/openstack/nova/nova/service.py", line 73, in __init__ (nova): TRACE: self.manager = manager_class(host=self.host, args, *kwargs) (nova): TRACE: File "/home/fred/openstack/nova/nova/compute/manager.py", line 127, in __init__ (nova): TRACE: utils.import_object(compute_driver), (nova): TRACE: File "/home/fred/openstack/nova/nova/utils.py", line 75, in import_object (nova): TRACE: cls = import_class(import_str) (nova): TRACE: File "/home/fred/openstack/nova/nova/utils.py", line 66, in import_class (nova): TRACE: raise exception.NotFound(_('Class %s cannot be found') % class_str)

utils.import_object(compute_driver) is defined as nova.virt.connection.get_connection and utils.py has following code def import_class(import_str): """Returns a class from a string including module and class""" mod_str, _sep, class_str = import_str.rpartition('.') try: __import__(mod_str) return getattr(sys.modules[mod_str], class_str) except (ImportError, ValueError, AttributeError), exc: LOG.debug(_('Inner Exception: %s'), exc) raise exception.NotFound(_('Class %s cannot be found') % class_str)

def import_object(import_str): """Returns an object including a module or module and class""" try: __import__(import_str) return sys.modules[import_str] except ImportError: cls = import_class(import_str) <======== line#75 return cls()

How can I fix it? Thanks,

2011-05-11 17:11:52 -0500 asked a question nova-compute get_connection cannot be found

I am following http://wiki.openstack.org/InstallFromSource (http://wiki.openstack.org/InstallFrom...) to install single node nova from nova-2011.2.tar.gz. (Is the link good for the installtion for Cactus?) But I get instance always on "scheduling" and scheduler.log shows "NoValidHost: Scheduler was unable to locate a host for this request. Is the appropriate service running?" I then run "bin/nova-compute" and got "Class get_connection cannot be found" I have tried also launchpad trunk, got similar NoValiodHost, though I can install Bexar from source perfectly base on http://wiki.openstack.org/NovaInstall/Bexar (http://wiki.openstack.org/NovaInstall...) Did I missed any thing? Thanks, (Was posted into wrong project)