[openstack-dev] [EXTERNAL] Re: [TripleO] custom configuration to overcloud fails second time
Jiří Stránský
jistr at redhat.com
Thu Jun 1 12:17:20 UTC 2017
On 31.5.2017 17:40, Dnyaneshwar Pawar wrote:
> Hi Ben,
>
> On 5/31/17, 8:06 PM, "Ben Nemec" <openstack at nemebean.com<mailto:openstack at nemebean.com>> wrote:
>
> I think we would need to see what your custom config templates look like
> as well.
>
> Custom config templates: http://paste.openstack.org/show/611114/
Hello Dnyaneshwar,
from a brief scan of that paste i think that:
OS::TripleO::ControllerExtraConfig: /home/stack/example_2.yaml
should rather be:
OS::TripleO::ControllerExtraConfigPre: /home/stack/example_2.yaml
The 'Pre' hook gets a `server` parameter (not `servers`) - it's
instantiated per server [1], not per role. There are docs [2] that
describe the interface, and they describe some alternative options as well.
(Please ask such questions on IRC channel #tripleo on freenode, as the
openstack-dev list is meant mainly for development discussion.)
Have a good day,
Jirka
[1]
https://github.com/openstack/tripleo-heat-templates/blob/b344f5994fcd16e562d55e6e00ad0980c5b32621/puppet/role.role.j2.yaml#L475-L479
[2] http://tripleo.org/advanced_deployment/extra_config.html
>
>
> Also note that it's generally not recommended to drop environment files
> from your deploy command unless you explicitly want to stop applying
> them. So if you applied myconfig_1.yaml and then later want to apply
> myconfig_2.yaml your deploy command should look like: openstack
> overcloud deploy --templates -e myconfig_1.yaml -e myconfig_2.yaml
>
> Yes, I agree. But in my case even if I dropped myconfig_1.yaml while applying myconfig_2.yaml , config in step 1 remained unchanged.
>
> On 05/31/2017 07:53 AM, Dnyaneshwar Pawar wrote:
> Hi TripleO Experts,
> I performed following steps -
>
> 1. openstack overcloud deploy --templates -e myconfig_1.yaml
> 2. openstack overcloud deploy --templates -e myconfig_2.yaml
>
> Step 1 Successfully applied custom configuration to the overcloud.
> Step 2 completed successfully but custom configuration is not applied to
> the overcloud. And configuration applied by step 1 remains unchanged.
>
> *Do I need to do anything before performing step 2?*
>
>
> Thanks and Regards,
> Dnyaneshwar
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org<mailto:OpenStack-dev-request at 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-request at lists.openstack.org<mailto:OpenStack-dev-request at 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-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
More information about the OpenStack-dev
mailing list