Page MenuHomePhabricator

Commands list-roles, enable-role, etc do not work on Vagrant 1.6.x
Closed, ResolvedPublic

Description

I've installed the latest version of vagrant (1.6.1) and followed the manual. Unfortunately the commands 'list-roles' and 'enable-role' did not show up when calling 'vagrant list-commands'.

The commands could not be executed either.

After downgrading to Vagrant 1.5.4 it worked. Maybe something has changed in the Vagrantfile synatx.


Version: unspecified
Severity: normal
Platform: PC
URL: https://github.com/mitchellh/vagrant/issues/3775

Details

Reference
bz65066

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:11 AM
bzimport set Reference to bz65066.

According to http://www.vagrantup.com/blog.html, "Vagrant 1.6 introduces no breaking backwards compatibilities".

However, I can confirm that this is also happening to me. This might instead be a regression in Vagrant 1.6 rather than a change in the Vagrantfile syntax.

Output of "vagrant list-roles --debug" on Vagrant 1.5.4

Uploading output of "vagrant list-roles --debug" on Vagrant 1.5.4 (for comparison) on Kubuntu 14.04. I'll upload the output of the same command on Vagrant 1.6.1 in a moment.

attachment file_65066.txt ignored as obsolete

Output of "vagrant list-roles --debug" on Vagrant 1.6.1

Attached:

Output of "vagrant list-roles --debug" on Vagrant 1.5.4

Accidentally copy-pasted the 1.5.4 output twice. Reuploading without the redundancy and marking the first attachment obsolete.

Attached:

This bug is still present after updating to Vagrant 1.6.2.

I hope upstream will restore the ability to extend Vagrant from within Vagrantfile. See https://github.com/mitchellh/vagrant/issues/3775. In the meantime, we should look into alternate ways of distributing the plugin code.

Change 136441 had a related patch set uploaded by Dduvall:
Packaged plugin as gem to allow local installation

https://gerrit.wikimedia.org/r/136441

Change 136441 merged by jenkins-bot:
Packaged plugin as gem to allow local installation

https://gerrit.wikimedia.org/r/136441

Thanks to Dan's hard work we now have the plugin packaged properly, a script to automate updating it in the user's Vagrant and a guard in the Vagrantfile to halt and tell the user how to update. Awesome.