Bug 641248
| Summary: | DeprecationWarning when pykickstart parsing KS file - missing %end | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Jan Hutař <jhutar> | ||||
| Component: | Provisioning | Assignee: | Tomas Lestach <tlestach> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 540 | CC: | ahumbe, tjackson | ||||
| 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: | 2014-03-10 19:45:17 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: | 462714, 924189 | ||||||
| Attachments: |
|
||||||
Created attachment 452279 [details]
KS file used for kickstarting downloaded from satellite
I saw this on my PXE upgrade from f14 to f15 TC1 as well. The installer continued luckilly Presumably it's not the deprecation warning that's wrong but Satellite that is generating kickstarts without the relevant %end markers. The RHEL6 Migration Planning Guide says that %end is now an error, although in my experience it seems to warn rather than stop deployment. The issue was fixed in upstream within Bug 639999. So the '%end's shall be available already in Satellite 5.5. I have tried with two KS files from Satellite 5.6.0 and `ksvalidate` utility from package pykickstart-1.99.48-1.fc20.noarch and I do confirm it is fixed. |
Description of problem: When we were re-provisioning RHEL6 -> RHEL6, atodorov have encountered this DeprecationWarning: 10:36:55,956 WARNING : /usr/lib/python2.6/site-packages/pykickstart/parser.py:733: DeprecationWarning: Script does not end with %end. This syntax has been deprecated. It may be removed from future releases, which will result in a fatal error from kickstart. Please modify your kickstart file to use this updated syntax. warnings.warn(_("%s does not end with %%end. This syntax has been deprecated. It may be removed from future releases, which will result in a fatal error from kickstart. Please modify your kickstart file to use this updated syntax.") % _("Script"), DeprecationWarning) Version-Release number of selected component (if applicable): Satellite-5.4.0-RHEL5-re20101001.1-x86_64-embedded-oracle How reproducible: always Steps to Reproduce: 1. provision system and inspect anaconda.log Actual results: There is the above mentioned warning Expected results: There should not be any warning