{"action":"created","issue":{"url":"https://api.github.com/repos/jenkins-x/jx/issues/6153","repository_url":"https://api.github.com/repos/jenkins-x/jx","labels_url":"https://api.github.com/repos/jenkins-x/jx/issues/6153/labels{/name}","comments_url":"https://api.github.com/repos/jenkins-x/jx/issues/6153/comments","events_url":"https://api.github.com/repos/jenkins-x/jx/issues/6153/events","html_url":"https://github.com/jenkins-x/jx/issues/6153","id":525743714,"node_id":"MDU6SXNzdWU1MjU3NDM3MTQ=","number":6153,"title":"error: namespaces \"jx-staging\" not found","user":{"login":"cheesydev","id":50617085,"node_id":"MDQ6VXNlcjUwNjE3MDg1","avatar_url":"https://avatars0.githubusercontent.com/u/50617085?v=4","gravatar_id":"","url":"https://api.github.com/users/cheesydev","html_url":"https://github.com/cheesydev","followers_url":"https://api.github.com/users/cheesydev/followers","following_url":"https://api.github.com/users/cheesydev/following{/other_user}","gists_url":"https://api.github.com/users/cheesydev/gists{/gist_id}","starred_url":"https://api.github.com/users/cheesydev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheesydev/subscriptions","organizations_url":"https://api.github.com/users/cheesydev/orgs","repos_url":"https://api.github.com/users/cheesydev/repos","events_url":"https://api.github.com/users/cheesydev/events{/privacy}","received_events_url":"https://api.github.com/users/cheesydev/received_events","type":"User","site_admin":false},"labels":[{"id":1427401279,"node_id":"MDU6TGFiZWwxNDI3NDAxMjc5","url":"https://api.github.com/repos/jenkins-x/jx/labels/area/boot","name":"area/boot","color":"2b59f2","default":false,"description":"issues in the `jx boot` command"},{"id":796050448,"node_id":"MDU6TGFiZWw3OTYwNTA0NDg=","url":"https://api.github.com/repos/jenkins-x/jx/labels/kind/enhancement","name":"kind/enhancement","color":"a3c1e2","default":false,"description":"An enhancement of an existing feature"},{"id":1150666843,"node_id":"MDU6TGFiZWwxMTUwNjY2ODQz","url":"https://api.github.com/repos/jenkins-x/jx/labels/priority/awaiting-more-evidence","name":"priority/awaiting-more-evidence","color":"edb85c","default":false,"description":"Lowest priority. Possibly useful, but not yet enough support to actually get it done."}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-11-20T11:27:17Z","updated_at":"2019-11-26T13:14:54Z","closed_at":null,"author_association":"NONE","body":"### Summary \r\nIn a fresh Jenkins X installation, after changing the environment with the command `jx env` and selecting 'staging', the `jx` command becomes pretty much unusable, printing `error: namespaces \"jx-staging\" not found` when attempting to run other commands.\r\n\r\n### Steps to reproduce the behavior\r\n\r\n1. Create a new cluster in GKE with all default settings\r\n2. Run `jx boot` in an empty directory and finish installation\r\n3. Run `jx env` and select 'staging'\r\n4. Run `jx env` again (or pretty much any other `jx` sub command). The command prints `error: namespaces \"jx-staging\" not found` and fails.\r\n\r\n### Expected behavior\r\nIn step 4 above, jx commands should work properly, e.g. `jx env` should list existing environments.\r\n\r\n### Actual behavior\r\nCommand fails printing `error: namespaces \"jx-staging\" not found`.\r\n\r\n### Jx version\r\n\r\nBefore getting stuck in the problematic internal state, the output of `jx version` was:\r\n\r\n```\r\nNAME               VERSION\r\njx                 2.0.1001\r\nKubernetes cluster v1.13.11-gke.14\r\nkubectl            v1.14.1\r\nhelm client        Client: v2.14.1+g5270352\r\ngit                2.20.1\r\nOperating System   Debian GNU/Linux 10 (buster)\r\n```\r\n\r\n### Jenkins type\r\n\r\n- [x] Serverless Jenkins X Pipelines (Tekton + Prow)\r\n- [ ] Classic Jenkins\r\n\r\n### Kubernetes cluster\r\nGKE, 3 n1-standard-1 nodes, all default settings.\r\n\r\n### Operating system / Environment\r\nDebian 10 (buster)\r\n\r\n`uname -a`: 4.19.0-6-amd64 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux\r\n"},"comment":{"url":"https://api.github.com/repos/jenkins-x/jx/issues/comments/558622643","html_url":"https://github.com/jenkins-x/jx/issues/6153#issuecomment-558622643","issue_url":"https://api.github.com/repos/jenkins-x/jx/issues/6153","id":558622643,"node_id":"MDEyOklzc3VlQ29tbWVudDU1ODYyMjY0Mw==","user":{"login":"deanesmith","id":45019790,"node_id":"MDQ6VXNlcjQ1MDE5Nzkw","avatar_url":"https://avatars3.githubusercontent.com/u/45019790?v=4","gravatar_id":"","url":"https://api.github.com/users/deanesmith","html_url":"https://github.com/deanesmith","followers_url":"https://api.github.com/users/deanesmith/followers","following_url":"https://api.github.com/users/deanesmith/following{/other_user}","gists_url":"https://api.github.com/users/deanesmith/gists{/gist_id}","starred_url":"https://api.github.com/users/deanesmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanesmith/subscriptions","organizations_url":"https://api.github.com/users/deanesmith/orgs","repos_url":"https://api.github.com/users/deanesmith/repos","events_url":"https://api.github.com/users/deanesmith/events{/privacy}","received_events_url":"https://api.github.com/users/deanesmith/received_events","type":"User","site_admin":false},"created_at":"2019-11-26T13:14:54Z","updated_at":"2019-11-26T13:14:54Z","author_association":"MEMBER","body":"Considering having boot establish the environments initially.  Advantage is for secrets replication."}}
{"actor":{"display_login":"deanesmith"}}