Bug 499016
| Summary: | ipa host-mod: modifying platform modifies os | ||
|---|---|---|---|
| Product: | [Retired] freeIPA | Reporter: | Jenny Severance <jgalipea> |
| Component: | ipa-admintools | Assignee: | Dmitri Pal <dpal> |
| Status: | CLOSED UPSTREAM | QA Contact: | Chandrasekar Kannan <ckannan> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.0 | CC: | benl, dpal, jgalipea, mgregg, rcritten |
| 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: | 2012-03-28 09:28:50 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: | 431020 | ||
|
Description
Jenny Severance
2009-05-04 19:52:36 UTC
My guess is that we are auto-filling arguments not passed on mod operations too which is causing the other values to change. I''d guess that you could duplicate this with the other os/platform attributes as well.
Jason, what do you think about this? The variables are defined with autofill and a default set:
Str('nshardwareplatform?',
cli_name='platform',
doc='Hardware platform of this host (e.g. Lenovo T61)',
default=determine_platform(),
autofill=True,
)
It would seem we don't want autofill or a default anyway since there is no guarantee that the host is being added on the actual physical host, causing incorrect data to be set. So it seems to me that the most expedient solution is to simply remove the default and autofill properties.
It looks like modifying anything - modifies the platform and OS [root@jennyv2 schema]# ipa host-show jennyv4.bos.redhat.com cn: jennyv4.bos.redhat.com description: interesting description localityname: Mountain View, CA nshardwareplatform: i389 nshostlocation: IDM Westford lab 3 nsosversion: redhat 5.3 Tikanga [root@jennyv2 schema]# ipa host-mod --os="Fedora 11" jennyv4.bos.redhat.com Host updated [root@jennyv2 schema]# ipa host-show jennyv4.bos.redhat.com cn: jennyv4.bos.redhat.com description: interesting description localityname: Mountain View, CA nshardwareplatform: i686 nshostlocation: IDM Westford lab 3 nsosversion: Fedora 11 NOTE: platform was not modified - but it was changed. [root@jennyv2 schema]# ipa host-mod --description="this is a very interesting description" jennyv4.bos.redhat.com Host updated [root@jennyv2 schema]# ipa host-show jennyv4.bos.redhat.com cn: jennyv4.bos.redhat.com description: this is a very interesting description localityname: Mountain View, CA nshardwareplatform: i686 nshostlocation: IDM Westford lab 3 nsosversion: redhat 5.3 Tikanga This is fixed in a recent patch. Parameters are cloned with autofill=False in *-mod operations. |