Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile vQFX #307

Open
samuelbarata opened this issue Jan 17, 2025 · 6 comments
Open

Can't compile vQFX #307

samuelbarata opened this issue Jan 17, 2025 · 6 comments

Comments

@samuelbarata
Copy link

samuelbarata commented Jan 17, 2025

I tried compiling vQFX but it failed. The problem seems to be while identifying the VR_NAME variable
In the output below we see it fail because it can't create the tag ERROR: invalid tag "vrnetlab/vr-:20.2R1.10": invalid reference format

My files are vqfx-20.2R1.10-re-qemu.qcow2 and vqfx-20.2R1-2019010209-pfe-qemu.qcow.

When I ran the docker command with the image name hard coded and it compiled without any problem

make output:

ls: cannot access '*-re-*.vmdk': No such file or directory
Makefile:23: warning: overriding recipe for target 'docker-pre-build'
../makefile.include:23: warning: ignoring old recipe for target 'docker-pre-build'
Makefile:30: warning: overriding recipe for target 'docker-build-common'
../makefile.include:29: warning: ignoring old recipe for target 'docker-build-common'
for IMAGE in vqfx-20.2R1.10-re-qemu.qcow2; do \
        echo "Making $IMAGE"; \
        make IMAGE=$IMAGE docker-build; \
        make IMAGE=$IMAGE docker-clean-build; \
done
Making vqfx-20.2R1.10-re-qemu.qcow2
make[1]: Entering directory '/home/samuelbarata/vrnetlab/vqfx'
ls: cannot access '*-re-*.vmdk': No such file or directory
Makefile:23: warning: overriding recipe for target 'docker-pre-build'
../makefile.include:23: warning: ignoring old recipe for target 'docker-pre-build'
Makefile:30: warning: overriding recipe for target 'docker-build-common'
../makefile.include:29: warning: ignoring old recipe for target 'docker-build-common'
--> Cleaning docker build context
rm -f docker/*.qcow2* docker/*.tgz* docker/*.vmdk* docker/*.iso docker/*.xml docker/*.bin
rm -f docker/healthcheck.py docker/vrnetlab.py
echo "pfe     vqfx-20.2R1-2019010209-pfe-qemu.qcow"
pfe     vqfx-20.2R1-2019010209-pfe-qemu.qcow
cp vqfx*-pfe*.qcow* docker/
echo "image   vqfx-20.2R1.10-re-qemu.qcow2"
image   vqfx-20.2R1.10-re-qemu.qcow2
echo "version 20.2R1.10"
version 20.2R1.10
Building docker image using vqfx-20.2R1.10-re-qemu.qcow2 as vrnetlab/vr-:20.2R1.10
cp ../common/* docker/
make IMAGE=$IMAGE docker-build-image-copy
make[2]: Entering directory '/home/samuelbarata/vrnetlab/vqfx'
ls: cannot access '*-re-*.vmdk': No such file or directory
Makefile:23: warning: overriding recipe for target 'docker-pre-build'
../makefile.include:23: warning: ignoring old recipe for target 'docker-pre-build'
Makefile:30: warning: overriding recipe for target 'docker-build-common'
../makefile.include:29: warning: ignoring old recipe for target 'docker-build-common'
cp vqfx-20.2R1.10-re-qemu.qcow2* docker/
make[2]: Leaving directory '/home/samuelbarata/vrnetlab/vqfx'
(cd docker; docker build --build-arg http_proxy= --build-arg https_proxy= --build-arg RE_IMAGE=vqfx-20.2R1.10-re-qemu.qcow2 --build-arg PFE_IMAGE=vqfx-20.2R1-2019010209-pfe-qemu.qcow -t vrnetlab/vr-:20.2R1.10 .)
[+] Building 0.0s (0/0)                                                                                  docker:default
ERROR: invalid tag "vrnetlab/vr-:20.2R1.10": invalid reference format
make[1]: *** [Makefile:35: docker-build-common] Error 1
make[1]: Leaving directory '/home/samuelbarata/vrnetlab/vqfx'
make[1]: Entering directory '/home/samuelbarata/vrnetlab/vqfx'
ls: cannot access '*-re-*.vmdk': No such file or directory
Makefile:23: warning: overriding recipe for target 'docker-pre-build'
../makefile.include:23: warning: ignoring old recipe for target 'docker-pre-build'
Makefile:30: warning: overriding recipe for target 'docker-build-common'
../makefile.include:29: warning: ignoring old recipe for target 'docker-build-common'
--> Cleaning docker build context
rm -f docker/*.qcow2* docker/*.tgz* docker/*.vmdk* docker/*.iso docker/*.xml docker/*.bin
rm -f docker/healthcheck.py docker/vrnetlab.py
make[1]: Leaving directory '/home/samuelbarata/vrnetlab/vqfx'
@hellt
Copy link
Owner

hellt commented Jan 17, 2025

I just merged a fix contributed in here #289

try re-pulling the master branch and retry the image build process

@samuelbarata
Copy link
Author

samuelbarata commented Jan 17, 2025

@hellt It now identifies it, but doesn't make it lowercase
ERROR: invalid tag "vrnetlab/vr-vQFX:20.2R1.10": repository name must be lowercase

@hellt
Copy link
Owner

hellt commented Jan 17, 2025

@samuelbarata try again, please. I lowerecased it

@samuelbarata
Copy link
Author

It compiles but does not run, I am not sure if it is from my vqfx image or from Venetian
(Juniper's website only has version 15, I downloaded the 20 from another source)

docker logs -f leaf4

Traceback (most recent call last):
  File "/launch.py", line 10, in <module>
    import vrnetlab
  File "/vrnetlab.py", line 860, in <module>
    def cidr_to_ddn(prefix: str) -> list[str]:
TypeError: 'type' object is not subscriptable

@hellt
Copy link
Owner

hellt commented Jan 17, 2025

hah, yeah, hold on :D vqfx had not seen much love lately.

Pushed the fix (may not be the last one, so bear with me)

@samuelbarata
Copy link
Author

It compiled and started
but I can't login with admin admin@123

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

No branches or pull requests

2 participants