[uyuni-users] Check salt-ssh clients status through command line ?
Hi all , I have noticed that Uyuni will silently fail to get the package information from a salt-ssh registered client if it get for example a ssh 'permission denied'. As far as I can see, the only way to detect such failures is to check the taskomatic logs and look for those messages: 2020-09-11 05:07:02,597 [DefaultQuartzScheduler_Worker-13] WARN com.suse.manager.webui.services.impl.SaltService - JsonParsingError({"_error":"Failed to return clean data","stderr":"root@my_server: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n","stdout":"","retcode":255,"id":"my_server","fun":"state.apply","jid":"20200911050701681150","_stamp":"2020-09-11T05:07:02.592894"}, No salt ssh return value, return code: 255) My idea is then to monitor the state of the VMs by executing the command "salt-ssh my_server test.ping", however I am unable to find the SSH private key files used by Uyuni. Somebody has an idea about where it could be find ? Or perhaps a better way to monitor those failures ? Regards, Philippe. Philippe Bidault | Unix Engineer Getronics ________________________________ M. 34617301667 | E. Philippe.Bidault@Getronics.com | W. www.getronics.com [cid:M17520GetronicsConnectingPossibilitiesE-Sig425x204_e1803ca0-99a5-4a65-abd8-074c86bf11aa.png]http://www.getronics.com/ http://www.linkedin.com/company/2077785[cid:LinkedIn_4aeb630a-f385-4f22-927e-31323d2554b8.png]https://www.linkedin.com/company/2077785 [cid:Twitter_6c9cce61-b2e3-49d4-991c-e799d031f1ae.png] https://twitter.com/Getronics http://twitter.com/Getronics [cid:Youtube_5150f807-4ba8-46a3-bbbf-038ccfdc2793.png] https://www.youtube.com/user/getronicsonline?feature=results_main http://www.youtube.com/user/getronicsonline?feature=results_main sign-info http://www.getronics.com/knowledge-share/news-and-events/ovum.php#sthash.cbK... Getronics CMC Service Desk Iberia S.L - VAT No:S.L.: B66686262. Registered Office - Getronics CMC Service Desk Iberia S.L, C/Rosselloi, Porcel, 21 planta 11, 08016 Barcelona, Spain. The information transmitted is intended only for use by the addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material. Thank you. Legal disclaimer: http://www.getronics.com/legal/
On 11/09/2020 11.25, Bidault, Philippe wrote:
I have noticed that Uyuni will silently fail to get the package information from a salt-ssh registered client if it get for example a ssh ‘permission denied’.
As far as I can see, the only way to detect such failures is to check the taskomatic logs and look for those messages:
2020-09-11 05:07:02,597 [DefaultQuartzScheduler_Worker-13] WARN com.suse.manager.webui.services.impl.SaltService - JsonParsingError({"_error":"Failed to return clean data","stderr":"root@my_server: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n","stdout":"","retcode":255,"id":"my_server","fun":"state.apply","jid":"20200911050701681150","_stamp":"2020-09-11T05:07:02.592894"}, No salt ssh return value, return code: 255)
I would consider this a bug and would encourage you to open a GitHub issue with reproduction instructions - whatever Action triggered this should fail in a visible way in the UI FMPOV. HTH Regards, -- Silvio Moioli SUSE Manager Development Team -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
Thanks. Done !
https://github.com/uyuni-project/uyuni/issues/2595
Philippe Bidault | Unix Engineer
Getronics
M. 34617301667 | E. Philippe.Bidault@Getronics.com | W. www.getronics.com
Getronics CMC Service Desk Iberia S.L -? VAT No:S.L.: B66686262.
Registered Office - Getronics CMC Service Desk Iberia S.L, C/Rosselloi, Porcel, 21 planta 11, 08016 Barcelona, Spain.
?
The information transmitted is intended only for use by the addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material. ?Thank you.
Legal disclaimer: http://www.getronics.com/legal/
-----Original Message-----
From: Silvio Moioli
I have noticed that Uyuni will silently fail to get the package information from a salt-ssh registered client if it get for example a ssh 'permission denied'.
As far as I can see, the only way to detect such failures is to check the taskomatic logs and look for those messages:
2020-09-11 05:07:02,597 [DefaultQuartzScheduler_Worker-13] WARN com.suse.manager.webui.services.impl.SaltService - JsonParsingError({"_error":"Failed to return clean data","stderr":"root@my_server: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n","stdout":"","retcode":255,"id":"my_server","fun":"state.apply","jid":"20200911050701681150","_stamp":"2020-09-11T05:07:02.592894"}, No salt ssh return value, return code: 255)
I would consider this a bug and would encourage you to open a GitHub issue with reproduction instructions - whatever Action triggered this should fail in a visible way in the UI FMPOV. HTH Regards, -- Silvio Moioli SUSE Manager Development Team -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
participants (2)
-
Bidault, Philippe
-
Silvio Moioli