Skip to content
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

Open
fii opened this issue Aug 22, 2016 · 3 comments
Open

Error while starting up #69

fii opened this issue Aug 22, 2016 · 3 comments

Comments

@fii
Copy link

fii commented Aug 22, 2016

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'

@mandeepbal
Copy link

mandeepbal commented Sep 23, 2016

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

@mandeepbal
Copy link

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 tags line, it was able to get past that error.

@srjturner
Copy link

srjturner commented Nov 30, 2016

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:

tags:
 - Name=foo
 - Other=bar

not (as the docs and samples and Yaml format would suggest):

tags:
 - Name: foo
 - Other: bar

Not sure if this is by accident or design?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants