-
Notifications
You must be signed in to change notification settings - Fork 3
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
[WIP]Configuring tests to be fetched from RPM #5
base: main
Are you sure you want to change the base?
Conversation
become: true | ||
become_user: stack | ||
shell: | | ||
scp -r controller-0.ctlplane:~/openstack-dashboard/openstack_dashboard/ "{{ selenium_tests_temp.path }}"/openstack_dashboard ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you feel about converting this to a play that runs on a different host and using "import playbook" I feel like hard coding ssh commands in ansible and circumventing ansible's mechanism for ssh and host management is a recipe for disaster |
@EliadCohen it's a bit tricky, because the files are actually inside a container, and we can't easily run a playbook in there. And to run the tests on the controller node outside of the container, we would need to install a fair number of dependencies that are normally only inside the container. |
@deshipu I understand. We still can have this in a different playbook that references, say, the first member of the "controller" group. That way nothing is hard-coded and the plugin can be run against anything. Including DCN without worrying about the name of the controller nodes. I don't understand where the conflict is.... |
become_user: stack | ||
shell: | | ||
scp -r controller-0.ctlplane:~/openstack-dashboard/openstack_dashboard/ "{{ selenium_tests_temp.path }}"/openstack_dashboard ; | ||
scp -r controller-0.ctlplane:~/openstack-dashboard/manage.py "{{ selenium_tests_temp.path }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fetch didn't work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fetch wouldn't work in case of recursive directories it seems , we need directories along with the sub-directories as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me try to find a way to do this using other alternatives such as synchronize module if that works
No description provided.