Bug 30224 - missing dependency for ruby-vagrant_cloud in vagrant package
Summary: missing dependency for ruby-vagrant_cloud in vagrant package
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://forums.mageia.org/en/viewtopi...
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2022-03-30 23:09 CEST by Ryo Nagata
Modified: 2022-04-03 00:23 CEST (History)
4 users (show)

See Also:
Source RPM: vagrant-2.2.9-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Ryo Nagata 2022-03-30 23:09:20 CEST
Description of problem:
After installing vagrant from repository, running "vagrant init" or running `vagrant up` command fails with errors, "cannot load such file -- vagrant_cloud (LoadError)". These commands successfully run if ruby-vagrant_cloud package is installed, but ruby-vagrant_cloud is neither marked as dependency nor recommended by the package vagrant.

Version-Release number of selected component (if applicable):
vagrant-2.2.9-1.mga8.noarch.rpm
ruby-vagrant_cloud-3.0.2-1.mga8.noarch.rpm

How reproducible:
100% reproducible. Always occurs when not installing ruby-vagrant_cloud package. 

Steps to Reproduce:
1. install `vagrant` package using urpmi, dnf or yum
2. run `vagrant init` to create a Vagrantfile (or create a Vagrantfile manually and run `vagrant up`)
3. The command fails with "cannot load such file -- vagrant_cloud (LoadError)".
Comment 1 Lewis Smith 2022-03-31 20:22:11 CEST
Thank you for the report.

Confirmed it: vagrant-2.2.9-1.mga8
Installing it involved 35 pkgs, many ruby- ones, but not 'ruby-vagrant_cloud'.

 $ vagrant init
Traceback (most recent call last):
	13: from /usr/share/vagrant/gems/bin/vagrant:23:in `<main>'
...
	 1: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- vagrant_cloud (LoadError)

Installed ruby-vagrant_cloud, then:
 $ vagrant init
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

 $ urpmq --requires vagrant | grep _cloud
 $
 $ urpmq -- whatrequires ruby-vagrant_cloud
 $
No dependency either way.

Assigning this to NicolasL who looks after this SRPM.

Severity: minor => normal
Assignee: bugsquad => mageia

Lewis Smith 2022-03-31 20:23:23 CEST

Summary: possibly missing dependency / recommendation for vagrant package => missing dependency for ruby-vagrant_cloud in vagrant package

Comment 2 Nicolas Lécureuil 2022-03-31 22:26:23 CEST
does installing ruby-vagrant_cloud fixes the issue for you ?
Comment 3 Ryo Nagata 2022-04-01 10:10:37 CEST
(In reply to Nicolas Lécureuil from comment #2)
> does installing ruby-vagrant_cloud fixes the issue for you ?

Yes, it does. Installing ruby-vagrant_cloud package resolves the error when calling "vagrant init", just as Lewis reported.
Comment 4 Nicolas Lécureuil 2022-04-01 10:35:13 CEST
ok. Fixing this way then :-)
Comment 5 Nicolas Lécureuil 2022-04-01 12:27:32 CEST
New package just pushed on the BS


src:
    - vagrant-2.2.9-1.1.mga8

Assignee: mageia => qa-bugs

Comment 6 Len Lawrence 2022-04-02 16:31:48 CEST
mga8, x64
Installed vagrant and verified the need for ruby-vagrant_cloud by running
$ vagrant init.
Updated the package, drawing in the dependency.
$ vagrant init
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
$ ll Vagrantfile
-rw-r--r-- 1 lcl lcl 3010 Apr  2 15:13 Vagrantfile

The contents of Vagrantfile do not mean much to me and it looks like a long haul to get to grips with it so this goes out on the basis that the init command does run.

$ vagrant up --provider=virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'base' (v0) for provider: virtualbox
    default: Downloading: base
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /home/lcl/base

CC: (none) => tarazed25
Whiteboard: (none) => MGA8-64-OK

Comment 7 Ryo Nagata 2022-04-02 16:50:16 CEST
(In reply to Len Lawrence from comment #6)

Thank you for your report, Lawrence! 

I sincerely apologise if you already know this; but the error is not related to this package, as it is an expected behaviour when running "vagrant up" without specifying the box to run. This stackoverflow post[1] just tells what's wrong, so your report verifies that both "vagrant init" and "vagrant run" completely work under given conditions.

[1]: (https://stackoverflow.com/questions/23874260/error-when-trying-vagrant-up)
Comment 8 Len Lawrence 2022-04-02 18:16:56 CEST
Yes, thanks Ryo Nagata.  I understood that - thought that it would help to try the initial commands.  Glad that it did.
Comment 9 Thomas Andrews 2022-04-02 19:22:01 CEST
Validating.

CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update

Dave Hodgins 2022-04-02 21:43:50 CEST

CC: (none) => davidwhodgins
Keywords: (none) => advisory

Comment 10 Mageia Robot 2022-04-03 00:23:32 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2022-0047.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.