Bug 1278933
| Summary: | oo-install - ctrl-c able to create district with no node | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Rory Thrasher <rthrashe> |
| Component: | Installer | Assignee: | Rory Thrasher <rthrashe> |
| Status: | CLOSED ERRATA | QA Contact: | Ma xiaoqiang <xiama> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.2.0 | CC: | aos-bugs, jokerman, mmccomas, xtian, yanpzhan |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-12 16:37:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Rory Thrasher
2015-11-06 19:10:21 UTC
Further testing shows exactly when a new district appears.
==========================================================================
Currently there are no Node hosts associated with this district.
Choose a Node host to add to this district:
1. hostname.example.com (current district: Default)
2. hostname2.example.com (current district: district2)
3. hostname3.example.com (current district: district3)
4. hostname4.example.com (current district: district4)
Type a selection and press <return>: ^Z
[1]+ Stopped bundler exec bin/oo-install
[root@thrasher-1259072 oo-install]# cat ~/.openshift/oo-install-cfg.yml | grep 'baddistrict'
[root@thrasher-1259072 oo-install]# fg
bundler exec bin/oo-install
4
There is only one Node associated with the district4 district. If you
move it to another district, this district will be automatically
deleted. Is it okay to proceed? (y/n/q) ^Z
[1]+ Stopped bundler exec bin/oo-install
[root@thrasher-1259072 oo-install]# cat ~/.openshift/oo-install-cfg.yml | grep 'baddistrict'
[root@thrasher-1259072 oo-install]# fg
bundler exec bin/oo-install
y
*****SAVE TO DISK HAPPENS HERE*****
Currently these Node hosts are associated with this district:
* hostname4.example.com
Do you want to add or remove Nodes from this district? (y/n/q) ^Z
[1]+ Stopped bundler exec bin/oo-install
[root@thrasher-1259072 oo-install]# cat ~/.openshift/oo-install-cfg.yml | grep 'baddistrict'
name: baddistrict
https://github.com/openshift/openshift-extras/pull/539 Users should not be able to abort the script (with ctrl-c) during the add district processes and end up with an empty district. Specifically after answer the question "There is only one Node associated with the DISTRICTNAME district. If you move it to another district, this district will be automatically deleted. Is it okay to proceed?" The oo-install-cfg.yml file should not have the new district DISTRICTNAME, and running the script again should not show DISTRICTNAME as an empty district. Should be able to test the code using: sh <(curl -s https://ooinstall-thrasherredhat.rhcloud.com/bug1278933) Could not reproduce the issue with https://install.openshift.com/ose-2.2. Tested on sh <(curl -s https://ooinstall-thrasherredhat.rhcloud.com/bug1278933) Steps to verify: 1.Prepare 3 hosts. 2.Run sh <(curl -s https://ooinstall-thrasherredhat.rhcloud.com/bug1278933) on one host. 3.Try to abort at the 3 points below: (1)Choose a Node host to add to this district: 1. node1.hosts.ose22.com (current district: Default) 2. node2.hosts.ose22.com (current district: district2) Type a selection and press <return>: ^Z (2)There is only one Node associated with the district2 district. If you move it to another district, this district will be automatically deleted. Is it okay to proceed? (y/n/q) ^Z (3)Do you want to add or remove Nodes from this district? (y/n/q) ^Z For point (1) and (2), there will be no emptry district created in the .openshift/oo-install-cfg.yml file and during the scipt running again. For point (3), the new district is created with a node moved in. Since there is no empty district existing now, so move the bug to Verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1065 |