oracle / vagrant-projects

Vagrant projects for Oracle products and other examples
Universal Permissive License v1.0
946 stars 477 forks source link

The box 'oraclelinux/7' could not be found for the OracleRAC project #417

Closed pguerin3 closed 2 years ago

pguerin3 commented 2 years ago

Describe the issue When I start Vagrant in the Oracle Linux 7 project (~/vagrant-projects/OracleLinux/7) there are no problems :

me@192-168-1-103 ~/v/O/7 (main)> vagrant up --provider=virtualbox
==> vagrant: Loading environment from .env files
==> vagrant: Getting Proxy Configuration from Host...
Bringing machine 'ol7-vagrant' up with 'virtualbox' provider...
==> ol7-vagrant: Box 'oraclelinux/7' could not be found. Attempting to find and install...
    ol7-vagrant: Box Provider: virtualbox
    ol7-vagrant: Box Version: >= 0
==> ol7-vagrant: Loading metadata for box 'https://oracle.github.io/vagrant-projects/boxes/oraclelinux/7.json'
    ol7-vagrant: URL: https://oracle.github.io/vagrant-projects/boxes/oraclelinux/7.json
==> ol7-vagrant: Adding box 'oraclelinux/7' (v7.9.324) for provider: virtualbox
    ol7-vagrant: Downloading: https://yum.oracle.com/boxes/oraclelinux/ol7/OL7U9_x86_64-vagrant-virtualbox-b324.box
    ol7-vagrant: Calculating and comparing box checksum...
==> ol7-vagrant: Successfully added box 'oraclelinux/7' (v7.9.324) for 'virtualbox'!
==> ol7-vagrant: Importing base box 'oraclelinux/7'...

And the import continues, and completes successfully.

Do the same thing for the Oracle RAC project (~/vagrant-projects/OracleRAC), and I get the error "The box 'oraclelinux/7' could not be found":

me@192-168-1-103 ~/v/OracleRAC (main)> vagrant up --provider=virtualbox

│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
 Oracle RAC (Real Application Cluster) Vagrant box for KVM/libVirt or VirtualBox  
 Copyright (c) 1982-2020 Oracle and/or its affiliates                             
----------------------------------------------------------------------------------
 Author: Ruggero Citton <ruggero.citton@oracle.com>                               
         RAC Pack, Cloud Innovation and Solution Engineering Team                 
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│

--------------------
Detected virtualbox
--------------------
getting Proxy Configuration from Host...
Bringing machine 'node2' up with 'virtualbox' provider...
Bringing machine 'node1' up with 'virtualbox' provider...
==> node2: Box 'oraclelinux/7' could not be found. Attempting to find and install...
    node2: Box Provider: virtualbox
    node2: Box Version: >= 0
The box 'oraclelinux/7' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Vagrant Cloud, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://vagrantcloud.com/oraclelinux/7"]
Error: The requested URL returned error: 404

Environment:

pguerin3 commented 2 years ago

The front README of the project mentions this:

Ensure you have the correct metadata URL in your Vagrantfile:
BOX_URL = "https://oracle.github.io/vagrant-projects/boxes"

Remove your local copy of the box -- E.g. for oraclelinux/7:
vagrant box remove --all oraclelinux/7

So I have tried various combinations of this in the Vagrantfile, but the error continues.

rcitton commented 2 years ago

Two workarounds:

  1. issue : vagrant box add --provider virtualbox https://oracle.github.io/vagrant-projects/boxes/oraclelinux/7.json then as on as the "oraclelinux/7" has been imported you can proceed with "vagrant up" command to setup OracleRAC
  2. Uncomment (this looks a typo) line 391 on Vagrantfile " config.vm.box_url = var_url"
pguerin3 commented 2 years ago

Workaround#1 has worked. Thank you.

Martin-Maes commented 4 months ago

Had the same problem with OL8. I used workaround #2 which worked fine as well. Thanks.