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
Nuage Installation breaks during serviceaccount creation #3583
Comments
@ashcrow Any idea how can I debug this further ? |
@vishpat I'm taking a look at the output now. |
@vishpat the following stands out to me:
This seems to indicate that ansible was unable to write the temporary file. Here is the code reference. Search for Can you verify that your user as access to the kubeconfig that is referenced in the output and that it is able to create files in |
/cc @kwoodson |
@ashcrow I tried an install with an older release (release-1.4) on the same setup and it went through fine. I don't think there any permission issues on /tmp directory |
@vishpat After more review The following will produce more debug output for your instance: diff --git a/roles/nuage_master/tasks/serviceaccount.yml b/roles/nuage_master/tasks/serviceaccount.yml
index 16ea082..54e6dfe 100644
--- a/roles/nuage_master/tasks/serviceaccount.yml
+++ b/roles/nuage_master/tasks/serviceaccount.yml
@@ -18,6 +18,7 @@
name: nuage
namespace: default
state: present
+ debug: True
- name: Configure role/user permissions
command: > @kwoodson any ideas? |
@ashcrow Have attached the log file with debug set to True |
I think the issue is the failure "Post https://dns.nuageopenshift.com:8443/api/v1/namespaces/default/serviceaccounts: EOF" I reverted creating the service account the old way, and I am hitting the above error. |
@vishpat I agree. Just to verify, when you say 'the old way' you mean using the nuage ansible code from before the change to Can you provide the the log from |
@ashcrow @abutcher I think I know what the issue is. The nuage components are being brought up before the openshift api server is ready. I think with change d113f03 the order in which things are brought up has changed. I am trying out a fix where we bring the nuage components up after the API server is ready. |
@vishpat interesting. Keep us posted! If you are on Freenode feel free to reach out to us there. |
@ashcrow Unfortunately IRC is blocked at my workplace. btw the change in the order is indeed the cause of the issue. I tried moving the nuage component install in playbooks/common/openshift-cluster/additional_config.yml However the issue is, in case of HA configuration the nuage components get installed only on one of the master nodes, instead of all of the master nodes. My changes in additional_config.yml were as follows
|
I think I need to use "oo_masters_to_config" as the hosts in my case |
d113f03 moved role dependencies out of playbooks. However, this ended up causing the masters to not be configured before the nuage steps required configured masters. This change moves the nuage specific change in d113f03 back to the config. Resolves openshift#3583
@ashcrow I will test this out and let you know. Many thanks for this. |
@vishpat my pleasure! 😄 |
@ashcrow the install failed but it is not because of your changes. I know what the issue is, I need to run the service account commands on only one master node. I will make those changes and re-run your PR. |
@ashcrow The fix works !!! I need to make some changes to the nuage roles, I will create for it once you merge these changes in. Really appreciate your help with this. |
d113f03 moved role dependencies out of playbooks. However, this ended up causing the masters to not be configured before the nuage steps required configured masters. This change moves the nuage specific change in d113f03 back to the config. Resolves openshift#3583
@vishpat PR merged. |
<HTPASSWD_AUTH>
We are aware of the current issues related to htpasswd_auth failures
Please downgrade to ansible 2.2.0.0 until a fix is released.
You can track the status of the bug fix in this issue:
#3111
Please erase this <HTPASSWD_AUTH> section if it does not apply to you.
Thanks - 2017-01-31
</HTPASSWD_AUTH>
Description
Installation of Openshift with Nuage is currently broken due to service account changes
Version
ansible 2.2.0.0
config file = /home/vpati011/projects/openshift-ansible/ansible.cfg
configured module search path = Default w/o overrides
[vpati011@radcnode007 openshift-ansible]$ git describe
openshift-ansible-3.4.17-1-1169-gf017f5a
Steps To Reproduce
Perform HA install of Openshift along with Nuage as the SDN provider
Expected Results
Observed Results
u'cmd': u'/usr/bin/oc create -f /tmp/nuage-CulDIi -n default', u'returncode': 1, u'results': {}, u'stderr': u'error: error when creating "/tmp/nuage-CulDIi": Post https://dns.nuageopenshift.com:8443/api/v1/namespaces/default/serviceaccounts: EOF\n', u'stdout': u''}
2017-03-07 11:27:48,250 p=2634 u=vpati011 | fatal: [master1.nuageopenshift.com]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"debug": false,
"image_pull_secrets": null,
"kubeconfig": "/etc/origin/master/admin.kubeconfig",
"name": "nuage",
"namespace": "default",
"secrets": null,
"state": "present"
},
"module_name": "oc_serviceaccount"
}
}
For long output or logs, consider using a gist
Additional Information
The text was updated successfully, but these errors were encountered: