N->O upgrade, fix wrong parameters to nova placement.
authorSofer Athlan-Guyot <sathlang@redhat.com>
Wed, 19 Apr 2017 09:26:45 +0000 (11:26 +0200)
committerSofer Athlan-Guyot <sathlang@redhat.com>
Wed, 19 Apr 2017 12:30:43 +0000 (14:30 +0200)
According to [1] we need os_region_name, not region_name.  Furthermore
the os_interface is configured as well.  The hard check on this
parameter was introduced in ocata[2], explaining why the newton version
did not chock on it.

[1] https://docs.openstack.org/ocata/config-reference/compute/config-options.html
[2] https://github.com/openstack/nova/commit/d486315e0

Closes-Bug: #1684058
Change-Id: If6118bf03e832fe3fa5ea4fcb1b436afd2adf80a

puppet/major_upgrade_steps.j2.yaml

index c0a0778..2809277 100644 (file)
@@ -51,10 +51,11 @@ resources:
           - "  crudini --set /etc/nova/nova.conf placement project_domain_name Default\n\n"
           - "  crudini --set /etc/nova/nova.conf placement user_domain_name Default\n\n"
           - "  crudini --set /etc/nova/nova.conf placement project_name service\n\n"
+          - "  crudini --set /etc/nova/nova.conf placement os_interface internal\n\n"
           - str_replace:
               template: |
                 crudini --set /etc/nova/nova.conf placement password 'SERVICE_PASSWORD'
-                crudini --set /etc/nova/nova.conf placement region_name 'REGION_NAME'
+                crudini --set /etc/nova/nova.conf placement os_region_name 'REGION_NAME'
                 crudini --set /etc/nova/nova.conf placement auth_url 'AUTH_URL'
               params:
                 SERVICE_PASSWORD: { get_param: NovaPassword }