Re: [openstack-dev] [tripleo] Issue while applying customs configuration to overcloud.
On 16.05.2017 17:19, Dnyaneshwar Pawar wrote: > Hi Steve, > > Thanks for your reply. > > Out of interest, where did you find OS::TripleO::ControllerServer, do we > have a mistake in our docs somewhere? > > I referred below template. > https://github.com/openstack/tripleo-heat-templates/blob/master/puppet/controller-role.yaml > > resources: > > Controller: > type: OS::TripleO::ControllerServer > metadata: > os-collect-config: > > > OS::Heat::SoftwareDeployment is referred instead of > OS::Heat::SoftwareDeployments at following places. > > 1. > https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/11/pdf/partner_integration/Red_Hat_OpenStack_Platform-11-Partner_Integration-en-US.pdf >Section 2.1.4. TripleO and TripleO Heat Templates (page #13 in pdf) >Section 5.4. CUSTOMIZING CONFIGURATION BEFORE OVERCLOUD CONFIGURATION > (Page #32 in pdf) > 2. http://hardysteven.blogspot.in/2015/05/heat-softwareconfig-resources.html >Section: Heat SoftwareConfig resources >Section: SoftwareDeployment HOT template definition > 3. > http://hardysteven.blogspot.in/2015/05/tripleo-heat-templates-part-2-node.html > Section: Initial deployment flow, step by step > > > Thanks and Regards, > Dnyaneshwar > > > On 5/16/17, 4:40 PM, "Steven Hardy"wrote: > > On Tue, May 16, 2017 at 04:33:33AM +, Dnyaneshwar Pawar wrote: > > Hi TripleO team, > > > > I am trying to apply custom configuration to an existing overcloud. > (using openstack overcloud deploy command) > > Though there is no error, the configuration is in not applied to > overcloud. > > Am I missing anything here? > > http://paste.openstack.org/show/609619/ > > In your paste you have the resource_registry like this: > > OS::TripleO::ControllerServer: /home/stack/test/heat3_ocata.yaml > > The problem is OS::TripleO::ControllerServer isn't a resource type we use, > e.g it's not a valid hook to enable additional node configuration. > > Instead try something like this: > > OS::TripleO::NodeExtraConfigPost: /home/stack/test/heat3_ocata.yaml > > Which will run the script on all nodes, as documented here: > > > https://docs.openstack.org/developer/tripleo-docs/advanced_deployment/extra_config.html > > Out of interest, where did you find OS::TripleO::ControllerServer, do we > have a mistake in our docs somewhere? > > Also in your template the type: OS::Heat::SoftwareDeployment should be > either type: OS::Heat::SoftwareDeployments (as in the docs) or type: > OS::Heat::SoftwareDeploymentGroup (the newer name for SoftwareDeployments, > we should switch the docs to that..). > > Hope that helps! An interesting topic, a popular use case! Let's please fix confusing user experience [0], feel free to update with SoftwareDeployment(s) nuances as well. [0] https://review.openstack.org/#/c/465498/ > > -- > Steve Hardy > Red Hat Engineering, Cloud > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > -- Best regards, Bogdan Dobrelya, Irc #bogdando __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [tripleo] Issue while applying customs configuration to overcloud.
Hi Steve, Thanks for your reply. Out of interest, where did you find OS::TripleO::ControllerServer, do we have a mistake in our docs somewhere? I referred below template. https://github.com/openstack/tripleo-heat-templates/blob/master/puppet/controller-role.yaml resources: Controller: type: OS::TripleO::ControllerServer metadata: os-collect-config: OS::Heat::SoftwareDeployment is referred instead of OS::Heat::SoftwareDeployments at following places. 1. https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/11/pdf/partner_integration/Red_Hat_OpenStack_Platform-11-Partner_Integration-en-US.pdf Section 2.1.4. TripleO and TripleO Heat Templates (page #13 in pdf) Section 5.4. CUSTOMIZING CONFIGURATION BEFORE OVERCLOUD CONFIGURATION (Page #32 in pdf) 2. http://hardysteven.blogspot.in/2015/05/heat-softwareconfig-resources.html Section: Heat SoftwareConfig resources Section: SoftwareDeployment HOT template definition 3. http://hardysteven.blogspot.in/2015/05/tripleo-heat-templates-part-2-node.html Section: Initial deployment flow, step by step Thanks and Regards, Dnyaneshwar On 5/16/17, 4:40 PM, "Steven Hardy"wrote: On Tue, May 16, 2017 at 04:33:33AM +, Dnyaneshwar Pawar wrote: > Hi TripleO team, > > I am trying to apply custom configuration to an existing overcloud. (using openstack overcloud deploy command) > Though there is no error, the configuration is in not applied to overcloud. > Am I missing anything here? > http://paste.openstack.org/show/609619/ In your paste you have the resource_registry like this: OS::TripleO::ControllerServer: /home/stack/test/heat3_ocata.yaml The problem is OS::TripleO::ControllerServer isn't a resource type we use, e.g it's not a valid hook to enable additional node configuration. Instead try something like this: OS::TripleO::NodeExtraConfigPost: /home/stack/test/heat3_ocata.yaml Which will run the script on all nodes, as documented here: https://docs.openstack.org/developer/tripleo-docs/advanced_deployment/extra_config.html Out of interest, where did you find OS::TripleO::ControllerServer, do we have a mistake in our docs somewhere? Also in your template the type: OS::Heat::SoftwareDeployment should be either type: OS::Heat::SoftwareDeployments (as in the docs) or type: OS::Heat::SoftwareDeploymentGroup (the newer name for SoftwareDeployments, we should switch the docs to that..). Hope that helps! -- Steve Hardy Red Hat Engineering, Cloud __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [tripleo] Issue while applying customs configuration to overcloud.
On Tue, May 16, 2017 at 04:33:33AM +, Dnyaneshwar Pawar wrote: > Hi TripleO team, > > I am trying to apply custom configuration to an existing overcloud. (using > openstack overcloud deploy command) > Though there is no error, the configuration is in not applied to overcloud. > Am I missing anything here? > http://paste.openstack.org/show/609619/ In your paste you have the resource_registry like this: OS::TripleO::ControllerServer: /home/stack/test/heat3_ocata.yaml The problem is OS::TripleO::ControllerServer isn't a resource type we use, e.g it's not a valid hook to enable additional node configuration. Instead try something like this: OS::TripleO::NodeExtraConfigPost: /home/stack/test/heat3_ocata.yaml Which will run the script on all nodes, as documented here: https://docs.openstack.org/developer/tripleo-docs/advanced_deployment/extra_config.html Out of interest, where did you find OS::TripleO::ControllerServer, do we have a mistake in our docs somewhere? Also in your template the type: OS::Heat::SoftwareDeployment should be either type: OS::Heat::SoftwareDeployments (as in the docs) or type: OS::Heat::SoftwareDeploymentGroup (the newer name for SoftwareDeployments, we should switch the docs to that..). Hope that helps! -- Steve Hardy Red Hat Engineering, Cloud __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [tripleo] Issue while applying customs configuration to overcloud.
Hi Marios, Thanks for your reply. Referred example mentioned at https://docs.openstack.org/developer/tripleo-docs/advanced_deployment/extra_config.html , it is failing with error mentioned at http://paste.openstack.org/show/609644/ Regards, Dnyaneshwar From: Marios Andreou <mandr...@redhat.com> Reply-To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org> Date: Tuesday, May 16, 2017 at 11:59 AM To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org> Subject: Re: [openstack-dev] [tripleo] Issue while applying customs configuration to overcloud. On Tue, May 16, 2017 at 7:33 AM, Dnyaneshwar Pawar <dnyaneshwar.pa...@veritas.com<mailto:dnyaneshwar.pa...@veritas.com>> wrote: Hi TripleO team, I am trying to apply custom configuration to an existing overcloud. (using openstack overcloud deploy command) Though there is no error, the configuration is in not applied to overcloud. Am I missing anything here? http://paste.openstack.org/show/609619/ [stack@h-uc test]$ cat tripleo_ocata.yaml resource_registry: OS::TripleO::ControllerServer: /home/stack/test/heat3_ocata.yaml ^^^ this bit won't work for you. The 'normal' ControllerServer points to 'OS::TripleO::Server' and then 'OS::Nova::Server' https://github.com/openstack/tripleo-heat-templates/blob/66b39c2c21b6629222c0d212642156437119e977/overcloud-resource-registry-puppet.j2.yaml#L44-L47 You're overriding it with something that defines a 'normal' SoftwareConfig (afaics it is 'correct' heat template syntax fwiw) but I don't think it is going to run on any servers && surprised you don't get an error for the properties being passed in here https://github.com/openstack/tripleo-heat-templates/blob/ef82c3a010cf6161f1da1020698dbd38257f5a12/puppet/controller-role.yaml#L168-L175 [stack@h-uc test]$ openstack overcloud deploy --templates -e tripleo_ocata.yaml 2>&1 |tee dny4.log ^^^ here be aware that you should re-specify all the environment files you used on the original deploy in addition to your customization environments at the end (tripleo_ocata.yaml). Otherwise you'll be getting all the defaults specified by the /usr/share/openstack-tripleo-heat-templates Have you see this https://docs.openstack.org/developer/tripleo-docs/advanced_deployment/extra_config.html there are some examples there that do what you want. Instead of overriding the ControllerServer try "OS::TripleO::NodeUserData" for example hope it helps Thanks and Regards, Dnyaneshwar __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe<http://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [tripleo] Issue while applying customs configuration to overcloud.
On Tue, May 16, 2017 at 7:33 AM, Dnyaneshwar Pawar < dnyaneshwar.pa...@veritas.com> wrote: > Hi TripleO team, > > I am trying to apply custom configuration to an existing overcloud. (using > openstack overcloud deploy command) > Though there is no error, the configuration is in not applied to overcloud. > Am I missing anything here? > http://paste.openstack.org/show/609619/ > > > [stack@h-uc test]$ cat tripleo_ocata.yaml resource_registry: OS::TripleO::ControllerServer: /home/stack/test/heat3_ocata.yaml ^^^ this bit won't work for you. The 'normal' ControllerServer points to 'OS::TripleO::Server' and then 'OS::Nova::Server' https://github.com/openstack/tripleo-heat-templates/blob/66b39c2c21b6629222c0d212642156437119e977/overcloud-resource-registry-puppet.j2.yaml#L44-L47 You're overriding it with something that defines a 'normal' SoftwareConfig (afaics it is 'correct' heat template syntax fwiw) but I don't think it is going to run on any servers && surprised you don't get an error for the properties being passed in here https://github.com/openstack/tripleo-heat-templates/blob/ef82c3a010cf6161f1da1020698dbd38257f5a12/puppet/controller-role.yaml#L168-L175 [stack@h-uc test]$ openstack overcloud deploy --templates -e tripleo_ocata.yaml 2>&1 |tee dny4.log ^^^ here be aware that you should re-specify all the environment files you used on the original deploy in addition to your customization environments at the end (tripleo_ocata.yaml). Otherwise you'll be getting all the defaults specified by the /usr/share/openstack-tripleo-heat-templates Have you see this https://docs.openstack.org/developer/tripleo-docs/advanced_deployment/extra_config.html there are some examples there that do what you want. Instead of overriding the ControllerServer try "OS::TripleO::NodeUserData" for example hope it helps > Thanks and Regards, > Dnyaneshwar > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [tripleo] Issue while applying customs configuration to overcloud.
Hi TripleO team, I am trying to apply custom configuration to an existing overcloud. (using openstack overcloud deploy command) Though there is no error, the configuration is in not applied to overcloud. Am I missing anything here? http://paste.openstack.org/show/609619/ Thanks and Regards, Dnyaneshwar __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev