-
Notifications
You must be signed in to change notification settings - Fork 41
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
Share local portfolio to cross region is not working, showing ProductId parameter is missing - i can able to reproduce #723
Comments
@eamonnfaherty - This seems to occur if there are products in the hub portfolio which don't exist in the spoke portfolio and either have no versions or all versions are marked to be ignored. If I'm following the logic correctly, then this line Line 65 in 994c221
Lines 120 to 122 in 994c221
However, if no versions are returned at this line Line 57 in 994c221
Line 76 in 994c221
then the lines below Line 100 in 994c221
Line 111 in 994c221
will never be true and the "ProductId" of 'True' stored in Lines 142 to 146 in 994c221
Phew! Apologies for all the snippets, explaining logic flows over gh issues is never fun :) The snippets are from the current version but the same or similar logic existed in v246 (the version in use showing this issue) just on different lines. I'm not sure on the best approach to resolve within puppet but trying to ensure products have at least one relevant version to copy should help resolve when using puppet. |
Are @vasindran and @peteawood from the same company? From @vasindran report it appears the portfolio has products and they are not marked as ignored but maybe @peteawood has more details? @vasindran could you email me your log files please. @peteawood thanks for diving deep into this. Are you affected by this issue also? It was a design decision made back when the project started as portfolios had to have a provisioning artifact. |
Sorry, should have added more context - yes same company. And yes, the portfolio has products but most of them, in regions other than our primary, have only Version 1 with a name of "-" which I think is what's causing the issue as Lines 77 to 78 in 29f0b86
indicates such products, whilst present in the Portfolio, essentially have no valid versions that execute the required logic to replace the 'True' value. |
Just to clarify - you are unable to share a portfolio that has no valid/active products and you would like to? |
Not quite. Within our primary region, the portfolio's products are all active with valid versions. The portfolio has been copied to our secondary region but (currently) only a subset of the products have valid versions. The products which only have the placeholder version are causing the failure and preventing the active products from being copied to the spoke in the secondary region. We would like for the portfolio to be shared with the active products even though inactive/invalid products are in the same portfolio. We would expect the invalid/inactive products would not be shared. However, if that's not possible, or you see that as an undesirable implementation then we could also accept that we simply need to ensure that products should not exist in the portfolio until valid. The only use case for this I could think of is when products are first created by Factory, I think they appear in a portfolio with just a placeholder version until they are developed further. With a scheduled run of puppet this could prevent sharing working until the first valid version is added. |
its just creating empty portfolio, but no products shared
Originally posted by @vasindran in #722 (comment)
The text was updated successfully, but these errors were encountered: