[Spacewalk-list] [External] Re: Need to know about spacewalk internal architecture and why spacewalk is taking time to deploy scheduled actions

P.Cookson at bham.ac.uk P.Cookson at bham.ac.uk
Mon Apr 8 12:29:22 UTC 2019


No problem, well done Debayan.

Regards
Phil

From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> On Behalf Of debayan.mukherjee at accenture.com
Sent: 08 April 2019 11:37
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] [External] Re: Need to know about spacewalk internal architecture and why spacewalk is taking time to deploy scheduled actions

Hi Phil,

Thanks for all your help!
I have fixed it and it worked well.

Thanks!

Regards,
Debayan Mukherjee

From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com> <spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>> On Behalf Of P.Cookson at bham.ac.uk<mailto:P.Cookson at bham.ac.uk>
Sent: Wednesday, April 3, 2019 6:23 PM
To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
Subject: Re: [Spacewalk-list] [External] Re: Need to know about spacewalk internal architecture and why spacewalk is taking time to deploy scheduled actions

Debayan

OSAD and the related packages come from the spacewalk repo, not the RHEL repo. The details below may help:

By default, the rhnsd daemon on a client system connects to the Spacewalk server every four hours (see /etc/sysconfig/rhn/rhnsd) and performs any updates or actions that have been scheduled. If you install the OSA daemon, you can apply updates and actions to client systems immediately from the Spacewalk server.

osa-dispatcher
Server-side service written in Python that determines when an osad client instance needs to be pinged or run rhn_check and sends a message telling them to do so.

Open Source Architecture Daemon (OSAD)
Client-side service written in Python that responds to pings and runs rhn_check when told to by osa-dispatcher.


Install OSAD and related RHN/Spacewalk packages
# yum -y install osad rhncfg rhncfg-actions rhncfg-client

Spacewalk Actions Control - Enable Scheduled Actions
# rhn-actions-control --enable-all

Start OSAD
# systemctl start osad.service

Enable OSAD
# systemctl enable osad.service

OSAD Log File
/var/log/osad

See official documentation, at the following link, for more details:

https://github.com/spacewalkproject/spacewalk/wiki/OSADSetup<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_spacewalkproject_spacewalk_wiki_OSADSetup&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=-TL-kq4qG5iFUVvfvFQGfpaXSDo1naG2nprNhjTTL20&s=SC8K1YYIIGMyipQ65DVZd3D0YYYuVu4CKVUZjGBvY38&e=>


Regards
Phil

From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com> <spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>> On Behalf Of debayan.mukherjee at accenture.com<mailto:debayan.mukherjee at accenture.com>
Sent: 03 April 2019 12:32
To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
Cc: Lingayya, Shanker <shanker.lingayya at accenture.com<mailto:shanker.lingayya at accenture.com>>
Subject: Re: [Spacewalk-list] [External] Re: Need to know about spacewalk internal architecture and why spacewalk is taking time to deploy scheduled actions

Hi James and others,


  1.  Tried installing OSAD, but it seems OSAD package is not present in RHEL 7.4 repo. (it has been discontinued).
  2.  Tried decreasing the value in /etc/sysconfig/rhn/rhnsd and it is not permitted to go below 60minutes. (https://access.redhat.com/solutions/92343<https://urldefense.proofpoint.com/v2/url?u=https-3A__access.redhat.com_solutions_92343&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=-TL-kq4qG5iFUVvfvFQGfpaXSDo1naG2nprNhjTTL20&s=KQjrGE0W2C0RI_UeoEGNrzmhN6u-nhLRKsYYrUQGHW0&e=>).

Is there any other solution to decrease the value (for syncing the scheduled actions in spacewalk)?


Thanks!

Regards,
Debayan Mukherjee

From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com> <spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>> On Behalf Of James Hibberd
Sent: Tuesday, April 2, 2019 8:27 PM
To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
Cc: Lingayya, Shanker <shanker.lingayya at accenture.com<mailto:shanker.lingayya at accenture.com>>
Subject: [External] Re: [Spacewalk-list] Need to know about spacewalk internal architecture and why spacewalk is taking time to deploy scheduled actions

This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.
________________________________

For Question 3 – I think this might be what you are looking for

On the client side you can change the check in times – Standard config is 240 minutes , so every 2 hours the client will check into the server.

On the clients change the value inside

/etc/syscon/rhn/rhnsd

To something like 15 minutes, I have my clients checking in every 40 minutes instead of the 240 minutes


Hopefully that helps

Thanks

James Hibberd​

 •

Proact IT UK


Technical Support Consultant



m: +447 808 611 011<tel:+447%20808%20611%20011>


jhibberd at proact.co.uk<mailto:jhibberd at proact.co.uk>

  |

www.proact.eu<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.proact.eu_&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=APnqXKPsyWjgg1vpBLNUul_7Na6qQMvIgpFNkFJdMsI&s=eliLRYYiLKuWVkI2EbKEAIVKF3HmB3sf3sTFzGd_Xuo&e=>



Grayson House • Venture Way • Chesterfield • S41 8NE • United Kingdom




‑ Delivering Business Agility ‑


[SIEM PoC]<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.proact.eu_en_wp-2Dcontent_uploads_sites_2_2019_03_SIEM-2DPOC-2DA5-2Dflyer-5Fonline-2D1.pdf-3Futm-5Fsource-3Demail-2520signature-26utm-5Fmedium-3Dbanner-26utm-5Fterm-3D-26utm-5Fcontent-3D-26utm-5Fcampaign-3Duk-5Fsiem-2Dpoc&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=APnqXKPsyWjgg1vpBLNUul_7Na6qQMvIgpFNkFJdMsI&s=qJLaB8mmZMwn5aILcWhLcpI0Mx2Ahl15v_EKOXxeR1o&e=>

This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Proact IT UK. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. We do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of email transmission. Proact processes personal information you may provide via email or otherwise in accordance with its privacy notice<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.proact.eu_en_privacy-2Dpolicy&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=APnqXKPsyWjgg1vpBLNUul_7Na6qQMvIgpFNkFJdMsI&s=_faPvv3vzM5ffz_kqVSpOM7czjn9Y9BNhYdy_vT-fjQ&e=>.




From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Dennis Pittman
Sent: 02 April 2019 15:45
To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
Cc: Lingayya, Shanker <shanker.lingayya at accenture.com<mailto:shanker.lingayya at accenture.com>>
Subject: Re: [Spacewalk-list] Need to know about spacewalk internal architecture and why spacewalk is taking time to deploy scheduled actions

Response in-line

Hi,

Hope you all are doing good.

I have recently installed spacewalk on RHEL 7.6 as server configuration management tool. I have few doubts as follows:


  1.  Could you please let me know how Spacewalk pushes packages to the clients?
a.       Does Spacewalk store the packages on the Spacewalk server and push these packages to Client?  The default is to setup a software repository  so that packages can be pulled from the spacewalk server.

OR
b.       Does Spacewalk send the command to the client servers and client servers will then reach out to internet and download the packages?  This depends on your setup, you can enable OSAD<https://urldefense.proofpoint.com/v2/url?u=https-3A__eur03.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fwww.google.com-252Furl-253Fsa-253Dt-2526rct-253Dj-2526q-253D-2526esrc-253Ds-2526source-253Dweb-2526cd-253D1-2526cad-253Drja-2526uact-253D8-2526ved-253D2ahUKEwi-2D2JLN0LHhAhUu2FkKHTiQAbIQFjAAegQIBBAB-2526url-253Dhttps-25253A-25252F-25252Fgithub.com-25252Fspacewalkproject-25252Fspacewalk-25252Fwiki-25252FOsadHowTo-2526usg-253DAOvVaw3nli6m6b8TG4JwyRQeymfF-26data-3D02-257C01-257C-257Cf5f103c625ec474b160208d6b779f9a8-257Cc047d5c1d2a6484dae6eec2bce85d023-257C0-257C0-257C636898131854267343-26sdata-3D-252BVePq5h6iAwFpwrrTFUzPHX7pYNpRdG4o8wg3kh0uo4-253D-26reserved-3D0&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=APnqXKPsyWjgg1vpBLNUul_7Na6qQMvIgpFNkFJdMsI&s=56DmmPhFlDLHSnzdFA1NFr7pFXkonyXEBB7ODYJcN1I&e=> to change how and how often the spacewalk server contacts the clients and perform various management operations (to include patch management, configuration, and etc.).


  1.  Does Spacewalk support Primary/secondary site (Microsoft SCCM Architecture) for package redistribution to clients. i.e. If I have a remote Datacenter, instead of pushing packages to individual clients, can we have a Spacewalk secondary site that will get the package from master and redistribute the packages to clients locally?  Yes, you can configure multiple spacewalk servers (i.e. you can have a single master (primary) spacewalk server with several spacewalk proxies that reach out to several different client environments).  A good reference resource https://docs.oracle.com/cd/E92593_01/E85211/html/swk24-arch.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.oracle.com_cd_E92593-5F01_E85211_html_swk24-2Darch.html&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=APnqXKPsyWjgg1vpBLNUul_7Na6qQMvIgpFNkFJdMsI&s=RBmlnmoXZG6OUw-7QpAX_y66PP0rQUbS4aGE4CGUBLo&e=>



  1.  I see that scheduled activities (like reboot, patching, etc) are taking a lot of time (1.30 hours delay) and crosses the scheduled window. However, I see that as a workaround when I run “rhn_check” command on the client manually, deployment status on Spacewalk changes to succeeded. .  That’s because of how your initial setup is configured, if you want faster response to queued jobs then look into option (1.b), otherwise check taskomatic to make certain that you don’t have queued jobs causing delays and setup a cron on the client to complete queued jobs (from the spacewalk server).  https://www.redhat.com/archives/spacewalk-list/2015-January/msg00173.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_archives_spacewalk-2Dlist_2015-2DJanuary_msg00173.html&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=APnqXKPsyWjgg1vpBLNUul_7Na6qQMvIgpFNkFJdMsI&s=q1AWCr5nPvdecuH01c7miEe_9F-lbvDb6Vpcy7rvHmg&e=>




Thanks!

Regards,
Debayan Mukherjee


________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy<https://urldefense.proofpoint.com/v2/url?u=https-3A__eur03.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fwww.accenture.com-252Fus-2Den-252Fprivacy-2Dpolicy-26data-3D02-257C01-257C-257Cf5f103c625ec474b160208d6b779f9a8-257Cc047d5c1d2a6484dae6eec2bce85d023-257C0-257C0-257C636898131854277351-26sdata-3Dg-252F3waWXYgMNK-252FXnwvbu6pPykaWymG3Q3dqD9rDkwbBA-253D-26reserved-3D0&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=APnqXKPsyWjgg1vpBLNUul_7Na6qQMvIgpFNkFJdMsI&s=3NY7QHmzQOdANhfqzTFAHr3BCuotkv2V6ZsOpEhRCvg&e=>.
______________________________________________________________________________________

www.accenture.com<https://urldefense.proofpoint.com/v2/url?u=https-3A__eur03.safelinks.protection.outlook.com_-3Furl-3Dhttp-253A-252F-252Fwww.accenture.com-26data-3D02-257C01-257C-257Cf5f103c625ec474b160208d6b779f9a8-257Cc047d5c1d2a6484dae6eec2bce85d023-257C0-257C0-257C636898131854277351-26sdata-3Dq4qZU6XXAkexp4X1FzMaDh3y0UdjOvWa1-252B-252Fp45nXWZ8-253D-26reserved-3D0&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=kjYgKXRvPKJ-1Spwl9FaKBV5WMz2rUyGBr-Fiqe550E&m=APnqXKPsyWjgg1vpBLNUul_7Na6qQMvIgpFNkFJdMsI&s=PmssTWwPNDwBtW5NB8-yVSM0wn7dSIETuJ_CYJXO7Zo&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190408/455af111/attachment.htm>


More information about the Spacewalk-list mailing list