update hypervisor annotaion. preinit instead of initialized

This commit is contained in:
Josh Patterson
2025-11-20 16:53:55 -05:00
parent 2d716b44a8
commit 1f5f283c06
2 changed files with 4 additions and 4 deletions

View File

@@ -489,7 +489,7 @@ def _ensure_hypervisor_host_dir(minion_id: str = None):
log.error(f"Error creating hypervisor host directory: {str(e)}") log.error(f"Error creating hypervisor host directory: {str(e)}")
return False return False
def _apply_dyanno_hypervisor_state(status='Initialized'): def _apply_dyanno_hypervisor_state(status):
""" """
Apply the soc.dyanno.hypervisor state on the salt master. Apply the soc.dyanno.hypervisor state on the salt master.
@@ -734,7 +734,7 @@ def setup_environment(vm_name: str = 'sool9', disk_size: str = '220G', minion_id
# Update hypervisor annotation with success status # Update hypervisor annotation with success status
if success: if success:
_apply_dyanno_hypervisor_state('Initialized') _apply_dyanno_hypervisor_state('PreInit')
else: else:
_apply_dyanno_hypervisor_state('SetupFailed') _apply_dyanno_hypervisor_state('SetupFailed')

View File

@@ -55,10 +55,10 @@ SSH key setup failed. Please check the salt-master log for details.
#### WARNING #### WARNING
Setup failed. Please check the salt-master log for details. Setup failed. Please check the salt-master log for details.
{%- else %} {%- elif baseDomainStatus == 'PreInit' %}
#### WARNING #### WARNING
Base domain has not been initialized. Base domain has not been initialized. Waiting for hypervisor to highstate.
{%- endif %} {%- endif %}
{%- endmacro -%} {%- endmacro -%}