Closed krakazyabra closed 2 months ago
There is actually no need to manually create the bootstrap repository. When spacewalk-repo-sync
finishes syncing the common channels the bootstrap repository will also be created.
Neither is it necessary to downgrade or replace any packages for Uyuni to work (as far as I know).
I would recommend
spacewalk-remove-channel -a ubuntu-22.04-pool-amd64-uyuni
spacewalk-common-channels ubuntu-2204-pool-amd64-uyuni ubuntu-2204-amd64-main-uyuni ubuntu-2204-amd64-main-updates-uyuni ubuntu-2204-amd64-main-security-uyuni ubuntu-2204-amd64-uyuni-client
spacewalk-repo-sync -p ubuntu-2204-pool-amd64-uyuni
(this also prints the relevant output - bootstrap repository creation included - on the console)After that, please check /srv/www/htdocs/pub/repositories/22/4/bootstrap
again.
If the bootstrap repository problem persist, please provide the following logs:
/var/log/rhn/reposync.log
/var/log/rhn/mgr-create-bootstrap-repo/mgr-create-bootstrap-repo.log
Hi everyone! I've been recently looking into issues I had on my production Uyuni server. To remove any doubts about the configuration I had there because I didn't make everything from zero there, I've recently re-made one in a laboratory environment.
So I've done the following:
1) Clean installation of Uyuni [2024.02]
2) Created and synced the channels for Ubuntu using the following command:
spacewalk-common-channels ubuuni ubuntu-2204-amd64-main-uyuni ubuntu-2204-amd64-main-updates-uyuni ubuntu-2204-amd64-main-security-uyuni ubuntu-2204-amd64-uyuni-client
The sync seems to have gone successfully, since I see all the packages in the Uyuni webUI.
P.S. The command, if I'm not mistaken, should also try to generate its bootstrap automatically
3) Re-try to generate the bootstrap using the following command:
mgr-create-bootstrap-repo
The command seems to have also finished successfully
Result :
Uyuni01:/ # mgr-create-bootstrap-repo
1. ubuntu-22.04-amd64-uyuni
Enter a number of a product label: 1
Creating bootstrap repo for ubuntu-22.04-amd64-uyuni
copy 'venv-salt-minion-3006.0-24.2.uyuni.amd64-deb'
Skipping inclusion of 'venv-salt-minion' '3006.0-24.2.uyuni' in 'bootstrap|main|amd64', as this version already exists.
Exporting indices...
Uyuni01:/ #
4) I then tried to search for the bootstrap.sh file to put on the VMs that should be located at /srv/www/htdocs/pub/bootstrap/
but the folder is empty
Q1 Am I doing something wrong? Q2 What should I do to get the bootstrap to install venv-salt-minion on the clients I would like to connect to Uyuni?
Any feedback is more than welcome. Have a great day !
...
QUESTIONS
Q1 Am I doing something wrong? Q2 What should I do to get the bootstrap to install venv-salt-minion on the clients I would like to connect to Uyuni?
CONCLUSION
Any feedback is more than welcome. Have a great day !
I troubleshooted the problem further and solved it.
I just needed to use the following command :
mgr-bootstrap --script=bootstrap-<EDITED_NAME>.sh
I'm gradually learning more and more Please do not hesitate to correct me if I'm doing anything wrong!
After doing that, I began to also take a look into Virtual Host Manager in Uyuni, I'm trying to add two ESXi hosts to Uyuni. I can't wait to see if I'll be successful at it! 😄
~ Rei
Hi @Teamspeak5!
Congratulations on staying with your problem and solving it : ) Though I guess in the future it would be better to open your own issue instead of writing in someone else's.
Some remarks on your problem:
spacewalk-common-channels
does indead create the bootstrap repository. You can see that after mgr-create-bootstrap-repo
the log states (emphasis mine)Skipping inclusion of 'venv-salt-minion' '3006.0-24.2.uyuni' in 'bootstrap|main|amd64', as this version already exists.
spacewalk-common-channels
) .Happy learning : )
My bad, @cFabij. I hope this didn't seem rude. I've never created an issue on GitHub, but I'll follow your advice to divide discussions for their pertinent purposes. I wrote here because I have been trying to ask for help several times on the Uyuni IRC chat for so long. It has only happened once in four/five times (different problems) that I have received a reply or feedback from the people present and active.
Thanks so much for your feedback. I see that GitHub is more active. Forgive me again, maybe for the offhand behavior, but I am also new to GitHub.
Have a great day everyone ❤️
@krakazyabra is there anything else we can do? if no, can you please close the issue? Thanks
Problem description
This error connected with issues marked as resolved:
Behaviour is the same:
spacewalk-common-channels ubuntu-2204-pool-amd64-uyuni ubuntu-2204-amd64-main-uyuni ubuntu-2204-amd64-main-updates-uyuni ubuntu-2204-amd64-main-security-uyuni
Creating bootstrap repo for ubuntu-22.04-amd64-uyuni Error: Too few arguments for command 'includedeb'! Syntax: reprepro [--delete] includedeb <.deb-file>
There have been errors!
Error creating bootstrap repo.
Uyuni version
Uyuni proxy version (if used)
No response
Useful logs
No response
Additional information
At first I've checked
reprepro
versionIt was from Main Repo
I downgraded it to Uyuni's version
restart server, check again
After I took upstream mgr_bootstrap_data.py from github and replace my /usr/share/susemanager/mgr_bootstrap_data.py Nothing changed.
Also I noticed that in /srv/www/htdocs/pub/repositories/ appeared new directory:
For it's strange that bootstrap repo has extension
.tmp