sync-images action output shows completed when gsss process is already running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Glance-Simplestreams-Sync Charm |
Fix Committed
|
Medium
|
Yamen Hatahet |
Bug Description
When running the sync-images action, the action will not be performed if an instance of gsss is already running. The issue is that the action will show to be completed and not give any useful output communicating that gsss did not actually run the sync-image action.
def main():
log.
lockfile = open(SYNC_
try:
except IOError:
sys.exit(0) <--- EXITS HERE
unit-glance-
UnitId: glance-
id: "87"
results: {}
status: completed
timing:
completed: 2021-08-24 13:37:03 +0000 UTC
enqueued: 2021-08-24 13:37:02 +0000 UTC
started: 2021-08-24 13:37:02 +0000 UTC
A more verbose output would be helpful to let you know that it aborted.
Changed in charm-glance-simplestreams-sync: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: good-first-bug |
Changed in charm-glance-simplestreams-sync: | |
assignee: | nobody → Muhammad Ahmad (ahmadfsbd) |
Changed in charm-glance-simplestreams-sync: | |
assignee: | Muhammad Ahmad (ahmadfsbd) → nobody |
Changed in charm-glance-simplestreams-sync: | |
assignee: | nobody → Yamen Hatahet (yhatahet) |
Changed in charm-glance-simplestreams-sync: | |
status: | Triaged → In Progress |
https:/ /review. opendev. org/c/openstack /charm- glance- simplestreams- sync/+/ 874196