You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ji...@apache.org on 2026/10/10 09:24:56 UTC
(ambari-mpacks) 12/35: AMBARI-26663: Build pinned MinIO sources and verify S3 lifecycle
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ambari-mpacks.git
commit 115da39ca1b671f5ff1ef83ece1a90deb7864bf1
Author: jialiang <ji...@gmail.com>
AuthorDate: Mon Sep 28 12:11:49 2026 +0800
AMBARI-26663: Build pinned MinIO sources and verify S3 lifecycle
---
mpacks/minio/LICENSE | 933 +++++++++++++++++++++
mpacks/minio/NOTICE | 2 +
mpacks/minio/README.md | 36 +-
mpacks/minio/definition.json | 10 +-
.../MINIO/1.0/metainfo.xml} | 14 +-
.../1.0/services/MINIO/configuration/minio-env.xml | 25 +
.../MINIO/1.0/services/MINIO/metainfo.xml | 24 +
.../1.0/services/MINIO/package/scripts/check_s3.go | 136 +++
.../services/MINIO/package/scripts/launcher.py} | 30 +-
.../1.0/services/MINIO/package/scripts/runtime.py | 231 +++++
.../1.0/services/MINIO/package/scripts/server.py} | 22 +-
.../MINIO/package/scripts/service_check.py} | 22 +-
.../1.0/services/MINIO/quicklinks/quicklinks.json} | 33 +-
mpacks/minio/{definition.json => mpack.json} | 25 +-
mpacks/minio/shared-files.json | 12 +
mpacks/minio/{definition.json => source.json} | 29 +-
tests/test_expansion.py | 10 +-
tests/test_minio.py | 93 ++
18 files changed, 1567 insertions(+), 120 deletions(-)
diff --git a/mpacks/minio/LICENSE b/mpacks/minio/LICENSE
new file mode 100644
index 0000000..c43caf4
--- /dev/null
+++ b/mpacks/minio/LICENSE
@@ -0,0 +1,933 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+APACHE AMBARI SUBCOMPONENTS:
+
+The Apache Ambari project contains subcomponents with separate copyright
+notices and license terms. Your use of the source code for the these
+subcomponents is subject to the terms and conditions of the following
+licenses.
+
+This product bundles VictoriaMetrics (https://victoriametrics.com/),
+which is available under the Apache License, Version 2.0.
+
+and some parts:
+
+Copyright (C) 2011 Krzysztof Wilczynski
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+For Kokki, resource management library derived from:
+
+Copyright (c) 2009 Samuel Stauffer <sa...@descolada.com>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of Samuel Stauffer nor the names of its contributors may be used
+ to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+For Jinja2, used by resource management library as a templating engine:
+
+Copyright 2007 Pallets
+
+For MarkupSafe, used by Jinja2:
+
+Copyright 2010 Pallets
+
+For pycparser, used by cffi:
+
+pycparser -- A C parser in Python
+Copyright (c) 2008-2022, Eli Bendersky
+All rights reserved.
+
+The above three components are available under the BSD 3-Clause License:
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+For jQuery 1.9.1 (ambari-web/vendor/scripts.jquery-1.9.1.js):
+
+jQuery JavaScript Library v1.9.1
+http://jquery.com/
+
+Copyright 2011, John Resig
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+Includes Sizzle.js
+http://sizzlejs.com/
+Copyright 2011, The Dojo Foundation
+Released under the MIT, BSD, and GPL Licenses.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Timepicker Addon (ambari-web/vendor/scripts/jquery-ui-timepicker-addon.js):
+
+jQuery timepicker addon
+By: Trent Richardson [http://trentrichardson.com]
+Version 1.0.5
+
+Copyright 2012 Trent Richardson
+You may use this project under MIT or GPL licenses.
+http://trentrichardson.com/Impromptu/GPL-LICENSE.txt
+http://trentrichardson.com/Impromptu/MIT-LICENSE.txt
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery Periodic Plugin (ambari-web/vendor/scripts/jquery.periodic.js):
+
+jQuery periodic plugin
+
+Copyright 2010, Tom Anderson
+Dual licensed under the MIT or GPL Version 2 licenses.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI 1.8.23 (ambari-web/vendor/scripts/jquery.ui.core.js,
+contrib/views/slider/src/main/resources/ui/vendor/scripts/common/jquery.ui.core.js):
+
+jQuery UI 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Autocomplete 1.8.23 (ambari-web/vendor/scripts/jquery.ui.autocomplete.js):
+
+jQuery UI Autocomplete 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Autocomplete
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Position 1.8.23 (ambari-web/vendor/scripts/jquery.ui.position.js):
+
+jQuery UI Position 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Position
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Datepicker 1.8.23 (ambari-web/vendor/scripts/jquery.ui.datepicker.js):
+
+jQuery UI Datepicker 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Datepicker
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Mouse 1.8.23 (ambari-web/vendor/scripts/jquery.ui.mouse.js,
+contrib/views/slider/src/main/resources/ui/vendor/scripts/common/jquery.ui.mouse.js):
+
+jQuery UI Mouse 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Mouse
+
+Depends:
+jquery.ui.widget.js
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Slider 1.8.23 (ambari-web/vendor/scripts/jquery.ui.slider.js):
+
+jQuery UI Slider 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Slider
+
+Depends:
+jquery.ui.core.js
+jquery.ui.mouse.js
+jquery.ui.widget.js
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Widget 1.8.23 (ambari/ambari-web/vendor/scripts/jquery.ui.widget.js,
+contrib/views/slider/src/main/resources/ui/vendor/scripts/common/jquery.ui.widget.js):
+
+jQuery UI Widget 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Widget
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For Backbone.js 1.1.0 (ambari/ambari-web/vendor/scripts/backbone.js,
+
+Backbone.js 1.1.0
+(c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.
+(c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+Backbone may be freely distributed under the MIT license.
+For all details and documentation:
+http://backbonejs.org
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For Underscore.js 1.5.2 (ambari/ambari-web/vendor/scripts/underscore.js,
+
+Underscore.js 1.5.2
+http://underscorejs.org
+(c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+Underscore may be freely distributed under the MIT license.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For clipboard.js 1.5.10 (ambari/ambari-web/vendor/scripts/clipboard.min.js):
+
+clipboard.js v1.5.10
+https://clipboardjs.com/
+Copyright 2016 Zeno Rocha <hi...@zenorocha.com>
+Clipboard may be freely distributed under the MIT license.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For MockJax 1.6.0 (contrib/views/slider/src/main/resources/ui/app/assets/javascripts/jquery.mockjax.js,
+/contrib/views/files/src/main/resources/ui/app/assets/javascripts/jquery.mockjax.js):
+
+MockJax - jQuery Plugin to Mock Ajax requests
+
+Version: 1.6.0
+Released:
+Home: https://github.com/jakerella/jquery-mockjax
+Author: Jonathan Sharp (http://jdsharp.com)
+License: MIT,GPL
+
+Copyright (c) 2014 appendTo, Jordan Kasper
+NOTE: This repository was taken over by Jordan Kasper (@jakerella) October, 2014
+
+Dual licensed under the MIT or GPL licenses.
+http://opensource.org/licenses/MIT OR http://www.gnu.org/licenses/gpl-2.0.html
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For ember-qunit (contrib/views/slider/src/main/resources/ui/app/assets/javascripts/ember-qunit.js)
+
+Home: https://github.com/rwjblue/ember-qunit
+Author: Ryan Florence and contributors
+License: MIT
+
+Copyright 2014 Ryan Florence and contributors. MIT License.
+
+The MIT License (MIT)
+
+Copyright (c) 2014 Ryan Florence
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+For swagger-ui (ambari-web/api-docs/*):
+Home: https://github.com/jensoleg/swagger-ui
+License: Apache License, Version 2.0
+
+Copyright 2015 Reverb Technologies, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+The following bundled Python runtime dependencies are available under the
+Apache License, Version 2.0 reproduced at the start of this file:
+
+* cryptography 50.0.1 (Apache-2.0 option selected)
+* distro 1.9.0
+* stomp.py 8.2.0
+* websocket-client 1.9.0
+* OpenSSL bundled in cryptography binary wheels
+
+For APScheduler:
+
+Copyright (c) Alex Grönholm
+
+For docopt:
+
+Copyright (c) 2012 Vladimir Keleshev, <vl...@keleshev.com>
+
+For tzlocal:
+
+Copyright 2011-2017 Lennart Regebro
+
+For javaproperties:
+
+Copyright (c) 2016-2024 John Thorvald Wodder II
+
+For PyYAML:
+
+Copyright (c) 2017-2021 Ingy döt Net
+Copyright (c) 2006-2016 Kirill Simonov
+
+The above five components are available under the MIT License:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+For cffi:
+
+Except when otherwise stated in individual source files, cffi software and
+documentation is available under the MIT No Attribution license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+For typing_extensions:
+
+Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022,
+2023 Python Software Foundation. All Rights Reserved.
+
+PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"),
+and the Individual or Organization ("Licensee") accessing and otherwise using
+this software ("Python") in source or binary form and its associated
+documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF hereby
+grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
+analyze, test, perform and/or display publicly, prepare derivative works,
+distribute, and otherwise use Python alone or in any derivative version,
+provided, however, that PSF's License Agreement and PSF's notice of copyright
+are retained in Python alone or in any derivative version prepared by
+Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on or
+incorporates Python or any part thereof, and wants to make the derivative work
+available to others as provided herein, then Licensee hereby agrees to include
+in any such work a brief summary of the changes made to Python.
+
+4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES
+NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT
+NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF
+MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
+PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY
+INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
+MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF,
+EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material breach
+of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any
+relationship of agency, partnership, or joint venture between PSF and
+Licensee. This License Agreement does not grant permission to use PSF
+trademarks or trade name in a trademark sense to endorse or promote products
+or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using Python, Licensee agrees to be
+bound by the terms and conditions of this License Agreement.
+
+This product uses software based on SIL Open Font License (OFL)
+* Font-Awesome (SIL OFL 1.1) [http://fortawesome.github.io/Font-Awesome/]
+* Image clippy.svg from Octicon project (SIL OFL 1.1) [https://octicons.github.com/]
diff --git a/mpacks/minio/NOTICE b/mpacks/minio/NOTICE
new file mode 100644
index 0000000..99d6d80
--- /dev/null
+++ b/mpacks/minio/NOTICE
@@ -0,0 +1,2 @@
+Apache Ambari MinIO Management Pack
+Copyright The Apache Software Foundation
diff --git a/mpacks/minio/README.md b/mpacks/minio/README.md
index 13a1cc4..88ac1d7 100644
--- a/mpacks/minio/README.md
+++ b/mpacks/minio/README.md
@@ -13,14 +13,32 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
-# MinIO Definition Draft
+# MinIO Basic Package
-The user requested a basic MinIO definition but explicitly deferred installation.
-`definition.json` records the proposed single-node component and ports. This is
-not an installable mpack and is intentionally absent from `release.json`.
+The earlier non-installable draft was superseded by the user's request for a
+source-built package. This pack manages one MinIO Server on GENERIC/1.0. It
+uses source commit `9e49d5e7a648f00e26f2246f4dc28e6b07f8c84a` from the
+last published community tag, `RELEASE.2025-10-15T17-29-55Z`.
-No package hooks, software download, systemd installation or deployment actions
-are provided. Before promotion, select a maintained source-built RPM or an
-operator-provided artifact, pin its identity, implement explicit credentials and
-persistent storage, and verify S3 write/read/delete using an operation-owned key.
-The embedded console is not a separate daemon. HA is outside the first release.
+Each managed host needs a Go installation capable of selecting toolchain
+1.24.8, access to the pinned source archive and Go module proxy, and persistent
+storage at the configured data directory. INSTALL verifies the source archive
+SHA-512, builds Linux/ARM64 binaries, and rejects builds whose SHA-256 differs
+from the independently reproduced digests in `source.json`. A prepopulated
+`/var/cache/ambari-mpacks/minio-RELEASE.2025-10-15T17-29-55Z.tar.gz` is also
+accepted only after the same digest check. The MinIO AGPL-3.0 source and binary
+are not bundled in this Apache-licensed management definition.
+
+Provide a new root user and password through protected Ambari properties; the
+pack ships no working default credentials. The secret is written only to a
+0600 MinIO-owned runtime file and is not published in task observations. The
+single foreground server and embedded console are supervised by systemd.
+Stopping or retiring a definition never deletes bucket data. A service check
+uses the pinned MinIO Go SDK client to create an operation-owned bucket, write
+and read an object, verify its SHA-256, and remove only that bucket and object.
+The exact execution identity and cleanup outcome are structured observations.
+
+The first release is non-HA and uses HTTP on a trusted network. TLS and
+distributed erasure storage require a separate topology and security design;
+do not expose these credentials over an untrusted network. Runtime acceptance
+is still required before production use.
diff --git a/mpacks/minio/definition.json b/mpacks/minio/definition.json
index ad9c1cd..bd66678 100644
--- a/mpacks/minio/definition.json
+++ b/mpacks/minio/definition.json
@@ -1,10 +1,10 @@
{
"$comment": "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicab [...]
"schema_version": 1,
- "status": "DRAFT_NO_INSTALLATION",
+ "status": "IMPLEMENTED_PENDING_ACCEPTANCE",
"service_name": "MINIO",
"display_name": "MinIO",
- "proposed_stack": {
+ "target_stack": {
"stack_name": "GENERIC",
"stack_version": "1.0"
},
@@ -17,7 +17,7 @@
"console_port": 9001
}
],
- "software_source": null,
- "installable": false,
- "reason": "The user deferred software installation until a package source is selected. Excluded from release.json and deployment bundles."
+ "software_source": "Pinned GitHub source commit 9e49d5e7a648f00e26f2246f4dc28e6b07f8c84a; built with Go 1.24.8 for Linux ARM64",
+ "installable": true,
+ "reason": "The user subsequently requested source-built installation. Live deployment acceptance remains pending."
}
diff --git a/mpacks/minio/README.md b/mpacks/minio/extensions/MINIO/1.0/metainfo.xml
similarity index 53%
copy from mpacks/minio/README.md
copy to mpacks/minio/extensions/MINIO/1.0/metainfo.xml
index 13a1cc4..1f6b7d3 100644
--- a/mpacks/minio/README.md
+++ b/mpacks/minio/extensions/MINIO/1.0/metainfo.xml
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
@@ -12,15 +13,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-# MinIO Definition Draft
-
-The user requested a basic MinIO definition but explicitly deferred installation.
-`definition.json` records the proposed single-node component and ports. This is
-not an installable mpack and is intentionally absent from `release.json`.
-
-No package hooks, software download, systemd installation or deployment actions
-are provided. Before promotion, select a maintained source-built RPM or an
-operator-provided artifact, pin its identity, implement explicit credentials and
-persistent storage, and verify S3 write/read/delete using an operation-owned key.
-The embedded console is not a separate daemon. HA is outside the first release.
+<metainfo><versions><active>true</active></versions><prerequisites><min-stack-versions><stack><name>GENERIC</name><version>1.0</version></stack></min-stack-versions></prerequisites><auto-link>false</auto-link></metainfo>
diff --git a/mpacks/minio/extensions/MINIO/1.0/services/MINIO/configuration/minio-env.xml b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/configuration/minio-env.xml
new file mode 100644
index 0000000..87ada78
--- /dev/null
+++ b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/configuration/minio-env.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<configuration>
+ <property><name>server_host</name><value></value><description>Derived from the assigned MinIO Server.</description><value-attributes><empty-value-valid>true</empty-value-valid></value-attributes><on-ambari-upgrade add="true"/></property>
+ <property><name>api_port</name><value>9000</value><description>S3 API port.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>console_port</name><value>9001</value><description>Embedded MinIO Console port.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>data_directory</name><value>/var/lib/minio/data</value><description>Persistent single-node object data. Definition removal does not delete it.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>root_user</name><value></value><description>Explicit MinIO root access key; no default credential is installed.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>root_password</name><value></value><description>Explicit MinIO root secret key; minimum twelve characters.</description><property-type>PASSWORD</property-type><value-attributes><type>password</type></value-attributes><on-ambari-upgrade add="true"/></property>
+ <property><name>go_home</name><value>/usr/local/go</value><description>Go installation able to select toolchain 1.24.8. The exact built Linux/ARM64 binary digest is verified.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>source_url</name><value></value><description>Optional HTTPS mirror of the pinned source archive. Its SHA-512 must match.</description><value-attributes><empty-value-valid>true</empty-value-valid></value-attributes><on-ambari-upgrade add="true"/></property>
+</configuration>
diff --git a/mpacks/minio/extensions/MINIO/1.0/services/MINIO/metainfo.xml b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/metainfo.xml
new file mode 100644
index 0000000..eca4330
--- /dev/null
+++ b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/metainfo.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<metainfo><schemaVersion>2.0</schemaVersion><services><service>
+ <name>MINIO</name><displayName>MinIO</displayName><version>RELEASE.2025-10-15T17-29-55Z</version>
+ <comment>Single-node persistent object storage, built from a pinned source commit. Supply explicit credentials and Go 1.24.8 build access.</comment>
+ <components><component><name>MINIO_SERVER</name><displayName>MinIO Server</displayName><category>MASTER</category><cardinality>1</cardinality><versionAdvertised>false</versionAdvertised><commandScript><script>scripts/server.py</script><scriptType>PYTHON</scriptType><timeout>7200</timeout></commandScript><customCommands><customCommand><name>VERSION_CHECK</name><commandScript><script>scripts/server.py</script><scriptType>PYTHON</scriptType><timeout>7200</timeout></commandScript></customC [...]
+ <osSpecifics><osSpecific><osFamily>redhat8</osFamily><packages><package><name>python3-dbus</name></package><package><name>python3-gobject-base</name></package></packages></osSpecific></osSpecifics>
+ <commandScript><script>scripts/service_check.py</script><scriptType>PYTHON</scriptType><timeout>900</timeout></commandScript>
+ <configuration-dependencies><config-type>minio-env</config-type></configuration-dependencies>
+ <quickLinksConfigurations><quickLinksConfiguration><fileName>quicklinks.json</fileName><default>true</default></quickLinksConfiguration></quickLinksConfigurations>
+</service></services></metainfo>
diff --git a/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/check_s3.go b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/check_s3.go
new file mode 100644
index 0000000..42c12ee
--- /dev/null
+++ b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/check_s3.go
@@ -0,0 +1,136 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package main
+
+import (
+ "bytes"
+ "context"
+ "crypto/rand"
+ "crypto/sha256"
+ "encoding/hex"
+ "encoding/json"
+ "io"
+ "os"
+ "time"
+
+ "github.com/google/uuid"
+ "github.com/minio/minio-go/v7"
+ "github.com/minio/minio-go/v7/pkg/credentials"
+)
+
+type request struct {
+ SchemaVersion int `json:"schema_version"`
+ ExecutionID string `json:"execution_id"`
+ Endpoint string `json:"endpoint"`
+ AccessKey string `json:"access_key"`
+ SecretKey string `json:"secret_key"`
+ TLS bool `json:"tls"`
+}
+
+type result struct {
+ SchemaVersion int `json:"schema_version"`
+ ExecutionID string `json:"execution_id"`
+ Outcome string `json:"outcome"`
+ Stage string `json:"stage"`
+ Bucket string `json:"bucket"`
+ Object string `json:"object"`
+ SHA256 string `json:"sha256"`
+ Cleanup bool `json:"cleanup"`
+}
+
+func check(input request) (observed result) {
+ observed = result{SchemaVersion: 1, ExecutionID: input.ExecutionID, Outcome: "UNRESOLVED", Stage: "client"}
+ client, err := minio.New(input.Endpoint, &minio.Options{
+ Creds: credentials.NewStaticV4(input.AccessKey, input.SecretKey, ""),
+ Secure: input.TLS,
+ })
+ if err != nil {
+ return observed
+ }
+ ctx, cancel := context.WithTimeout(context.Background(), 90*time.Second)
+ defer cancel()
+ unique := make([]byte, 16)
+ if _, err := rand.Read(unique); err != nil {
+ return observed
+ }
+ observed.Bucket = "ambari-mpack-" + hex.EncodeToString(unique)
+ observed.Object = "probe"
+ observed.Stage = "create"
+ if err := client.MakeBucket(ctx, observed.Bucket, minio.MakeBucketOptions{}); err != nil {
+ return observed
+ }
+ defer func() {
+ removeObject := client.RemoveObject(ctx, observed.Bucket, observed.Object, minio.RemoveObjectOptions{})
+ removeBucket := client.RemoveBucket(ctx, observed.Bucket)
+ observed.Cleanup = removeObject == nil && removeBucket == nil
+ if !observed.Cleanup {
+ observed.Outcome = "UNRESOLVED"
+ observed.Stage = "cleanup"
+ }
+ }()
+ payload := []byte("ambari-mpack:" + input.ExecutionID + ":" + hex.EncodeToString(unique))
+ digest := sha256.Sum256(payload)
+ observed.SHA256 = hex.EncodeToString(digest[:])
+ observed.Stage = "write"
+ if _, err := client.PutObject(ctx, observed.Bucket, observed.Object, bytes.NewReader(payload),
+ int64(len(payload)), minio.PutObjectOptions{}); err != nil {
+ return observed
+ }
+ observed.Stage = "read"
+ object, err := client.GetObject(ctx, observed.Bucket, observed.Object, minio.GetObjectOptions{})
+ if err != nil {
+ return observed
+ }
+ defer object.Close()
+ got, err := io.ReadAll(io.LimitReader(object, 1024))
+ if err != nil || !bytes.Equal(got, payload) {
+ return observed
+ }
+ observed.Outcome = "APPLIED"
+ observed.Stage = "verified"
+ return observed
+}
+
+func main() {
+ if len(os.Args) != 3 {
+ os.Exit(2)
+ }
+ file, err := os.Open(os.Args[1])
+ if err != nil {
+ os.Exit(2)
+ }
+ defer file.Close()
+ decoder := json.NewDecoder(io.LimitReader(file, 16384))
+ decoder.DisallowUnknownFields()
+ var input request
+ if decoder.Decode(&input) != nil || input.SchemaVersion != 1 || input.Endpoint == "" ||
+ input.AccessKey == "" || input.SecretKey == "" {
+ os.Exit(2)
+ }
+ parsed, err := uuid.Parse(input.ExecutionID)
+ if err != nil || parsed.String() != input.ExecutionID {
+ os.Exit(2)
+ }
+ observed := check(input)
+ output, err := os.OpenFile(os.Args[2], os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0600)
+ if err != nil {
+ os.Exit(2)
+ }
+ if json.NewEncoder(output).Encode(observed) != nil || output.Close() != nil {
+ os.Exit(2)
+ }
+ if observed.Outcome != "APPLIED" {
+ os.Exit(1)
+ }
+}
diff --git a/mpacks/minio/README.md b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/launcher.py
similarity index 50%
copy from mpacks/minio/README.md
copy to mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/launcher.py
index 13a1cc4..46c212a 100644
--- a/mpacks/minio/README.md
+++ b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/launcher.py
@@ -1,4 +1,4 @@
-<!--
+"""
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
@@ -11,16 +11,24 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--->
+"""
-# MinIO Definition Draft
+import json
+import os
+from pathlib import Path
-The user requested a basic MinIO definition but explicitly deferred installation.
-`definition.json` records the proposed single-node component and ports. This is
-not an installable mpack and is intentionally absent from `release.json`.
-No package hooks, software download, systemd installation or deployment actions
-are provided. Before promotion, select a maintained source-built RPM or an
-operator-provided artifact, pin its identity, implement explicit credentials and
-persistent storage, and verify S3 write/read/delete using an operation-owned key.
-The embedded console is not a separate daemon. HA is outside the first release.
+def main():
+ config = json.loads(Path("/etc/minio/ambari/runtime.json").read_text())
+ if set(config) != {"binary", "data", "api_port", "console_port", "root_user", "root_password"}:
+ raise ValueError("Invalid protected MinIO runtime configuration")
+ binary = config["binary"]
+ arguments = [binary, "server", "--address", ":" + str(config["api_port"]),
+ "--console-address", ":" + str(config["console_port"]), config["data"]]
+ environment = dict(os.environ, MINIO_ROOT_USER=config["root_user"],
+ MINIO_ROOT_PASSWORD=config["root_password"])
+ os.execve(binary, arguments, environment)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/runtime.py b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/runtime.py
new file mode 100644
index 0000000..d65ae91
--- /dev/null
+++ b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/runtime.py
@@ -0,0 +1,231 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+import hashlib
+import json
+import os
+import pwd
+import re
+import subprocess
+import tempfile
+from pathlib import Path
+
+from managed_runtime import directory, no_links, owned_file, path_value, port_value, reload_units, result, unit
+from observations import atomic_json, unit_observation, validate_request
+from verified_archive import digest_file, install_archive, verify_install
+
+VERSION = "RELEASE.2025-10-15T17-29-55Z"
+COMMIT = "9e49d5e7a648f00e26f2246f4dc28e6b07f8c84a"
+SOURCE_SHA512 = "9b4ff0a68f615a1fd646b0ef0125930f71dfa6afbba4a5eb819a5d5f016c7363fefb9c6d45e0afc4742ffb6c1bec5987c471c3ed2bf0a32f68749546b9a9144a"
+MINIO_SHA256 = "36a65e472ca0a0a3a209ca0ab10d1966e8e089d92b7466a7e45df8d1e4d6708f"
+CHECK_SHA256 = "109e7e9ec52bcc3816d082309b24ddc1aa424b748c02abf899b7044c01e5eb40"
+SOURCE_URL = "https://codeload.github.com/minio/minio/tar.gz/" + COMMIT
+PREFIX = "minio-" + COMMIT
+REQUIRED = ["go.mod", "go.sum", "main.go"]
+HOME = Path("/opt/ambari-mpacks/minio") / VERSION
+CONF = Path("/etc/minio/ambari")
+DATA = Path("/var/lib/minio")
+GO_CACHE = Path("/var/cache/ambari-mpacks/minio-go")
+
+
+class CheckFailure(Exception):
+ def __init__(self, observation):
+ self.observation = observation
+
+
+class BuildFailure(CheckFailure):
+ pass
+
+
+def settings(parameters):
+ role = parameters["component"]
+ if role not in {"server", "check"}:
+ raise ValueError("Unknown MinIO component")
+ host = parameters["server_host"]
+ from managed_runtime import host_value
+ host = host_value(host)
+ assigned = host_value(parameters["hostname"])
+ if role == "server" and assigned != host:
+ raise ValueError("MinIO server placement differs from the assigned host")
+ api, console = port_value(parameters["api_port"]), port_value(parameters["console_port"])
+ if api == console:
+ raise ValueError("MinIO API and console ports must differ")
+ storage = path_value(parameters["data_directory"], ("/var/lib/minio/",))
+ go_home = path_value(parameters["go_home"], ("/usr/local/go", "/opt/"))
+ user, password = parameters["root_user"], parameters["root_password"]
+ if not isinstance(user, str) or not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9_-]{2,31}", user):
+ raise ValueError("An explicit MinIO root user is required")
+ if not isinstance(password, str) or len(password) < 12 or len(password) > 1024 or "\x00" in password:
+ raise ValueError("An explicit MinIO root password is required")
+ return role, host, api, console, storage, go_home, user, password
+
+
+def built():
+ source = verify_install(HOME, "minio", VERSION, SOURCE_SHA512, REQUIRED)
+ for name, expected in (("minio", MINIO_SHA256), ("check-s3", CHECK_SHA256)):
+ path = HOME / "bin" / name
+ no_links(path)
+ if not path.is_file() or digest_file(path, "sha256") != expected:
+ raise ValueError("MinIO compiled binary differs from its pinned source build")
+ return {"source_commit": COMMIT, "source_sha512": source["archive_sha512"],
+ "binary_sha256": MINIO_SHA256, "check_sha256": CHECK_SHA256}
+
+
+def go_environment():
+ environment = {key: value for key, value in os.environ.items() if key not in
+ {"PYTHONPATH", "PYTHONHOME", "GOFLAGS", "GOTOOLCHAIN", "GOPROXY", "GOSUMDB", "GOOS", "GOARCH", "CGO_ENABLED"}}
+ environment.update(GOTOOLCHAIN="go1.24.8", GOPROXY="https://proxy.golang.org",
+ GOSUMDB="sum.golang.org", GOOS="linux", GOARCH="arm64", CGO_ENABLED="0",
+ GOCACHE=str(GO_CACHE / "build"), GOMODCACHE=str(GO_CACHE / "modules"),
+ GOPATH=str(GO_CACHE / "path"))
+ return environment
+
+
+def build(parameters):
+ role, host, api, console, storage, go_home, user, password = settings(parameters)
+ source = install_archive("minio", VERSION, parameters.get("source_url") or SOURCE_URL,
+ SOURCE_SHA512, PREFIX, REQUIRED, maximum_archive=128 * 1024 ** 2)
+ executable = go_home / "bin/go"
+ no_links(executable)
+ if not executable.is_file():
+ raise ValueError("A Go toolchain is required to build MinIO from source")
+ binaries = HOME / "bin"
+ no_links(binaries)
+ binaries.mkdir(exist_ok=True, mode=0o755)
+ for path in (GO_CACHE, GO_CACHE / "build", GO_CACHE / "modules", GO_CACHE / "path"):
+ directory(path, "root", 0o700)
+ environment = go_environment()
+ flags = ("-s -w -X github.com/minio/minio/cmd.Version=2025-10-15T17:29:55Z "
+ "-X github.com/minio/minio/cmd.ReleaseTag=" + VERSION + " "
+ "-X github.com/minio/minio/cmd.CommitID=" + COMMIT + " "
+ "-X github.com/minio/minio/cmd.ShortCommitID=" + COMMIT[:12] + " "
+ "-X github.com/minio/minio/cmd.CopyrightYear=2025")
+ commands = (("minio", MINIO_SHA256, [str(executable), "build", "-tags", "kqueue", "-trimpath",
+ "-buildvcs=false", "-ldflags", flags]),
+ ("check-s3", CHECK_SHA256, [str(executable), "build", "-trimpath", "-buildvcs=false",
+ "-ldflags", "-s -w"]))
+ for name, expected, command in commands:
+ destination = binaries / name
+ no_links(destination)
+ if destination.exists():
+ if digest_file(destination, "sha256") != expected:
+ raise ValueError("An existing MinIO build differs from its pinned digest")
+ continue
+ with tempfile.TemporaryDirectory(prefix=".build-", dir=str(binaries)) as work:
+ target = Path(work) / name
+ source_file = "." if name == "minio" else str(Path(__file__).with_name("check_s3.go"))
+ process = subprocess.run(command + ["-o", str(target), source_file], cwd=str(HOME), env=environment,
+ stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=7200, check=False)
+ observed_digest = digest_file(target, "sha256") if target.is_file() else None
+ if process.returncode != 0 or observed_digest != expected:
+ raise BuildFailure({"build_component": name, "exit_code": process.returncode,
+ "expected_sha256": expected, "observed_sha256": observed_digest})
+ os.replace(str(target), str(destination))
+ destination.chmod(0o755)
+ return built()
+
+
+def configure(parameters):
+ role, host, api, console, storage, go_home, user, password = settings(parameters)
+ if role != "server":
+ raise ValueError("A service check cannot configure MinIO")
+ built()
+ for path in (CONF, DATA, storage):
+ directory(path, "minio")
+ runtime = {"binary": str(HOME / "bin/minio"), "data": str(storage), "api_port": api,
+ "console_port": console, "root_user": user, "root_password": password}
+ owned_file(CONF / "runtime.json", json.dumps(runtime, sort_keys=True), "minio", 0o600)
+ owned_file(CONF / "launcher.py", Path(__file__).with_name("launcher.py").read_text(), "minio", 0o500)
+ unit("ambari-minio.service", "minio", Path("/usr/libexec/platform-python"),
+ {"PYTHONDONTWRITEBYTECODE": "1"}, DATA, str(CONF / "launcher.py"))
+ reload_units()
+ return {"server": host, "api_port": api, "console_port": console, "data_directory": str(storage)}
+
+
+def check(request):
+ parameters = request["parameters"]
+ role, host, api, console, storage, go_home, user, password = settings(parameters)
+ built()
+ directory(DATA, "minio")
+ account = pwd.getpwnam("minio")
+ with tempfile.TemporaryDirectory(prefix=".check-", dir=str(DATA)) as work:
+ os.chown(work, account.pw_uid, account.pw_gid)
+ source, destination = Path(work) / "request.json", Path(work) / "result.json"
+ owned_file(source, json.dumps({"schema_version": 1, "execution_id": request["execution_id"],
+ "endpoint": host + ":" + str(api), "access_key": user, "secret_key": password,
+ "tls": False}), "minio", 0o600)
+ process = subprocess.run(["/usr/sbin/runuser", "-u", "minio", "--", str(HOME / "bin/check-s3"),
+ str(source), str(destination)], stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL, timeout=120, check=False)
+ if not destination.is_file() or destination.stat().st_size > 16384:
+ raise RuntimeError("Missing bounded MinIO SDK observation")
+ observed = json.loads(destination.read_text())
+ if (not isinstance(observed, dict) or type(observed.get("schema_version")) is not int
+ or observed["schema_version"] != 1 or observed.get("execution_id") != request["execution_id"]
+ or observed.get("outcome") not in {"APPLIED", "UNRESOLVED"}
+ or observed.get("stage") not in {"client", "create", "write", "read", "verified", "cleanup"}
+ or not isinstance(observed.get("bucket"), str) or not isinstance(observed.get("object"), str)
+ or not isinstance(observed.get("sha256"), str) or type(observed.get("cleanup")) is not bool):
+ raise ValueError("Invalid MinIO SDK observation")
+ if process.returncode != 0 or observed["outcome"] != "APPLIED" or observed["stage"] != "verified" or not observed["cleanup"]:
+ raise CheckFailure({"stage": observed["stage"], "bucket": observed["bucket"],
+ "cleanup": observed["cleanup"]})
+ if not re.fullmatch(r"ambari-mpack-[0-9a-f]{32}", observed["bucket"]) or observed["object"] != "probe":
+ raise ValueError("Foreign MinIO object identity")
+ unique = observed["bucket"].split("ambari-mpack-", 1)[1]
+ expected = hashlib.sha256(("ambari-mpack:" + request["execution_id"] + ":" + unique).encode()).hexdigest()
+ if observed["sha256"] != expected:
+ raise ValueError("MinIO object digest differs from the owned request")
+ return {"bucket": observed["bucket"], "object": observed["object"],
+ "sha256": expected, "cleanup": True}
+
+
+def execute(request):
+ parameters, action = request["parameters"], request["action"]
+ role, host, api, console, storage, go_home, user, password = settings(parameters)
+ if action == "install":
+ return {"software": build(parameters)}
+ if action == "version":
+ return {"software": built()}
+ if action == "configure":
+ return {"configuration": configure(parameters)}
+ if action == "check":
+ return {"s3": check(request)}
+ if role != "server" or action not in {"start", "stop", "status"}:
+ raise ValueError("Unsupported MinIO action")
+ observed = unit_observation("ambari-minio.service", None if action == "status" else action)
+ if action == "status" and observed["active_state"] != "active":
+ raise RuntimeError("MinIO is not active")
+ return {"systemd": observed}
+
+
+def main():
+ import sys
+ request = validate_request(json.loads(Path(sys.argv[1]).read_text()))
+ try:
+ value = result(request, "APPLIED", execute(request))
+ except CheckFailure as error:
+ value = result(request, "UNRESOLVED", error.observation)
+ atomic_json(sys.argv[2], value)
+ raise SystemExit(1)
+ except Exception as error:
+ value = result(request, "UNRESOLVED", {"error_type": type(error).__name__})
+ atomic_json(sys.argv[2], value)
+ raise SystemExit(1)
+ atomic_json(sys.argv[2], value)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/mpacks/minio/README.md b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/server.py
similarity index 52%
copy from mpacks/minio/README.md
copy to mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/server.py
index 13a1cc4..0a721af 100644
--- a/mpacks/minio/README.md
+++ b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/server.py
@@ -1,4 +1,4 @@
-<!--
+"""
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
@@ -11,16 +11,16 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--->
+"""
-# MinIO Definition Draft
+from managed_service_v2 import ManagedServiceV2
-The user requested a basic MinIO definition but explicitly deferred installation.
-`definition.json` records the proposed single-node component and ports. This is
-not an installable mpack and is intentionally absent from `release.json`.
-No package hooks, software download, systemd installation or deployment actions
-are provided. Before promotion, select a maintained source-built RPM or an
-operator-provided artifact, pin its identity, implement explicit credentials and
-persistent storage, and verify S3 write/read/delete using an operation-owned key.
-The embedded console is not a separate daemon. HA is outside the first release.
+class Server(ManagedServiceV2):
+ service = "minio"
+ component = "server"
+ topology_fields = {"server_host": ("minio_server_hosts", True, False)}
+
+
+if __name__ == "__main__":
+ Server().execute()
diff --git a/mpacks/minio/README.md b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/service_check.py
similarity index 52%
copy from mpacks/minio/README.md
copy to mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/service_check.py
index 13a1cc4..2262d4d 100644
--- a/mpacks/minio/README.md
+++ b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/service_check.py
@@ -1,4 +1,4 @@
-<!--
+"""
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
@@ -11,16 +11,16 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--->
+"""
-# MinIO Definition Draft
+from managed_service_v2 import ManagedServiceV2
-The user requested a basic MinIO definition but explicitly deferred installation.
-`definition.json` records the proposed single-node component and ports. This is
-not an installable mpack and is intentionally absent from `release.json`.
-No package hooks, software download, systemd installation or deployment actions
-are provided. Before promotion, select a maintained source-built RPM or an
-operator-provided artifact, pin its identity, implement explicit credentials and
-persistent storage, and verify S3 write/read/delete using an operation-owned key.
-The embedded console is not a separate daemon. HA is outside the first release.
+class Check(ManagedServiceV2):
+ service = "minio"
+ component = "check"
+ topology_fields = {"server_host": ("minio_server_hosts", True, False)}
+
+
+if __name__ == "__main__":
+ Check().execute()
diff --git a/mpacks/minio/definition.json b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/quicklinks/quicklinks.json
similarity index 52%
copy from mpacks/minio/definition.json
copy to mpacks/minio/extensions/MINIO/1.0/services/MINIO/quicklinks/quicklinks.json
index ad9c1cd..dee5fbd 100644
--- a/mpacks/minio/definition.json
+++ b/mpacks/minio/extensions/MINIO/1.0/services/MINIO/quicklinks/quicklinks.json
@@ -1,23 +1,16 @@
{
"$comment": "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicab [...]
- "schema_version": 1,
- "status": "DRAFT_NO_INSTALLATION",
- "service_name": "MINIO",
- "display_name": "MinIO",
- "proposed_stack": {
- "stack_name": "GENERIC",
- "stack_version": "1.0"
- },
- "components": [
- {
- "name": "MINIO_SERVER",
- "category": "MASTER",
- "cardinality": "1",
- "api_port": 9000,
- "console_port": 9001
- }
- ],
- "software_source": null,
- "installable": false,
- "reason": "The user deferred software installation until a package source is selected. Excluded from release.json and deployment bundles."
+ "name": "default",
+ "description": "MinIO S3 and Console endpoints",
+ "configuration": {
+ "protocol": {"type": "http"},
+ "links": [
+ {"name": "minio_console", "label": "MinIO Console", "requires_user_name": "false",
+ "component_name": "MINIO_SERVER", "url": "%@://%@:%@/",
+ "port": {"http_property": "console_port", "http_default_port": "9001", "regex": "^(\\d+)$", "site": "minio-env"}},
+ {"name": "minio_api", "label": "MinIO S3 API", "requires_user_name": "false",
+ "component_name": "MINIO_SERVER", "url": "%@://%@:%@/minio/health/live",
+ "port": {"http_property": "api_port", "http_default_port": "9000", "regex": "^(\\d+)$", "site": "minio-env"}}
+ ]
+ }
}
diff --git a/mpacks/minio/definition.json b/mpacks/minio/mpack.json
similarity index 60%
copy from mpacks/minio/definition.json
copy to mpacks/minio/mpack.json
index ad9c1cd..318957f 100644
--- a/mpacks/minio/definition.json
+++ b/mpacks/minio/mpack.json
@@ -1,23 +1,10 @@
{
"$comment": "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicab [...]
"schema_version": 1,
- "status": "DRAFT_NO_INSTALLATION",
- "service_name": "MINIO",
- "display_name": "MinIO",
- "proposed_stack": {
- "stack_name": "GENERIC",
- "stack_version": "1.0"
- },
- "components": [
- {
- "name": "MINIO_SERVER",
- "category": "MASTER",
- "cardinality": "1",
- "api_port": 9000,
- "console_port": 9001
- }
- ],
- "software_source": null,
- "installable": false,
- "reason": "The user deferred software installation until a package source is selected. Excluded from release.json and deployment bundles."
+ "type": "full-release",
+ "name": "minio",
+ "version": "1.0.0.3",
+ "description": "MinIO source-built single-node object storage",
+ "artifacts": [{"name": "minio-definitions", "type": "extension-definitions", "source_dir": "extensions"}],
+ "dependencies": [{"name": "generic-base", "version": "1.0.0.3"}]
}
diff --git a/mpacks/minio/shared-files.json b/mpacks/minio/shared-files.json
new file mode 100644
index 0000000..f4dcef6
--- /dev/null
+++ b/mpacks/minio/shared-files.json
@@ -0,0 +1,12 @@
+{
+ "$comment": "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicab [...]
+ "schema_version": 1,
+ "files": [
+ {"source": "shared/observations.py", "target": "extensions/MINIO/1.0/services/MINIO/package/scripts/observations.py", "digest": "8fb22532d4012faf25c2f38a56bbd713738016716fa6c0606fb56b46ce194a99"},
+ {"source": "shared/managed_runtime.py", "target": "extensions/MINIO/1.0/services/MINIO/package/scripts/managed_runtime.py", "digest": "542098b830a0580c4f699c80be9ce1133017edfd0620d629f1691c988fdfaab0"},
+ {"source": "shared/managed_service.py", "target": "extensions/MINIO/1.0/services/MINIO/package/scripts/managed_service.py", "digest": "8b3338e0b6a895cfb3205e2053aa05e9f7e7e2a56f559417e8a9873ad132ff41"},
+ {"source": "shared/managed_service_v2.py", "target": "extensions/MINIO/1.0/services/MINIO/package/scripts/managed_service_v2.py", "digest": "b561538a70028de8c83d1ced93e4dc6f006ed99c1b4cd28a603aa610a971c5eb"},
+ {"source": "shared/managed_topology.py", "target": "extensions/MINIO/1.0/services/MINIO/package/scripts/managed_topology.py", "digest": "cd9ca507841e3b4c6f6e623f866e79e2fce83e818b1edecb0f8cc6c4a8185f43"},
+ {"source": "shared/verified_archive.py", "target": "extensions/MINIO/1.0/services/MINIO/package/scripts/verified_archive.py", "digest": "f02828b595e5b4614be24f88d102ee0f02f7563a65fe8c79e7fa13c9ff2ea2ab"}
+ ]
+}
diff --git a/mpacks/minio/definition.json b/mpacks/minio/source.json
similarity index 51%
copy from mpacks/minio/definition.json
copy to mpacks/minio/source.json
index ad9c1cd..71b407d 100644
--- a/mpacks/minio/definition.json
+++ b/mpacks/minio/source.json
@@ -1,23 +1,16 @@
{
"$comment": "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicab [...]
"schema_version": 1,
- "status": "DRAFT_NO_INSTALLATION",
- "service_name": "MINIO",
- "display_name": "MinIO",
- "proposed_stack": {
- "stack_name": "GENERIC",
- "stack_version": "1.0"
+ "software_version": "RELEASE.2025-10-15T17-29-55Z",
+ "source_commit": "9e49d5e7a648f00e26f2246f4dc28e6b07f8c84a",
+ "source_license": "AGPL-3.0",
+ "source": {
+ "url": "https://codeload.github.com/minio/minio/tar.gz/9e49d5e7a648f00e26f2246f4dc28e6b07f8c84a",
+ "sha512": "9b4ff0a68f615a1fd646b0ef0125930f71dfa6afbba4a5eb819a5d5f016c7363fefb9c6d45e0afc4742ffb6c1bec5987c471c3ed2bf0a32f68749546b9a9144a"
},
- "components": [
- {
- "name": "MINIO_SERVER",
- "category": "MASTER",
- "cardinality": "1",
- "api_port": 9000,
- "console_port": 9001
- }
- ],
- "software_source": null,
- "installable": false,
- "reason": "The user deferred software installation until a package source is selected. Excluded from release.json and deployment bundles."
+ "build": {"go_toolchain": "go1.24.8", "os": "linux", "arch": "arm64",
+ "minio_sha256": "36a65e472ca0a0a3a209ca0ab10d1966e8e089d92b7466a7e45df8d1e4d6708f",
+ "check_s3_sha256": "109e7e9ec52bcc3816d082309b24ddc1aa424b748c02abf899b7044c01e5eb40"},
+ "topology": "SINGLE_SERVER",
+ "validation_status": "IMPLEMENTED_PENDING_ACCEPTANCE"
}
diff --git a/tests/test_expansion.py b/tests/test_expansion.py
index 4c6d7bf..ecfa4df 100644
--- a/tests/test_expansion.py
+++ b/tests/test_expansion.py
@@ -240,16 +240,18 @@ class ExpansionTests(unittest.TestCase):
with self.assertRaises(ValueError):
airflow.check_dag("http://service.test", {}, execution)
- def test_password_metadata_and_minio_release_exclusion(self):
+ def test_password_metadata_and_source_built_minio_definition(self):
from xml.etree import ElementTree
config = ROOT / "mpacks/airflow/extensions/AIRFLOW/1.0/services/AIRFLOW/configuration/airflow-env.xml"
properties = {p.findtext("name"): p for p in ElementTree.parse(config).getroot().findall("property")}
for name in ("database_password", "admin_password"):
self.assertEqual(properties[name].findtext("property-type"), "PASSWORD")
self.assertFalse(properties[name].findtext("value"))
- release = json.loads((ROOT / "release.json").read_text())
- self.assertNotIn("minio", release["packs"])
- self.assertFalse((ROOT / "mpacks/minio/mpack.json").exists())
+ self.assertTrue((ROOT / "mpacks/minio/mpack.json").exists())
+ minio_config = ROOT / "mpacks/minio/extensions/MINIO/1.0/services/MINIO/configuration/minio-env.xml"
+ minio_properties = {p.findtext("name"): p for p in ElementTree.parse(minio_config).getroot().findall("property")}
+ self.assertEqual(minio_properties["root_password"].findtext("property-type"), "PASSWORD")
+ self.assertFalse(minio_properties["root_password"].findtext("value"))
if __name__ == "__main__":
diff --git a/tests/test_minio.py b/tests/test_minio.py
new file mode 100644
index 0000000..7222548
--- /dev/null
+++ b/tests/test_minio.py
@@ -0,0 +1,93 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+import hashlib
+import importlib.util
+import json
+import os
+import sys
+import tempfile
+import unittest
+from pathlib import Path
+from types import SimpleNamespace
+from unittest.mock import patch
+
+ROOT = Path(__file__).resolve().parents[1]
+sys.path.insert(0, str(ROOT / "shared"))
+PATH = ROOT / "mpacks/minio/extensions/MINIO/1.0/services/MINIO/package/scripts/runtime.py"
+spec = importlib.util.spec_from_file_location("minio_runtime_test", str(PATH))
+minio = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(minio)
+
+
+def request():
+ return {"schema_version": 1, "execution_id": "12345678-1234-4234-8234-123456789abc",
+ "parameters": {"component": "check", "hostname": "minio.test", "server_host": "minio.test",
+ "api_port": "9000", "console_port": "9001", "data_directory": "/var/lib/minio/data",
+ "go_home": "/usr/local/go", "root_user": "admin_test",
+ "root_password": "private-test-secret"}}
+
+
+class MinioTests(unittest.TestCase):
+ def test_source_build_has_managed_caches_without_login_home(self):
+ with patch.dict(os.environ, {"PYTHONPATH": "/agent"}, clear=True):
+ environment = minio.go_environment()
+ self.assertNotIn("HOME", environment)
+ self.assertNotIn("PYTHONPATH", environment)
+ for key in ("GOCACHE", "GOMODCACHE", "GOPATH"):
+ self.assertTrue(environment[key].startswith("/var/cache/ambari-mpacks/minio-go/"))
+ self.assertEqual(environment["GOTOOLCHAIN"], "go1.24.8")
+
+ def test_credentials_and_placement_must_be_explicit(self):
+ value = request()["parameters"]
+ self.assertEqual(minio.settings(value)[1:4], ("minio.test", 9000, 9001))
+ for change in ({"root_password": "short"}, {"root_user": ""},
+ {"component": "server", "hostname": "foreign.test"},
+ {"console_port": "9000"}, {"data_directory": "/tmp/minio"}):
+ with self.subTest(change=change), self.assertRaises(ValueError):
+ minio.settings(dict(value, **change))
+
+ def test_s3_result_requires_owned_identity_digest_and_cleanup(self):
+ value = request()
+ suffix = "a" * 32
+ expected = hashlib.sha256(("ambari-mpack:" + value["execution_id"] + ":" + suffix).encode()).hexdigest()
+ base = {"schema_version": 1, "execution_id": value["execution_id"], "outcome": "APPLIED",
+ "stage": "verified", "bucket": "ambari-mpack-" + suffix, "object": "probe",
+ "sha256": expected, "cleanup": True}
+ with tempfile.TemporaryDirectory() as temporary:
+ root = Path(temporary).resolve()
+ def invoke(observed, exit_code=0):
+ def run(command, **_):
+ Path(command[-1]).write_text(json.dumps(observed))
+ return SimpleNamespace(returncode=exit_code)
+ with patch.object(minio, "DATA", root), patch.object(minio, "directory"), patch.object(
+ minio, "built"), patch.object(minio.os, "chown"), patch.object(
+ minio.pwd, "getpwnam", return_value=SimpleNamespace(pw_uid=os.getuid(), pw_gid=os.getgid())), patch.object(
+ minio, "owned_file", side_effect=lambda path, content, *_: Path(path).write_text(content)), patch.object(
+ minio.subprocess, "run", side_effect=run):
+ return minio.check(value)
+ self.assertEqual(invoke(base)["sha256"], expected)
+ for change in ({"execution_id": "foreign"}, {"sha256": "0" * 64},
+ {"bucket": "foreign-bucket"}, {"cleanup": "true"}):
+ with self.subTest(change=change), self.assertRaises(ValueError):
+ invoke(dict(base, **change))
+ with self.assertRaises(minio.CheckFailure) as failure:
+ invoke(dict(base, outcome="UNRESOLVED", stage="cleanup", cleanup=False), 1)
+ self.assertEqual(failure.exception.observation["cleanup"], False)
+ self.assertNotIn(value["parameters"]["root_password"], json.dumps(failure.exception.observation))
+
+
+if __name__ == "__main__":
+ unittest.main()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org