Zun

container creation fails with error if driver is glance

Bug #1638494 reported by Pradeep Kumar Singh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zun
Fix Released
High
Pradeep Kumar Singh

Bug Description

2016-11-02 08:23:50.101 DEBUG zun.image.glance.driver [req-35dead21-e1f9-427d-b763-e7c769a2990f admin admin] Image nginx was not found in glance pull_image /opt/stack/zun/zun/image/glance/driver.py:58
2016-11-02 08:23:50.101 ERROR zun.compute.manager [req-35dead21-e1f9-427d-b763-e7c769a2990f admin admin] Unexpected exception: local variable 'image' referenced before assignment
2016-11-02 08:23:50.101 8399 ERROR zun.compute.manager Traceback (most recent call last):
2016-11-02 08:23:50.101 8399 ERROR zun.compute.manager File "/opt/stack/zun/zun/compute/manager.py", line 72, in _do_container_create
2016-11-02 08:23:50.101 8399 ERROR zun.compute.manager image_path = image_driver.pull_image(context, container.image)
2016-11-02 08:23:50.101 8399 ERROR zun.compute.manager File "/opt/stack/zun/zun/image/driver.py", line 119, in pull_image
2016-11-02 08:23:50.101 8399 ERROR zun.compute.manager return image
2016-11-02 08:23:50.101 8399 ERROR zun.compute.manager UnboundLocalError: local variable 'image' referenced before assignment
2016-11-02 08:23:50.101 8399 ERROR zun.compute.manager

Changed in zun:
assignee: nobody → Pradeep Kumar Singh (pradeep-singh-u)
Changed in zun:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun (master)

Fix proposed to branch: master
Review: https://review.openstack.org/393398

Changed in zun:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zun (master)

Reviewed: https://review.openstack.org/393398
Committed: https://git.openstack.org/cgit/openstack/zun/commit/?id=d8afdd5978b844a3d4b71a3ee3ed1393e3780a83
Submitter: Jenkins
Branch: master

commit d8afdd5978b844a3d4b71a3ee3ed1393e3780a83
Author: Pradeep Kumar Singh <email address hidden>
Date: Thu Nov 3 10:59:37 2016 +0000

    Fixing image driver error when driver is glance

    This patch fixes two bugs.
    1.Currently when image driver is glance driver
      container creation is failing due to bug in
      image driver code, this patch fixes that.
    2.Currently during image pulling in docker image
      driver , if image is not found it silently ignores
      that, and container creation fails in create stage
      due to image not found error, while it should fail
      during image pull.

    Closes-Bug: 1638494
    Closes-Bug: 1638877

    Change-Id: Ie3131bbf7dd6420977dc2579802975eca213b436

Changed in zun:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.