Bug 1907198
| Summary: | ceph and grafana dashboards are inaccessible post deployment with code 503 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Punit Kundal <pkundal> | ||||||
| Component: | openstack-tripleo-heat-templates | Assignee: | RHOS Maint <rhos-maint> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Joe H. Rahme <jhakimra> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 16.1 (Train) | CC: | aschultz, fpantano, gfidente, mburns | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2020-12-18 16:57:29 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: | |||||||||
| Attachments: |
|
||||||||
|
Description
Punit Kundal
2020-12-13 15:19:25 UTC
Here are some more details;
this issue is because of the ServiceNetMapDefaults parameter; if we set:
+++
(undercloud) [stack@undercloud16 ~]$ grep -i ServiceNetMap ~/templates/network-environment.yaml -A2
ServiceNetMap:
CephDashboardNetwork: storage
CephGrafanaNetwork: storage
(undercloud) [stack@undercloud16 ~]$
+++
then run a stack update:
+++
Wait for puppet host configuration to finish --------------------------- 29.19s
Wait for puppet host configuration to finish --------------------------- 29.14s
Wait for puppet host configuration to finish --------------------------- 29.14s
Run tripleo-container-image-prepare logged to: /var/log/tripleo-container-image-prepare.log -- 27.63s
Wait for container-puppet tasks (bootstrap tasks) for step 3 to finish -- 25.31s
Wait for puppet host configuration to finish --------------------------- 22.11s
Wait for containers to start for step 4 using paunch ------------------- 21.81s
Pre-fetch all the containers ------------------------------------------- 20.52s
Run puppet on the host to apply IPtables rules ------------------------- 16.58s
tripleo-hieradata : Render hieradata from template --------------------- 14.94s
tripleo-kernel : Set extra sysctl options ------------------------------- 9.96s
tripleo-keystone-resources : Async creation of Keystone user ------------ 9.35s
tripleo-keystone-resources : Async creation of Keystone admin endpoint --- 8.97s
Ansible passed.
Overcloud configuration completed.
Overcloud Endpoint: http://192.168.122.202:5000
Overcloud Horizon Dashboard URL: http://192.168.122.202:80/dashboard
Overcloud rc file: /home/stack/overcloudrc
Overcloud Deployed without error
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.205', 45238)>
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.205', 60856)>
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.205', 38006), raddr=('192.168.24.205', 13989)>
real 62m50.039s
user 0m18.178s
sys 0m2.159s
+++
this sets the backend ip(s) correctly on the storage network; the vip still points to the ctlplane network
+++
[root@overcloud-controller-0 ~]# cat /var/lib/config-data/puppet-generated/haproxy/etc/haproxy/haproxy.cfg | grep -i ceph_dashboard -A10
listen ceph_dashboard
bind 192.168.24.215:8444 transparent
mode http
balance source
http-check expect rstatus 2[0-9][0-9]
http-request set-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
http-request set-header X-Forwarded-Port %[dst_port]
option httpchk HEAD /
server overcloud-controller-0.storage.labrh2251.com 172.16.40.16:8444 check fall 5 inter 2000 rise 2
[root@overcloud-controller-0 ~]# cat /var/lib/config-data/puppet-generated/haproxy/etc/haproxy/haproxy.cfg | grep -i ceph_grafana -A10
listen ceph_grafana
bind 192.168.24.215:3100 transparent
mode http
balance source
http-request set-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
http-request set-header X-Forwarded-Port %[dst_port]
option httpchk HEAD /
server overcloud-controller-0.storage.labrh2251.com 172.16.40.16:3100 check fall 5 inter 2000 rise 2
+++
we are now able to access the dashboard; while the dashboard is still accessible; while browsing through we get code 500 errors on many different points; some examples are:
cluster -> hosts code 500
cluster -> monitor code 500
the data still appears to be displayed but we still get alerts
I am attaching a screen shot of the same
Regards,
Punit
Created attachment 1738772 [details]
ceph_dashboard_stack_upda
|