settingsLogin | Registersettings

[openstack-dev] [TripleO] custom configuration to overcloud fails second time

0 votes

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@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
asked Jun 1, 2017 in openstack-dev by Dnyaneshwar_Pawar (540 points)   1

4 Responses

0 votes

I think we would need to see what your custom config templates look like
as well.

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 myconfig1.yaml and then later want to apply
myconfig
2.yaml your deploy command should look like: openstack
overcloud deploy --templates -e myconfig1.yaml -e myconfig2.yaml

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@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@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded May 31, 2017 by Ben_Nemec (19,660 points)   2 3 4
0 votes

Hi Ben,

On 5/31/17, 8:06 PM, "Ben Nemec" openstack@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/

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 myconfig1.yaml and then later want to apply
myconfig
2.yaml your deploy command should look like: openstack
overcloud deploy --templates -e myconfig1.yaml -e myconfig2.yaml

Yes, I agree. But in my case even if I dropped myconfig1.yaml while applying myconfig2.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@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@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@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded May 31, 2017 by Dnyaneshwar_Pawar (540 points)   1
0 votes

Another observation -
Steps:
1. openstack overcloud deploy --templates -e myconfig1.yaml
2. openstack overcloud update overcloud
3. openstack overcloud deploy --templates -e myconfig
2.yaml

With this steps in sequence, configuration of myconfig_2.yaml is applied successfully. (still config in step 1 remained unchanged.)
I am not sure why do we need step 2 above?

Thanks,
Dnyaneshwar

From: "Dnyaneshwar.Pawar@veritas.com" Dnyaneshwar.Pawar@veritas.com
Date: Wednesday, May 31, 2017 at 9:10 PM
To: "OpenStack Development Mailing List (not for usage questions)" openstack-dev@lists.openstack.org
Subject: Re: [EXTERNAL] Re: [openstack-dev] [TripleO] custom configuration to overcloud fails second time

Hi Ben,

On 5/31/17, 8:06 PM, "Ben Nemec" openstack@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/

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 myconfig1.yaml and then later want to apply
myconfig
2.yaml your deploy command should look like: openstack
overcloud deploy --templates -e myconfig1.yaml -e myconfig2.yaml

Yes, I agree. But in my case even if I dropped myconfig1.yaml while applying myconfig2.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@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@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@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Jun 1, 2017 by Dnyaneshwar_Pawar (540 points)   1
0 votes

On 31.5.2017 17:40, Dnyaneshwar Pawar wrote:
Hi Ben,

On 5/31/17, 8:06 PM, "Ben Nemec" openstack@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 myconfig1.yaml and then later want to apply
myconfig
2.yaml your deploy command should look like: openstack
overcloud deploy --templates -e myconfig1.yaml -e myconfig2.yaml

Yes, I agree. But in my case even if I dropped myconfig1.yaml while applying myconfig2.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@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@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@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@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Jun 1, 2017 by =?UTF-8?B?SmnFmcOtIF (3,860 points)   2 3
...