Skip to content

Unable to re-expose the controller charm after unexposing it #92

Description

@sinapah

Hey team,

In my controller model, my controller charm was exposed by default. When I did juju status, I could see yes under column Exposed.

I was following the expose and unexpose docs.
After successfully "unexposing" my controller, I wanted to expose it again. I ran juju expose controller, which gave me the following error:

ERROR cannot expose a container application without a "juju-external-hostname" value set, run
juju config controller juju-external-hostname=<value>

However, my controller config nevere had juju-external-hostname set to begin with. If I run juju config juju-external-hostname, I don't see it there.

My questions are:

  • How was the controller charm exposed in the first place without a juju-external-hostname?
  • If this value was never set and yet exposing the controller worked before, how come I'm not able to re-expose the controller again with an empty value?
  • If I set the value to some made up value e.g. "foo", the exposition works. Why?
  • Also, can I ask why it's necessary for the controller to be exposed by default.
    Thank you!

Related issues:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions