[
https://issues.apache.org/jira/browse/CASSANDRA-7147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17738527#comment-17738527
]
Pierre-Yves Ritschard commented on CASSANDRA-7147:
--------------------------------------------------
Hi [~smiklosovic],
Apache Cloudstack provides no way of knowing where the metadata server would be
reachable and requires fetching the gateway address provided to virtual machine
instances. Since then, Exoscale switched to using the classic 169.254.169.254
address.
Linux provides no way of reliably retrieving the gateway address, but
pre-systemd the lease file trick was the most efficient. It probably doesn't
work well today anymore especially on systemd systems.
If you wish to keep this functionality around, it would seem viable to do away
with the lease file probing and to use a (configurable?) URL since Apache
Cloudstack now exposes `data-server.` as a host[1]. This would also allow
keeping compatibility with exoscale when using 169.254.169.254 as the URL, does
this make sense
[1]: see
http://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines/user-data.html
> Add a new snitch for Apache Cloudstack platforms
> ------------------------------------------------
>
> Key: CASSANDRA-7147
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7147
> Project: Cassandra
> Issue Type: Improvement
> Environment: Virtual machine on Apache Cloudstack environments
> Reporter: Pierre-Yves Ritschard
> Assignee: Pierre-Yves Ritschard
> Priority: Low
> Fix For: 1.2.18, 2.0.8, 2.1 rc1
>
> Attachments: 0001-initial-work-on-a-cloudstack-snitch.patch
>
>
> The attached patch adds a new Snitch that queries meta data for a host on
> Apache Cloudstack environments. Since the metadata service is colocated with
> the DHCP service in Cloudstack, common lease file locations are looked up to
> retrieve.
> Since zone naming is freeform in Apache Cloudstack, the widely used
> <country>-<location>-<az> notation is assumed.
> The patch includes a simple unit test and has been tested on exoscale.ch, a
> public cloud based on Apache Cloudstack
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]