Landscape client motd updater refers to wrong LS server when using LDS

Bug #1091531 reported by Brad Marshall
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
Wishlist
Unassigned
landscape-client (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The landscape client motd updater refers to the wrong Landscape server when the host is talking to an LDS instance.

From a host registered with an internal LDS system:

$ landscape-sysinfo | grep Graph
  Graph this data and manage this system at https://landscape.canonical.com/

I believe this should point to the correct URL instead of landscape.canonical.com, there is potential for confusion here.

This occurs on at least both precise and lucid, the example here is from a lucid host with the following version of landscape-client.

$ dpkg-query -W landscape-client
landscape-client 12.05-0ubuntu1.10.04

Please let me know if you need any further information.

Revision history for this message
Thomas Herve (therve) wrote :

This message is generally intended to machines which don't use landscape client just yet. So I'm wondering what the proper thing to do: should we just remove the message if the machine is registered is Landscape? Or do you see value in the message staying there, but pointing to the proper URL?

Changed in landscape-client:
milestone: none → backlog
importance: Undecided → Low
Revision history for this message
Brad Marshall (brad-marshall) wrote :

Either way works for me, as it is its misleading at best as it is. There's probably minor value to leave it in with the correct URL if its possible, but otherwise removing it works too. You'd hope if someone had registered it they know where to find the data, but its a quick way to get to the website if the URL is there.

Thomas Herve (therve)
tags: added: is
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

Landscape Team

Changed in landscape-client:
status: New → Invalid
James Troup (elmo)
Changed in landscape-client:
status: Invalid → New
Changed in landscape-client:
status: New → Triaged
tags: added: squad-bug
David Britton (dpb)
Changed in landscape-client:
importance: Low → Wishlist
Revision history for this message
Andrew Stok (andrew-stok) wrote :

I don't believe motd should point to the url of the landscape server when in a self-hosted environment, and also shouldn't point to landscape.canonical.com, as it currently does. If you look at the "Support" item in motd, it points to https://ubuntu.com/pro, which is the marketing page for pro. Following this approach, the item for Landscape should point to https://ubuntu.com/landscape, which is the marketing page for Landscape.

The Landscape team can't make changes to this part of the motd, so changing the project to no longer be "landscape-client".

affects: landscape-client → debian-base-files
Changed in debian-base-files:
milestone: backlog → none
Revision history for this message
Haw Loeung (hloeung) wrote (last edit ):

| $ ls /etc/update-motd.d/50-landscape-sysinfo -la
| lrwxrwxrwx 1 root root 46 Jul 16 15:49 /etc/update-motd.d/50-landscape-sysinfo -> /usr/share/landscape/landscape-sysinfo.wrapper
| $ dpkg-query -S /usr/share/landscape/landscape-sysinfo.wrapper
| landscape-common: /usr/share/landscape/landscape-sysinfo.wrapper

This comes from the `landscape-common` package which is part of `landscape-client`, see:

| https://launchpad.net/ubuntu/+source/landscape-client

It's not base-files.

I think it's in `/usr/lib/python3/dist-packages/landscape/sysinfo/landscapelink.py` where LandscapeLink has:

```
    def run(self):
        self._sysinfo.add_footnote(
            "Graph this data and manage this system at:\n"
            " https://landscape.canonical.com/")
        return succeed(None)
```

Changed in landscape-client (Ubuntu):
status: New → Confirmed
tags: added: backlog
affects: debian-base-files → landscape-client
Revision history for this message
Andrew Stok (andrew-stok) wrote :

Completed in Pulse 2024#24. In the self-hosted beta release for this pulse.

Changed in landscape-client:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.