Repository navigation
Conversation
|
jenkins test make check arm64 |
rkachach
left a comment
There was a problem hiding this comment.
Thanks @kginonredhat for working on this. The changes as they are right now will berak IPv6 support. Can you plz update the code and test the new changes work both for ipv4 and ipv6?
| if ipaddress.ip_network(grafana_ip).version == 6: | ||
| grafana_ip = f"[{grafana_ip}]" | ||
|
|
||
| if not grafana_ip: | ||
| # Grafana 11.1+ validates http_addr with net.ParseIP; hostnames such as | ||
| # localhost fail in grafana-apiserver. Use a literal address (bind all IPv4). | ||
| grafana_ip = '0.0.0.0' |
There was a problem hiding this comment.
this change will break the ipv6 support
There was a problem hiding this comment.
hi @rkachach
this line for ipv6 became redundant since if not grafana_ip we are listening on '0.0.0.0' regardless of ipv6 or not.
and setting grafana_ip will be set if set in the yaml.
Anyway i will double check those 2 situation on ipv6 setup and will update here shortly.
There was a problem hiding this comment.
without setting the grafana_ip
[ceph: root@ceph-node-0 /]# cat /mnt/graphana.yaml
service_type: grafana
placement:
hosts:
- ceph-node-0
spec:
protocol: https
anonymous_access: true
ceph orch host ls[ceph: root@ceph-node-0 /]# ceph orch host ls
HOST ADDR LABELS STATUS
ceph-node-0 2620:52:0:1304::64 _admin
ceph-node-1 2620:52:0:1304::65
ceph-node-2 2620:52:0:1304::66
3 hosts in cluster
[ceph: root@ceph-node-0 /]# ceph orch ls grafana
NAME PORTS RUNNING REFRESHED AGE PLACEMENT
grafana ?:3000 1/1 2m ago 5m ceph-node-0
[root@ceph-node-0 ~]# ss -tlnp | grep 3000
LISTEN 0 4096 *:3000 : users:(("grafana",pid=19516,fd=20))
42a1317 to
18b1ee8
Compare
| if ipaddress.ip_network(grafana_ip).version == 6: | ||
| grafana_ip = f"[{grafana_ip}]" |
There was a problem hiding this comment.
I'm wondering why are we deleting this line? isn't this the normal workflow when a grafana ipv6 is defined?
|
hi @ShwetaBhosale1 Steps below [ceph: root@ceph-node-0 /]# ceph orch host ls [ceph: root@ceph-node-0 /]# cat /mnt/grafana-ipv6-bind.yaml
2620:52:0:1304::/64 [ceph: root@ceph-node-0 /]# ceph orch ps --service_name grafana checking on the host ceph-node-0 http_addr [root@ceph-node-0 ~]# DAEMON=$(cephadm shell -- ceph orch ps --hostname ceph-node-0 --service_name grafana --format json | jq -r '.[0].daemon_id') Validating it has no square brackets [root@ceph-node-0 ~]# ss -tlnp | grep 3000 another check with default , first deleting the previous[root@ceph-node-0 ~]# cephadm shell -m /mnt/ [ceph: root@ceph-node-0 /]# cat /mnt/grafana-default.yaml
[ceph: root@ceph-node-0 /]# ceph orch apply -i /mnt/grafana-default.yaml check Listen on all addresses [root@ceph-node-0 ~]# ss -tlnp | grep 3000 |
|
jenkins test make check |
|
jenkins test make check arm64 |
Grafana 11.1+ rejects non-literal http_addr values (e.g. localhost) in grafana-apiserver. Use 0.0.0.0 by default; stop bracket-wrapping IPv6 addresses in http_addr. Fixes: https://tracker.ceph.com/issues/75365 Signed-off-by: Kobi Ginon <[email protected]>
18b1ee8 to
c8ffac9
Compare
|
jenkins test api |
3 similar comments
|
jenkins test api |
|
jenkins test api |
|
jenkins test api |
|
jenkins test api |
|
Teuthology run was successful. Failing Test cases are not related to this PR: |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
Grafana 11.1+ rejects non-literal http_addr values (e.g. localhost) in grafana-apiserver.
Use 0.0.0.0 by default; stop bracket-wrapping IPv6 addresses in http_addr.
Fixes: https://tracker.ceph.com/issues/75365
Signed-off-by: Kobi Ginon [email protected]
Verification steps:
On a running ceph cluster define grafana configuration
pin it to a node where we can find the grafana.ini value
in y case it is ceph-node-0:
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.