vmware / vrealize-developer-tools

Extension for Visual Studio Code that provides code intelligence features and enables a more developer-friendly experience when creating vRealize content
Other
75 stars 23 forks source link

documentation on vRO 8 (with vRA 8) #87

Closed pe1pip closed 3 months ago

pe1pip commented 3 years ago

Description

In the setup-workstation documentation there is a lack of information on setting up the vRealize Build tools for vRealize 8.x environments.

Steps to Reproduce

  1. mvn package vrealize:push -Pprd02

Expected behavior:

Package gets pushed

Actual behavior:

401/ Unauthorized

Reproduces how often: 100%

Environment

Profile for external vRO:

    <profile>
      <!--Environment identifier. Multiple environments are allowed by configuring multiple profiles -->
      <id>prd02</id>
      <properties>
        <!--vRO Connection-->
        <vro.host>vro01acc02.domain</vro.host>
        <vro.port>443</vro.port>
        <vro.serverId>vro8</vro.serverId>
        <vro.auth>basic</vro.auth>
        <!--vRA Connection-->
        <vrang.host>acc01.vra01svr02.domain</vrang.host>
        <vrang.port>443</vrang.port>
        <vrang.project.id>f3321dc0-3702-40b4-8b46-a461xxxxxxxx</vrang.project.id>
        <vrang.org.id>f13ec8f1-58f1-483c-b203-7932fxxxxxxx</vrang.org.id>
        <vrang.org.name>acc01</vrang.org.name>
        <vrang.refresh.token>refreshToken</vrang.refresh.token>
        <vrang.bp.release>true</vrang.bp.release>
      </properties>
    </profile>

Client

Server

Failure Logs

[ERROR] Failed to execute goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.10.0:push (default-cli) on project itsmManager: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.10.0:push failed: 401 Unauthorized

Related issues and PRs

Additional Context

cars commented 3 years ago

@pe1pip we've been able to successfully push stuff into vRO in vRA8 using a profile that looks like the one below...

   <profile>
            <id>vra8ng</id>
            <properties>
              <vro.username>jdoe</vro.username>
                <vro.password>m@d3upP@ssw0rd</vro.password>
                <vro.host>vra8.example.com</vro.host>
                <vro.port>443</vro.port>
                <vro.auth>basic</vro.auth>
                <vrang.password>jdoe</vrang.password> -->
                <vrang.host>vra8.example.com</vrang.host>
                <vrang.project.id>bc9bf57b-5c67-1234-zzz-eaa99664424e</vrang.project.id> 
                <vrang.org.name>vidm8</vrang.org.name>
                <vrang.port>443</vrang.port>
                <vrang.refresh.token>T1wEWNzfXTi4zzzzzyMuCG6MrW</vrang.refresh.token>
                <vrealize.ssl.ignore.hostname>true</vrealize.ssl.ignore.hostname>
                <vrealize.ssl.ignore.certificate>true</vrealize.ssl.ignore.certificate>
            </properties>
        </profile>
pe1pip commented 3 years ago

@pe1pip we've been able to successfully push stuff into vRO in vRA8 using a profile that looks like the one below...

@cars My particular issue is with embedded vRO and multi-tenancy, so have you used this profile with that combination? It looks like you're not using multi-tenancy.

yattong commented 3 years ago

Hi There,

@pe1pip we've been able to successfully push stuff into vRO in vRA8 using a profile that looks like the one below...

@cars My particular issue is with embedded vRO and multi-tenancy, so have you used this profile with that combination? It looks like you're not using multi-tenancy.

vro.auth has to be "vra" and not basic.

I've got past this unauthorised now, but stuck on error message : Execution default-cli of goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.10.0:push failed: 404 Not Found [ERROR] 404 Not Found [ERROR] [ERROR]

404 Not Found

[ERROR]
nginx
[ERROR] [ERROR]

any help on this would be great...

mrbrazzi commented 3 years ago

In the setup-workstation documentation there is a lack of information on setting up the vRealize Build tools for vRealize 8.x environments.

Hi @pe1pip the lack of information that you are referring is in this article Setup Developer Workstation in the Global Configuration (settings.xml) topic, right?

mrbrazzi commented 3 years ago

Hi @pe1pip & @yattong, you should use a profile settings like this:

        <profile>
            <id>multitenancy</id>
            <properties>
                <vro.host>vra01svr02.domain</vro.host>
                <vro.authHost>vra01svr02.domain</vro.authHost>
                <vro.port>443</vro.port>
                <vro.auth>BASIC</vro.auth>
                <vro.username>youradministrator</vro.username>
                <vro.password>YoUrSecr3tP4$sw0rD</vro.password>

                <vrang.host>vra01svr02.domain</vrang.host>
                <vrang.auth.host>vro01acc02.domain</vrang.auth.host>
                <vrang.port>443</vrang.port>
                <vrang.username>youradministrator</vrang.username>
                <vrang.password>YoUrSecr3tP4$sw0rD</vrang.password>
                <vrang.authSource>local</vrang.authSource>

                <vrang.project.name>Multi-tenancy</vrang.project.name>
                <!-- default tenant: https://vra01svr02.domain -->
                <vrang.project.id>d4d4caef-a8e2-467b-bc4b-6a336d5cf3e2</vrang.project.id>
                <vrang.org.id>1219113e-d320-4975-8e04-453f58905692</vrang.org.id>
                <!-- tenant 1: https://acc01.vra01svr02.domain -->
                <vrang.project.id>9e1df919-505a-4c5d-8a79-efedd8767c9a</vrang.project.id>
                <vrang.org.id>0c3c837b-b0df-4c79-9902-ffd9430628b5</vrang.org.id>
                <!-- tenant 2: https://acc02.vra01svr02.domain -->
                <vrang.project.id>f4b42f53-a646-4217-926c-99df870a916b</vrang.project.id>
                <vrang.org.id>71c77114-0942-463d-84f8-e5b6838d0eea</vrang.org.id>

                <vrang.bp.release>true</vrang.bp.release>

                <vrealize.ssl.ignore.hostname>true</vrealize.ssl.ignore.hostname>
                <vrealize.ssl.ignore.certificate>true</vrealize.ssl.ignore.certificate>
            </properties>
        </profile>
mrbrazzi commented 3 years ago

Hi @pe1pip & @yattong, can you validate if this profile configuration fit your needs and solve your issue?

      <profile>
          <id>multitenancy</id>
          <properties>
              <vro.host>vra01svr02.domain</vro.host>
              <vro.authHost>vra01svr02.domain</vro.authHost>
              <vro.port>443</vro.port>
              <vro.auth>BASIC</vro.auth>
              <vro.username>youradministrator</vro.username>
              <vro.password>YoUrSecr3tP4$sw0rD</vro.password>

              <vrang.host>vra01svr02.domain</vrang.host>
              <vrang.auth.host>vro01acc02.domain</vrang.auth.host>
              <vrang.port>443</vrang.port>
              <vrang.username>youradministrator</vrang.username>
              <vrang.password>YoUrSecr3tP4$sw0rD</vrang.password>
              <vrang.authSource>local</vrang.authSource>

              <vrang.project.name>Multi-tenancy</vrang.project.name>
              <!-- default tenant: https://vra01svr02.domain -->
              <vrang.project.id>d4d4caef-a8e2-467b-bc4b-6a336d5cf3e2</vrang.project.id>
              <vrang.org.id>1219113e-d320-4975-8e04-453f58905692</vrang.org.id>
              <!-- tenant 1: https://acc01.vra01svr02.domain -->
              <vrang.project.id>9e1df919-505a-4c5d-8a79-efedd8767c9a</vrang.project.id>
              <vrang.org.id>0c3c837b-b0df-4c79-9902-ffd9430628b5</vrang.org.id>
              <!-- tenant 2: https://acc02.vra01svr02.domain -->
              <vrang.project.id>f4b42f53-a646-4217-926c-99df870a916b</vrang.project.id>
              <vrang.org.id>71c77114-0942-463d-84f8-e5b6838d0eea</vrang.org.id>

              <vrang.bp.release>true</vrang.bp.release>

              <vrealize.ssl.ignore.hostname>true</vrealize.ssl.ignore.hostname>
              <vrealize.ssl.ignore.certificate>true</vrealize.ssl.ignore.certificate>
          </properties>
      </profile>
kSabchev commented 3 years ago

Hi There,

@pe1pip we've been able to successfully push stuff into vRO in vRA8 using a profile that looks like the one below...

@cars My particular issue is with embedded vRO and multi-tenancy, so have you used this profile with that combination? It looks like you're not using multi-tenancy.

vro.auth has to be "vra" and not basic.

I've got past this unauthorised now, but stuck on error message : Execution default-cli of goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.10.0:push failed: 404 Not Found [ERROR] 404 Not Found [ERROR] [ERROR]

404 Not Found

[ERROR] nginx [ERROR] [ERROR] any help on this would be great...

Hello @yattong can you help us reproduce the issue here to see if it is connected to the configuration as well?

pe1pip commented 3 years ago

Hi @pe1pip & @yattong, can you validate if this profile configuration fit your needs and solve your issue?

        <profile>
            <id>multitenancy</id>
            <properties>
                <vro.host>vra01svr02.domain</vro.host>
                <vro.authHost>vra01svr02.domain</vro.authHost>
                <vro.port>443</vro.port>
                <vro.auth>BASIC</vro.auth>
                <vro.username>youradministrator</vro.username>
                <vro.password>YoUrSecr3tP4$sw0rD</vro.password>

                <vrang.host>vra01svr02.domain</vrang.host>
                <vrang.auth.host>vro01acc02.domain</vrang.auth.host>
                <vrang.port>443</vrang.port>
                <vrang.username>youradministrator</vrang.username>
                <vrang.password>YoUrSecr3tP4$sw0rD</vrang.password>
                <vrang.authSource>local</vrang.authSource>

                <vrang.project.name>Multi-tenancy</vrang.project.name>
                <!-- default tenant: https://vra01svr02.domain -->
                <vrang.project.id>d4d4caef-a8e2-467b-bc4b-6a336d5cf3e2</vrang.project.id>
                <vrang.org.id>1219113e-d320-4975-8e04-453f58905692</vrang.org.id>
                <!-- tenant 1: https://acc01.vra01svr02.domain -->
                <vrang.project.id>9e1df919-505a-4c5d-8a79-efedd8767c9a</vrang.project.id>
                <vrang.org.id>0c3c837b-b0df-4c79-9902-ffd9430628b5</vrang.org.id>
                <!-- tenant 2: https://acc02.vra01svr02.domain -->
                <vrang.project.id>f4b42f53-a646-4217-926c-99df870a916b</vrang.project.id>
                <vrang.org.id>71c77114-0942-463d-84f8-e5b6838d0eea</vrang.org.id>

                <vrang.bp.release>true</vrang.bp.release>

                <vrealize.ssl.ignore.hostname>true</vrealize.ssl.ignore.hostname>
                <vrealize.ssl.ignore.certificate>true</vrealize.ssl.ignore.certificate>
            </properties>
        </profile>

Hi,

This looks very interesting indeed. We do have a VRO for each tenant (dev/test/acceptance/production segregation) so this will not work for us. In the end we found that we have a configuration that nobody really anticipated: the prod tenant is not the master tenant, but is linked to the embedded vRO. Because the embedded vRO (in 8.0 - 8.3) always uses the master tenant for basic auth, we had a real hard time figuring out why we couldn’t log in to vRO with basic authentication. This will change in a future release, but I think for now that is important to note: embedded vRO basic auth uses the master/default tenant.

yattong commented 3 years ago

my nfr license has expired, i'll try as soon as I get a new one. thanks

yattong commented 3 years ago

Hi @pe1pip & @yattong, can you validate if this profile configuration fit your needs and solve your issue?

        <profile>
            <id>multitenancy</id>
            <properties>
                <vro.host>vra01svr02.domain</vro.host>
                <vro.authHost>vra01svr02.domain</vro.authHost>
                <vro.port>443</vro.port>
                <vro.auth>BASIC</vro.auth>
                <vro.username>youradministrator</vro.username>
                <vro.password>YoUrSecr3tP4$sw0rD</vro.password>

                <vrang.host>vra01svr02.domain</vrang.host>
                <vrang.auth.host>vro01acc02.domain</vrang.auth.host>
                <vrang.port>443</vrang.port>
                <vrang.username>youradministrator</vrang.username>
                <vrang.password>YoUrSecr3tP4$sw0rD</vrang.password>
                <vrang.authSource>local</vrang.authSource>

                <vrang.project.name>Multi-tenancy</vrang.project.name>
                <!-- default tenant: https://vra01svr02.domain -->
                <vrang.project.id>d4d4caef-a8e2-467b-bc4b-6a336d5cf3e2</vrang.project.id>
                <vrang.org.id>1219113e-d320-4975-8e04-453f58905692</vrang.org.id>
                <!-- tenant 1: https://acc01.vra01svr02.domain -->
                <vrang.project.id>9e1df919-505a-4c5d-8a79-efedd8767c9a</vrang.project.id>
                <vrang.org.id>0c3c837b-b0df-4c79-9902-ffd9430628b5</vrang.org.id>
                <!-- tenant 2: https://acc02.vra01svr02.domain -->
                <vrang.project.id>f4b42f53-a646-4217-926c-99df870a916b</vrang.project.id>
                <vrang.org.id>71c77114-0942-463d-84f8-e5b6838d0eea</vrang.org.id>

                <vrang.bp.release>true</vrang.bp.release>

                <vrealize.ssl.ignore.hostname>true</vrealize.ssl.ignore.hostname>
                <vrealize.ssl.ignore.certificate>true</vrealize.ssl.ignore.certificate>
            </properties>
        </profile>

Hi there, So using xml template it is not working for either vRA or vRO. with vRA authenticating but with a null pointer error and vRO with an authenitication error.

So for vRA i have tried pulling either a simple blueprint or an image mapping and still get error : [DEBUG] Blueprints found on server: 2 [DEBUG] Using project id defined in configuration: xxxxxxxxx [DEBUG] Using project id defined in configuration: xxxxxxxxx [DEBUG] Blueprints in target project: 2 [DEBUG] Exporting rhel_v76_template [INFO] Created file C:\Users\xxxxxxxxxx\AppData\Local\Temp\1618912545251-0\cs.test.vra8-1.0.0-SNAPSHOT.vra-ng\blueprints\rhel_v76_template.yaml [DEBUG] Found catalog item 5facfb58-b8c2-3dec-84b0-ee63364a1cc7 [DEBUG] Found content source VM Templates [DEBUG] Found custom form rhel_v76_template [DEBUG] Storing content source VM Templates [INFO] Created file C:\Users\xxxxxxx\AppData\Local\Temp\1618912545251-0\cs.test.vra8-1.0.0-SNAPSHOT.vra-ng\content-sources\VM Templates.json [DEBUG] Storing custom form rhel_v76_template [INFO] Created file C:\Users\xxxxxxxx\AppData\Local\Temp\1618912545251-0\cs.test.vra8-1.0.0-SNAPSHOT.vra-ng\custom-forms\rhel_v76_template.json [INFO] Created file C:\Users\xxxxxxxx\AppData\Local\Temp\1618912545251-0\cs.test.vra8-1.0.0-SNAPSHOT.vra-ng\custom-forms\rhel_v76_template_form.json [DEBUG] Skipping windows_999. Not present in content.yaml [INFO] No subscriptions found in content.yaml [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.984 s [INFO] Finished at: 2021-04-20T10:55:48+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.vmware.pscoe.maven.plugins:vra-ng-package-maven-plugin:2.10.0:pull (default-cli) on project vra8: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vra-ng-package-maven-plugin:2.10.0:pull failed.: NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.vmware.pscoe.maven.plugins:vra-ng-package-maven-plugin:2.10.0:pull (default-cli) on project vra8: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vra-ng-package-maven-plugin:2.10.0:pull failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vra-ng-package-maven-plugin:2.10.0:pull failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: java.lang.NullPointerException at com.vmware.pscoe.iac.artifact.VraNgPackageStore.exportRegionalContent (VraNgPackageStore.java:810) at com.vmware.pscoe.iac.artifact.VraNgPackageStore.exportPackage (VraNgPackageStore.java:140) at com.vmware.pscoe.iac.artifact.VraNgPackageStore.exportPackage (VraNgPackageStore.java:181) at com.vmware.pscoe.maven.plugins.PullMojo.execute (PullMojo.java:45) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

For vRO push i get the error:

[INFO] Authentication strategy: 'BASIC' [DEBUG] Evaluating path: $['version'] [INFO] Detecting vRO Server version '8.3.0.17522798'. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:16 min [INFO] Finished at: 2021-04-20T16:16:11+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.10.0:push (default-cli) on project vro-snow: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.10.0:push failed: 401 Unauthorized [ERROR] [ERROR] [ERROR] [ERROR] [ERROR] [ERROR]

[ERROR]
[ERROR] <svg width="43px" height="100%" viewBox="0 0 43 960" version="1.1" [ERROR] xmlns="http://www.w3.org/2000/svg" [ERROR] xmlns:xlink="http://www.w3.org/1999/xlink"> [ERROR] [ERROR] replaceable image [ERROR] Created with Sketch. [ERROR] [ERROR] <rect id="path-1" x="0" y="0" width="44" [ERROR] height="970"> [ERROR] [ERROR] <g id="Page-1" stroke="none" stroke-width="1" [ERROR] fill="none" fill-rule="evenodd"> [ERROR] [ERROR] <g id="replaceable-image" [ERROR] transform="translate(-1.000000, 0.000000)"> [ERROR] [ERROR] [ERROR] [ERROR] [ERROR] [ERROR] <g [ERROR] transform="translate(-209.000000, -95.000000)"> [ERROR] <rect id="Rectangle-path" [ERROR] fill="#FAFAFA" x="0" y="0.439761388" [ERROR] width="1305.47899" height="1066.56024"> [ERROR] <polygon id="Shape" fill="#93C8DD" [ERROR] points="0 3.54123644 0 693.480564 345.186915 348.834935"> [ERROR] <polygon id="Shape" fill="#79B1C5" [ERROR] points="832.331862 1066.94214 947.810975 951.620499 345.186915 348.834935 0 693.480564 0 758.032907 308.565656 1066.94214"> [ERROR] <polygon id="Shape" fill="#81C4D1" [ERROR] points="593.570053 1066.94214 110.326897 583.331909 0 693.480564 0 757.975043 309.202447 1066.94214"> [ERROR] <polygon id="Shape" fill="#CEDDE0" [ERROR] points="308.565656 1066.94214 0 758.032907 0 1066.94214"> [ERROR] [ERROR] [ERROR] [ERROR] [ERROR] [ERROR] [ERROR]
[ERROR]
[ERROR]
[ERROR]
401
[ERROR]
Unauthorized
[ERROR]
[ERROR]
[ERROR]
[ERROR] [ERROR] [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.10.0:push (default-cli) on project vro-snow: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.10.0:push failed: 401 Unauthorized

replaceable image Created with Sketch.
401
Unauthorized
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.10.0:push failed: 401 Unauthorized

replaceable image Created with Sketch.
401
Unauthorized
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

Caused by: org.springframework.web.client.HttpClientErrorException: 401 Unauthorized

replaceable image Created with Sketch.
401
Unauthorized
at com.vmware.pscoe.iac.artifact.rest.RestClientFactory$1.handleError (RestClientFactory.java:83)
at org.springframework.web.client.RestTemplate.handleResponse (RestTemplate.java:709)
at org.springframework.web.client.RestTemplate.doExecute (RestTemplate.java:662)
at org.springframework.web.client.RestTemplate.execute (RestTemplate.java:637)
at org.springframework.web.client.RestTemplate.exchange (RestTemplate.java:558)
at com.vmware.pscoe.iac.artifact.rest.RestClientVro.getPackages (RestClientVro.java:97)
at com.vmware.pscoe.iac.artifact.VroPackageStore.importAllPackages (VroPackageStore.java:75)
at com.vmware.pscoe.maven.plugins.PushMojo.importArtifacts (PushMojo.java:58)
at com.vmware.pscoe.maven.plugins.PushMojo.execute (PushMojo.java:89)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

[ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

VenelinBakalov commented 3 months ago

Hi team, did you manage to solve this issue? I see that you discussed vra as auth options and you use but in your settings.xml you still provide BASIC</vro.auth

Could you try switching to:

vra {{your vRA URL, e.g. vra-l-01a.corp.local}} An alternative option you can use (if you are using the vRO for dev testing) would be to re-enable vRO basic auth: https://docs.vmware.com/en/vRealize-Orchestrator/8.11/com.vmware.vrealize.orchestrator-install-config.doc/GUID-30026BCF-DC1F-471E-A63C-A29E85FBDD41.html In case this does not help, feel free to re-open this issue.