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 <srupanagu...@aarnanetworks.com>; 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/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/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-resmgr/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-workflow/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-catalog/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-vnfmgr/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-multivim-proxy/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-huawei-vnfm-driver/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-nslcm/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-zte-sdnc-driver/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-vnflcm/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-zte-vnfm-driver/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-workflow-engine/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/vfc/ > charts/vfc-vnfres/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/nbi/ > templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/nbi/ > charts/mariadb/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_ > beijing/oom/kubernetes/robot/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/msb/ > charts/msb-consul/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/msb/ > charts/msb-iag/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/msb/ > charts/msb-discovery/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/msb/ > charts/kube2msb/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/msb/ > charts/msb-eag/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/ > multicloud/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/ > multicloud/charts/multicloud-windriver/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/ > multicloud/charts/multicloud-vio/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/ > multicloud/charts/multicloud-ocata/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/helm/ > starters/onap-app/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/ > dcaegen2/charts/dcae-redis/templates/statefulset.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/oof/ > templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/oof/ > charts/oof-has/charts/oof-has-api/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/oof/ > charts/oof-has/charts/oof-has-reservation/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/oof/ > charts/oof-has/charts/oof-has-solver/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/oof/ > charts/oof-has/charts/oof-has-data/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/oof/ > charts/oof-has/charts/oof-has-zookeeper/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/oof/ > charts/oof-has/charts/oof-has-controller/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/oof/ > charts/oof-has/charts/oof-has-cassandra/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-cs/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-gui/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-service/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-cm/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-hello/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-locate/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-sms/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-sms/charts/aaf-sms-quorumclient/templates/statefulset.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-fs/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/aaf/ > charts/aaf-oauth/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdc/ > charts/sdc-kb/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdc/ > charts/sdc-onboarding-be/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdc/ > charts/sdc-be/templates/deployment.yaml > > Found in file : /home/aarna/ONAP/Beijing/oom_beijing/oom/kubernetes/sdc/ > charts/sdc-cs/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 <srupanagu...@aarnanetworks.com>; 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 > > NAME STATUS ROLES AGE VERSION > > beijing01 Ready <none> 2h v1.8.10-rancher1 > > beijing02 Ready <none> 1h v1.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 (#11686): https://lists.onap.org/g/onap-discuss/message/11686 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] -=-=-=-=-=-=-=-=-=-=-=-