don't default to essex when codename resolution fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Swift Proxy Charm |
New
|
Undecided
|
Unassigned | ||
OpenStack Swift Storage Charm |
New
|
Undecided
|
Unassigned |
Bug Description
While doing an OpenStack upgrade last week I ran into a hook error showing the following message:
ERROR unit.swift-
Digging further revealed that the problem was not really with templates, but rather within the codename resolution function: my installation was not matched to any OpenStack release, and the swift charm code was defaulting to essex.
swift-storage:
lib/swift_
242: release = get_os_
swift-proxy:
lib/swift_utils.py
433: release = get_os_
Leaving the specifics of my installation aside, I don't think this default is helpful given that essex is (very) eol and the charm runs into a hook error when trying to render for it anyway.
I think it would be more useful to consider codename resolution failures fatal and immediately block when they happen.