Bug 802537
| Summary: | make initial deploy consistent with update/redeploy when using manageRootDir=false | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | John Mazzitelli <mazz> | ||||
| Component: | Provisioning | Assignee: | RHQ Project Maintainer <rhq-maint> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.3 | CC: | dlackey, dvanbale, hrupp, loleary | ||||
| Target Milestone: | --- | ||||||
| Target Release: | RHQ 4.4.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 824577 (view as bug list) | Environment: | |||||
| Last Closed: | 2013-09-01 10:06:26 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 801464, 824577 | ||||||
| Attachments: |
|
||||||
|
Description
John Mazzitelli
2012-03-12 19:04:38 UTC
This is a BIG change in behaviour and needs to heavily emphasized in our docs and release notes. master commit: 53e63b7 Created attachment 570020 [details]
no-manage-root-dir.zip
a bundle distribution file, no-manage-root-dir.zip, is attached to use to test this. here's how:
1) create a place on your file system to deploy this bundle (e.g. /tmp/testdir)
2) create some "extra" files in here so they are "in the way" of the bundle you will be deploying. These will represent files that would be already existing in an existing destination directory. Create these specific files in order to exercise the fix:
/tmp/testdir/subdir/extra-file.txt
/tmp/testdir/subdir2/extra-file2.txt
/tmp/testdir/extradir/extra-file3.txt
/tmp/testdir/extra-file4.txt
3) import a platform and put it into a test group to be used as the target where you will deploy the bundle.
4) upload no-manage-root-dir.zip via the bundle upload wizard
5) deploy the bundle to your test platform group created in step 3, with a bundle destination set to your test directory you created in step 1 (e.g. /tmp/testdir).
Now look at what is in your test directory (/tmp/testdir) and make sure
a) the subdir/extra-file.txt was removed (it will have been backed up in /tmp/testdir/.rhqdeployments/#####) - this was removed because the bundle declared it will be managing that subdirectory by virtue of the recipe's <rhq:file> whose destinationDir is "subdir"
b) the subdir2/extra-file2.txt was removed (it will also have been backed up) - this was removed because the bundle declared it will be managing that subdirectory by virtue of the fact that the recipe declared a <rhq:archive> which has "subdir2" inside of it.
c) the two other extra files (extradir/extra-file3.txt and extra-file4.txt) were not removed because the recipe declared manageRootDir=false and extradir and extra-file4.txt were in the root directory (and not otherwise specified by the bundle recipe - so they are to be left alone).
Set components correctly. I opened bug 824577 to track the documentation update for this. Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since. |