<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Distributed Worker is not being able to configure correctly in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249537#M2711</link>
    <description>&lt;P&gt;Thank You &lt;A class="mention" href="https://community.hpe.com/u/kgawronski"&gt;@kgawronski&lt;/A&gt;, for this detail explanation.&lt;/P&gt;
&lt;P&gt;I placed API Key generated from worker configuration in &lt;CODE style="background : #f0f1f2;"&gt;worker['worker_key']&lt;/CODE&gt; and in the  &lt;CODE style="background : #f0f1f2;"&gt;worker['apikey']&lt;/CODE&gt; I filled with a fake value but the Error is still same.&lt;BR /&gt;
I think its a certificate issue.&lt;BR /&gt;
I copy the certificate from &lt;CODE style="background : #f0f1f2;"&gt;/etc/morpheus/ssl/certificate.crt&lt;/CODE&gt; from appliance machine and placed it in the &lt;CODE style="background : #f0f1f2;"&gt;/usr/local/share/ca-certificates/&lt;/CODE&gt; in the distributed worker machine.&lt;BR /&gt;
Is it correct?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 15:40:05 GMT</pubDate>
    <dc:creator>Basharat</dc:creator>
    <dc:date>2023-12-22T15:40:05Z</dc:date>
    <item>
      <title>Distributed Worker is not being able to configure correctly</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249536#M2710</link>
      <description>&lt;P&gt;Hi Morpheus Community,&lt;BR /&gt;
I have install Distributed Worker package on a VM and the Hypervisor is EXSI, and my Morpheus is deployed on another VM and that is hosted on different EXSI.&lt;BR /&gt;
I have created Distributed Worker in the Morpheus and I get a API key which I placed in the .rb file of the worker along with the Morpheus Appliance URL and worker URL and reconfigure.&lt;BR /&gt;
I have added a cloud vmware in the Morpheus, when I edit the cloud and add the Distributed Worker it gives me the Following Error.&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;OFFLINE - vcenter host not reachable
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The point where I am confusing is that which IP address I should use in the Proxy Hosts of the Distributed Worker?&lt;BR /&gt;
I used the IP address of Worker and IP addresses of both the EXSI hosts mentioned above, but the error is same.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2023-12-21 152617"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149561i907CCA9C05EE60E7/image-size/large?v=v2&amp;amp;px=2000" role="button" title="c23ce457cb46a5dc2a8a57e3db90e5af996a0e7f.png" alt="c23ce457cb46a5dc2a8a57e3db90e5af996a0e7f.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2023-12-21 152639"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150603i252AB413675561ED/image-size/large?v=v2&amp;amp;px=2000" role="button" title="97205494efe7915bbbb9325de704ddff4f3e8461.png" alt="97205494efe7915bbbb9325de704ddff4f3e8461.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Any one here to guide me Please.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;BR /&gt;
Basharat.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 10:24:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249536#M2710</guid>
      <dc:creator>Basharat</dc:creator>
      <dc:date>2023-12-21T10:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed Worker is not being able to configure correctly</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249537#M2711</link>
      <description>&lt;P&gt;Thank You &lt;A class="mention" href="https://community.hpe.com/u/kgawronski"&gt;@kgawronski&lt;/A&gt;, for this detail explanation.&lt;/P&gt;
&lt;P&gt;I placed API Key generated from worker configuration in &lt;CODE style="background : #f0f1f2;"&gt;worker['worker_key']&lt;/CODE&gt; and in the  &lt;CODE style="background : #f0f1f2;"&gt;worker['apikey']&lt;/CODE&gt; I filled with a fake value but the Error is still same.&lt;BR /&gt;
I think its a certificate issue.&lt;BR /&gt;
I copy the certificate from &lt;CODE style="background : #f0f1f2;"&gt;/etc/morpheus/ssl/certificate.crt&lt;/CODE&gt; from appliance machine and placed it in the &lt;CODE style="background : #f0f1f2;"&gt;/usr/local/share/ca-certificates/&lt;/CODE&gt; in the distributed worker machine.&lt;BR /&gt;
Is it correct?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 15:40:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249537#M2711</guid>
      <dc:creator>Basharat</dc:creator>
      <dc:date>2023-12-22T15:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed Worker is not being able to configure correctly</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249538#M2712</link>
      <description>&lt;P&gt;Hello &lt;A class="mention" href="https://community.hpe.com/u/basharat.hussain"&gt;@basharat.hussain&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;For the certificate comment I made, this is regards to your Morpheus appliance.  The SSL/TLS certificate should be a public/trusted certificate.  That is, either a certificate from a well known certificate authority or an internal certificate that is trusted by VMs internally.  If it is an internal certificate, then you’d need to have the worker VM trust your internal certificate authority (CA) on the OS.&lt;/P&gt;
&lt;P&gt;Here is more information on configuring the Morpheus appliance to use a certificate other than the self-signed that is generated by default:&lt;BR /&gt;
&lt;A href="https://docs.morpheusdata.com/en/latest/getting_started/additional/morpheusSslCerts.html" class="onebox" target="_blank" rel="noopener"&gt;https://docs.morpheusdata.com/en/latest/getting_started/additional/morpheusSslCerts.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Note that the Distributed Worker is also known as the VDI Gateway.  It can serve both purposes, depending on how it is configured.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.morpheusdata.com/en/latest/administration/integrations/workers.html?highlight=distributed%20worker"&gt;Distributed Worker Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.morpheusdata.com/en/latest/getting_started/guides/vdi_guide.html#vdi-gateways"&gt;VDI Gateway Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;worker_url&lt;/CODE&gt; and &lt;CODE style="background : #f0f1f2;"&gt;worker['appliance_url']&lt;/CODE&gt; will be used in both configurations.&lt;/P&gt;
&lt;P&gt;If you are creating a Distributed Worker, &lt;CODE style="background : #f0f1f2;"&gt;worker['worker_key']&lt;/CODE&gt; is required and should be set to the API key provided from creating a Distributed Worker in &lt;CODE style="background : #f0f1f2;"&gt;Administration &amp;gt; Integrations &amp;gt; Distributed Workers&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;If this will also be used for the VDI Gateway, also set &lt;CODE style="background : #f0f1f2;"&gt;worker['apikey']&lt;/CODE&gt; to the API key provided from creating a VDI Gateway in &lt;CODE style="background : #f0f1f2;"&gt;Tools &amp;gt; VDI Pools &amp;gt; VDI Gateways&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://emoji.discourse-cdn.com/twitter/exclamation.png?v=12" title=":exclamation:" class="emoji" alt=":exclamation:" loading="lazy" width="20" height="20" /&gt; If you will not be using it for the VDI Gateway, &lt;STRONG&gt;you still need to enter a value for&lt;/STRONG&gt; &lt;CODE style="background : #f0f1f2;"&gt;worker['apikey']&lt;/CODE&gt;, which in my example, I set &lt;CODE style="background : #f0f1f2;"&gt;'fakekey'&lt;/CODE&gt; as the value does not matter.&lt;/P&gt;
&lt;P&gt;In your example you provided, I think you have the keys switched, you need to be sure to have the &lt;CODE style="background : #f0f1f2;"&gt;worker['worker_key']&lt;/CODE&gt; filled in for the Distributed Worker to function but it is commented out in your example.&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 14:21:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249538#M2712</guid>
      <dc:creator>KoreyG</dc:creator>
      <dc:date>2023-12-22T14:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed Worker is not being able to configure correctly</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249539#M2713</link>
      <description>&lt;P&gt;Hello &lt;A class="mention" href="https://community.hpe.com/u/kgawronski"&gt;@kgawronski&lt;/A&gt; , Thank You, for this Explanation.&lt;BR /&gt;
It cleared lots of my confusions. But  I couldn’t this point  " * Your appliance should have a trusted certificate, either a public certificate or the certificate and it’s chain needs to be added to the distributed worker’s OS trusts location."&lt;BR /&gt;
Which Certificate I don’t understand.&lt;BR /&gt;
Please elaborate this point.&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 17:55:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249539#M2713</guid>
      <dc:creator>Basharat</dc:creator>
      <dc:date>2023-12-21T17:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed Worker is not being able to configure correctly</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249540#M2714</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/kgawronski"&gt;@kgawronski&lt;/A&gt; ,&lt;/P&gt;
&lt;P&gt;This is my Distributed Worker Configuration.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2023-12-22 113042"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149770iCFB9C956EA90F578/image-size/large?v=v2&amp;amp;px=2000" role="button" title="c86bc736a0c25b326de55dcac7bb4c4ec4c8018c.png" alt="c86bc736a0c25b326de55dcac7bb4c4ec4c8018c.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And this is the Configuration in the .rb file of Worker&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2023-12-22 113213"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150182iD7E02ECC4DAF1066/image-size/large?v=v2&amp;amp;px=2000" role="button" title="899dbc558914ee50246ed25c64832b3d676acb18.png" alt="899dbc558914ee50246ed25c64832b3d676acb18.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And this is the Cloud Configuration.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2023-12-22 113402"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149991iC86EC53BB4881E6C/image-size/large?v=v2&amp;amp;px=2000" role="button" title="7c0f6b3e19eb782ff4023dddd664c5a6ea4182e0.png" alt="7c0f6b3e19eb782ff4023dddd664c5a6ea4182e0.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When I edit cloud and add the worker and save it gives me this error.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2023-12-22 114513"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150380i04D9669C2F9D01FF/image-size/large?v=v2&amp;amp;px=2000" role="button" title="35cea17bef357372c9b049a16ae8fd6a3a1870b1.png" alt="35cea17bef357372c9b049a16ae8fd6a3a1870b1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please Guide me where I’m making mistake.&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 06:47:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249540#M2714</guid>
      <dc:creator>Basharat</dc:creator>
      <dc:date>2023-12-22T06:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed Worker is not being able to configure correctly</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249541#M2715</link>
      <description>&lt;P&gt;Hello &lt;A class="mention" href="https://community.hpe.com/u/basharat.hussain"&gt;@basharat.hussain&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Here are some examples from my distributed worker.&lt;/P&gt;
&lt;P&gt;Here is the configuration in Morpheus:&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149815i896BF1CACABB124D/image-size/large?v=v2&amp;amp;px=2000" role="button" title="36bc382489a601084f42d3c15004776a178e3b99.png" alt="36bc382489a601084f42d3c15004776a178e3b99.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;This is the configuration on the distributed worker:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;## Url on which Morpheus Worker will be reachable.
## For more details on configuring worker_url see:
## &lt;A href="https://docs.morpheusdata.com" target="_blank"&gt;https://docs.morpheusdata.com&lt;/A&gt;
worker_url 'https://192.168.1.10'
worker['appliance_url'] = 'https://morpheusaio.example.local'
worker['worker_key'] = '7f84b7f0-xxxx-xxxx-xxxx-2eb735423731'
worker['apikey'] = 'fakekey' #used to make the worker be in worker only mode
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;URL configuration from my cloud:&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149665i90CD51443199167E/image-size/large?v=v2&amp;amp;px=2000" role="button" title="5c2c14d3aa4891de77c1c318bf0c8f04a3a4bd64.png" alt="5c2c14d3aa4891de77c1c318bf0c8f04a3a4bd64.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Some items to note:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Your appliance should have a trusted certificate, either a public certificate or the certificate and it’s chain needs to be added to the distributed worker’s OS trusts location&lt;/LI&gt;
&lt;LI&gt;The &lt;CODE style="background : #f0f1f2;"&gt;worker['apikey']&lt;/CODE&gt; is required in the configuration above, even though it won’t be used, unless you intent to use it for VDI workloads as well&lt;/LI&gt;
&lt;LI&gt;&lt;CODE style="background : #f0f1f2;"&gt;worker_url&lt;/CODE&gt; is the IP address of my worker.  This could have been a DNS name if I had one setup but I am just using the IP for now&lt;/LI&gt;
&lt;LI&gt;For the Proxy Hosts, I have my vCenter URL listed above, which you would want to use the URLs for your vCenter (comma separated).  If it is just IPs, you can use that too.  Essentially, whatever the URL is that you used when setting up your cloud in Morpheus, that is the one you want to use in Proxy Hosts.  The URL is looked up in that list first to see if it is a host that the distributed proxy should be used to communicate with&lt;/LI&gt;
&lt;LI&gt;Of course, make sure DNS is working correctly on the Distributed Worker as well, that it can resolve your vCenter.  Maybe a ping or a curl to the primary page, just to see if you get some data back&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 14:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249541#M2715</guid>
      <dc:creator>KoreyG</dc:creator>
      <dc:date>2023-12-21T14:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed Worker is not being able to configure correctly</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249542#M2716</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/basharat.hussain"&gt;@basharat.hussain&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You’ll want to place them in &lt;CODE style="background : #f0f1f2;"&gt;/etc/morpheus/ssl/trusted_certs&lt;/CODE&gt;, which when you perform a &lt;CODE style="background : #f0f1f2;"&gt;morpheus-worker reconfigure&lt;/CODE&gt; it will add those to the trusts for Morpheus.  You can also see logs by using &lt;CODE style="background : #f0f1f2;"&gt;morpheus-worker tail&lt;/CODE&gt; or &lt;CODE style="background : #f0f1f2;"&gt;tail -f /var/log/morpheus-worker/worker/current&lt;/CODE&gt;, in case you are having SSL issues.&lt;/P&gt;
&lt;P&gt;After making any changes with reconfigures or otherwise, you may need to restart the Morpheus services, specifically nginx if we are talking about SSL certificates.&lt;/P&gt;
&lt;P&gt;Restart Morpheus appliance nginx:&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;morpheus-ctl restart nginx&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Restart Distributed Worker nginx or all services:&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;morpheus-worker restart nginx&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;morpheus-worker restart&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;However, that said, I noticed a slight issue with the self-signed certificates that Morpheus generates and I’m not sure if you’d be able to use the Morpheus certificate as-is.  I plan to add a note internally to resolve it but for now, I’d recommend generating your own self-signed certificate or purchase a public certificate.  You can &lt;A href="https://docs.morpheusdata.com/en/latest/getting_started/additional/morpheusSslCerts.html"&gt;configure it on your Morpheus appliance&lt;/A&gt; and then copy the &lt;CODE style="background : #f0f1f2;"&gt;.crt&lt;/CODE&gt; to your distributed worker.  Adding the &lt;CODE style="background : #f0f1f2;"&gt;.crt&lt;/CODE&gt; to the OS locations is not necessary but might be a good idea, just to keep it consistent if there are other tools you’d use later that are non-Morpheus.&lt;/P&gt;
&lt;P&gt;If you continue to have issues, opening a support case might be best as well, to be able to share some additional details, configs. logs, etc.&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2023 22:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/distributed-worker-is-not-being-able-to-configure-correctly/m-p/7249542#M2716</guid>
      <dc:creator>KoreyG</dc:creator>
      <dc:date>2023-12-23T22:29:11Z</dc:date>
    </item>
  </channel>
</rss>

