| Summary: | Bootstrap script deletes client_config_update.py if run locally on the Satellite server from the /var/www/html/pub/bootstrap/ directory | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Dustin Black <bugzilla> |
| Component: | Registration | Assignee: | Michael Mráka <mmraka> |
| Status: | CLOSED DEFERRED | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 541 | CC: | bugzilla, cperry |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-05-29 20:10:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 462714 | ||
Description of problem: When attempting to run the bootstrap.sh script generated by Satellite on the local satellite server, from the /var/www/html/pub/bootstrap/ directory, the script will delete the client_config_update.py file from the directory. Version-Release number of selected component (if applicable): 5.4.1 How reproducible: Any time the generated bootstrap.sh script is run from its installation directory of /var/www/html/pub/bootstrap/ Steps to Reproduce: 1. Generate the bootstrap file from the Satellite admin interface. 2. On the Satellite server locally: cd /var/www/html/pub/bootstrap 3. Edit the bootstrap.sh file to include the activation key and comment out the exit command 3. bash ./bootstrap.sh Actual results: Local client_config_update.py file is deleted, and script fails. Expected results: Script executes normally, registering the local system with the activation key. Additional info: From the bootstrap.sh file: echo "UPDATING RHN_REGISTER/UP2DATE CONFIGURATION FILES" echo "-------------------------------------------------" echo "* downloading necessary files" echo " client_config_update.py..." rm -f client_config_update.py <--local file is deleted $FETCH ${HTTPS_PUB_DIRECTORY}/bootstrap/client_config_update.py <--download of file is to PWD