Comment 8 for bug 808990

Revision history for this message
P Spencer Davis (p-spencer-davis) wrote : Re: [Bug 808990] Re: Creating zero sized instances on nova-compute node

From Nova questions:

On Mon, Jul 11, 2011 at 9:47 Vish Ishaya proposed the following answer:
the --glance_host and --glance_port flags were replaced with a single
flag called
--glance_api_servers

try
--glance_api_servers=172.16.1.13:9292

I changed nova.conf and now the instance image on the compute node is
larger, but still failing to run.

PM, Jay Pipes <email address hidden> wrote:
> No, I didn't mean to make you refile it :) still looking for the answer bear
> with me...
> On Jul 11, 2011 9:35 PM, "P Spencer Davis" <email address hidden>
> wrote:
>> Alright, thanks for your time. I'll move it over to Nova Questions.
>>
>> --
>> You received this bug notification because you are a member of Glance
>> Bug Team, which is subscribed to Glance.
>> https://bugs.launchpad.net/bugs/808990
>>
>> Title:
>> Creating zero sized instances on nova-compute node
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/glance/+bug/808990/+subscriptions
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/808990
>
> Title:
>  Creating zero sized instances on nova-compute node
>
> Status in OpenStack Image Registry and Delivery Service (Glance):
>  New
>
> Bug description:
>  I have two nodes, one running nova-api, nova-network, nova-volume,
>  nova-compute and glance, the second is just running nova-compute. The
>  nodes are running Ubuntu 11.04 server and I've installed from the
>  ppa.launchpad repository, additionally both nodes use the KVM
>  hypervisor, and kvm-ok returns that vitrualization (sp)  is enabled in
>  their bios. On the master node, I can start instances and they run
>  just fine, but when a vm is scheduled on the second node, I receive
>  the following errors:
>
>  2011-07-11 08:53:38,013 INFO nova.virt.libvirt_conn [-] instance instance-00000002: Creating image
>  2011-07-11 08:53:38,034 DEBUG nova.utils [-] Attempting to grab semaphore "00000001" for method "call_if_not_exists
>  "... from (pid=6846) inner /usr/lib/pymodules/python2.7/nova/utils.py:600
>  2011-07-11 08:53:38,036 ERROR nova.exception [-] Uncaught exception
>  (nova.exception): TRACE: Traceback (most recent call last):
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/nova/exception.py", line 87, in _wrap
>  (nova.exception): TRACE:     return f(*args, **kw)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/nova/virt/libvirt/connection.py", line 590, in spawn
>  (nova.exception): TRACE:     block_device_mapping=block_device_mapping)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/nova/virt/libvirt/connection.py", line 815, in _creat
>  e_image
>  (nova.exception): TRACE:     project=project)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/nova/virt/libvirt/connection.py", line 751, in _cache
>  _image
>  (nova.exception): TRACE:     call_if_not_exists(base, fn, *args, **kwargs)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/nova/utils.py", line 613, in inner
>  (nova.exception): TRACE:     retval = f(*args, **kwargs)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/nova/virt/libvirt/connection.py", line 749, in call_i
>  f_not_exists
>  (nova.exception): TRACE:     fn(target=base, *args, **kwargs)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/nova/virt/libvirt/connection.py", line 762, in _fetch
>  _image
>  (nova.exception): TRACE:     images.fetch(image_id, target, user, project)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/nova/virt/images.py", line 44, in fetch
>  (nova.exception): TRACE:     metadata = image_service.get(elevated, image_id, image_file)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/nova/image/glance.py", line 139, in get
>  (nova.exception): TRACE:     image_meta, image_chunks = self.client.get_image(image_id)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/glance/client.py", line 98, in get_image
>  (nova.exception): TRACE:     res = self.do_request("GET", "/images/%s" % image_id)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/glance/client.py", line 54, in do_request
>  (nova.exception): TRACE:     headers, params)
>  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/glance/common/client.py", line 148, in do_request
>  (nova.exception): TRACE:     "server. Got error: %s" % e)
>  (nova.exception): TRACE: ClientConnectionError: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED
>  (nova.exception): TRACE:
>  2011-07-11 08:53:38,037 ERROR nova.compute.manager [-] Instance '2' failed to spawn. Is virtualization enabled in t
>  he BIOS? Details: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED
>
>  Looking in /var/lib/nova/instances/_base, there are 0000000# files
>  that are zero size.
>
>  The nodes have dual nics attached to a public 172.16.0.0/16 and a
>  private 10.0.0.0/8 netowrk and i was using
>  http://dodeeric.louvrex.net/?p=225 as an install guide.
>
>  /etc/nova/nova.conf:
>
>  # RabbitMQ
>  --rabbit_host=172.16.1.13
>  # MySQL
>  --sql_connection=mysql://nova:nova@172.16.1.13/nova
>  # Networking
>  --network_manager=nova.network.manager.VlanManager
>  --vlan_interface=eth1
>  --public_interface=eth0
>  --network_host=172.16.1.13
>  --routing_source_ip=172.16.1.13
>  --fixed_range=10.0.0.0/8
>  --network_size=1024
>  --dhcpbridge_flagfile=/etc/nova/nova.conf
>  --dhcpbridge=/usr/bin/nova-dhcpbridge
>  # Virtualization
>  --libvirt_type=kvm
>  # Volumes
>  --iscsi_ip_prefix=172.16.1.13
>  --num_targets=100
>  # APIs
>  --auth_driver=nova.auth.dbdriver.DbDriver
>  --cc_host=172.16.1.13
>  --ec2_url=http://172.16.1.13:8773/services/Cloud
>  --s3_host=172.16.1.13
>  --s3_dmz=172.16.1.13
>  # Image service
>  --glance_host=172.16.1.13
>  --image_service=nova.image.glance.GlanceImageService
>  # Misc
>  --logdir=/var/log/nova
>  --state_path=/var/lib/nova
>  --lock_path=/var/lock/nova
>  --verbose
>  # VNC Console
>  --vnc_enabled=true
>  --vncproxy_url=http://172.16.1.13:6080
>  --vnc_console_proxy_url=http://172.16.1.13:6080
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/glance/+bug/808990/+subscriptions
>