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

OpenStack flavor key in kargo.yml is not honored. #60

Closed
galstrom21 opened this issue Jul 28, 2016 · 0 comments · Fixed by #61
Closed

OpenStack flavor key in kargo.yml is not honored. #60

galstrom21 opened this issue Jul 28, 2016 · 0 comments · Fixed by #61

Comments

@galstrom21
Copy link
Contributor

kargo openstack does not honor the flavor key in kargo.yml (https://github.com/kubespray/kargo-cli/blob/master/src/kargo/files/kargo.yml#L51).

Using this configuration in kargo.yml

# OpenStack options
# ---
os_auth_url: "<os_auth_url>"
os_username: "<os_username>"
os_password: "<os_password>
os_project_name: "<os_project_name>"
flavor: "performance1-4"
image: "1d3ea64f-1ead-4042-8cb6-8ceb523b6149"
# network: "<os_network_name_or_id>"
sshkey: "<os_ssh_key_name>"

I am getting the following error:

$ kargo openstack --nodes 3 --etcds 3 --config ~/.config/kargo/kargo.yml
 [WARNING]: A directory ~/.kargo already exists

Are you sure to overwrite it ? [Y/n] y

CLONING KARGO GIT REPO *********************************************************
Cloning into '~/.kargo'...
kargo repo cloned
Traceback (most recent call last):
  File "~/.virtualenvs/kargo/bin/kargo", line 381, in <module>
    args.func(config)
  File "~/.virtualenvs/kargo/bin/kargo", line 65, in openstack
    O.gen_openstack_playbook()
  File "~/.virtualenvs/kargo/lib/python2.7/site-packages/kargo/cloud.py", line 366, in gen_openstack_playbook
    'flavor': self.options['%s_flavor' % role],
KeyError: 'nodes_flavor'

Specifying masters_flavor and nodes_flavor and etcds_flavor in kargo.yml resolves the issue.

galstrom21 pushed a commit to galstrom21/kargo-cli that referenced this issue Jul 28, 2016
Currently the only flavor option specified in kargo.yml is 'flavor'. The
three following options need to be specified instead of flavor.

* masters_flavor
* nodes_flavor
* etcds_flavor

resolves kubespray#60
@Smana Smana closed this as completed in #61 Aug 3, 2016
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

Successfully merging a pull request may close this issue.

1 participant