Closed odiezg closed 1 month ago
Based on the information you provided, Puppet was not installed at all. The error most likely happens during the cloud-init phase.
Could you provide the cloud-init logs available under : /var/log/cloud-init-output.log
Dera Felix, many thanks for your email, I attach the log files from the mgmt1 server and the main.tf config file I have used to install it.
I see this error:
Created symlink /etc/systemd/system/multi-user.target.wants/puppetserver.service → /usr/lib/systemd/system/puppetserver.service. ERROR: Error installing puppet_forge:
gem install minitar -v 0.12
and then running
the current command again*It seems as if there is an issue with Ruby installation. I could try to install it directly, but I am not sure how to avoid this in the future installations and also what else do I need to do if I install it manually to launch the rest of the installation process.
sudo yum install ruby //install Ruby and the gem command. gem install minitar -v 0.12 //install minitar gem install puppet_forge //reinstall puppet
Please let me know if you need any information.
Many thanks in advance, Oscar
On Mon, 19 Aug 2024 at 15:44, Félix-Antoine Fortin @.***> wrote:
Based on the information you provided, Puppet was not installed at all. The error most likely happens during the cloud-init phase.
Could you provide the cloud-init logs available under : /var/log/cloud-init-output.log
— Reply to this email directly, view it on GitHub https://github.com/ComputeCanada/magic_castle/issues/317#issuecomment-2296616868, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2TI5EQ3FLNRJUMHD3UPZJDZSHZFFAVCNFSM6AAAAABMKPTAAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGYYTMOBWHA . You are receiving this because you authored the thread.Message ID: @.***>
Hi Oscar,
I could reproduce the error you quoted. While unfortunate, it is not fatal to the installation and configuration of the Puppet server. Could you provide the rest of the cloud-init log from mgmt1? Ideally as a gist.github.com to help with formatting.
I also realized that I have incorrectly read your first message.
sudo
because /opt/puppetlabs/puppet/bin
is not included in sudo PATH, not because Puppet is not installed. Given you were able to run the command as the user centos
, we will assume Puppet was properly installed.login1
with : journalctl -u puppet
. The error you mention happens at the beginning of the agent run because the server is yet up, but eventually once the server is configured, the agent can connect. There is typically no reason to run the Puppet agent manually via the command-line in Magic Castle.Dear Feliz, many thanks for your swift response. I have included the files you requested here: https://gist.github.com/odiezg/edf627a63d28cc52de6bd44b4702a256
Regarding the installation with puppet, you are right, it is regarding the PATH. But the main issue is the the installation is not finished properly and I cannot not connect to the cluster, especially jupyter.
Many thanks again for your help and please let me know if you need anything else.
Regards, Oscar
On Tue, 20 Aug 2024 at 17:37, Félix-Antoine Fortin @.***> wrote:
Hi Oscar,
I could reproduce the error you quoted. While unfortunate, it is not fatal to the installation and configuration of the Puppet server. Could you provide the rest of the cloud-init log from mgmt1? Ideally as a gist.github.com to help with formatting.
I also realized that I have incorrectly read your first message.
- puppet command is not found with sudo because /opt/puppetlabs/puppet/bin is not included in sudo PATH, not because Puppet is not installed. Given you were able to run the command as the user centos, we will assume Puppet was properly installed.
- Have you look at the puppet log on login1 with : journalctl -u puppet. The error you mention happens at the beginning of the agent run because the server is yet up, but eventually once the server is configured, the agent can connect. There is typically no reason to run the Puppet agent manually via the command-line in Magic Castle.
— Reply to this email directly, view it on GitHub https://github.com/ComputeCanada/magic_castle/issues/317#issuecomment-2299157306, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2TI5EVBIYPS7ZZHAAZUJUTZSNPCNAVCNFSM6AAAAABMKPTAAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJZGE2TOMZQGY . You are receiving this because you authored the thread.Message ID: @.***>
Environment
Issue Description
When deploying Magic Castle on Azure with AlmaLinux 9.4, Puppet fails to configure services correctly. Attempts to manually start Puppet agent tests result in connection failures to the Puppet master server and command not found errors.
Symptoms
centos@login1 ~]$ sudo puppet agent --test sudo: puppet: command not found
markdown Copy code
Configuration File Snippet