Page MenuHomePhabricator

Vagrant -> mwvagrant alias in role::labs::mediawiki_vagrant is brittle
Open, Needs TriagePublic

Description

role::labs::mediawiki_vagrant sets up an alias from the vagrant command to a wrapper that ensures that vagrant is run with a specific user and certain extra options. Running vagrant up without the alias breaks with No usable default provider could be found for your system., and after that running it with the alias breaks too with permission errors, since the first attempt already created some files (easy to fix though).

The problem is that the alias is set up via profile.d so it only affects login shells. Specifically, it is not set in a screen session (which is a reasonable way of starting long-running remote commands like vagrant up). Either it should be in bashrc or some non-alias-based mechanism should be used instead (e.g. creating the wrapper as /usr/local/bin/vagrant and relying on /usr/local/bin preceding /usr/bin in $PATH - that would avoid the need for the whole logout business).

Event Timeline

Vvjjkkii renamed this task from Vagrant -> mwvagrant alias in role::labs::mediawiki_vagrant is brittle to 79baaaaaaa.Jul 1 2018, 1:08 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from 79baaaaaaa to Vagrant -> mwvagrant alias in role::labs::mediawiki_vagrant is brittle.Jul 2 2018, 3:46 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.