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]: template_cloudinit role requires vbond_transport_private_ip for generation of cloud-init for Edge devices #22

Open
przsus opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@przsus
Copy link
Contributor

przsus commented Sep 9, 2024

Summary

template_cloudinit role requires vbond_transport_private_ip and vbond_transport_public_ip vars provided for generation of cloud-init for Edge devices, even though these value is not used in cloud-init at all

Logs and external information

TASK [common : Assert that required variables are provided] *****************************************************************************************************************************************************
Monday 09 September 2024  12:15:45 +0200 (0:00:00.125)       0:00:05.585 ******
failed: [localhost] (item=organization_name) => changed=false
  ansible_loop_var: variable
  assertion: variable.value
  evaluated_to: false
  msg: 'Verification for variables failed: missing required variable: organization_name'
  variable:
    key: organization_name
    value: null
ok: [localhost] => (item=admin_username)
ok: [localhost] => (item=admin_password)
failed: [localhost] (item=vbond_transport_private_ip) => changed=false
  ansible_loop_var: variable
  assertion: variable.value
  evaluated_to: false
  msg: 'Verification for variables failed: missing required variable: vbond_transport_private_ip'
  variable:
    key: vbond_transport_private_ip
    value: null
failed: [localhost] (item=vbond_transport_public_ip) => changed=false
  ansible_loop_var: variable
  assertion: variable.value
  evaluated_to: false
  msg: 'Verification for variables failed: missing required variable: vbond_transport_public_ip'
  variable:
    key: vbond_transport_public_ip
    value: null

Reproduction script

ansible localhost --module-name include_role --args name=template_cloudinit -e system_ip=1.1.1.1 -e site_id=1 -e otp=1 -e uuid=1 -e vbond=1.1.1.1 -e template_path=./userdata_cedge.j2 -e generated_cloudinit_path=./generated-cloudinit

Issue Severity

Medium: There is a workaround

@przsus przsus added the bug Something isn't working label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant