Added flag to instruct yaprt to ignore tempest

This change makes it possible for OSAD to instruct yaprt to NEVER
do anything with tempest and the requirements that are being
brought with the requirements that can cause issues with un-versioned
requirements. This flag simply instructs yaprt to index the repo
as a item in the report but in this case absolutely no requirements
will be indexed or built for tempest.

This was done because tempest does not version anything and its
forward movement makes it impossible to maintain a consistent stack
and for our purposes, we install tempest in a venv using an isolated
install so none of these tempest requirements are necessary for us
to have to deal with.

Change-Id: I619300352efe50828fc34ee1ded96e13a43522cd
Closes-Bug: #1466010
This commit is contained in:
kevin 2015-06-20 22:54:23 -05:00
parent 8352c967ed
commit cba5f5cf3d
2 changed files with 10 additions and 0 deletions

View File

@ -91,4 +91,5 @@ swift_git_dest: "/opt/swift_{{ swift_git_install_branch | replace('/', '_') }}"
## Tempest service
tempest_git_repo: https://github.com/openstack/tempest
tempest_git_install_branch: 9927d643c7340cc55a351cc8ed159d7dd3ba0c54 # HEAD of "master" as of 08.06.2015
tempest_git_install_fragments: "yaprtignorerequirements=true"
tempest_git_dest: "/opt/tempest_{{ tempest_git_install_branch | replace('/', '_') }}"

View File

@ -122,6 +122,9 @@ class DependencyFileProcessor(object):
)
)
if git_data['fragments']:
package = '%s&%s' % (package, git_data['fragments'])
self.pip['git_package'].append(package)
def _process_git(self, loaded_yaml, git_item):
@ -151,6 +154,12 @@ class DependencyFileProcessor(object):
git_data['repo'], git_data['branch']
)
git_data['fragments'] = loaded_yaml.get(
'%s_git_install_fragments' % var_name.replace('.', '_')
)
if git_data['fragments']:
package = '%s#%s' % (package, git_data['fragments'])
self.pip['git_package'].append(package)
git_repo_plugins = loaded_yaml.get('%s_repo_plugins' % var_name)