mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
update hypervisor annotaion. preinit instead of initialized
This commit is contained in:
@@ -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')
|
||||||
|
|
||||||
|
|||||||
@@ -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 -%}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user