2024-02-08 12:44:12 |
Alexander Litvinov |
description |
I can't figure a way to do show-cloud, then modify a art of it, and update-cloud because juju doesn't like the file it generates for me:
$ juju show-cloud microk8s-local --controller localhost-localhost --output cloud.yaml --format yaml
$ cat cloud.yaml
name: microk8s-local
summary: Cloud "microk8s-local" from controller "localhost-localhost"
defined: public
type: k8s
auth-types: [certificate, clientcertificate, oauth2, oauth2withcert, userpass]
endpoint: https://172.31.86.143:16443
regions:
localhost: {}
users:
admin:
display-name: admin
access: admin
$ juju update-cloud microk8s-local --controller localhost-localhost -f cloud.yaml
ERROR could not read cloud definition from provided file: Invalid cloud metadata map[auth-types:[certificate clientcertificate oauth2 oauth2withcert userpass] defined:public endpoint:https://172.31.86.143:16443 name:microk8s-local regions:map[localhost:map[]] summary:Cloud "microk8s-local" from controller "localhost-localhost" type:k8s users:map[admin:map[access:admin display-name:admin]]]
Going with json doesn't seem to work as well:
$ juju show-cloud microk8s-local --controller localhost-localhost --output cloud.json --format json
$ cat cloud.json
[{"name":"microk8s-local","summary":"Cloud \"microk8s-local\" from controller \"localhost-localhost\"","defined":"public","type":"k8s","auth-types":["certificate","clientcertificate","oauth2","oauth2withcert","userpass"],"endpoint":"https://172.31.86.143:16443","regions":{"localhost":{}},"users":{"admin":{"display-name":"admin","access":"admin"}}}]
$ juju update-cloud microk8s-local --controller localhost-localhost -f cloud.json
ERROR could not read cloud definition from provided file: cannot unmarshal yaml cloud metadata: yaml: unmarshal errors:
line 1: cannot unmarshal !!seq into map[string]interface {}
Expected result:
Files generated with show-cloud --output (either yaml or json) are accepted back with update-cloud without any modifications of the file.
$ juju --version
3.3.1-genericlinux-amd64
Juju controller running on LXD and cloud is microk8s. |
I can't figure a way to do show-cloud, then modify a part of it, and update-cloud because juju doesn't like the file it generates for me:
$ juju show-cloud microk8s-local --controller localhost-localhost --output cloud.yaml --format yaml
$ cat cloud.yaml
name: microk8s-local
summary: Cloud "microk8s-local" from controller "localhost-localhost"
defined: public
type: k8s
auth-types: [certificate, clientcertificate, oauth2, oauth2withcert, userpass]
endpoint: https://172.31.86.143:16443
regions:
localhost: {}
users:
admin:
display-name: admin
access: admin
$ juju update-cloud microk8s-local --controller localhost-localhost -f cloud.yaml
ERROR could not read cloud definition from provided file: Invalid cloud metadata map[auth-types:[certificate clientcertificate oauth2 oauth2withcert userpass] defined:public endpoint:https://172.31.86.143:16443 name:microk8s-local regions:map[localhost:map[]] summary:Cloud "microk8s-local" from controller "localhost-localhost" type:k8s users:map[admin:map[access:admin display-name:admin]]]
Going with json doesn't seem to work as well:
$ juju show-cloud microk8s-local --controller localhost-localhost --output cloud.json --format json
$ cat cloud.json
[{"name":"microk8s-local","summary":"Cloud \"microk8s-local\" from controller \"localhost-localhost\"","defined":"public","type":"k8s","auth-types":["certificate","clientcertificate","oauth2","oauth2withcert","userpass"],"endpoint":"https://172.31.86.143:16443","regions":{"localhost":{}},"users":{"admin":{"display-name":"admin","access":"admin"}}}]
$ juju update-cloud microk8s-local --controller localhost-localhost -f cloud.json
ERROR could not read cloud definition from provided file: cannot unmarshal yaml cloud metadata: yaml: unmarshal errors:
line 1: cannot unmarshal !!seq into map[string]interface {}
Expected result:
Files generated with show-cloud --output (either yaml or json) are accepted back with update-cloud without any modifications of the file.
$ juju --version
3.3.1-genericlinux-amd64
Juju controller running on LXD and cloud is microk8s. |
|
2024-02-08 16:37:00 |
Alexander Litvinov |
description |
I can't figure a way to do show-cloud, then modify a part of it, and update-cloud because juju doesn't like the file it generates for me:
$ juju show-cloud microk8s-local --controller localhost-localhost --output cloud.yaml --format yaml
$ cat cloud.yaml
name: microk8s-local
summary: Cloud "microk8s-local" from controller "localhost-localhost"
defined: public
type: k8s
auth-types: [certificate, clientcertificate, oauth2, oauth2withcert, userpass]
endpoint: https://172.31.86.143:16443
regions:
localhost: {}
users:
admin:
display-name: admin
access: admin
$ juju update-cloud microk8s-local --controller localhost-localhost -f cloud.yaml
ERROR could not read cloud definition from provided file: Invalid cloud metadata map[auth-types:[certificate clientcertificate oauth2 oauth2withcert userpass] defined:public endpoint:https://172.31.86.143:16443 name:microk8s-local regions:map[localhost:map[]] summary:Cloud "microk8s-local" from controller "localhost-localhost" type:k8s users:map[admin:map[access:admin display-name:admin]]]
Going with json doesn't seem to work as well:
$ juju show-cloud microk8s-local --controller localhost-localhost --output cloud.json --format json
$ cat cloud.json
[{"name":"microk8s-local","summary":"Cloud \"microk8s-local\" from controller \"localhost-localhost\"","defined":"public","type":"k8s","auth-types":["certificate","clientcertificate","oauth2","oauth2withcert","userpass"],"endpoint":"https://172.31.86.143:16443","regions":{"localhost":{}},"users":{"admin":{"display-name":"admin","access":"admin"}}}]
$ juju update-cloud microk8s-local --controller localhost-localhost -f cloud.json
ERROR could not read cloud definition from provided file: cannot unmarshal yaml cloud metadata: yaml: unmarshal errors:
line 1: cannot unmarshal !!seq into map[string]interface {}
Expected result:
Files generated with show-cloud --output (either yaml or json) are accepted back with update-cloud without any modifications of the file.
$ juju --version
3.3.1-genericlinux-amd64
Juju controller running on LXD and cloud is microk8s. |
I can't figure a way to do show-cloud, then modify a part of it, and update-cloud because juju doesn't like the file it generates for me:
$ juju show-cloud microk8s-local --controller localhost-localhost --output cloud.yaml --format yaml
$ cat cloud.yaml
name: microk8s-local
summary: Cloud "microk8s-local" from controller "localhost-localhost"
defined: public
type: k8s
auth-types: [certificate, clientcertificate, oauth2, oauth2withcert, userpass]
endpoint: https://172.31.86.143:16443
regions:
localhost: {}
users:
admin:
display-name: admin
access: admin
$ juju update-cloud microk8s-local --controller localhost-localhost -f cloud.yaml
ERROR could not read cloud definition from provided file: Invalid cloud metadata map[auth-types:[certificate clientcertificate oauth2 oauth2withcert userpass] defined:public endpoint:https://172.31.86.143:16443 name:microk8s-local regions:map[localhost:map[]] summary:Cloud "microk8s-local" from controller "localhost-localhost" type:k8s users:map[admin:map[access:admin display-name:admin]]]
Going with json doesn't seem to work as well:
$ juju show-cloud microk8s-local --controller localhost-localhost --output cloud.json --format json
$ cat cloud.json
[{"name":"microk8s-local","summary":"Cloud \"microk8s-local\" from controller \"localhost-localhost\"","defined":"public","type":"k8s","auth-types":["certificate","clientcertificate","oauth2","oauth2withcert","userpass"],"endpoint":"https://172.31.86.143:16443","regions":{"localhost":{}},"users":{"admin":{"display-name":"admin","access":"admin"}}}]
$ juju update-cloud microk8s-local --controller localhost-localhost -f cloud.json
ERROR could not read cloud definition from provided file: cannot unmarshal yaml cloud metadata: yaml: unmarshal errors:
line 1: cannot unmarshal !!seq into map[string]interface {}
Expected result:
Files generated with show-cloud --output (either yaml or json) are accepted back with update-cloud without any modifications of the file.
$ juju --version
3.3.1-genericlinux-amd64
Juju controller running on LXD and cloud is microk8s.
env is on public cloud vm, available to access if needed to troubleshoot. |
|