Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install project dependencies #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lbragstad
Copy link
Contributor

When using the latest master of keystone-deploy, an error is thrown when
ansible attempts to sync the keystone database (keystone-manage db_sync). The
command errors out saying there is no oslo_config module, even though
oslo.config is listed as a dependency in keystone's requirements.txt file. I
believe this should be done when the project is installed using python setup.py install prior to running the migration but I'm not sure why
oslo_config isn't found.

This commit just adds an ansible play to manually install the project
requirements.txt files using pip before the migration is run.

When using the latest master of keystone-deploy, an error is thrown when
ansible attempts to sync the keystone database (keystone-manage db_sync). The
command errors out saying there is no oslo_config module, even though
oslo.config is listed as a dependency in keystone's requirements.txt file. I
believe this should be done when the project is installed  using `python
setup.py install` prior to running the migration but I'm not sure why
oslo_config isn't found.

This commit just adds an ansible play to manually install the project
requirements.txt files using pip before the migration is run.
Since we are running CI on Travis and Ubuntu 12.04 images, we are also running
Apache 2.2. There is some logic in our plays that makes some Apache 2.4
assumption. This commit adds logic to make Apache happy when running
keystone-deploy against Ubuntu 12.04 or Ubuntu 14.04.
@@ -31,7 +31,8 @@

- name: enable mpm_prefork
command: a2enmod mpm_prefork
when: not mpm_prefork.stat.exists
when: not mpm_prefork.stat.exists and
(ansible_lsb.id == "Ubuntu" and ansible_lsb.release == "14.04")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently mpm_prefork is the default for apache 2.2

http://httpd.apache.org/docs/2.2/mpm.html#defaults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant