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

Problem creating giso for 7.11.2 #42

Open
g9306 opened this issue Jun 27, 2024 · 3 comments
Open

Problem creating giso for 7.11.2 #42

g9306 opened this issue Jun 27, 2024 · 3 comments

Comments

@g9306
Copy link

g9306 commented Jun 27, 2024

I'm running into an issue where the script is seeing different hashes when comparing the rpm in the repo to the rpm in the output_gisobuild/ directory:

python3 gisobuild.py --iso /home/admin/7.11.2iso/ncs540l-x64-7.11.2.iso --repo /home/admin/7.11.2repo/ --clean
Building GISO...
Gisobuild script failed, see /home/admin/gisobuild/src/output_gisobuild/logs/gisobuild.log for more info: Packages have been found in multiple locations with different hashes:
These RPMs for xr-track-n540x-16z8q2c-7.11.2v1.0.0-1.x86_64 are not identical: /home/admin/gisobuild/src/output_gisobuild/giso/groups/group.main/packages/xr-track-n540x-16z8q2c-7.11.2v1.0.0-1.x86_64.rpm, /home/admin/7.11.2repo/xr-track-n540x-16z8q2c-7.11.2v1.0.0-1.x86_64.rpm
These RPMs for xr-track-n540x-16z4g8q2c-7.11.2v1.0.0-1.x86_64 are not identical: /home/admin/gisobuild/src/output_gisobuild/giso/groups/group.main/packages/xr-track-n540x-16z4g8q2c-7.11.2v1.0.0-1.x86_64.rpm, /home/admin/7.11.2repo/xr-track-n540x-16z4g8q2c-7.11.2v1.0.0-1.x86_64.rpm
These RPMs for xr-track-n540x-12z16g-7.11.2v1.0.0-1.x86_64 are not identical: /home/admin/gisobuild/src/output_gisobuild/giso/groups/group.main/packages/xr-track-n540x-12z16g-7.11.2v1.0.0-1.x86_64.rpm, /home/admin/7.11.2repo/xr-track-n540x-12z16g-7.11.2v1.0.0-1.x86_64.rpm
...

@NeilKetley
Copy link

This error suggests that the xr-track-n540x-16z8q2c-7.11.2v1.0.0-1.x86_64 RPM in the ncs540l-x64-7.11.2.iso ISO and the RPM of the same name and version in /home/admin/7.11.2repo/ are different. Although you don't need the xr-track-n540x-16z8q2c-7.11.2v1.0.0-1.x86_64 RPM in /home/admin/7.11.2repo/ to create your Golden ISO it would be good to understand where the RPM came from any why it is different from the one in the ISO.

@vaiper79
Copy link

The same happened here. The RPM and ISO were both downloaded at the same time from Cisco Software Central. The list of RPMs that are seen with different hashes is a long one. I believe g9306 has just provided a short excerpt. My list was at least long. Once I added the RPMs I need to the pkglist the list of RPMs that fail seemed somewhat shorter.

@NeilKetley
Copy link

Thank you both for raising this. It does appear that the optional RPMs published alongside the ISO are indeed from a separate build of the same codebase. Since signatures on RPMs are intentionally different every time they will have hashes even if all the content is the same.

We will republish the RPMs on Cisco Software Central to be from the same exact build as the ISO.

To work around this issue you can, when building your GISO, remove the optional RPMs which already appear in the ISO from your repo directory, to avoid the conflict with the ones in the ISO. Some optional RPMs are included in the ISO by default. It is only any other ones that you might need to add in when creating your GISO. So the ones you might want to have in your repo are the RPMs for these packages

  • cdp
  • eigrp
  • k9sec
  • license-util
  • lictrl
  • rip
  • telnet
  • tftp

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

3 participants