Bug 947793
Summary: | Rootwrap is not set correctly for agents | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Gary Kotton <gkotton> |
Component: | openstack-quantum | Assignee: | Perry Myers <pmyers> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | apevec, breu, chrisw, Jan.van.Eldik, jose.castro.leon, markmc, mmagr, mrunge, rkukura, twilson |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-quantum-2013.1.1-5.fc19 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-07-07 01:28:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gary Kotton
2013-04-03 09:24:23 UTC
openstack-quantum-2013.1-0.7.rc3.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/openstack-quantum-2013.1-0.7.rc3.fc19 Package openstack-quantum-2013.1-0.7.rc3.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing openstack-quantum-2013.1-0.7.rc3.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-4755/openstack-quantum-2013.1-0.7.rc3.fc19 then log in and leave karma (feedback). openstack-quantum-2013.1-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/openstack-quantum-2013.1-1.fc19 openstack-quantum-2013.1.1-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/openstack-quantum-2013.1.1-1.fc19 This issue is still happening for me, from /var/log/messages: May 23 09:00:48 turing quantum-openvswitch-agent[1375]: Exit code: 1 May 23 09:00:48 turing quantum-openvswitch-agent[1375]: Stdout: '' May 23 09:00:48 turing quantum-openvswitch-agent[1375]: Stderr: 'sudo: no tty present and no askpass program specified\n' May 23 09:00:49 turing quantum-openvswitch-agent[1375]: 2013-05-23 09:00:49 ERROR [quantum.agent.linux.ovs_lib] Unable to execute ['ovs-vsctl', '--timeout=2', 'list-ports', 'br-int']. Exception: May 23 09:00:49 turing quantum-openvswitch-agent[1375]: Command: ['sudo', 'ovs-vsctl', '--timeout=2', 'list-ports', 'br-int'] May 23 09:00:49 turing quantum-openvswitch-agent[1375]: Exit code: 1 May 23 09:00:49 turing quantum-openvswitch-agent[1375]: Stdout: '' May 23 09:00:49 turing quantum-openvswitch-agent[1375]: Stderr: 'sudo: no tty present and no askpass program specified\n' Thanks, I have found the problem: # Configure agents to use quantum-rootwrap sed -i 's/^root_helper.*/root_helper = sudo quantum-rootwrap \/etc\/quantum\/rootwrap.conf/g' %{buildroot}%{_sysconfdir}/quantum/quantum.conf The problem is that in the quantum.conf file this is: # root_helper = sudo So the scrip will just change it to: # root_helper = sudo quantum.... I have fixed. diff --git a/openstack-quantum.spec b/openstack-quantum.spec index 52bc10d..f818d34 100644 --- a/openstack-quantum.spec +++ b/openstack-quantum.spec @@ -343,7 +343,7 @@ mv %{buildroot}/usr/etc/quantum/* %{buildroot}%{_sysconfdir}/quantum chmod 640 %{buildroot}%{_sysconfdir}/quantum/plugins/*/*.ini # Configure agents to use quantum-rootwrap -sed -i 's/^root_helper.*/root_helper = sudo quantum-rootwrap \/etc\/quantum\/rootwrap.conf/g' %{buildroot}%{_sysconfdir}/quantum/quantum.conf +sed -i 's/^# root_helper.*/root_helper = sudo quantum-rootwrap \/etc\/quantum\/rootwrap.conf/g' %{buildroot}%{_sysconfdir}/quantum/quantum.conf # Configure quantum-dhcp-agent state_path sed -i 's/state_path = \/opt\/stack\/data/state_path = \/var\/lib\/quantum/' %{buildroot}%{_sysconfdir}/quantum/dhcp_agent.ini openstack-quantum-2013.1.1-5.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/openstack-quantum-2013.1.1-5.fc19 Package openstack-quantum-2013.1.1-5.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing openstack-quantum-2013.1.1-5.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-9454/openstack-quantum-2013.1.1-5.fc19 then log in and leave karma (feedback). openstack-quantum-2013.1.1-5.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |