Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add policies to the content.yaml #77

Closed
RV1959 opened this issue Apr 13, 2023 · 15 comments
Closed

Add policies to the content.yaml #77

RV1959 opened this issue Apr 13, 2023 · 15 comments
Assignees
Labels
area/artifact-manager Relates to the `artifact-manager` maven module kind/enhancement Enhancement or improvement of existing features lang/java Related to Java Code

Comments

@RV1959
Copy link

RV1959 commented Apr 13, 2023

Description

Currently, VBT does not support policies in the content.yaml
As a result, we now need to manually copy some organisation-wide Day-2-Actions policies from Development vRA to Acceptance and to Production. The large number of actions makes this an error-prone operation that should be automated.

It would be great if VBT was able to import/export these and other policies.
On export, the organisation-id should be taken from the settings.xml of course.

Alternatives

n/a

Additional Context

n/a

@Michaelpalacce
Copy link
Collaborator

Hey @RV1959,

Regarding content sharing policies? https://github.com/vmware/build-tools-for-vmware-aria/releases/tag/v2.31.0

They are supported as of 2.31.0.

Read more about them at:

https://github.com/vmware/build-tools-for-vmware-aria/blob/v2.31.0/docs/versions/v2.31.0/Release.md

Are you talking about other policies?

@Michaelpalacce
Copy link
Collaborator

Closing this for now, feel free to re-open if needed.

@htourneu
Copy link

Hello @Michaelpalacce ,

From the description, @RV1959 mentions day-2 action policies.
Looking further into vRA-NG it seems indeed this is not currently supported, is that right?

Best regards,

@Michaelpalacce Michaelpalacce added kind/enhancement Enhancement or improvement of existing features lang/java Related to Java Code area/artifact-manager Relates to the `artifact-manager` maven module labels Jul 28, 2023
@iludart iludart self-assigned this Aug 2, 2023
@imihov1988 imihov1988 self-assigned this Aug 8, 2023
@imihov1988
Copy link
Contributor

There is a discussion to be held around adding the new types of policies.

The Content Sharing Policy is defined like a single policy (the VraNgContentSharingPolicyStore). However in Aria there are 6 types of policies - like Approval, Day 2 etc

One possible solution is to refactor the VraNgContentSharingPolicyStore, extract the common policy logic in a parent abstract VraNgPolicyStore store and make the VraNgContentSharingPolicyStore one of its 6 derived classes. However there will be changes needed above because currently there is only one ContentType for policies - policy.

Another option is to rename the VraNgContentSharingPolicyStore to a VraNgPolicyStore without making it a base abstract class and to make it handle internally with different strategies the implementations of the different policies processings. However this seems to me will not align with the current model of architecture.

@iludart iludart removed their assignment Aug 10, 2023
@RV1959
Copy link
Author

RV1959 commented Aug 11, 2023

I'd say we should keep close to the model vRA itself uses, that would mean
extract the common policy logic in a parent abstract VraNgPolicyStore store and make the VraNgContentSharingPolicyStore one of its 6 derived classes

@joroaf
Copy link
Collaborator

joroaf commented Aug 21, 2023

We need to support all types of Aria Policies:
Policy Types

  • Content Sharing Policy
  • Resource Quota Policy
  • Lease Policy
  • Day 2 Actions Policy
  • Approval Policy
  • Deployment Limit Policy

@imihov1988
Copy link
Contributor

@joroaf It seems I will get off-projects time next week so I started working today again on this task.
I'm planning now the implementation of the other policy types, or at least the Day 2 Actions Policy as a start.
But I see not all data from the Content Sharing is represented in the Build Tools project VraNgContentSharingPolicy class, for example the list of items for content sharing.

I'd also like to know from where the string of 'policy' comes indicating the PackageContent.ContentType-s, I guess from Aria API, just for some reason I didnt find it in the docs.

Would you have a possibility for a 15-20 min sync meeting on Monday just to exchange some knowledge about the domain of the desired functionality?

@VenelinBakalov
Copy link
Collaborator

@Michaelpalacce @joroaf this issue is going to be closed with those 2 PRs right?
#202
vmware-samples/build-tools-for-vmware-aria-samples#1

Or there are further extensions to the policies required? I want to create a link between the issue and the PR

@htourneu
Copy link

htourneu commented Dec 18, 2023

@VenelinBakalov - both PR you quoted are about vRo policies, this issue is related to vRa Service Broker policies, ie: day 2 action policies, content sharing, approvals, quota etc... (see the list from @joroaf above)

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jan 18, 2024
@Michaelpalacce
Copy link
Collaborator

This is still active, it's currently in development

@github-actions github-actions bot removed the Stale label Jan 19, 2024
@Tchoui Tchoui self-assigned this Jan 24, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 24, 2024
@VenelinBakalov
Copy link
Collaborator

@Michaelpalacce this is still active right? if yes, no need to respond, just adding this comment to remove stale

@carlosaya
Copy link

Thanks @Tchoui for the work on this one. Looking forward to trying it out soon! 🎉

@VenelinBakalov
Copy link
Collaborator

Closed with #242 and to be included in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/artifact-manager Relates to the `artifact-manager` maven module kind/enhancement Enhancement or improvement of existing features lang/java Related to Java Code
Projects
None yet
Development

No branches or pull requests

9 participants