Skip to content

Unexpected warning when connecting to Cumulocity tenant with custom domain #3501

@k-butz

Description

@k-butz

I've got a Cumulocity SaaS tenant with the custom domain feature configured for *.kbutz.org.

Configured in thin-edge.io (obfuscated real tenant id and env with t12345 and my-tenant-name) :

$ tedge config set c8y.http "my-tenant-name.kbutz.org"
$ tedge config set c8y.url "my-tenant-name.kbutz.org"
$ tedge config set c8y.mqtt "t12345.cumulocity.com:8883"

When connecting I'm getting below warning:

$ tedge connect c8y
Connecting to Cumulocity with config:
        device id: tedge-rpi4
        cloud profile: <none>
        cloud host: t12345.cumulocity.com:8883
        certificate file: /etc/tedge/device-certs/tedge-certificate.pem
        bridge: mosquitto
        service manager: systemd
        mosquitto version: 2.0.20
Creating device in Cumulocity cloud... ✓
Restarting mosquitto... ✓
Waiting for mosquitto to be listening for connections... ✓
Verifying device is connected to cloud... ✓
Enabling tedge-mapper-c8y... ✓
Checking Cumulocity is connected to intended tenant... ✓
warning: The device is connected to my-tenant-name.kbutz.org, but the configured URL is t12345.cumulocity.com.
    To connect the device to the intended tenant, remove the device certificate from my-tenant-name.kbutz.org, and then run `tedge reconnect c8y`
Enabling tedge-agent... ✓

Is the warning actually true? Anything I miss to configure?

--
Additional info:

  • Using tedge version 1.4.2 on an RPI4
  • Here is my current configuration:
$ tedge config list | grep c8y
c8y.url=my-tenant-name.kbutz.org
c8y.root_cert_path=/etc/ssl/certs
c8y.auth_method=certificate
c8y.credentials_path=/etc/tedge/credentials.toml
c8y.http=my-tenant-name.kbutz.org:443
c8y.mqtt=t12345.cumulocity.com:8883
c8y.topics=["te/+/+/+/+", "te/+/+/+/+/twin/+", "te/+/+/+/+/m/+", "te/+/+/+/+/e/+", "te/+/+/+/+/a/+", "te/+/+/+/+/status/health"]
c8y.smartrest.templates=[]
c8y.smartrest.use_operation_id=true
c8y.smartrest1.templates=[]
c8y.enable.log_upload=true
c8y.enable.config_snapshot=true
c8y.enable.config_update=true
c8y.enable.firmware_update=true
c8y.enable.device_profile=true
c8y.mapper.mqtt.max_payload_size=16184
c8y.proxy.bind.address=127.0.0.1
c8y.proxy.bind.port=8001
c8y.proxy.client.host=127.0.0.1
c8y.proxy.client.port=8001
c8y.bridge.topic_prefix=c8y
c8y.bridge.include.local_cleansession=auto
c8y.entity_store.auto_register=true
c8y.entity_store.clean_start=true
c8y.software_management.api=legacy
c8y.software_management.with_types=false
c8y.operations.auto_log_upload=on-failure
c8y.availability.enable=true
c8y.availability.interval=60m

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions