Root cause is at snap.py:
def configure_snap_store_proxy():
# Do nothing if we don't have kernel support yet
if not kernel_supported():
return
if not reactive.is_flag_set('config.changed.snap_proxy_url'):
return
ensure_snapd_min_version('2.30')
snap_store_proxy_url = hookenv.config()['snap_proxy_url']
if snap_store_proxy_url:
bundle, store_id = download_assertion_bundle(snap_store_proxy_url)
try: subprocess.check_output( ['snap', 'ack', bundle], stdin=subprocess.DEVNULL, universal_newlines=True,
)
except subprocess.CalledProcessError as e:
raise InvalidBundleError( 'snapd could not ack the proxy assertion: ' + e.output)
else:
store_id = '' # THIS OVERWRITES THE STORE ID IF IT IS SET
Root cause is at snap.py: snap_store_ proxy() :
def configure_
# Do nothing if we don't have kernel support yet
if not kernel_supported():
return
if not reactive. is_flag_ set('config. changed. snap_proxy_ url'): snapd_min_ version( '2.30') store_proxy_ url = hookenv. config( )['snap_ proxy_url' ] proxy_url: assertion_ bundle( snap_store_ proxy_url)
subprocess .check_ output(
['snap' , 'ack', bundle],
stdin= subprocess. DEVNULL,
universal_ newlines= True, CalledProcessEr ror as e:
'snapd could not ack the proxy assertion: ' + e.output)
return
ensure_
snap_
if snap_store_
bundle, store_id = download_
try:
)
except subprocess.
raise InvalidBundleError(
else:
store_id = '' # THIS OVERWRITES THE STORE ID IF IT IS SET