Clarify with logs
This commit is contained in:
@@ -15,7 +15,7 @@ class Provision extends BaseController
|
||||
log_message('critical', "***** ***** prepareProvision :: Starting Product Database if Needed ");
|
||||
$this->prepareDataBase(); // allocte port for the conyainer use
|
||||
|
||||
log_message('critical', "***** ***** prepareProvision :: Starting Port Provisioning ");
|
||||
log_message('critical', "***** ***** prepareProvision :: Create needed DockerCompose Files ");
|
||||
$this->updateProvision();
|
||||
|
||||
return 0;
|
||||
@@ -78,21 +78,11 @@ class Provision extends BaseController
|
||||
log_message('critical', "***** ***** prepareDataBase Error:: () ".$e->getMessage());
|
||||
}
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
echo "Error creating database: " . $conn->error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Check connection
|
||||
|
||||
|
||||
|
||||
|
||||
mysqli_close($conn);
|
||||
|
||||
return '';
|
||||
}
|
||||
private function generatedContainerName($productId, $provID){
|
||||
@@ -408,6 +398,7 @@ class Provision extends BaseController
|
||||
}
|
||||
|
||||
public function releaseProvision(){
|
||||
log_message('critical', "***** ***** releaseProvision:: Execute Actual Provisioning() ");
|
||||
$PROCESS_LIMIT = 2;
|
||||
$rsyncPass = "******noNEDD****";
|
||||
// $remote_composer_path = "chiefsoft@10.0.0.32:/home/chiefsoft/MermsProvision/ANSIBLE/parts/";
|
||||
@@ -477,8 +468,6 @@ class Provision extends BaseController
|
||||
$internal_url
|
||||
);
|
||||
|
||||
|
||||
|
||||
$this->db->query("UPDATE provision_plans SET updated = now() WHERE id = $planId");
|
||||
$this->db->query("UPDATE members_products SET p_file = p_file + 1 WHERE id = $provisionId");
|
||||
$params = [
|
||||
|
||||
Reference in New Issue
Block a user