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

[BUG] Upgrade doesn't work with ERROR epicli - No such attribute: cloud #1741

Closed
atsikham opened this issue Oct 6, 2020 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@atsikham
Copy link
Contributor

atsikham commented Oct 6, 2020

Describe the bug
Upgrade process finishes with an error

ERROR epicli - No such attribute: cloud

To Reproduce
Steps to reproduce the behavior:

  1. Deploy v0.6 cluster on Azure.
  2. Run upgrade from develop branch.

Expected behavior
Successful upgrade.

Config files

---
kind: configuration/shared-config
title: Shared configuration that will be visible to all roles
name: default
provider: azure
specification:
  custom_repository_url: ''
  custom_image_registry_address: ''
  download_directory: /tmp
  vault_location: ''
  vault_tmp_file_location: SET_BY_AUTOMATION
  use_ha_control_plane: true
  promote_to_ha: false
version: 0.7.1
---
kind: epiphany-cluster
title: Epiphany cluster Config
provider: azure
name: odfe
specification:
  prefix: atsikham
  name: certs
  admin_user:
    name: ubuntu
    key_path: /home/vscode/.ssh/id_rsa
  cloud:
    subscription_name: <subscription>
    use_public_ips: true
    use_service_principal: false
    region: West Europe
  components:
    kubernetes_master:
      count: 1
    kubernetes_node:
      count: 0
    logging:
      count: 0
    monitoring:
      count: 0
    kafka:
      count: 0
    postgresql:
      count: 0
    load_balancer:
      count: 0
    rabbitmq:
      count: 0
    ignite:
      count: 0
    opendistro_for_elasticsearch:
      count: 1
    single_machine:
      count: 0
version: 0.7.1

OS (please complete the following information):

  • OS: Ubuntu, but it doesn't matter

Cloud Environment (please complete the following information):

  • Cloud Provider: Azure, but all affected

Additional context
There is such piece of code in AnsibleInventoryUpgrade.py:

# re-constructure cluster model with all data necessary to run required upgrade rolls
        self.cluster_model = dict_to_objdict({
            'provider': 'any',
            'specification': {
                'admin_user': {
                    'name': loaded_inventory.groups['all'].vars['ansible_user'],
                    'key_path': loaded_inventory.groups['all'].vars['ansible_ssh_private_key_file']
                }
            }
        })

That model is used then in upgrade process with no success, see related changes.

@to-bar
Copy link
Contributor

to-bar commented Oct 6, 2020

It looks like a case similar to #909

@atsikham
Copy link
Contributor Author

atsikham commented Oct 9, 2020

will be tested by @to-bar together with #1647

@atsikham atsikham assigned to-bar and unassigned atsikham Oct 9, 2020
@to-bar
Copy link
Contributor

to-bar commented Oct 9, 2020

Test OK (from 0.7.2 to develop).

@atsikham atsikham changed the title [BUG] Upgrade doesn't work [BUG] Upgrade doesn't work with ERROR epicli - No such attribute: cloud Oct 13, 2020
to-bar pushed a commit that referenced this issue Oct 14, 2020
@plirglo plirglo closed this as completed Oct 15, 2020
to-bar pushed a commit that referenced this issue Oct 22, 2020
rafzei pushed a commit to rafzei/epiphany that referenced this issue Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants