Entities do not show up in UI as per namespace but sensuctl shows entities correctly

Sensu Go Topic Template
Make sure to read the docs before asking your question. Please be kind and remember that this those helping you are volunteers.

Having a problem and looking for help? Consider including:

  1. What have you already tried? Please include links to gists and/or code blocks (if relatively small)

I have multiple agents connected to the backend with events and checks configured which are behaving as expected. When i add namespace to the agent.yml configuration, the checks move from default namespace to the new namespace on the UI but the entities are not seen as expected in the new namespace.

  1. Tell us about your setup, this should include OS, version of Sensu, version of Sensu components plugin versions (if applicable), anything special about your setup such as an airgapped network or strict ACLs

Sensu-backend, agent and sensuctl are all (devel)+ce, community edition, built with go1.13 on CentOS 7 machines on AWS.

  1. Is there a Github issue related to your issue?
  2. Is there anything else that can help us effectively help you?
  3. use the Discourse upload button to attach Sensu relevant yaml or json configuration files.

My agent configuration is

subscriptions:
  - webserver
  - system
  - all
backend-url:
  - "ws://<REDACTED>:8081"
name: "sensu-agent-01"
namespace: "nonprod"

My sensuctl output for entities is as follows

# sensuctl entity list --namespace default
              ID                Class    OS                          Subscriptions                                   Last Seen
 ───────────────────────────── ─────── ─────── ────────────────────────────────────────────────────────── ───────────────────────────────
  <REDACTED>   agent   linux   webserver,windows,all,entity:<REDACTED>   2020-06-30 18:30:53 +0000 UTC

# sensuctl entity list --namespace nonprod
              ID                Class    OS                          Subscriptions                                  Last Seen
 ───────────────────────────── ─────── ─────── ───────────────────────────────────────────────────────── ───────────────────────────────
  <REDACTED>   agent   linux   webserver,system,all,entity:<REDACTED>   2020-06-30 18:41:53 +0000 UTC
  sensu-agent-01                agent   linux   webserver,system,all,entity:sensu-agent-01                2020-07-01 17:37:56 +0000 UTC

Also attached are the screenshots for the UI view where we can see the events but not the entities in the nonprod namespace

This looks like an OSS local build based on the version string.

Did you build against master or a specific tag? Its unfortunate you didn’t encode the git commit sha into the version info. makes it difficult to know what commit you built against.

First thing you want to do is probably update your build process and make sure you are using the version of the build instructions in the repository README that include the build versioning. Especially the github commit SHA.

Without more information, I’m let assuming you are building against the tip of master, which is probably not what you want to do, unles you are looking for bugs, or trying to develop a bug fix to submit back as a pull request. if you aren’t comfortable troubleshooting bugs as you find them, maybe you want to first start with a build from a release tag checkout. Don’t get me wrong I love seeing people testing the bleeding edge of the OSS codebase, but its probably going to be a buggy experience, without a lot of other people who can help. The tip of master isn’t expected to be regression free.

Yeah this is definitely built against the master branch. I will build this against tag 5.21.0 instead and report if the issue persists. Thanks for the quick response

Was definitely a version issue. Recreating the commands from release 5.21 did the trick. My bad in assuming the master branch was up-to-date with the latest release. Thank you @jspaleta