A build failed in OpenShift, but I don't have permission to view the logs, apparently.
$ oc logs bc/release-monitoring-web-build Error from server (Forbidden): User "jcline" cannot get builds.build.openshift.io/log in the namespace "release-monitoring": User "jcline" cannot get builds/log.build.openshift.io in project "release-monitoring" (get builds.build.openshift.io release-monitoring-web-build-7)
I would also enjoy access to see the Bodhi logs when we can get time to work on this.
Metadata Update from @bowlofeggs: - Issue priority set to: Waiting on Asignee
@puiterwijk just fixed this for me. @jcline, does this also work for you? If so, we can close this.
:ship:
Nope.
[jcline@batcave01 ~][PROD]$ oc logs bc/release-monitoring-web-build Error from server (Forbidden): User "jcline" cannot get builds.build.openshift.io/log in the namespace "release-monitoring": User "jcline" cannot get builds/log.build.openshift.io in project "release-monitoring" (get builds.build.openshift.io release-monitoring-web-build-10)
Did you rerun the application playbook to get the new role-appowners.yml?
No, I did not.
The playbook looks broken, though:
{"msg": "The task includes an option with an undefined variable. The error was: 'objectname' is undefined\n\nThe error appears to have been in '/srv/web/infra/ansible/roles/openshift/object/tasks/main.yml': line 1, 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: Copy template {{template}} to temporary file ({{tmpfile.path}})\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
Right. I just pushed the fixes for your playbooks for that. Also, note that the vars{} syntax does not give what we want.
Okay now it's broken with
{"msg": "The task includes an option with an undefined variable. The error was: 'buildname' is undefined\n\nThe error appears to have been in '/srv/web/infra/ansible/roles/openshift/start-build/tasks/main.yml': line 1, 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: Run `oc start-build`\n ^ here\n"}
Okay, after running the -apps playbook I can view build logs
Metadata Update from @kevin: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.