Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

CORTX-33855: remove extra arrow from update provisioning status #6398

Merged
merged 3 commits into from
Aug 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/provisioner/provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,16 +467,16 @@ def _update_provisioning_status(cortx_conf: MappedConf, node_id: str,
node_id: machine-id
phase: deployment/upgrade
status: default/progress/success/error."""
key_prefix = f'node>{node_id}>provisioning>'
keys = [(key_prefix + 'phase', phase), (key_prefix + 'status', status)]
key_prefix = f'node>{node_id}>provisioning'
keys = [(key_prefix + '>' + 'phase', phase), (key_prefix + '>' + 'status', status)]
cortx_conf.set_kvs(keys)

# TODO: Remove the following section once gconf is moved to consul completely.
CortxProvisioner._load_consul_conf(CortxProvisioner._cortx_gconf_consul_index)
Conf.set(CortxProvisioner._cortx_gconf_consul_index, f'{key_prefix}>phase', phase)
Conf.set(CortxProvisioner._cortx_gconf_consul_index, f'{key_prefix}>status', status)
if phase is ProvisionerStages.DEPLOYMENT.value:
cortx_conf.set(f'node>{node_id}>provisioning>time', int(time.time()))
cortx_conf.set(f'{key_prefix}>time', int(time.time()))
Conf.set(CortxProvisioner._cortx_gconf_consul_index, f'{key_prefix}>time', int(time.time()))
Conf.save(CortxProvisioner._cortx_gconf_consul_index)

Expand Down