snap microstack installation error on arch (update-alternative and ovsdb service not found)

Bug #1862884 reported by Abdul Subayu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MicroStack
Confirmed
Medium
Unassigned

Bug Description

Recently i tried to install microstack on my arch linux machine. i've already followd the guide on snapcraft website, i install snapd package on aur with yay. when i install microstack on channel edge, i get the following error:

error: cannot perform the following tasks:
- Run install hook of "microstack" snap if present (run hook "install":
-----
+ set-default-config
+ snapctl set config.clustered=false config.post-setup=true
+ snapctl set config.network.dns=1.1.1.1 config.network.ext-gateway=10.20.20.1 config.network.control-ip=10.20.20.1 config.network.compute-ip=10.20.20.1 config.network.ext-cidr=10.20.20.1/24 config.network.security-rules=true 'config.network.dashboard-allowed-hosts=*' config.network.ports.dashboard=80 config.network.ports.mysql=3306 config.network.ports.rabbit=5672 config.network.ovs-dpdk=false
+ snapctl set config.credentials.os-password=keystone config.credentials.key-pair=id_microstack config.credentials.nova-password=nova config.credentials.neutron-password=neutron config.credentials.placement-password=placement config.credentials.glance-password=glance
+ snapctl set config.host.ip-forwarding=true config.host.check-qemu=true
+ snapctl set config.services.control-plane=true config.services.hypervisor=true
+ snapctl set cluster.role=control cluster.password=null
+ snapctl set config.cleanup.delete-bridge=true config.cleanup.remove=true
+ mkdir -p /var/snap/microstack/common/lib
+ mkdir -p /var/snap/microstack/common/images
+ cp /snap/microstack/204/images/cirros-0.4.0-x86_64-disk.img /var/snap/microstack/common/images/
+ echo 'Installing configuration for OpenStack Services'
Installing configuration for OpenStack Services
+ for project in neutron nova keystone glance
+ mkdir -p /var/snap/microstack/common/etc/neutron/neutron.conf.d
+ cp -r /snap/microstack/204/etc/neutron/neutron.conf.d/workers.conf /var/snap/microstack/common/etc/neutron/neutron.conf.d
+ for project in neutron nova keystone glance
+ mkdir -p /var/snap/microstack/common/etc/nova/nova.conf.d
+ cp -r /snap/microstack/204/etc/nova/nova.conf.d/hypervisor.conf /snap/microstack/204/etc/nova/nova.conf.d/scheduler.conf /snap/microstack/204/etc/nova/nova.conf.d/workers.conf /var/snap/microstack/common/etc/nova/nova.conf.d
+ for project in neutron nova keystone glance
+ mkdir -p /var/snap/microstack/common/etc/keystone/keystone.conf.d
+ cp -r '/snap/microstack/204/etc/keystone/keystone.conf.d/*' /var/snap/microstack/common/etc/keystone/keystone.conf.d
cp: cannot stat '/snap/microstack/204/etc/keystone/keystone.conf.d/*': No such file or directory
+ true
+ for project in neutron nova keystone glance
+ mkdir -p /var/snap/microstack/common/etc/glance/glance.conf.d
+ cp -r '/snap/microstack/204/etc/glance/glance.conf.d/*' /var/snap/microstack/common/etc/glance/glance.conf.d
cp: cannot stat '/snap/microstack/204/etc/glance/glance.conf.d/*': No such file or directory
+ true
+ mkdir -p /var/snap/microstack/common/etc/horizon/local_settings.d
+ /snap/microstack/204/bin/ovs-alternatives --install
/snap/microstack/204/bin/ovs-alternatives: line 45: update-alternatives: command not found
-----)

indicating this package on edge using update-alternative, which not found on arch. then i tried to install from channel candidate. and i get the following error:
error: cannot perform the following tasks:
- Start snap "microstack" (171) services ([start snap.microstack.ovsdb-server.service] failed with exit status 1: Job for snap.microstack.ovsdb-server.service failed because the control process exited with error code.
See "systemctl status snap.microstack.ovsdb-server.service" and "journalctl -xe" for details.)

the content when i check systemctl, indicating ovsdb-server service not installed or included on the package:
● snap.microstack.ovsdb-server.service
     Loaded: not-found (Reason: Unit snap.microstack.ovsdb-server.service not found.)
     Active: failed (Result: exit-code) since Wed 2020-02-12 12:37:12 WIB; 34min ago

Feb 12 12:37:12 TeaParty systemd[1]: snap.microstack.ovsdb-server.service: Scheduled restart job, restart counter is at 5.
Feb 12 12:37:12 TeaParty systemd[1]: Stopped Service for snap application microstack.ovsdb-server.
Feb 12 12:37:12 TeaParty systemd[1]: snap.microstack.ovsdb-server.service: Start request repeated too quickly.
Feb 12 12:37:12 TeaParty systemd[1]: snap.microstack.ovsdb-server.service: Failed with result 'exit-code'.
Feb 12 12:37:12 TeaParty systemd[1]: Failed to start Service for snap application microstack.ovsdb-server.

Tags: arch
Revision history for this message
Pen Gale (pengale) wrote :

I suspect that this is related to the general breakage with version 204 of the snap (https://bugs.launchpad.net/microstack/+bug/1862911)

If you uninstall the snap, then try reinstalling from edge, do you get further?

(Note that MicroStack support outside of Ubuntu 16.04 and Ubuntu 18.04 isn't as complete as we'd like. We're currently doing some work to improve the situation. Updates are generally posted to https://bugs.launchpad.net/microstack/+bug/1860660.)

Pen Gale (pengale)
Changed in microstack:
status: New → Incomplete
Revision history for this message
Abdul Subayu (toomuchmacha) wrote :

i got this error if i reinstall using channel edge:
[machalatte@TeaParty ~]$ sudo snap install microstack --edge --classic
error: cannot perform the following tasks:
- Start snap "microstack" (196) services ([start snap.microstack.ovs-vswitchd.service] failed with exit status 1: Job for snap.microstack.ovs-vswitchd.service failed because the control process exited with error code.
See "systemctl status snap.microstack.ovs-vswitchd.service" and "journalctl -xe" for details.
)

Revision history for this message
Pen Gale (pengale) wrote :

Moving this to "confirmed".

Work to get Arch Linux setup in our testing environment and iron out the bugs is still on our roadmap. Hopefully, the strict confinement work will make a lot of that easier.

Changed in microstack:
status: Incomplete → Confirmed
importance: Undecided → Medium
importance: Medium → Low
importance: Low → Medium
Pen Gale (pengale)
tags: added: arch
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.