Bug 1213149
| Summary: | openstack-keystone service is in " failed " status when CONFIG_KEYSTONE_SERVICE_NAME=httpd | |||
|---|---|---|---|---|
| Product: | [Community] RDO | Reporter: | Eran Kuris <ekuris> | |
| Component: | openstack-packstack | Assignee: | Nathan Kinder <nkinder> | |
| Status: | CLOSED EOL | QA Contact: | Shai Revivo <srevivo> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | high | |||
| Version: | trunk | CC: | aortega, apevec, ayoung, b.bompastor, derekh, nbarcet, rmeggins, srevivo | |
| Target Milestone: | --- | |||
| Target Release: | Kilo | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1218771 (view as bug list) | Environment: | ||
| Last Closed: | 2016-05-19 15:53:55 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1218771, 1219261 | |||
|
Description
Eran Kuris
2015-04-19 13:29:36 UTC
RDO Kilo When Keystone is deployed in httpd, we need to make changes similar to the following in openstack-status:
--- /root/openstack-status 2015-04-19 18:12:50.863396965 +0000
+++ /bin/openstack-status 2015-04-19 18:17:41.834446593 +0000
@@ -29,7 +29,7 @@
rpm -q openstack-nova-common > /dev/null && nova='nova'
rpm -q openstack-glance > /dev/null && glance='glance'
rpm -q openstack-dashboard > /dev/null && dashboard='httpd'
-rpm -q openstack-keystone > /dev/null && keystone='keystone'
+rpm -q openstack-keystone > /dev/null && keystone='httpd'
rpm -q openstack-neutron > /dev/null && neutron='neutron' ||
{ rpm -q openstack-quantum > /dev/null && neutron='quantum'; }
rpm -q openstack-swift > /dev/null && swift='swift'
@@ -134,7 +134,10 @@
if test "$keystone"; then
printf "== Keystone service ==\n"
- for svc in $keystone; do check_svc "openstack-$svc"; done
+ keystone_status="$(curl -L -s -w '%{http_code}\n' http://localhost:5000/v3 -o /dev/null)"
+ [ "$keystone_status" = 200 ] && keystone_status=active
+ [ "$keystone_status" = 000 ] && keystone_status=uncontactable
+ printf '%-40s%s\n' "openstack-keystone:" "$keystone_status"
fi
if test "$dashboard"; then
What if we just made the openstack-keystone service an alias to httpd? Then when you did things like # service openstack-keystone status or # systemctl restart openstack-keystone It would just restart httpd instead. Note that this means it will affect _all_ httpd apps (horizon, nagios, php, etc.) that use the same apache, so that could be a problem. AFAIK there is no way to just restart one or more Apache VirtualHosts. Ok. Here one extremely simple workaround:
# ln -s /usr/lib/systemd/system/httpd.service /etc/systemd/system/openstack-keystone.service
# systemctl daemon-reload
What this does is make "openstack-keystone" an "alias" for httpd. So now, all of the commands work, and they operate on httpd instead:
# openstack-status
...
openstack-keystone: active
...
# openstack-service status openstack-keystone
MainPID=5555 Id=httpd.service ActiveState=active
# systemctl status openstack-keystone
* httpd.service - The Apache HTTPD Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
... other httpd stuff ...
CGroup: /system.slice/httpd.service
...
55551 - keystone-admin -DFOREGROUND
55552 - keystone-main -DFOREGROUND
... other procs ...
Is this acceptable?
> # ln -s /usr/lib/systemd/system/httpd.service
> /etc/systemd/system/openstack-keystone.service
Sounds good, this should remove eventlet based service provided by openstack-keystone RPM.
Could this fit into puppet-keystone, to create this symlink when httpd is used to deploy keystone?
> this should remove eventlet based service
I meant, remove it out of the picture i.e. services in /etc have precedence
This bug is against a Version which has reached End of Life. If it's still present in supported release (http://releases.openstack.org), please update Version and reopen. |