Giter Club home page Giter Club logo

Comments (10)

Michaelpalacce avatar Michaelpalacce commented on June 3, 2024

Hey @hstraten, thank you for the issue!

Can you add:

policy:
  content-sharing:

to your content.yaml?

Then try a pull, push

from build-tools-for-vmware-aria.

mdittbrenner215 avatar mdittbrenner215 commented on June 3, 2024

I also have the same issue and this in my yaml

policy:
  content-sharing:
    - "xCloudAdmin-1234567890-abcdef_ContentSharingPolicy"
[INFO] Currently exporting: VraNgContentSharingPolicyStore
[INFO] Exporting filtered items: [xCloudAdmin-1234567890-abcdef_ContentSharingPolicy]
[DEBUG] Policy Ids found on server: 297
[ERROR] Error fetching content sharing policy
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  21.638 s
[INFO] Finished at: 2023-05-22T18:55:22-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.vmware.pscoe.maven.plugins:vra-ng-package-maven-plugin:2.32.0:pull (default-cli) on project vra: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vra-ng-package-maven-plugin:2.32.0:pull failed: org.springframework.web.client.HttpClientErrorException: 404 Not Found {"message":"No value present","statusCode":404,"errorCode":0} -> [Help 1]

Potentially a pagination issue?

{{url-home}}/policy/api/policies?expandDefinition=true&computeStats=true&search=xCloudAdmin-1234567890-abcdef_ContentSharingPolicy

This brings back just that one when testing in postman, but we have 297 definitions with alot of content sharing definitions.

I see it onprem vRA 8.12.1 for vRA content

from build-tools-for-vmware-aria.

Rehiq avatar Rehiq commented on June 3, 2024

Hey @mdittbrenner215,

Thanks for sharing the case. I am looking into it.

from build-tools-for-vmware-aria.

Rehiq avatar Rehiq commented on June 3, 2024

The issue occurred because the build tools didn't take into account the association for Catalog Items, it did only for Content Sources.

from build-tools-for-vmware-aria.

hstraten avatar hstraten commented on June 3, 2024
policy:
  content-sharing:

Adding just policy: content-sharing:

still results in a 404, however by adding policy: content-sharing: [] it works

from build-tools-for-vmware-aria.

Michaelpalacce avatar Michaelpalacce commented on June 3, 2024

policy: content-sharing: [] would mean do not download anything.

@hstraten there is a PR in place proposed to solve this issue
Will you be able to build the toolchain locally and test it out?

All you have to do:

  1. Download the toolchain
  2. Checkout PR branch
  3. mvn clean install -DskipTests -> in the root
  4. Go to the failing project and set the version to 2.32.1-SNAPSHOT and try again

from build-tools-for-vmware-aria.

mdittbrenner215 avatar mdittbrenner215 commented on June 3, 2024

Is there a document on how to build the iac file for a release? I need to upload our files to a share to pull down but the only instructions to set up I see are around using a release, but not how to configure from source to release.

from build-tools-for-vmware-aria.

Michaelpalacce avatar Michaelpalacce commented on June 3, 2024

@mdittbrenner215

  1. Download the toolchain
  2. Checkout PR branch
  3. mvn clean install -DskipTests -> in the root
  4. Go to the failing project and set the version to 2.32.1-SNAPSHOT and try again

This is how you can test the toolchain

from build-tools-for-vmware-aria.

mdittbrenner215 avatar mdittbrenner215 commented on June 3, 2024

@Michaelpalacce @Rehiq
I was successfully able to pull content now and no 404 with 2.32.1-SNAPSHOT with vRA 8.12.1.

I have not looked yet to see if it fixes the issue with the catalog items issue with 8.11+ with the change in catalog items and versions. Also havent checked to see if this is backwards compatible with our staging/production env yet either.

Content-Blueprints__Linux Custom.json
[INFO] Created custom form data file /var/folders/by/v62wx8154x33z5bk6bvdw_lm0000gp/T/1685666207072-0/com.comcast.xcloud.vra-2.3.5-SNAPSHOT.vra-ng/catalog-items/forms/Master-Content-Blueprints__Linux Custom__FormData.json
[WARNING] Icon is SVG, skipping...
[INFO] Storing catalogItem Linux Custom
[INFO] Creating folder: /var/folders/by/v62wx8154x33z5bk6bvdw_lm0000gp/T/1685666207072-0/com.comcast.xcloud.vra-2.3.5-SNAPSHOT.vra-ng/catalog-items
[INFO] Created file /var/folders/by/v62wx8154x33z5bk6bvdw_lm0000gp/T/1685666207072-0/com.comcast.xcloud.vra-2.3.5-SNAPSHOT.vra-ng/catalog-items/Master-Content-Blueprints__Linux Custom.json
[INFO] class com.vmware.pscoe.iac.artifact.store.vrang.VraNgCatalogItemStore812
[INFO] Created custom form metadata file /var/folders/by/v62wx8154x33z5bk6bvdw_lm0000gp/T/1685666207072-0/com.comcast.xcloud.vra-2.3.5-SNAPSHOT.vra-ng/catalog-items/forms/Master-Content-Blueprints__Linux Custom with Extra Disk.json
[INFO] Created custom form data file /var/folders/by/v62wx8154x33z5bk6bvdw_lm0000gp/T/1685666207072-0/com.comcast.xcloud.vra-2.3.5-SNAPSHOT.vra-ng/catalog-items/forms/Master-Content-Blueprints__Linux Custom with Extra Disk__FormData.json
[WARNING] Icon is SVG, skipping...
[INFO] Storing catalogItem Linux Custom with Extra Disk
[INFO] Creating folder: /var/folders/by/v62wx8154x33z5bk6bvdw_lm0000gp/T/1685666207072-0/com.comcast.xcloud.vra-2.3.5-SNAPSHOT.vra-ng/catalog-items
[INFO] Created file /var/folders/by/v62wx8154x33z5bk6bvdw_lm0000gp/T/1685666207072-0/com.comcast.xcloud.vra-2.3.5-SNAPSHOT.vra-ng/catalog-items/Master-Content-Blueprints__Linux Custom with Extra Disk.json
[INFO] Currently exporting: VraNgContentSharingPolicyStore
[INFO] Nothing/null passed exporting everything
[INFO] Created content sharing file /var/folders/by/v62wx8154x33z5bk6bvdw_lm0000gp/T/1685666207072-0/com.comcast.xcloud.vra-2.3.5-SNAPSHOT.vra-ng/policies/content-sharing/xCloudAdmin-1234567890-abcdef_ContentSharingPolicy.json
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.424 s
[INFO] Finished at: 2023-06-01T20:37:06-04:00
[INFO] ------------------------------------------------------------------------

from build-tools-for-vmware-aria.

carlosaya avatar carlosaya commented on June 3, 2024

I am getting the same error on 2.33.0.

    <parent>
        <groupId>com.vmware.pscoe.vra-ng</groupId>
        <artifactId>vra-ng-package</artifactId>
        <version>2.33.0</version>
    </parent>
policy:
  content-sharing:
    - IACToolbox
[INFO] Currently exporting: VraNgContentSharingPolicyStore
[INFO] Exporting filtered items: [IACToolbox]
[ERROR] Error fetching content sharing policy
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.673 s
[INFO] Finished at: 2023-06-27T07:41:29Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.vmware.pscoe.maven.plugins:vra-ng-package-maven-plugin:2.33.0:pull (default-cli) on project launch-vra: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vra-ng-package-maven-plugin:2.33.0:pull failed: org.springframework.web.client.HttpClientErrorException: 404 Not Found {"message":"No value present","statusCode":404,"errorCode":0} -> [Help 1]

We only have 8 policies defined in this environment, and 7 of them are content sharing policies, so I would be surprised if this was a paging issue.

from build-tools-for-vmware-aria.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.