Sync deployment tasks on fuel-library upgrade

Simple yum update could break redeployments because
a given task could be changed or deleted. Therefore,
an attempt or warning should be made to update
deployment tasks.

Added explicit dependency on fuelclient.

Change-Id: I06a905aa0bbaefbeb7cbdc60b563f11575bd5bd8
Closes-Bug: #1475530
This commit is contained in:
Matthew Mosesohn 2015-10-06 19:38:46 +03:00
parent 80c2dcf3e2
commit 9821477325

View File

@ -18,7 +18,7 @@ BuildRequires: ruby21-rubygem-librarian-puppet-simple
%else
BuildRequires: rubygem-librarian-puppet-simple
%endif
Requires: fuel-misc
Requires: fuel-misc python-fuelclient
%define files_source %{_builddir}/%{name}-%{version}/files
%define dockerctl_source %{files_source}/fuel-docker-utils
@ -123,6 +123,13 @@ do
ln -s /etc/puppet/%{openstack_version}/${i} /etc/puppet/${i}
done
if [ "$1" = 2 ]; then
#Try to sync deployment tasks or notify user on upgrade
tasksdir=/etc/puppet/%{openstack_version}/
fuel rel --sync-deployment-tasks --dir "$taskdir" || \
echo "Unable to sync tasks. Run `fuel rel --sync-deployment-tasks --dir $taskdir` to finish install." 1>&2
fi
%files
/etc/puppet/%{openstack_version}/modules/
/etc/puppet/%{openstack_version}/manifests/