-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Openstack Provider password with hashtag not parsed properly #987
Comments
We just had this yesterday. The proper set of quote to use is |
@brudnyhenry @leafty per the docs, we aren't expecting quotes or ```. https://rancher.com/docs/rke/latest/en/config-options/cloud-providers/openstack/ if that doesn't work, please open a new issue. |
It's a YAML file that goes through a regular YAML parser, |
Hi, |
Hi, package main
import (
"bytes"
"fmt"
"log"
"github.com/go-ini/ini"
)
type Password struct {
Pass string `ini:"password,omitempty" norman:"type=password"`
}
func main() {
a := &Password{"hsz#gl7@ApP5"}
cfg := ini.Empty()
_ = ini.ReflectFrom(cfg, a)
buf := new(bytes.Buffer)
if _, err := cfg.WriteTo(buf); err != nil {
log.Println(err)
}
fmt.Println(buf.String())
} Will produce below output: password = `hsz#gl7@ApP5` And without hashtag: package main
import (
"bytes"
"fmt"
"log"
"github.com/go-ini/ini"
)
type Password struct {
Pass string `ini:"password,omitempty" norman:"type=password"`
}
func main() {
a := &Password{"hszgl7@ApP5"}
cfg := ini.Empty()
_ = ini.ReflectFrom(cfg, a)
buf := new(bytes.Buffer)
if _, err := cfg.WriteTo(buf); err != nil {
log.Println(err)
}
fmt.Println(buf.String())
} Output is correct: password = hszgl7@ApP5 |
Available with RKE v0.2.7. It was missed moving to test in previous releases. |
We should test with RKE v0.2.7 and v0.3.0-rc6. |
Tested with
rke 0.2.70.2.7 does not have the quotes removed from the cloud config password
rke 0.3.0-rc60.3.0-rc6 does have the quotes removed from the cloud config password
|
RKE version:
0.1.1
Docker version: (
docker version
,docker info
preferred)17.0.3
Operating system and kernel: (
cat /etc/os-release
,uname -r
preferred)Ubuntu 16.0.4
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
Openstack
cluster.yml file:
ssh_key_path: "/deploy/conf/kubernetes-kp.pem"
After
rke up
command, generated /etc/kubernetes/cloud-config includes extra ` signscat /etc/kubernetes/cloud-config [Global] username = user password = `hsz#gl7@ApP5` .....
Those additional ` chars are breaking the deployment - Kubernetes fails to authenticate in Openstack.
When there are no hashtags in password then everything deploys fine.
Steps to Reproduce:
Try to provision Kubernetes cluster while adding openstack provider credentials containing
#
in passwordResults:
rke up
fails with errorailed to run Kubelet: could not init cloud provider \\\"openstack\\\": Authentication failed\""
The text was updated successfully, but these errors were encountered: