Skip to content

Commit

Permalink
Merge branch 'eero/enable-hostos-upgrades' into 'master'
Browse files Browse the repository at this point in the history
[NODE-1152] Enable HostOS upgrades

 

See merge request dfinity-lab/public/ic!15553
  • Loading branch information
Bownairo committed Oct 31, 2023
2 parents f113644 + e779feb commit cebeff4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion rs/orchestrator/src/hostos_upgrade.rs
Expand Up @@ -19,7 +19,6 @@ pub(crate) struct HostosUpgrader {
}

impl HostosUpgrader {
#[allow(dead_code)] // NODE-1152
pub(crate) async fn new(
registry: Arc<RegistryHelper>,
hostos_version: HostosVersion,
Expand Down
10 changes: 1 addition & 9 deletions rs/orchestrator/src/orchestrator.rs
Expand Up @@ -20,7 +20,6 @@ use ic_logger::{error, info, new_replica_logger_from_config, warn, ReplicaLogger
use ic_metrics::MetricsRegistry;
use ic_registry_replicator::RegistryReplicator;
use ic_sys::utility_command::UtilityCommand;
#[allow(unused_imports)] // NODE-1152
use ic_types::hostos_version::HostosVersion;
use ic_types::{ReplicaVersion, SubnetId};
use slog_async::AsyncGuard;
Expand Down Expand Up @@ -225,10 +224,6 @@ impl Orchestrator {
.await,
);

// NODE-1152
// Completely disable the HostOS upgrade loop, until testing is
// complete and we are ready to roll out this feature.
/*
let hostos_version = UtilityCommand::request_hostos_version().and_then(|v| {
HostosVersion::try_from(v)
.map_err(|e| format!("Unable to parse HostOS version: {:?}", e))
Expand All @@ -252,9 +247,6 @@ impl Orchestrator {
.await,
),
};
*/
let hostos_version = None;
let hostos_upgrade = None;

let firewall = Firewall::new(
node_id,
Expand All @@ -278,7 +270,7 @@ impl Orchestrator {
replica_process,
Arc::clone(&subnet_id),
replica_version,
hostos_version,
hostos_version.ok(),
cup_provider,
logger.clone(),
));
Expand Down

0 comments on commit cebeff4

Please sign in to comment.