openstack-service-checks fails to deploy in offline environment

Bug #1845398 reported by Vern Hart
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
charm-openstack-service-checks
Fix Released
Medium
Unassigned

Bug Description

When deploying the openstack-service-checks charm in an environment with no internet, the charm install fails when trying to install the fcbtest snap.

  ERROR could not download resource: HTTP request failed: resource#openstack-service-checks/fcbtest not found
  Installing fcbtest from store

Then it gives a hook error executing "snap install --channel=stable fcbtest".

If I copy the snap (and asset) to the unit and ack and install it, I get an error about prerequisites.

After copying the core snap (and asset) into the unit and acking and installing that, I get the same error. Seems I also need core18 snap. After copying, acking, and isntalling core18 snap, I can then install the fcbtest snap which then allows the charm install hook to finish.

  juju scp ~/snaps/fcbtest* ~/snaps/core* openstack-service-checks/0:/tmp/.
  juju ssh openstack-service-checks '
    sudo snap ack /tmp/core_*.assert
    sudo snap install /tmp/core_*.snap
    sudo snap ack /tmp/core18_*.assert
    sudo snap install /tmp/core18_*.snap
    sudo snap ack /tmp/fcbtest_*.assert
    sudo snap install /tmp/fcbtest_*.snap
  '

Adding some resources to the metadata.yaml (and doing the appropriate things with them) would allow the charm to install in an offline deployment.

Tags: sts

Related branches

Vern Hart (vern)
Changed in charm-openstack-service-checks:
assignee: nobody → Vern Hart (vhart)
status: New → In Progress
Felipe Reyes (freyes)
tags: added: sts
Xav Paice (xavpaice)
Changed in charm-openstack-service-checks:
importance: Undecided → Medium
Revision history for this message
Nobuto Murata (nobuto) wrote :

Attaching ~field-high. MP is there but it didn't get much love at this point. We have an air-gapped deployment in progress, and forking a charm is the only option atm.

Vern Hart (vern)
Changed in charm-openstack-service-checks:
assignee: Vern Hart (vern) → nobody
Changed in charm-openstack-service-checks:
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.