-
Notifications
You must be signed in to change notification settings - Fork 62
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
Error while starting up #69
Comments
I'm getting the exact same issue when I start-up the docker container and run kargo for the first time. root@277ba3ed28b1:/# kargo aws --nodes 3
CLONING KARGO GIT REPO *********************************************************
Cloning into '/root/.kargo'...
kargo repo cloned
Traceback (most recent call last):
File "/usr/local/bin/kargo", line 381, in <module>
args.func(config)
File "/usr/local/bin/kargo", line 49, in aws
A.gen_ec2_playbook()
File "/usr/local/lib/python2.7/dist-packages/kargo/cloud.py", line 169, in gen_ec2_playbook
k, v = kv.split("=")
AttributeError: 'dict' object has no attribute 'split' This is what my kargo.yml file looks like: kargo_git_repo: "https://github.com/kubespray/kargo.git"
# Logging options
loglevel: "debug"
# Amazon web services options
# ---
aws_access_key: "ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ"
aws_secret_key: "ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ"
key_name: "kubespray"
ami: "ami-kubespray" #Ubuntu Server 16.04 LTS (HVM), SSD Volume Type -
# masters_instance_type: "<masters_instance_type>"
# nodes_instance_type: "<nodes_instance_type>"
# etcds_instance_type: "<etcds_instance_type>"
masters_instance_profile_name: "kubespray"
nodes_instance_profile_name: "kubespray"
etcds_instance_profile_name: "kubespray"
security_group_name: "kubespray"
security_group_id: "sg-kubespray"
assign_public_ip: True
vpc_subnet_id: "vpc-kubespray"
region: "us-east-1"
tags:
- type: kubespray |
It looks like it doesn't like my tags from the example config. https://github.com/kubespray/kargo-cli/blob/master/src/kargo/cloud.py#L166-L170 After I removed the |
I figured this out by looking at cloud.py. It expects the tags to be expressed as strings like key="value" (which it splits on the "=") and not as yaml properties. i.e:
not (as the docs and samples and Yaml format would suggest):
Not sure if this is by accident or design? |
Are you sure to overwrite it ? [Y/n] y
CLONING KARGO GIT REPO *********************************************************
Cloning into '/home/fii/.kargo'...
kargo repo cloned
Traceback (most recent call last):
File "/usr/bin/kargo", line 381, in
args.func(config)
File "/usr/bin/kargo", line 49, in aws
A.gen_ec2_playbook()
File "/usr/lib/python2.7/site-packages/kargo/cloud.py", line 169, in gen_ec2_playbook
k, v = kv.split("=")
AttributeError: 'dict' object has no attribute 'split'
The text was updated successfully, but these errors were encountered: