-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
Conflicting PR. Removed from build MANAGEMENT_TOOLS-merge#1040. See the console output for more details.
|
Conflicting PR. Removed from build MANAGEMENT_TOOLS-merge#1041. See the console output for more details.
|
Conflicting PR. Removed from build MANAGEMENT_TOOLS-merge#1042. See the console output for more details.
|
Conflicting PR. Removed from build MANAGEMENT_TOOLS-merge#1043. See the console output for more details.
|
Conflicting PR. Removed from build MANAGEMENT_TOOLS-merge#1044. See the console output for more details.
|
using vars and ome/devspace#52:
deployed on 10.0.51.106
|
# devspace branch | ||
version: "0.3.2" | ||
devspace_git_repo_version: "0.3.3" |
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.
new tag
|
DO NOT USE ansible 2.2 looks like many things has changed in ansible 2.2
Need to look at that closer |
It's deprecated syntax that has obviously been dropped in 2.2: https://github.com/openmicroscopy/infrastructure/blob/master/ansible/roles/docker/tasks/main.yml#L69 |
replace: '\1<jenkinsUrl>https://{{ devspace_openstack_ip }}:8443</jenkinsUrl>' | ||
with_items: | ||
- jenkins.model.JenkinsLocationConfiguration.xml | ||
when: devspace_openstack_ip|length>0 |
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.
Note this forces devspace_openstack_ip
to be defined. Otherwise, the playbook fails with
TASK [devspace : fix jenkinsUrl] ***********************************************
fatal: [seb-devspace]: FAILED! => {"failed": true, "msg": "The conditional check 'devspace_openstack_ip|length>0' failed. The error was: Unexpected templating type error occurred on ({% if devspace_openstack_ip|length>0 %} True {% else %} False {% endif %}): object of type 'NoneType' has no len()\n\nThe error appears to have been in '/opt/ome/management_tools/infrastructure/ansible/roles/devspace/tasks/devspace-install.yml': line 181, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: fix jenkinsUrl\n ^ here\n"}
Is there a way to have the conditional being more robust or define a default IP like 0.0.0.0?
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.
no ,you can't, that is your jenkins host and jenkins must have that set to the real value. Otherwise testNG results won't show up
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.
I am sure default(inventory_hostname)
would solve the problem but unfortunately I dont know how to use it
#149 (comment) is not a blocker as the behavior was already there but it might be interesting to use the dynamic inventory to retrieve the IP for simplification in the future. Otherwise, I was able to provision, deploy and run the devspace from the tip of this branch. Merging. |
thx for testing |
cleanup devspace
This PR renams vars and fixed jenkins url to match ip (that value is used by testng)
Test:
with ome/devspace#52
default: