Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1553488 - 'KickstartSpecificationHandler' object has no attribute 'UserData'
Summary: 'KickstartSpecificationHandler' object has no attribute 'UserData'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vendula Poncova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
: 1554183 (view as bug list)
Depends On:
Blocks: F28BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2018-03-08 23:37 UTC by Dusty Mabe
Modified: 2018-04-06 19:37 UTC (History)
14 users (show)

Fixed In Version: anaconda-29.3-1 anaconda-28.22.2-3.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-06 19:37:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dusty Mabe 2018-03-08 23:37:16 UTC
Description of problem:

The vagrant boxes from the rawhide composes are failing with the following traceback:

```
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:ERROR:pydbus.registration:Exception while handling org.fedoraproject.Anaconda.Modules.ReadKickstart()
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:Traceback (most recent call last):
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib/python3.6/site-packages/pydbus/registration.py", line 82, in call_method
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    result = method(*parameters, **kwargs)
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib64/python3.6/site-packages/pyanaconda/dbus/property.py", line 45, in wrapper
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    result = method(obj, *args, **kwargs)
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/common/base/base_interface.py", line 103, in ReadKickstart
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    self.implementation.read_kickstart(kickstart)
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/common/base/base.py", line 173, in read_kickstart
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    parser.readKickstartFromString(s)
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib/python3.6/site-packages/pykickstart/parser.py", line 788, in readKickstartFromString
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    self._stateMachine(i)
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib/python3.6/site-packages/pykickstart/parser.py", line 771, in _stateMachine
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    self._tryFunc(lambda: self.handleCommand(lineno, args))
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib/python3.6/site-packages/pykickstart/parser.py", line 682, in _tryFunc
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    fn()
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib/python3.6/site-packages/pykickstart/parser.py", line 771, in <lambda>
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    self._tryFunc(lambda: self.handleCommand(lineno, args))
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib/python3.6/site-packages/pykickstart/parser.py", line 573, in handleCommand
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    retval = self.handler.dispatcher(args, lineno)
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib/python3.6/site-packages/pykickstart/base.py", line 378, in dispatcher
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    obj = self.commands[cmd].parse(args[1:])
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib/python3.6/site-packages/pykickstart/commands/user.py", line 194, in parse
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    ud = self.dataClass()   # pylint: disable=not-callable
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:  File "/usr/lib/python3.6/site-packages/pykickstart/commands/user.py", line 210, in dataClass
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:    return self.handler.UserData
17:28:08,598 WARNING org.fedoraproject.Anaconda.Modules.User:AttributeError: 'KickstartSpecificationHandler' object has no attribute 'UserData'
17:28:08,600 WARNING org.fedoraproject.Anaconda.Modules.User:INFO:pydbus.registration:name is not registered
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:ERROR:pydbus.registration:Exception while handling org.fedoraproject.Anaconda.Boss.Anaconda.DistributeKickstart()
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:Traceback (most recent call last):
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:  File "/usr/lib/python3.6/site-packages/pydbus/registration.py", line 82, in call_method
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:    result = method(*parameters, **kwargs)
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/boss/boss_interface.py", line 67, in DistributeKickstart
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:    results = self.implementation.distribute_kickstart()
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/boss/boss.py", line 117, in distribute_kickstart
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:    return self._kickstart_manager.distribute()
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/boss/kickstart_manager/kickstart_manager.py", line 108, in distribute
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:    result = observer.proxy.ReadKickstart(kickstart)
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:  File "/usr/lib/python3.6/site-packages/pydbus/proxy_method.py", line 102, in __call__
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:    raise error
17:28:08,603 WARNING org.fedoraproject.Anaconda.Boss:pyanaconda.modules.common.errors.DBusError: 'KickstartSpecificationHandler' object has no attribute 'UserData'
17:28:08,604 WARNING org.fedoraproject.Anaconda.Boss:INFO:pydbus.registration:name is not registered
```


Here are the tasks from last nights run that failed because of this:
https://koji.fedoraproject.org/koji/taskinfo?taskID=25561698
https://koji.fedoraproject.org/koji/taskinfo?taskID=25561715
https://koji.fedoraproject.org/koji/taskinfo?taskID=25561740

Version-Release number of selected component (if applicable):
17:28:04,962 INFO anaconda:anaconda: main: /sbin/anaconda 29.2-1.fc29

Comment 1 Dusty Mabe 2018-03-08 23:41:22 UTC
Note that these were all imagebuilds for vagrant boxes. so maybe the kickstart files used for those have an attribute in them that isn't commonly used. Here is one of the vagrant files:

https://kojipkgs.fedoraproject.org//work/tasks/1708/25561708/koji-f29-build-25561708-base.ks

Comment 2 Jiri Konecny 2018-03-09 10:36:19 UTC
This should fix it.

PR: https://github.com/rhinstaller/anaconda/pull/1383

Comment 3 Dusty Mabe 2018-03-09 13:43:11 UTC
(In reply to Jiri Konecny from comment #2)
> This should fix it.
> 
> PR: https://github.com/rhinstaller/anaconda/pull/1383

Thanks! Please update us here when a new build happens.

Comment 4 Dusty Mabe 2018-03-10 13:57:26 UTC
This bug also needs to be fixed in f28. Since it's already fixed in f29 i'm going to change the version to f28 and propose as blocker/FE.

Comment 5 Fedora Blocker Bugs Application 2018-03-10 14:00:42 UTC
Proposed as a Blocker for 28-beta by Fedora user dustymabe using the blocker tracking app because:

 'Anaconda fails when the kickstart file specifies
a user or a group' This includes all of our vagrant images we deliver. It's also not a good experience for users who bring their own kickstart and want to do this.

Comment 6 Adam Williamson 2018-03-10 16:59:08 UTC
openQA is also seeing this on kickstart install tests with recent Rawhide composes.

Are you sure it actually *affects* f28? anaconda has now diverged between master and f28.

Comment 7 Dusty Mabe 2018-03-10 17:20:34 UTC
(In reply to Adam Williamson from comment #6)
> openQA is also seeing this on kickstart install tests with recent Rawhide
> composes.
> 
> Are you sure it actually *affects* f28? anaconda has now diverged between
> master and f28.

pretty sure: https://pagure.io/dusty/failed-composes/issue/65#comment-498561

Comment 8 Adam Williamson 2018-03-10 18:21:28 UTC
Ah, k. Didn't catch if it had hit any f28 composes yet. Then +1 blocker - we actually have a criterion for this: "The scripted installation mechanism must provide a working function for creating local user accounts, including the ability to specify a hashed password, and for specifying a hashed password for the root account." - https://fedoraproject.org/wiki/Basic_Release_Criteria#Scripted_user_creation

Comment 9 lnie 2018-03-12 03:11:08 UTC
*** Bug 1554183 has been marked as a duplicate of this bug. ***

Comment 10 Jiri Konecny 2018-03-12 09:34:09 UTC
That PR above went to F28 branch and then it was propagated to rawhide. 
So it should be fixed there but it looks we need to make a new release.

Comment 11 Paul Whalen 2018-03-12 15:23:14 UTC
Hit this while testing Fedora-28-20180310.n.0

Comment 12 Fedora Update System 2018-03-12 17:37:11 UTC
anaconda-28.22.2-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b623ca92af

Comment 13 Geoffrey Marr 2018-03-12 19:58:42 UTC
Discussed during the 2018-03-12 blocker review meeting: [1]

The decision to classify this bug as an AcceptedBlocker was made as it violates the following blocker criteria:

"The scripted installation mechanism must provide a working function for creating local user accounts, including the ability to specify a hashed password, and for specifying a hashed password for the root account."

[1] https://meetbot-raw.fedoraproject.org/fedora-blocker-review/2018-03-12/f28-blocker-review.2018-03-12-16.01.txt

Comment 14 Fedora Update System 2018-03-13 15:09:02 UTC
anaconda-28.22.2-3.fc28, python-blivet-3.0.0-0.4.b1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b623ca92af

Comment 15 Fedora Update System 2018-03-14 01:50:52 UTC
anaconda-28.22.2-3.fc28, python-blivet-3.0.0-0.4.b1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2018-04-05 16:23:26 UTC
anaconda-28.22.3-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-9fd9270cd5

Comment 17 Fedora Update System 2018-04-06 18:55:30 UTC
anaconda-28.22.3-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-9fd9270cd5

Comment 18 Adam Williamson 2018-04-06 19:37:48 UTC
gah, stoppit, Bodhi.


Note You need to log in before you can comment on or make changes to this bug.