-
Notifications
You must be signed in to change notification settings - Fork 107
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] epicli init --full -p azure generates not correct region value #2497
Comments
Bug is in this function: def load_all_yaml_objs(file_type, provider, kind):
script_dir = os.path.dirname(__file__)
path_to_file = os.path.join(script_dir, DATA_FOLDER_PATH, provider, file_type, kind+'.yml')
return load_file_from_path(script_dir, path_to_file, file_type, kind) path_to_file will always have a value of: Therefore in load_file_from_path function else statement will always be executed. def load_file_from_path(script_dir, path_to_file, file_type, kind):
if os.path.isfile(path_to_file):
return load_yamls_file(path_to_file)
else:
path_to_file = os.path.join(script_dir, DATA_FOLDER_PATH, 'common', file_type, kind + '.yml')
return load_yamls_file(path_to_file) This leads to getting values from the: |
* Add separate epiphany-cluster.yml for Azure * Move epiphany-cluster.yml from common to aws
* Add separate epiphany-cluster.yml for Azure * Move epiphany-cluster.yml from common to aws
* Fix epicli apply --full region values (#2497) * Add separate epiphany-cluster.yml for Azure * Move epiphany-cluster.yml from common to aws * add CHANGELOG * * add `any` default cluster configuration * remove second subnets from the default azure configuration * remove availability_zone from the default azure configuration * * remove `cloud` from the default `any` configuration * remove `use_service_principal` from the default aws configuration * remove `credentials` from the default Azure configuration * * remove `subscription_name` from the default aws configuration Co-authored-by: Luuk van Venrooij <[email protected]>
* Fix bug introduced in 1f9fb7f
PR #2652 is still in progress so this is definitely not ready for testing. To reproduce:
Moving back to TODO. |
Added a fix so we can move forward with testing: #2677 |
The default user for And which user should be default for |
Updated pull for #2677 with ubuntu user for AWS. |
- Removed legacy code for Epiphany < 0.3. - Refactored build_saver.py and renamed to build_io.py as we do not only save. - Updated tests to reflect all changes. - Also added missing changelogs for #2643, #2666 - Added fixes for #2497 which where outstanding in #2652 and reported in: #2497 (comment)
✔️ Fixed. Now a different default configuration is used for each |
Describe the bug
Epicli apply --full -p azure generates not correct region value - it generates eu-west-2 which is value for AWS.
How to reproduce
Steps to reproduce the behavior:
Expected behavior
Region value should be compatible with Azure if we generate file for Azure
Environment
epicli version: all
Additional context
Probably default value in file https://github.com/epiphany-platform/epiphany/blob/develop/core/src/epicli/data/common/defaults/epiphany-cluster.yml should be changed.
DoD checklist
The text was updated successfully, but these errors were encountered: