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

Re-run single machine installation may fail #1182

Closed
to-bar opened this issue Apr 22, 2020 · 1 comment
Closed

Re-run single machine installation may fail #1182

to-bar opened this issue Apr 22, 2020 · 1 comment

Comments

@to-bar
Copy link
Contributor

to-bar commented Apr 22, 2020

Repro steps:

  1. Run single-machine installation with added haproxy role mapping
15:37:42 INFO cli.engine.ansible.AnsibleCommand - TASK [haproxy : Copy haproxy config] *********************************************************************************************
**************************************************
15:37:42 INFO cli.engine.ansible.AnsibleCommand - fatal: [wilku-XXX-single-machine-vm-0]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'kubernetes_node'"}
  1. Change config to (single_machine instead of kubernetes_node in server_groups of backend: section):
---
kind: configuration/haproxy
title: HAProxy
name: default
specification:
  version: '1.8'
  service_port: 30001
  logs_max_days: 60
  self_signed_certificate_name: self-signed-fullchain.pem
  self_signed_private_key_name: self-signed-privkey.pem
  self_signed_concatenated_cert_name: self-signed-test.tld.pem
  haproxy_log_path: /var/log/haproxy.log
  stats:
    enable: true
    bind_address: 127.0.0.1:9000
    uri: /haproxy?stats
    user: operations
    password: your-haproxy-stats-pwd
  frontend:
  - name: https_front
    port: 443
    https: yes
    backend:
    - http_back1
  backend:
  - name: http_back1
    server_groups:
    - single_machine
    port: 30104
version: 0.6.0
provider: azure
---

  1. Re-run epicli:
    15:47:19 ERROR epicli - ControlPlane downscale is not supported yet. Please revert your kubernetes_master count to previous value or increase it to scale up kubernetes.

Marcin Wilk's comments:

/usr/local/lib/python3.7/site-packages/cli/engine/ApplyEngine.py assert_no_master_downscale.
This check by default seems okay, however in SINGLE MACHINE scenario is an issue. I'm gonna try replace kubernetes_master to single_machine there. I did create 1 VM cluster with only single_machine role. Then it get broken during Ansible part because of HAProxy configuration. It is new cluster and fresh yaml created (modified) today, based on default -p azure --full.

@sk4zuzu
Copy link
Contributor

sk4zuzu commented Apr 28, 2020

Potential fix is in this pull-req #1216. Please notice, that the single_machine is not a valid host group in Epiphany's ansible inventory, use the kubernetes_master instead.

@sk4zuzu sk4zuzu closed this as completed Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants