<?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: GCP Source repositories with Ansible in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/gcp-source-repositories-with-ansible/m-p/7251053#M4227</link>
    <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/borisayala"&gt;@BorisAyala&lt;/A&gt; ,&lt;/P&gt;
&lt;P&gt;Through testing it appears the JGIT connector does not honor the required 2022 port that Google repositories require for SSH connectivity.&lt;/P&gt;
&lt;P&gt;As for the HTTPS connectivity, the method Google uses seems very non-standard establishing a machine cookie, and seems wider scoped than intended and would not be best practice.&lt;/P&gt;
&lt;P&gt;An idea could be put in to support non-standard SSH ports, and may be able to resolve your connectivity issue.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 18:56:40 GMT</pubDate>
    <dc:creator>cbunge</dc:creator>
    <dc:date>2023-06-14T18:56:40Z</dc:date>
    <item>
      <title>GCP Source repositories with Ansible</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/gcp-source-repositories-with-ansible/m-p/7251052#M4226</link>
      <description>&lt;P&gt;Hi guys, I would like to know if it is possible to use GCP source repositories in my Morpheus Ansible integration. I already configured the repository in GCP to test, but I am getting a couple of errors when trying to do the integration. The procedure I am following is pretty straightforward:&lt;/P&gt;
&lt;P&gt;GCP Source Repository&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create the repository.&lt;/LI&gt;
&lt;LI&gt;adding ssh key in the GCP repo&lt;/LI&gt;
&lt;LI&gt;cloning the repo&lt;/LI&gt;
&lt;LI&gt;add some content.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Morpheus:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Administration → Integrations → New Integration → Ansible&lt;/LI&gt;
&lt;LI&gt;Filling the fields Name, Ansible Git URL, default branch, Playbooks path, etc.&lt;/LI&gt;
&lt;LI&gt;in the Git section, I select the Key Pair previously created (matches with the one I have in the repository), add the username and password, then it fails.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Reviewing my other Ansible integration, the only difference is the access token created in my other repository. However in the GCP source repository, I cannot see this option, so I just skipped it during the creation.  Have you guys had some experience adding this type of repos? is it possible to use GCP source repositories for the ansible integrations?&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error 1"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149495iA2FA7BE3E54C9D1A/image-size/large?v=v2&amp;amp;px=2000" role="button" title="23186b5b842ce1027c1e1b00f89330be7cda4ad0.png" alt="23186b5b842ce1027c1e1b00f89330be7cda4ad0.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am also seeing a “redirection blocked” error in the morpheus logs, something like this:&lt;BR /&gt;
[appJobNormal-14] remoteGitFetch error: org.eclipse.jgit.api.errors.TransportException: myrepodetails.git: Redirection blocked: redirect myrepodetails.git/ → &lt;A href="http://source.cloud.google.com/onboarding/welcome" rel="noopener nofollow ugc"&gt;source.cloud.google.com/onboarding/welcome&lt;/A&gt; not allowed org.eclipse.jgit.api.errors.TransportException: myrepodetails.git: Redirection blocked: redirect myrepodetails.git/ → &lt;A href="http://source.cloud.google.com/onboarding/welcome" rel="noopener nofollow ugc"&gt;source.cloud.google.com/onboarding/welcome&lt;/A&gt; not allowed at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:224) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:311) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:182) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:1) at java_util_concurrent_Callable$call$58.call(Unknown Source) at com.morpheus.integration.GitRepoService.executeGitCommand(GitRepoService.groovy:703) at jdk.internal.reflect.GeneratedMethodAccessor6535.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at com.morpheus.integration.GitRepoService.remoteGitFetch(GitRepoService.groovy:376) [4 skipped] at com.morpheus.integration.GitRepoService$remoteGitFetch$0.callCurrent(Unknown Source) at com.morpheus.integration.GitRepoService.loadGitRepoFiles(GitRepoService.groovy:93) at com.morpheus.integration.GitRepoService.loadGitRepoFiles(GitRepoService.groovy) at com.morpheus.integration.GitRepoService$loadGitRepoFiles.call(Unknown Source) at com.morpheus.automation.AnsibleService.testConfigManagement(AnsibleService.groovy:173) at com.morpheus.automation.AnsibleService.testConfigManagement(AnsibleService.groovy) at com.morpheus.automation.AnsibleService$testConfigManagement$0.callCurrent(Unknown Source) at com.morpheus.automation.AnsibleService.refreshAccountIntegration(AnsibleService.groovy:144) at com.morpheus.automation.AnsibleService$refreshAccountIntegration.call(Unknown Source) at com.morpheus.automation.ConfigManagementService.refreshAccountIntegration(ConfigManagementService.groovy:37) at com.morpheus.automation.ConfigManagementService$refreshAccountIntegration.call(Unknown Source) at com.morpheus.AccountIntegrationService.refreshAccountIntegration(AccountIntegrationService.groovy:413) at com.morpheus.AccountIntegrationService.refreshAccountIntegration(AccountIntegrationService.groovy) at com.morpheus.AccountIntegrationService$refreshAccountIntegration$0.call(Unknown Source) at com.morpheus.ApplianceJobService.executeApplianceJob(ApplianceJobService.groovy:596) at jdk.internal.reflect.GeneratedMethodAccessor1399.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at com.morpheus.ApplianceJobService$_onApplianceJob_closure2.doCall(ApplianceJobService.groovy:294) [6 skipped] at com.morpheus.ApplianceJobService$_onApplianceJob_closure2.doCall(ApplianceJobService.groovy) at jdk.internal.reflect.GeneratedMethodAccessor1391.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at com.morpheus.ApplianceJobService$_onApplianceJob_closure3.doCall(ApplianceJobService.groovy:361) [7 skipped] at jdk.internal.reflect.GeneratedMethodAccessor1390.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at com.morpheus.util.BoundedExecutor$2.run(BoundedExecutor.java:47) [7 skipped] [3 skipped] Caused by: org.eclipse.jgit.errors.TransportException: myrepodetails.git: Redirection blocked: redirect myrepodetails.git/ → onboarding/welcome not allowed at org.eclipse.jgit.transport.TransportHttp.redirect(TransportHttp.java:952) at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:710) at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:465) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:141) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:93) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1317) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:213) … 60 common frames omitted&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 00:08:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/gcp-source-repositories-with-ansible/m-p/7251052#M4226</guid>
      <dc:creator />
      <dc:date>2023-06-14T00:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: GCP Source repositories with Ansible</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/gcp-source-repositories-with-ansible/m-p/7251053#M4227</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/borisayala"&gt;@BorisAyala&lt;/A&gt; ,&lt;/P&gt;
&lt;P&gt;Through testing it appears the JGIT connector does not honor the required 2022 port that Google repositories require for SSH connectivity.&lt;/P&gt;
&lt;P&gt;As for the HTTPS connectivity, the method Google uses seems very non-standard establishing a machine cookie, and seems wider scoped than intended and would not be best practice.&lt;/P&gt;
&lt;P&gt;An idea could be put in to support non-standard SSH ports, and may be able to resolve your connectivity issue.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 18:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/gcp-source-repositories-with-ansible/m-p/7251053#M4227</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2023-06-14T18:56:40Z</dc:date>
    </item>
  </channel>
</rss>

