Comments (10)
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.
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.
Hey @mdittbrenner215,
Thanks for sharing the case. I am looking into it.
from build-tools-for-vmware-aria.
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.
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.
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:
- Download the toolchain
- Checkout PR branch
mvn clean install -DskipTests
-> in the root- Go to the failing project and set the version to
2.32.1-SNAPSHOT
and try again
from build-tools-for-vmware-aria.
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.
- Download the toolchain
- Checkout PR branch
- mvn clean install -DskipTests -> in the root
- 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.
@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.
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)
- vro:pull command for legacy archetype fails when workflow folder path name contains character & HOT 12
- vrealize:push fails for vCD 10.5, API version 38.0
- Unable to Pull vRO Content Sources or Catalog Items HOT 3
- o11n-plugin-sql - SQLDatabaseManager.getDatabase definition to be removed
- Failed to pull action HOT 5
- Typescript SSH type issue HOT 1
- shim for Array.from() doesn't create copy without mapfn HOT 1
- Transpiler fails to convert Array functions into vRO compatible code
- vROPs default policy feature not working with version 2.36.0 HOT 2
- Catalog Item (vRO workflow) Description not getting updated on the existing catalog item HOT 7
- Discussion test
- Conditional Execution in Saga HOT 4
- Last Region image mapping overwrites the value for all other regions. HOT 6
- Package installer fails with error message "400 Bad Request {"status":400,"message":"Unable to extract package from raw data"}" HOT 9
- Cloud Template folder name is used when validating if the record exists on the server, but the name in the details.json is used when creating/updating HOT 5
- Duplicate Key VraNgBlueprint@<sha> when trying to push one or more cloud templates when there are 2 cloud templates with the same name on the sever
- Upgrade to new TS version HOT 5
- ABX content export is not working with Java 17 HOT 3
- ABX project templates must be updated HOT 8
- Error Pushing vRA Content after Updating to 2.37.0 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build-tools-for-vmware-aria.