Re: [onap-discuss] OOM k8s Beijing/2.0.0-ONAP Helm build fails for nodeSelector attribute in values.yaml
Hi Kiran, We did write a script to fix this issue in all files (statefulset.yaml & deployment.yaml). However it is failing at the mysql/templates/statefulset.yaml file under the spec: section. We will wait for you to deliver the patch, kindly send us the patch details after you deliver the code changes. We really appropriate your quick response. Thanks & Regards Vivek On Mon, Aug 6, 2018 at 11:06 PM, Kamineni, Kiran K < kiran.k.kamin...@intel.com> wrote: > It looks like this need would need to be fixed for all the statefulsets > and deployment yaml files. > > Maybe try something with sed? That might help in doing the replacement > across all the files. > > > > If you can wait, I can upload a patch that fixes the indentation today. > > > > *-- K i r a n* > > > > *From:* onap-discuss@lists.onap.org [mailto:onap-discuss@lists.onap.org] *On > Behalf Of *Vivekanandan Muthukrishnan > *Sent:* Saturday, August 04, 2018 9:58 AM > *To:* onap-discuss@lists.onap.org; Vivekanandan Muthukrishnan < > vmuthukrish...@aarnanetworks.com> > *Cc:* Sriram Rupanagunta ; Amar Kapadia < > akapa...@aarnanetworks.com> > *Subject:* Re: [onap-discuss] OOM k8s Beijing/2.0.0-ONAP Helm build fails > for nodeSelector attribute in values.yaml > > > > Hi Kiran, > > > > We found that the below list of file have the indentation issue with > respect to *nodeSelector *attribute*.* After fixing the same we get the > following make error. > > > > It seems like the indentation varies across the modules. Do you have any > workaround to fix the template issue in all files? > > > > > > [INFO] Chart.yaml: icon is recommended > > [ERROR] templates/statefulset.yaml: unable to parse YAML > > error converting YAML to JSON: yaml: line 120: did not > find expected '-' indicator > > > > Error: 1 chart(s) linted, 1 chart(s) failed > > Makefile:40: recipe for target 'lint-mysql' failed > > make[3]: *** [lint-mysql] Error 1 > > make[3]: Leaving directory '/home/aarna/ONAP_Kubernetes/ > oom/kubernetes/common' > > Makefile:30: recipe for target 'mysql' failed > > make[2]: *** [mysql] Error 2 > > make[2]: Leaving directory '/home/aarna/ONAP_Kubernetes/ > oom/kubernetes/common' > > Makefile:39: recipe for target 'make-common' failed > > make[1]: *** [make-common] Error 2 > > make[1]: Leaving directory '/home/aarna/ONAP_Kubernetes/oom/kubernetes' > > Makefile:35: recipe for target 'common' failed > > make: *** [common] Error 2 > > > > > > > > > > *Files found to be having the indentation issues* > > > > Found in file : /home/aarna/ONAP/Beijing/oom_ > beijing/oom/kubernetes/dmaap/charts/dmaap-bus-controller/ > templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/log/ > charts/log-elasticsearch/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/log/ > charts/log-kibana/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/log/ > charts/log-logstash/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/uui/ > templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/so/ > templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/so/ > charts/mariadb/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_ > beijing/oom/kubernetes/clamp/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_ > beijing/oom/kubernetes/clamp/charts/clamp-dash-logstash/ > templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_ > beijing/oom/kubernetes/clamp/charts/clamp-dash-kibana/ > templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_ > beijing/oom/kubernetes/clamp/charts/mariadb/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_ > beijing/oom/kubernetes/clamp/charts/clamp-dash-es/ > templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdnc/ > templates/statefulset.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdnc/ > charts/sdnc-ansible-server/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdnc/ > charts/sdnc-portal/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdnc/ > charts/ueb-listener/templates/deployment.yaml > > Found in file : /home/aarna/ONA
Re: [onap-discuss] OOM k8s Beijing/2.0.0-ONAP Helm build fails for nodeSelector attribute in values.yaml
It looks like this need would need to be fixed for all the statefulsets and deployment yaml files. Maybe try something with sed? That might help in doing the replacement across all the files. If you can wait, I can upload a patch that fixes the indentation today. -- K i r a n From: onap-discuss@lists.onap.org [mailto:onap-discuss@lists.onap.org] On Behalf Of Vivekanandan Muthukrishnan Sent: Saturday, August 04, 2018 9:58 AM To: onap-discuss@lists.onap.org; Vivekanandan Muthukrishnan Cc: Sriram Rupanagunta ; Amar Kapadia Subject: Re: [onap-discuss] OOM k8s Beijing/2.0.0-ONAP Helm build fails for nodeSelector attribute in values.yaml Hi Kiran, We found that the below list of file have the indentation issue with respect to nodeSelector attribute. After fixing the same we get the following make error. It seems like the indentation varies across the modules. Do you have any workaround to fix the template issue in all files? [INFO] Chart.yaml: icon is recommended [ERROR] templates/statefulset.yaml: unable to parse YAML error converting YAML to JSON: yaml: line 120: did not find expected '-' indicator Error: 1 chart(s) linted, 1 chart(s) failed Makefile:40: recipe for target 'lint-mysql' failed make[3]: *** [lint-mysql] Error 1 make[3]: Leaving directory '/home/aarna/ONAP_Kubernetes/oom/kubernetes/common' Makefile:30: recipe for target 'mysql' failed make[2]: *** [mysql] Error 2 make[2]: Leaving directory '/home/aarna/ONAP_Kubernetes/oom/kubernetes/common' Makefile:39: recipe for target 'make-common' failed make[1]: *** [make-common] Error 2 make[1]: Leaving directory '/home/aarna/ONAP_Kubernetes/oom/kubernetes' Makefile:35: recipe for target 'common' failed make: *** [common] Error 2 Files found to be having the indentation issues Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/dmaap/charts/dmaap-bus-controller/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/log/charts/log-elasticsearch/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/log/charts/log-kibana/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/log/charts/log-logstash/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/uui/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/so/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/so/charts/mariadb/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/clamp/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/clamp/charts/clamp-dash-logstash/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/clamp/charts/clamp-dash-kibana/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/clamp/charts/mariadb/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/clamp/charts/clamp-dash-es/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdnc/templates/statefulset.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdnc/charts/sdnc-ansible-server/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdnc/charts/sdnc-portal/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdnc/charts/ueb-listener/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/common/dgbuilder/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/common/mongo/templates/statefulset.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/common/mysql/templates/statefulset.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/common/mariadb-galera/templates/statefulset.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/common/postgres/templates/statefulset.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/charts/vfc-generic-vnfm-driver/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/charts/vfc-ems-driver/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/charts/vfc-nokia-vnfm-driver/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/charts/vfc-nokia-v2vnfm-driver/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/charts/vfc-juju-vnfm-driver/templates
Re: [onap-discuss] OOM k8s Beijing/2.0.0-ONAP Helm build fails for nodeSelector attribute in values.yaml
/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdc/charts/sdc-es/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdc/charts/sdc-fe/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/cli/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/policy/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/policy/charts/brmsgw/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/policy/charts/mariadb/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/policy/charts/drools/templates/statefulset.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/policy/charts/drools/charts/nexus/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/policy/charts/pdp/templates/statefulset.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/esr/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/esr/charts/esr-gui/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/appc/templates/statefulset.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/appc/charts/appc-cdt/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vid/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vid/charts/vid-galera/templates/statefulset.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sniro-emulator/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/portal/charts/portal-sdk/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/portal/charts/portal-zookeeper/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/portal/charts/portal-cassandra/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/portal/charts/portal-widget/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/portal/charts/portal-mariadb/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/portal/charts/portal-app/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aai/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aai/charts/aai-gizmo/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aai/charts/aai-babel/templates/deployment.yaml Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aai/charts/aai-champ/templates/deployment.yaml On Fri, Aug 3, 2018 at 6:30 AM, Vivekanandan Muthukrishnan < vmuthukrish...@aarnanetworks.com> wrote: > Hi Kiran, > > Thanks for the quick response. We will try this workaround and update you > soon. > > Regards > Vivek > > On Fri, Aug 3, 2018 at 12:45 AM, Kamineni, Kiran K < > kiran.k.kamin...@intel.com> wrote: > >> Looks like the stateful set indentation is not correct for the node >> selector. >> >> >> >> It should have the same indentation as volumes. >> >> >> >> >> >> *-- K i r a n* >> >> >> >> *From:* onap-discuss@lists.onap.org [mailto:onap-discuss@lists.onap.org] *On >> Behalf Of *Vivekanandan Muthukrishnan >> *Sent:* Thursday, August 02, 2018 11:22 AM >> *To:* onap-discuss@lists.onap.org >> *Cc:* Sriram Rupanagunta ; Amar Kapadia < >> akapa...@aarnanetworks.com> >> *Subject:* [onap-discuss] OOM k8s Beijing/2.0.0-ONAP Helm build fails >> for nodeSelector attribute in values.yaml >> >> >> >> Hi All, >> >> >> >> We need some help regarding *nodeSelector* attribute definition in ONAP >> OOM kubernetes values.yaml file. >> >> >> >> When we included the nodeSelector attribute, the Helm package make failed. >> >> >> >> *Here is what we did.* >> >> >> >> 1) Created 2 node Rancher + Kubernetes cluster >> >> >> >> 2) Created the following labels >> >> >> >> $ kubectl get nodes >> >> NAMESTATUSROLES AGE VERSION >> >> beijing01 Ready 2hv1.8.10-rancher1 >> >> beijing02 Ready 1hv1.8.10-rancher1 >> >> >> >> # Define a label for each node >> >> $ kubec
Re: [onap-discuss] OOM k8s Beijing/2.0.0-ONAP Helm build fails for nodeSelector attribute in values.yaml
Hi Kiran, Thanks for the quick response. We will try this workaround and update you soon. Regards Vivek On Fri, Aug 3, 2018 at 12:45 AM, Kamineni, Kiran K < kiran.k.kamin...@intel.com> wrote: > Looks like the stateful set indentation is not correct for the node > selector. > > > > It should have the same indentation as volumes. > > > > > > *-- K i r a n* > > > > *From:* onap-discuss@lists.onap.org [mailto:onap-discuss@lists.onap.org] *On > Behalf Of *Vivekanandan Muthukrishnan > *Sent:* Thursday, August 02, 2018 11:22 AM > *To:* onap-discuss@lists.onap.org > *Cc:* Sriram Rupanagunta ; Amar Kapadia < > akapa...@aarnanetworks.com> > *Subject:* [onap-discuss] OOM k8s Beijing/2.0.0-ONAP Helm build fails for > nodeSelector attribute in values.yaml > > > > Hi All, > > > > We need some help regarding *nodeSelector* attribute definition in ONAP > OOM kubernetes values.yaml file. > > > > When we included the nodeSelector attribute, the Helm package make failed. > > > > *Here is what we did.* > > > > 1) Created 2 node Rancher + Kubernetes cluster > > > > 2) Created the following labels > > > > $ kubectl get nodes > > NAMESTATUSROLES AGE VERSION > > beijing01 Ready 2hv1.8.10-rancher1 > > beijing02 Ready 1hv1.8.10-rancher1 > > > > # Define a label for each node > > $ kubectl label nodes beijing01 nodeName=beijing01 > > node "beijing01" labeled > > > > $ kubectl label nodes beijing02 nodeName=beijing02 > > node "beijing02" labeled > > > > 3) Then updated the oom/kubernetes/common/mongo/values.yaml (Kindly refer > the attached file) > > > > nodeSelector: > > nodeName: beijing01 > > > > 4) Helm package make command failed with the below error > > > > ==> Linting mongo > > [INFO] Chart.yaml: icon is recommended > > [ERROR] templates/statefulset.yaml: unable to parse YAML > > error converting YAML to JSON: yaml: line 55: did not find > expected '-' indicator > > > > Error: 1 chart(s) linted, 1 chart(s) failed > > Makefile:40: recipe for target 'lint-mongo' failed > > make[3]: *** [lint-mongo] Error 1 > > make[3]: Leaving directory '/home/aarna/ONAP_Kubernetes/ > oom/kubernetes/common' > > Makefile:30: recipe for target 'mongo' failed > > make[2]: *** [mongo] Error 2 > > make[2]: Leaving directory '/home/aarna/ONAP_Kubernetes/ > oom/kubernetes/common' > > Makefile:39: recipe for target 'make-common' failed > > make[1]: *** [make-common] Error 2 > > make[1]: Leaving directory '/home/test/oom/kubernetes' > > Makefile:35: recipe for target 'common' failed > > make: *** [common] Error 2 > > > > > > 5) The build works when we give the default value. > > > > nodeSelector: {} > > > > Note :- > ># You can pull the OOM sources using the below command > >$ git clone https://gerrit.onap.org/r/oom -b 2.0.0-ONAP > > > ># To verify the YAML & tempaltes files you can go to the > following folder > >$ cd oom/kubernetes/common/mongo > > > > Could some one help us to define the *nodeSelector* attribute would be > great. > > > > Thanks & Regards > > Vivek > > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11635): https://lists.onap.org/g/onap-discuss/message/11635 Mute This Topic: https://lists.onap.org/mt/24147230/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[onap-discuss] OOM k8s Beijing/2.0.0-ONAP Helm build fails for nodeSelector attribute in values.yaml
Hi All, We need some help regarding *nodeSelector* attribute definition in ONAP OOM kubernetes values.yaml file. When we included the nodeSelector attribute, the Helm package make failed. *Here is what we did.* 1) Created 2 node Rancher + Kubernetes cluster 2) Created the following labels $ kubectl get nodes NAMESTATUSROLES AGE VERSION beijing01 Ready 2hv1.8.10-rancher1 beijing02 Ready 1hv1.8.10-rancher1 # Define a label for each node $ kubectl label nodes beijing01 nodeName=beijing01 node "beijing01" labeled $ kubectl label nodes beijing02 nodeName=beijing02 node "beijing02" labeled 3) Then updated the oom/kubernetes/common/mongo/values.yaml (Kindly refer the attached file) nodeSelector: nodeName: beijing01 4) Helm package make command failed with the below error ==> Linting mongo [INFO] Chart.yaml: icon is recommended [ERROR] templates/statefulset.yaml: unable to parse YAML error converting YAML to JSON: yaml: line 55: did not find expected '-' indicator Error: 1 chart(s) linted, 1 chart(s) failed Makefile:40: recipe for target 'lint-mongo' failed make[3]: *** [lint-mongo] Error 1 make[3]: Leaving directory '/home/aarna/ONAP_Kubernetes/oom/kubernetes/common' Makefile:30: recipe for target 'mongo' failed make[2]: *** [mongo] Error 2 make[2]: Leaving directory '/home/aarna/ONAP_Kubernetes/oom/kubernetes/common' Makefile:39: recipe for target 'make-common' failed make[1]: *** [make-common] Error 2 make[1]: Leaving directory '/home/test/oom/kubernetes' Makefile:35: recipe for target 'common' failed make: *** [common] Error 2 5) The build works when we give the default value. nodeSelector: {} Note :- # You can pull the OOM sources using the below command $ git clone https://gerrit.onap.org/r/oom -b 2.0.0-ONAP # To verify the YAML & tempaltes files you can go to the following folder $ cd oom/kubernetes/common/mongo Could some one help us to define the *nodeSelector* attribute would be great. Thanks & Regards Vivek -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11624): https://lists.onap.org/g/onap-discuss/message/11624 Mute This Topic: https://lists.onap.org/mt/24147230/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=- values.yaml Description: application/yaml