← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1305786] [NEW] Image checking exception on smithy start command

 

Public bug reported:

Exception occurs when running smithy start command and image already
exists in glance.

$ smithy -a start

...
INFO: @anvil.components.helpers.glance : Adding image cirros-0.3.1-x86_64-disk to glance.
INFO: @anvil.components.helpers.glance : Checking if image cirros-0.3.1-x86_64-disk already exists already in glance.
ERROR: @anvil.components.helpers.glance : Installing 'http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' failed due to: Image named cirros-0.3.1-x86_64-disk already exists.
Traceback (most recent call last):
  File "/root/anvil/anvil/components/helpers/glance.py", line 453, in install
    (name, img_id) = img_handle.install()
  File "/root/anvil/anvil/components/helpers/glance.py", line 401, in install
    img_id = self._register(tgt_image_name, unpack_info)
  File "/root/anvil/anvil/components/helpers/glance.py", line 324, in _register
    self._check_name(image_name)
  File "/root/anvil/anvil/components/helpers/glance.py", line 282, in _check_name
    raise IOError("Image named %s already exists." % (name))
IOError: Image named cirros-0.3.1-x86_64-disk already exists.
...

Possibly need to check md5 sum and log warning/error message (but not
exception) if file exists.

** Affects: anvil
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to anvil.
https://bugs.launchpad.net/bugs/1305786

Title:
  Image checking exception on smithy start command

Status in ANVIL for forging OpenStack.:
  New

Bug description:
  Exception occurs when running smithy start command and image already
  exists in glance.

  $ smithy -a start

  ...
  INFO: @anvil.components.helpers.glance : Adding image cirros-0.3.1-x86_64-disk to glance.
  INFO: @anvil.components.helpers.glance : Checking if image cirros-0.3.1-x86_64-disk already exists already in glance.
  ERROR: @anvil.components.helpers.glance : Installing 'http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' failed due to: Image named cirros-0.3.1-x86_64-disk already exists.
  Traceback (most recent call last):
    File "/root/anvil/anvil/components/helpers/glance.py", line 453, in install
      (name, img_id) = img_handle.install()
    File "/root/anvil/anvil/components/helpers/glance.py", line 401, in install
      img_id = self._register(tgt_image_name, unpack_info)
    File "/root/anvil/anvil/components/helpers/glance.py", line 324, in _register
      self._check_name(image_name)
    File "/root/anvil/anvil/components/helpers/glance.py", line 282, in _check_name
      raise IOError("Image named %s already exists." % (name))
  IOError: Image named cirros-0.3.1-x86_64-disk already exists.
  ...

  Possibly need to check md5 sum and log warning/error message (but not
  exception) if file exists.

To manage notifications about this bug go to:
https://bugs.launchpad.net/anvil/+bug/1305786/+subscriptions


Follow ups

References