merative / spm-kubernetes

This repository contains artifacts to assist IBM Cúram SPM customers in their journey to Kubernetes
Apache License 2.0
9 stars 13 forks source link

IBM Licence Service and SPM - proper annotation(s) for IBM products and Curam Products #129

Open wildman111 opened 2 years ago

wildman111 commented 2 years ago

Hi there,

I am setting up the IBM Licencing service and reporter to track our software usage and I need some assistance determining what annotations are needed for certain products.

I was told we have to track IBM WebSphere Hybrid Edition (Virtual Processor Core) that we bought from IBM after SPM but I see a few warnings in the Licencing Service logs related to other Curam or bundled IBM products and IBM mentions that these are product issues that are to be addressed internally.

See this link for more info. https://www.ibm.com/docs/en/cpfs?topic=operator-verifying-completeness-license-usage-data-troubleshooting

Below is a snippet from the logs for the affected products missing the productMetric .. the "apps-curam-producer" I have been told is the only one that uses WebSphere but has Curam Related annotations so I'm really not sure how this will be easily recognized and accepted by IBM for the IBM WebSphere Hybrid Edition product.

2022-07-15 19:08:05.364 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-curam-consumer-ff784bd54-mn8m2 has invalid annotation: productMetric 2022-07-15 19:08:05.364 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-curam-producer-5dcd56cc99-lmtp2 has invalid annotation: productMetric 2022-07-15 19:08:05.364 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-consumer-79f5b55b8c-qj6hr has invalid annotation: productMetric 2022-07-15 19:08:05.364 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-producer-56b667d9cd-b45zn has invalid annotation: productMetric 2022-07-15 19:08:05.365 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-producer-56b667d9cd-bt96w has invalid annotation: productMetric 2022-07-15 19:08:05.365 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-producer-56b667d9cd-k8zjl has invalid annotation: productMetric 2022-07-15 19:08:05.365 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-producer-56b667d9cd-rq7dw has invalid annotation: productMetric 2022-07-15 19:08:05.365 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-mqserver-curam-metrics-5b5b6b5df6-zhq74 has invalid annotation: productMetric 2022-07-15 19:08:05.366 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-mqserver-rest-metrics-766c44c66d-zcvvb has invalid annotation: productMetric 2022-07-15 19:08:05.366 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-web-797bc88b8c-9kgm6 has invalid annotation: productMetric 2022-07-15 19:08:05.366 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-xmlserver-86c545558c-v9sp5 has invalid annotation: productMetric 2022-07-15 19:08:05.364 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-consumer-79f5b55b8c-qj6hr has invalid annotation: productMetric 2022-07-15 19:08:05.364 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-producer-56b667d9cd-b45zn has invalid annotation: productMetric 2022-07-15 19:08:05.365 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-producer-56b667d9cd-bt96w has invalid annotation: productMetric 2022-07-15 19:08:05.365 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-producer-56b667d9cd-k8zjl has invalid annotation: productMetric 2022-07-15 19:08:05.365 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-apps-rest-producer-56b667d9cd-rq7dw has invalid annotation: productMetric 2022-07-15 19:08:05.365 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-mqserver-curam-metrics-5b5b6b5df6-zhq74 has invalid annotation: productMetric 2022-07-15 19:08:05.366 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-mqserver-rest-metrics-766c44c66d-zcvvb has invalid annotation: productMetric 2022-07-15 19:08:05.366 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-web-797bc88b8c-9kgm6 has invalid annotation: productMetric 2022-07-15 19:08:05.366 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-be-dev2/curam-da-be-dev2-xmlserver-86c545558c-v9sp5 has invalid annotation: productMetric 2022-07-15 19:08:05.366 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-fe-dev2/curam-da-fe-dev2-apps-curam-consumer-6d8c9c8f69-fstkp has invalid annotation: productMetric 2022-07-15 19:08:05.366 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-fe-dev2/curam-da-fe-dev2-apps-curam-producer-776df4cf47-nwxx2 has invalid annotation: productMetric 2022-07-15 19:08:05.366 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-fe-dev2/curam-da-fe-dev2-apps-rest-consumer-5bb44b8dc4-g4xwn has invalid annotation: productMetric 2022-07-15 19:08:05.367 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-fe-dev2/curam-da-fe-dev2-apps-rest-producer-7c6f88f7bb-xtgrv has invalid annotation: productMetric 2022-07-15 19:08:05.367 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-fe-dev2/curam-da-fe-dev2-mqserver-curam-metrics-64f47f857-hf8ql has invalid annotation: productMetric 2022-07-15 19:08:05.367 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-fe-dev2/curam-da-fe-dev2-mqserver-rest-metrics-7cb9c7bc5-b5chx has invalid annotation: productMetric 2022-07-15 19:08:05.367 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-fe-dev2/curam-da-fe-dev2-uawebapp-76cfd9dcf6-tbtxk has invalid annotation: productMetric 2022-07-15 19:08:05.368 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-fe-dev2/curam-da-fe-dev2-web-c777cf694-sswd4 has invalid annotation: productMetric 2022-07-15 19:08:05.368 [scheduling-1] WARN [MissingPodAnnotation] Pod curam-da-fe-dev2/curam-da-fe-dev2-xmlserver-55d6db49b7-h7r2s has invalid annotation: productMetric

IBM has provided the following links for their annotation requirements.

License annotation values for Liberty products. Base: https://www.ibm.com/docs/en/was-liberty/base?topic=container-tracking-liberty-usage-in-kubernetes-license-service Core: https://www.ibm.com/docs/en/was-liberty/core?topic=container-tracking-liberty-usage-in-kubernetes-license-service ND (Network Deployment): https://www.ibm.com/docs/en/was-liberty/nd?topic=container-tracking-liberty-usage-in-kubernetes-license-service

I would also think the MQ Server should be tracked as well as it is an IBM product that come with SPM. your thoughts ? So please assist me with what is required, I can link in someone from IBM if need be.

I would also like to know how the proper annotations are added to the products in our ARO cluster deployments so we can deploy once with the product and not have to manually edit after the fact. I assume helm charts but you would be best to assist with this.

I think that is all but please reach out for any questions and clarifications.

Thanks,

Gord

wildman111 commented 2 years ago

I have attached a sample report from the IBM Licencing Service that might assist.

audit_snapshot_2022-06-27_2022-07-27_esdctpfdevelopmentaro-b6nph-master-0.zip .