2016-10-12 05:31:55 |
Graeme Gillies |
description |
Hi,
I am just in the process of upgrading an RDO mitaka overcloud to an RDO Newton installation.
I have successfully upgrade my undercloud to newton.
I am at the first step
"And run overcloud deploy, passing in full set of environment files plus major-upgrade-pacemaker-init.yaml and overcloud-repos.yaml:
openstack overcloud deploy --templates \
-e <full environment> \
-e /usr/share/openstack-tripleo-heat-templates/environments/major-upgrade-pacemaker-init.yaml \
-e overcloud-repos.yaml"
I have all my work in /home/stack/rhosops-test-tripleo/openstack-deployment (environment files, etc).
I have copied the new templates from /usr/share/openstack-tripleo-heat-templates into /home/stack/rhosops-test-tripleo/openstack-deployment
I have created a script
/home/stack/rhosops-test-tripleo/openstack-deployment/upgrades/mitaka-to-newton/01-major-upgrade-pacemaker-init.sh
with the following
#!/bin/bash
. /home/stack/stackrc
cd /home/stack/rhosops-test-tripleo/openstack-deployment
time openstack overcloud deploy \
--templates templates \
-t 180 \
--ntp-server clock.corp.redhat.com \
--validation-warnings-fatal \
--overcloud-ssh-user rdo-admins \
-e rhosops-test-node-data.yaml \
-e rhosops-test-scheduler-hints.yaml \
-e rhosops-test-storage-environment.yaml \
-e templates/environments/puppet-pacemaker.yaml \
-e templates/environments/network-isolation.yaml \
-e templates/environments/ips-from-pool-all.yaml \
-e rhosops-test-network-environment.yaml \
-e rhosops-test-customisations.yaml \
-e templates/environments/major-upgrade-pacemaker-init.yaml \
-e upgrades/mitaka-to-newton/overcloud-repos.yaml
my contents of upgrades/mitaka-to-newton/overcloud-repos.yaml is
parameter_defaults:
UpgradeInitCommand: |
set -e
yum --enablerepo='*' clean all
yum remove -y centos-release-openstack-mitaka
yum install -y centos-release-openstack-newton
The error I get when I attempt to run the file is
$ ./01-major-upgrade-pacemaker-init.sh
Removing the current plan files
Uploading new plan files
Started Mistral Workflow. Execution ID: 6678e67b-c1e4-40fe-b47c-1fd539832676
Plan updated
Deploying templates in the directory /home/stack/rhosops-test-tripleo/openstack-deployment/templates
Could not fetch contents for file:///home/stack/rhosops-test-tripleo/openstack-deployment/templates/extraconfig/tasks/major_upgrade_pacemaker_init.yaml
real 0m27.140s
user 0m2.281s
sys 0m0.195s
I notice that
/home/stack/rhosops-test-tripleo/openstack-deployment/templates/extraconfig/tasks/major_upgrade_pacemaker_init.j2.yaml
exists, so I assume that somewhere along the line the file gets templated by mistral, put into swift, before being invoked by heat.
I'm not sure if this is because I prefer to use a local copy of templates (stored in git) and relative pathing of environment files vs absolute paths, or something else.
Regards,
Graeme |
Hi,
I am just in the process of upgrading an RDO mitaka overcloud to an RDO Newton installation.
I have successfully upgrade my undercloud to newton.
I am at the first step
"And run overcloud deploy, passing in full set of environment files plus major-upgrade-pacemaker-init.yaml and overcloud-repos.yaml:
openstack overcloud deploy --templates \
-e <full environment> \
-e /usr/share/openstack-tripleo-heat-templates/environments/major-upgrade-pacemaker-init.yaml \
-e overcloud-repos.yaml"
I have all my work in /home/stack/rhosops-test-tripleo/openstack-deployment (environment files, etc).
I have copied the new templates from
/usr/share/openstack-tripleo-heat-templates
into
/home/stack/rhosops-test-tripleo/openstack-deployment/templates
I have created a script
/home/stack/rhosops-test-tripleo/openstack-deployment/upgrades/mitaka-to-newton/01-major-upgrade-pacemaker-init.sh
with the following
#!/bin/bash
. /home/stack/stackrc
cd /home/stack/rhosops-test-tripleo/openstack-deployment
time openstack overcloud deploy \
--templates templates \
-t 180 \
--ntp-server clock.corp.redhat.com \
--validation-warnings-fatal \
--overcloud-ssh-user rdo-admins \
-e rhosops-test-node-data.yaml \
-e rhosops-test-scheduler-hints.yaml \
-e rhosops-test-storage-environment.yaml \
-e templates/environments/puppet-pacemaker.yaml \
-e templates/environments/network-isolation.yaml \
-e templates/environments/ips-from-pool-all.yaml \
-e rhosops-test-network-environment.yaml \
-e rhosops-test-customisations.yaml \
-e templates/environments/major-upgrade-pacemaker-init.yaml \
-e upgrades/mitaka-to-newton/overcloud-repos.yaml
my contents of upgrades/mitaka-to-newton/overcloud-repos.yaml is
parameter_defaults:
UpgradeInitCommand: |
set -e
yum --enablerepo='*' clean all
yum remove -y centos-release-openstack-mitaka
yum install -y centos-release-openstack-newton
The error I get when I attempt to run the file is
$ ./01-major-upgrade-pacemaker-init.sh
Removing the current plan files
Uploading new plan files
Started Mistral Workflow. Execution ID: 6678e67b-c1e4-40fe-b47c-1fd539832676
Plan updated
Deploying templates in the directory /home/stack/rhosops-test-tripleo/openstack-deployment/templates
Could not fetch contents for file:///home/stack/rhosops-test-tripleo/openstack-deployment/templates/extraconfig/tasks/major_upgrade_pacemaker_init.yaml
real 0m27.140s
user 0m2.281s
sys 0m0.195s
I notice that
/home/stack/rhosops-test-tripleo/openstack-deployment/templates/extraconfig/tasks/major_upgrade_pacemaker_init.j2.yaml
exists, so I assume that somewhere along the line the file gets templated by mistral, put into swift, before being invoked by heat.
I'm not sure if this is because I prefer to use a local copy of templates (stored in git) and relative pathing of environment files vs absolute paths, or something else.
Regards,
Graeme |
|