conflicts between auto-aliases and real snap names

Bug #1662815 reported by James Page
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

Example:

sudo snap install --edge --classic openstackclients
sudo snap install --edge glance

results in:

error: cannot install "glance": snap "glance" command namespace conflicts with enabled alias "glance" for "openstackclients"

the glance snap provides the server side elements of the deployment, the openstackclients snap provides the glance CLI tool for interacting with its API; in this case the glance snap does not even have a glance command, so maybe the resolution of alias/command conflicts could be a little more fine grained - if the glance snap (the supposed primary owner of 'glance') actually declared a glance command, then this would override the auto-aliase in openstackclients; if it does not, then the openstackclients alias still wins and is used.

Tags: openstack
Revision history for this message
James Page (james-page) wrote :

For clarity, installing client tools server side is quite common so this should not be a a-typical thing to try todo.

Revision history for this message
Michael Vogt (mvo) wrote :

We will rework the alias handling. It will most likely be slightly different than this proposal here.

Changed in snapd:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

The goal of preventing such conflicts is two-fold: of course we can't allow two things to coexist with the same command name because it's impossible to have both first in the path at the same time, thus one of them will overlap the other. But also, it's a matter of comprehension - having a "glance" snap which is supposed to work together with a different snap which has a "glance" alias for its own command is unnecessarily confusing. As a user, if I installed both of these snaps, it'd be extremely surprising to find out that "glance" was in fact in the "wrong" snap.

Revision history for this message
James Page (james-page) wrote :

I guess we could go for specialised snap package names for the daemons - say glance-api and glance-registry instead of 'glance' (which currently provides both).

This pattern is quite typical for openstack projects - the CLI for interacting with the API services is the name of the project; with the current naming approach we're taking for the server side components this currently conflicts with auto-aliasing support.

James Page (james-page)
tags: added: openstack
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.