Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Error downloading cdkv2 #15

Open
ishuverma opened this issue Aug 17, 2016 · 13 comments
Open

Error downloading cdkv2 #15

ishuverma opened this issue Aug 17, 2016 · 13 comments
Assignees

Comments

@ishuverma
Copy link

When I get to the step: "vagrant up", I'm getting an error:

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/ishu/Desktop/cdk-install-demo-master/target/cdk/components/rhel/rhel-ose/cdkv2

The previous steps to setup the project went ok (see enclosed screenshot).
vagrant-error

@eschabell
Copy link
Member

Asking Andrew to take a peek, I won't have time for a few weeks.

@sabre1041
Copy link
Collaborator

@ishuverma two things:

  1. What provider are you using to run the CDK (libvirt, VirtualBox)?
  2. Would you be able to print out the list of boxes installed on your machine: vagrant box list. Ensure there is a box called cdkv2 with the provider the provider configured for your machine

@eschabell
Copy link
Member

No response, so closing this down, open if help still needed.

@ishuverma
Copy link
Author

Below are the steps I took to get this working for KVM. I just followed the steps listed in the CDK Installation Guide. Apparently, there are few extra steps to get libvirt working.


Enable Repos

subscription-manager repos --enable rhel-server-rhscl-7-rpms
subscription-manager repos --enable rhel-7-server-optional-rpms
yum-config-manager --add-repo=http://mirror.centos.org/centos-7/7/sclo/x86_64/sclo/
echo "gpgcheck=0" >> /etc/yum.repos.d/mirror.centos.org_centos-7_7_sclo_x86_64_sclo_.repo

yum groupinstall "Virtualization Host"
systemctl start libvirtd
systemctl enable libvirtd

Installing Vagrant, required packages and libvirt-plugin

yum install sclo-vagrant1 sclo-vagrant1-vagrant-libvirt sclo-vagrant1-vagrant-libvirt-doc
yum downgrade sclo-vagrant1-vagrant-1.7.4

cp /opt/rh/sclo-vagrant1/root/usr/share/vagrant/gems/doc/vagrant-libvirt-*/polkit/10-vagrant-libvirt.rules /etc/polkit-1/rules.d

Launching CDK

As root:

systemctl restart libvirtd

systemctl restart polkit

Logout as root

$ scl enable sclo-vagrant1 bash
$ vagrant plugin list
$ vagrant box list

$ cd ~/cdk/components/rhel/misc/shared_folder/rhel-ose/

$ vagrant up

@eschabell
Copy link
Member

@ishuverma, what Linux OS are you using?

@eschabell eschabell reopened this Oct 7, 2016
@eschabell eschabell assigned eschabell and unassigned sabre1041 Oct 7, 2016
@ishuverma
Copy link
Author

Rhel 7.2

On Oct 7, 2016 1:59 AM, "Eric D. Schabell" [email protected] wrote:

@ishuverma https://github.com/ishuverma, what Linux OS are you using?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#15 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/APpY8C0_lzRYPhPrSKUGBjP60gU43Ovcks5qxgnSgaJpZM4JmyzL
.

@ishuverma
Copy link
Author

To be specific, I followed step by step instructions and didn't have any
issues:
https://access.redhat.com/documentation/en/red-hat-container-development-kit/2.1/installation-guide/#installing_container_development_kit_on_red_hat_enterprise_linux

ishu

On Fri, Oct 7, 2016 at 8:15 AM, Ishu Verma [email protected] wrote:

Rhel 7.2

On Oct 7, 2016 1:59 AM, "Eric D. Schabell" [email protected]
wrote:

@ishuverma https://github.com/ishuverma, what Linux OS are you using?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#15 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/APpY8C0_lzRYPhPrSKUGBjP60gU43Ovcks5qxgnSgaJpZM4JmyzL
.

@vap0rtranz
Copy link

Ishu,

Vagrant still thought your default provider was VBox instead of libvirt before the file open error. The installer states that in the screenshot above. I've ran into that problem before with RHEL + libvirt + Vagrant and traced it to 2 sources: the Vagrantfile itself (vm. settings) or your defaults (in ~/.vagrant.d). This installer checks for VBox / libvirt being available but I don't see it forcing a specific provider ("vagrant box add --name $CDK_BOX_VERSION $SRC_DIR/$LINUX_BOX" instead of --provider). So this may just be another untested use case. If I can find time I'll try that fix but you're working now anyways so just wanted to point out possible cause that I'd seen before incase it happens to another RHEL + libvirt user who can test the fix.

Jp

@eschabell
Copy link
Member

Also @ishuverma , can you try the newer version just released and let me know if you encounter problems as the VagrantFile is completely different with many updates now in 2.2.

Thanks.

@eschabell
Copy link
Member

@vap0rtranz , would a change in the vagrant check done in init.sh cover that?

@ishuverma
Copy link
Author

will do

On Sat, Oct 8, 2016 at 4:20 AM, Eric D. Schabell [email protected]
wrote:

Also @ishuverma https://github.com/ishuverma , can you try the newer
version just released and let me know if you encounter problems as the
VagrantFile is completely different with many updates now in 2.2.

Thanks.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#15 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/APpY8L2GPPC6C2VZGOwLSpoO1v2mK8oAks5qx3yUgaJpZM4JmyzL
.

@ishuverma
Copy link
Author

I tried this again on a fresh system and immediately ran into the error (No
usable default provider could be found for your system).

Jp,
I looked into the 2 sources you mentioned:

  • Vagrantfile seems to have options for both VirtualBox and libvirt
  • I couldn't manually add the box (I realize that vagrant plugins are
    missing )

I had to manually follow the steps again to get this working.

ishu

On Sat, Oct 8, 2016 at 4:20 AM, Eric D. Schabell [email protected]
wrote:

Also @ishuverma https://github.com/ishuverma , can you try the newer
version just released and let me know if you encounter problems as the
VagrantFile is completely different with many updates now in 2.2.

Thanks.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#15 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/APpY8L2GPPC6C2VZGOwLSpoO1v2mK8oAks5qx3yUgaJpZM4JmyzL
.

@eschabell
Copy link
Member

@ishuverma , you say the vagrant plugins are missing, but those are installed from the CDK unzip (source provided for plugins)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants