Saqib Khan | 7254f0e | 2017-04-10 21:45:37 -0500 | [diff] [blame] | 1 | #include <string> |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 2 | #include <experimental/filesystem> |
Saqib Khan | 7254f0e | 2017-04-10 21:45:37 -0500 | [diff] [blame] | 3 | #include <fstream> |
Adriana Kobylak | b66ac3a | 2017-03-28 13:33:20 -0500 | [diff] [blame] | 4 | #include <phosphor-logging/log.hpp> |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 5 | #include <xyz/openbmc_project/Software/Version/server.hpp> |
Saqib Khan | 167601b | 2017-06-18 23:33:46 -0500 | [diff] [blame] | 6 | #include "version.hpp" |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 7 | #include "config.h" |
| 8 | #include "item_updater.hpp" |
Saqib Khan | a8ade7e | 2017-04-12 10:27:56 -0500 | [diff] [blame] | 9 | #include "activation.hpp" |
Michael Tritz | 60bc20f | 2017-07-29 23:32:21 -0500 | [diff] [blame] | 10 | #include "serialize.hpp" |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 11 | |
| 12 | namespace openpower |
| 13 | { |
| 14 | namespace software |
| 15 | { |
Adriana Kobylak | befe5ce | 2017-04-05 15:57:44 -0500 | [diff] [blame] | 16 | namespace updater |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 17 | { |
| 18 | |
Saqib Khan | a8ade7e | 2017-04-12 10:27:56 -0500 | [diff] [blame] | 19 | // When you see server:: you know we're referencing our base class |
| 20 | namespace server = sdbusplus::xyz::openbmc_project::Software::server; |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 21 | namespace fs = std::experimental::filesystem; |
Saqib Khan | a8ade7e | 2017-04-12 10:27:56 -0500 | [diff] [blame] | 22 | |
Adriana Kobylak | b66ac3a | 2017-03-28 13:33:20 -0500 | [diff] [blame] | 23 | using namespace phosphor::logging; |
| 24 | |
Saqib Khan | a8ade7e | 2017-04-12 10:27:56 -0500 | [diff] [blame] | 25 | constexpr auto squashFSImage = "pnor.xz.squashfs"; |
| 26 | |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 27 | void ItemUpdater::createActivation(sdbusplus::message::message& m) |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 28 | { |
Patrick Williams | e429094 | 2017-06-16 05:43:08 -0500 | [diff] [blame] | 29 | using SVersion = server::Version; |
| 30 | using VersionPurpose = SVersion::VersionPurpose; |
| 31 | namespace msg = sdbusplus::message; |
| 32 | namespace variant_ns = msg::variant_ns; |
| 33 | |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 34 | sdbusplus::message::object_path objPath; |
| 35 | std::map<std::string, |
Patrick Williams | e429094 | 2017-06-16 05:43:08 -0500 | [diff] [blame] | 36 | std::map<std::string, msg::variant<std::string>>> interfaces; |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 37 | m.read(objPath, interfaces); |
Patrick Williams | e429094 | 2017-06-16 05:43:08 -0500 | [diff] [blame] | 38 | |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 39 | std::string path(std::move(objPath)); |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 40 | std::string filePath; |
Patrick Williams | e429094 | 2017-06-16 05:43:08 -0500 | [diff] [blame] | 41 | auto purpose = VersionPurpose::Unknown; |
Saqib Khan | ce14870 | 2017-06-11 12:01:58 -0500 | [diff] [blame] | 42 | std::string version; |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 43 | |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 44 | for (const auto& intf : interfaces) |
Adriana Kobylak | b66ac3a | 2017-03-28 13:33:20 -0500 | [diff] [blame] | 45 | { |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 46 | if (intf.first == VERSION_IFACE) |
| 47 | { |
| 48 | for (const auto& property : intf.second) |
| 49 | { |
| 50 | if (property.first == "Purpose") |
| 51 | { |
| 52 | // Only process the Host and System images |
Patrick Williams | e429094 | 2017-06-16 05:43:08 -0500 | [diff] [blame] | 53 | auto value = SVersion::convertVersionPurposeFromString( |
| 54 | variant_ns::get<std::string>(property.second)); |
| 55 | |
| 56 | if (value == VersionPurpose::Host || |
| 57 | value == VersionPurpose::System) |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 58 | { |
Saqib Khan | ce14870 | 2017-06-11 12:01:58 -0500 | [diff] [blame] | 59 | purpose = value; |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 60 | } |
| 61 | } |
Saqib Khan | ce14870 | 2017-06-11 12:01:58 -0500 | [diff] [blame] | 62 | else if (property.first == "Version") |
| 63 | { |
Patrick Williams | e429094 | 2017-06-16 05:43:08 -0500 | [diff] [blame] | 64 | version = variant_ns::get<std::string>(property.second); |
Saqib Khan | ce14870 | 2017-06-11 12:01:58 -0500 | [diff] [blame] | 65 | } |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 66 | } |
| 67 | } |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 68 | else if (intf.first == FILEPATH_IFACE) |
| 69 | { |
| 70 | for (const auto& property : intf.second) |
| 71 | { |
| 72 | if (property.first == "Path") |
| 73 | { |
Patrick Williams | e429094 | 2017-06-16 05:43:08 -0500 | [diff] [blame] | 74 | filePath = variant_ns::get<std::string>(property.second); |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 75 | } |
| 76 | } |
| 77 | } |
| 78 | } |
Patrick Williams | e429094 | 2017-06-16 05:43:08 -0500 | [diff] [blame] | 79 | if ((filePath.empty()) || (purpose == VersionPurpose::Unknown)) |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 80 | { |
| 81 | return; |
Adriana Kobylak | b66ac3a | 2017-03-28 13:33:20 -0500 | [diff] [blame] | 82 | } |
| 83 | |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 84 | // Version id is the last item in the path |
| 85 | auto pos = path.rfind("/"); |
| 86 | if (pos == std::string::npos) |
Adriana Kobylak | b66ac3a | 2017-03-28 13:33:20 -0500 | [diff] [blame] | 87 | { |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 88 | log<level::ERR>("No version id found in object path", |
| 89 | entry("OBJPATH=%s", path)); |
| 90 | return; |
| 91 | } |
| 92 | |
| 93 | auto versionId = path.substr(pos + 1); |
| 94 | |
| 95 | if (activations.find(versionId) == activations.end()) |
| 96 | { |
| 97 | // Determine the Activation state by processing the given image dir. |
| 98 | auto activationState = server::Activation::Activations::Invalid; |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 99 | if (ItemUpdater::validateSquashFSImage(filePath) == 0) |
Adriana Kobylak | b66ac3a | 2017-03-28 13:33:20 -0500 | [diff] [blame] | 100 | { |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 101 | activationState = server::Activation::Activations::Ready; |
Adriana Kobylak | b66ac3a | 2017-03-28 13:33:20 -0500 | [diff] [blame] | 102 | } |
| 103 | |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 104 | fs::path manifestPath(filePath); |
| 105 | manifestPath /= MANIFEST_FILE; |
Saqib Khan | 167601b | 2017-06-18 23:33:46 -0500 | [diff] [blame] | 106 | std::string extendedVersion = (Version::getValue(manifestPath.string(), |
| 107 | std::map<std::string, std::string> |
| 108 | {{"extended_version", ""}})).begin()->second; |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 109 | activations.insert(std::make_pair( |
| 110 | versionId, |
| 111 | std::make_unique<Activation>( |
| 112 | bus, |
| 113 | path, |
Saqib Khan | 81bac88 | 2017-06-08 12:17:01 -0500 | [diff] [blame] | 114 | *this, |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 115 | versionId, |
| 116 | extendedVersion, |
| 117 | activationState))); |
Saqib Khan | ce14870 | 2017-06-11 12:01:58 -0500 | [diff] [blame] | 118 | versions.insert(std::make_pair( |
| 119 | versionId, |
| 120 | std::make_unique<Version>( |
| 121 | bus, |
| 122 | path, |
| 123 | version, |
| 124 | purpose, |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 125 | filePath, |
| 126 | *this))); |
Saqib Khan | 00044f4 | 2017-07-10 17:24:43 -0500 | [diff] [blame] | 127 | } |
Saqib Khan | 3fb2d17 | 2017-08-07 12:14:03 -0500 | [diff] [blame] | 128 | else |
| 129 | { |
| 130 | log<level::INFO>("Software Object with the same version already exists", |
| 131 | entry("VERSION_ID=%s", versionId)); |
| 132 | } |
Patrick Williams | 3accb32 | 2017-05-30 16:29:52 -0500 | [diff] [blame] | 133 | return; |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 134 | } |
| 135 | |
Saqib Khan | 167601b | 2017-06-18 23:33:46 -0500 | [diff] [blame] | 136 | void ItemUpdater::processPNORImage() |
Saqib Khan | 7254f0e | 2017-04-10 21:45:37 -0500 | [diff] [blame] | 137 | { |
Saqib Khan | 4c5d744 | 2017-07-18 00:43:52 -0500 | [diff] [blame] | 138 | // Read pnor.toc from folders under /media/ |
| 139 | // to get Active Software Versions. |
| 140 | for(const auto& iter : fs::directory_iterator(MEDIA_DIR)) |
| 141 | { |
| 142 | auto activationState = server::Activation::Activations::Active; |
| 143 | |
| 144 | static const auto PNOR_RO_PREFIX_LEN = strlen(PNOR_RO_PREFIX); |
| 145 | |
| 146 | // Check if the PNOR_RO_PREFIX is the prefix of the iter.path |
| 147 | if (0 == iter.path().native().compare(0, PNOR_RO_PREFIX_LEN, |
| 148 | PNOR_RO_PREFIX)) |
| 149 | { |
| 150 | auto pnorTOC = iter.path() / PNOR_TOC_FILE; |
| 151 | if (!fs::is_regular_file(pnorTOC)) |
| 152 | { |
| 153 | log<level::ERR>("Failed to read pnorTOC\n", |
| 154 | entry("FileName=%s", pnorTOC.string())); |
| 155 | activationState = server::Activation::Activations::Invalid; |
| 156 | } |
| 157 | auto keyValues = |
| 158 | Version::getValue(pnorTOC, |
| 159 | {{ "version", "" }, |
| 160 | { "extended_version", "" } }); |
| 161 | auto& version = keyValues.at("version"); |
| 162 | if (version.empty()) |
| 163 | { |
| 164 | log<level::ERR>("Failed to read version from pnorTOC", |
| 165 | entry("FILENAME=%s", pnorTOC.string())); |
| 166 | activationState = server::Activation::Activations::Invalid; |
| 167 | } |
| 168 | |
| 169 | auto& extendedVersion = keyValues.at("extended_version"); |
| 170 | if (extendedVersion.empty()) |
| 171 | { |
| 172 | log<level::ERR>("Failed to read extendedVersion from pnorTOC", |
| 173 | entry("FILENAME=%s", pnorTOC.string())); |
| 174 | activationState = server::Activation::Activations::Invalid; |
| 175 | } |
| 176 | |
| 177 | // The versionId is extracted from the path |
| 178 | // for example /media/pnor-ro-2a1022fe |
| 179 | auto id = iter.path().native().substr(PNOR_RO_PREFIX_LEN); |
| 180 | auto purpose = server::Version::VersionPurpose::Host; |
| 181 | auto path = fs::path(SOFTWARE_OBJPATH) / id; |
| 182 | |
| 183 | // Create Activation instance for this version. |
| 184 | activations.insert(std::make_pair( |
| 185 | id, |
| 186 | std::make_unique<Activation>( |
| 187 | bus, |
| 188 | path, |
| 189 | *this, |
| 190 | id, |
| 191 | extendedVersion, |
| 192 | activationState))); |
| 193 | |
| 194 | // If Active, create RedundancyPriority instance for this version. |
| 195 | if (activationState == server::Activation::Activations::Active) |
| 196 | { |
Michael Tritz | 3641792 | 2017-08-04 14:00:29 -0500 | [diff] [blame] | 197 | uint8_t priority = std::numeric_limits<uint8_t>::max(); |
| 198 | if (!restoreFromFile(id, priority)) |
Saqib Khan | 4c5d744 | 2017-07-18 00:43:52 -0500 | [diff] [blame] | 199 | { |
Michael Tritz | 3641792 | 2017-08-04 14:00:29 -0500 | [diff] [blame] | 200 | log<level::ERR>("Unable to restore priority from file.", |
| 201 | entry("VERSIONID=%s", id)); |
Saqib Khan | 4c5d744 | 2017-07-18 00:43:52 -0500 | [diff] [blame] | 202 | } |
Michael Tritz | 3641792 | 2017-08-04 14:00:29 -0500 | [diff] [blame] | 203 | activations.find(id)->second->redundancyPriority = |
| 204 | std::make_unique<RedundancyPriority>( |
| 205 | bus, |
| 206 | path, |
| 207 | *(activations.find(id)->second), |
| 208 | priority); |
Saqib Khan | 4c5d744 | 2017-07-18 00:43:52 -0500 | [diff] [blame] | 209 | } |
| 210 | |
| 211 | // Create Version instance for this version. |
| 212 | versions.insert(std::make_pair( |
| 213 | id, |
| 214 | std::make_unique<Version>( |
| 215 | bus, |
| 216 | path, |
| 217 | version, |
| 218 | purpose, |
| 219 | "", |
| 220 | *this))); |
| 221 | } |
| 222 | } |
Saqib Khan | 167601b | 2017-06-18 23:33:46 -0500 | [diff] [blame] | 223 | return; |
Saqib Khan | 7254f0e | 2017-04-10 21:45:37 -0500 | [diff] [blame] | 224 | } |
| 225 | |
Adriana Kobylak | 5ba6b10 | 2017-05-19 09:41:27 -0500 | [diff] [blame] | 226 | int ItemUpdater::validateSquashFSImage(const std::string& filePath) |
Saqib Khan | a8ade7e | 2017-04-12 10:27:56 -0500 | [diff] [blame] | 227 | { |
Saqib Khan | 4c5d744 | 2017-07-18 00:43:52 -0500 | [diff] [blame] | 228 | auto file = fs::path(filePath) / squashFSImage; |
| 229 | if (fs::is_regular_file(file)) |
Saqib Khan | a8ade7e | 2017-04-12 10:27:56 -0500 | [diff] [blame] | 230 | { |
| 231 | return 0; |
| 232 | } |
| 233 | else |
| 234 | { |
| 235 | log<level::ERR>("Failed to find the SquashFS image."); |
| 236 | return -1; |
| 237 | } |
| 238 | } |
| 239 | |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 240 | void ItemUpdater::removeReadOnlyPartition(std::string versionId) |
Michael Tritz | dd961b6 | 2017-05-17 14:07:03 -0500 | [diff] [blame] | 241 | { |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 242 | auto serviceFile = "obmc-flash-bios-ubiumount-ro@" + versionId + |
| 243 | ".service"; |
| 244 | |
| 245 | // Remove the read-only partitions. |
| 246 | auto method = bus.new_method_call( |
| 247 | SYSTEMD_BUSNAME, |
| 248 | SYSTEMD_PATH, |
| 249 | SYSTEMD_INTERFACE, |
| 250 | "StartUnit"); |
| 251 | method.append(serviceFile, "replace"); |
| 252 | bus.call_noreply(method); |
| 253 | } |
| 254 | |
| 255 | void ItemUpdater::removeReadWritePartition(std::string versionId) |
| 256 | { |
| 257 | auto serviceFile = "obmc-flash-bios-ubiumount-rw@" + versionId + |
Michael Tritz | dd961b6 | 2017-05-17 14:07:03 -0500 | [diff] [blame] | 258 | ".service"; |
| 259 | |
| 260 | // Remove the read-write partitions. |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 261 | auto method = bus.new_method_call( |
Michael Tritz | dd961b6 | 2017-05-17 14:07:03 -0500 | [diff] [blame] | 262 | SYSTEMD_BUSNAME, |
| 263 | SYSTEMD_PATH, |
| 264 | SYSTEMD_INTERFACE, |
| 265 | "StartUnit"); |
| 266 | method.append(serviceFile, "replace"); |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 267 | bus.call_noreply(method); |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 268 | } |
Michael Tritz | dd961b6 | 2017-05-17 14:07:03 -0500 | [diff] [blame] | 269 | |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 270 | void ItemUpdater::removePreservedPartition() |
| 271 | { |
Michael Tritz | dd961b6 | 2017-05-17 14:07:03 -0500 | [diff] [blame] | 272 | // Remove the preserved partition. |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 273 | auto method = bus.new_method_call( |
Michael Tritz | dd961b6 | 2017-05-17 14:07:03 -0500 | [diff] [blame] | 274 | SYSTEMD_BUSNAME, |
| 275 | SYSTEMD_PATH, |
| 276 | SYSTEMD_INTERFACE, |
| 277 | "StartUnit"); |
| 278 | method.append("obmc-flash-bios-ubiumount-prsv.service", "replace"); |
Adriana Kobylak | d6a549e | 2017-05-10 16:23:01 -0500 | [diff] [blame] | 279 | bus.call_noreply(method); |
Michael Tritz | dd961b6 | 2017-05-17 14:07:03 -0500 | [diff] [blame] | 280 | |
| 281 | return; |
| 282 | } |
| 283 | |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 284 | void ItemUpdater::reset() |
| 285 | { |
| 286 | for(const auto& it : activations) |
| 287 | { |
| 288 | removeReadWritePartition(it.first); |
Michael Tritz | 60bc20f | 2017-07-29 23:32:21 -0500 | [diff] [blame] | 289 | removeFile(it.first); |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 290 | } |
| 291 | removePreservedPartition(); |
| 292 | return; |
| 293 | } |
| 294 | |
Saqib Khan | b8e7f31 | 2017-08-12 10:24:10 -0500 | [diff] [blame] | 295 | void ItemUpdater::freePriority(uint8_t value, const std::string& versionId) |
Saqib Khan | 81bac88 | 2017-06-08 12:17:01 -0500 | [diff] [blame] | 296 | { |
| 297 | //TODO openbmc/openbmc#1896 Improve the performance of this function |
| 298 | for (const auto& intf : activations) |
| 299 | { |
| 300 | if(intf.second->redundancyPriority) |
| 301 | { |
Saqib Khan | b8e7f31 | 2017-08-12 10:24:10 -0500 | [diff] [blame] | 302 | if (intf.second->redundancyPriority.get()->priority() == value && |
| 303 | intf.second->versionId != versionId) |
Saqib Khan | 81bac88 | 2017-06-08 12:17:01 -0500 | [diff] [blame] | 304 | { |
| 305 | intf.second->redundancyPriority.get()->priority(value+1); |
| 306 | } |
| 307 | } |
| 308 | } |
| 309 | } |
| 310 | |
Saqib Khan | 2af5c49 | 2017-07-17 16:15:13 -0500 | [diff] [blame] | 311 | bool ItemUpdater::isLowestPriority(uint8_t value) |
| 312 | { |
| 313 | for (const auto& intf : activations) |
| 314 | { |
| 315 | if(intf.second->redundancyPriority) |
| 316 | { |
| 317 | if (intf.second->redundancyPriority.get()->priority() < value) |
| 318 | { |
| 319 | return false; |
| 320 | } |
| 321 | } |
| 322 | } |
| 323 | return true; |
| 324 | } |
| 325 | |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 326 | void ItemUpdater::erase(std::string entryId) |
| 327 | { |
Saqib Khan | ef8cd9f | 2017-08-16 14:20:30 -0500 | [diff] [blame^] | 328 | // Remove priority persistence file |
| 329 | removeFile(entryId); |
| 330 | |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 331 | // Removing partitions |
| 332 | removeReadWritePartition(entryId); |
| 333 | removeReadOnlyPartition(entryId); |
| 334 | |
| 335 | // Removing entry in versions map |
| 336 | auto it = versions.find(entryId); |
| 337 | if (it == versions.end()) |
| 338 | { |
| 339 | log<level::ERR>(("Error: Failed to find version " + entryId + \ |
| 340 | " in item updater versions map." \ |
| 341 | " Unable to remove.").c_str()); |
| 342 | return; |
| 343 | } |
| 344 | versions.erase(entryId); |
| 345 | |
| 346 | // Removing entry in activations map |
| 347 | auto ita = activations.find(entryId); |
| 348 | if (ita == activations.end()) |
| 349 | { |
| 350 | log<level::ERR>(("Error: Failed to find version " + entryId + \ |
| 351 | " in item updater activations map." \ |
| 352 | " Unable to remove.").c_str()); |
| 353 | return; |
| 354 | } |
| 355 | activations.erase(entryId); |
| 356 | } |
| 357 | |
Adriana Kobylak | befe5ce | 2017-04-05 15:57:44 -0500 | [diff] [blame] | 358 | } // namespace updater |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 359 | } // namespace software |
| 360 | } // namespace openpower |