Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Upgrade chromogenic to fix imaging cleaning issue #619

Merged
merged 2 commits into from
May 22, 2018

Conversation

cdosborn
Copy link
Contributor

@cdosborn cdosborn commented May 18, 2018

Description

Imaging would occasionally fail in the cleaning phase with:
"UnboundLocalError: local variable properties referenced before assignment"

See cyverse/chromogenic#7

Checklist before merging Pull Requests

  • Add an entry in the changelog
  • Reviewed and approved by at least one other contributor.

Imaging would occasionally fail in the cleaning phase with:
"UnboundLocalError: local variable properties referenced before assignment"

Here is the explanation from the chromogenic project (77841b08114d7193ea432b214edd57be74906a0d):

    When an instance is imaged, a snapshot is made of the instance, then that
    snapshot is mounted locally so that the filesystem can be cleaned. Then that
    cleaned image is then uploaded as the image, which will appear in atmosphere.

    When chromogenic images, it actually checks if a snapshot has been made before
    and just uses that rather than always creating a snapshot.

    Just prior to uploading chromogenic looks up the snapshot image (what it calls
    the parent image), and uses properties on it for the final image. The bug was
    that looking up the snapshot would return None sometimes, which would cause
    the properties lookup to fail.

    Chromogenic would first populate the cache, when it checked if the snapshot
    had ever been created. Then it would create the snapshot (never updating the
    cache) then would later ask if the cache had the snapshot.

    So the error can be reliably reproduced, if you delete the snapshot before you
    retry imaging.
@cdosborn cdosborn self-assigned this May 18, 2018
@cdosborn cdosborn changed the base branch from master to v33 May 18, 2018 23:28
@coveralls
Copy link

coveralls commented May 18, 2018

Coverage Status

Coverage decreased (-1.02%) to 36.301% when pulling 85203f9 on cdosborn:chromogenic-0.4.18 into 79e31d6 on cyverse:v33.

@cdosborn cdosborn merged commit c41e77b into cyverse:v33 May 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants