| Summary: | Node list erroring out | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | nodes | Assignee: | Jeff Ortel <jortel> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.2 Beta | CC: | skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | 2.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-09 14:31:17 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: | |
build: 2.3.0-0.14.alpha verified
[root@pulp-v2-server ~]# rpm -qa pulp-nodes-parent
pulp-nodes-parent-2.3.0-0.14.alpha.el6.noarch
[root@pulp-v2-server ~]#
[root@pulp-v2-server ~]# pulp-admin node activate --consumer-id node1 --strategy mirror
Consumer activated as child node.
[root@pulp-v2-server ~]# pulp-admin node list
+----------------------------------------------------------------------+
Child Nodes
+----------------------------------------------------------------------+
Id: node1
Display Name: node1
Description: None
Bindings:
Update Strategy: mirror
Notes:
[root@pulp-v2-server ~]# pulp-admin node deactivate --node-id node1
Child node deactivated.
[root@pulp-v2-server ~]# pulp-admin node list
+----------------------------------------------------------------------+
Child Nodes
+----------------------------------------------------------------------+
[root@pulp-v2-server ~]# pulp-admin node activate --consumer-id node1 --strategy additive
Consumer activated as child node.
[root@pulp-v2-server ~]# pulp-admin node list
+----------------------------------------------------------------------+
Child Nodes
+----------------------------------------------------------------------+
Id: node1
Display Name: node1
Description: None
Bindings:
Update Strategy: additive
Notes:
[root@pulp-v2-server ~]# pulp-admin node deactivate --node-id node1
Child node deactivated.
[root@pulp-v2-server ~]# pulp-admin node list
+----------------------------------------------------------------------+
Child Nodes
+----------------------------------------------------------------------+
[root@pulp-v2-server ~]# pulp-admin node activate --consumer-id node1
Consumer activated as child node.
[root@pulp-v2-server ~]# pulp-admin node list
+----------------------------------------------------------------------+
Child Nodes
+----------------------------------------------------------------------+
Id: node1
Display Name: node1
Description: None
Bindings:
Update Strategy: additive
Notes:
[root@pulp-v2-server ~]# pulp-admin node deactivate --node-id node1
Child node deactivated.
[root@pulp-v2-server ~]# pulp-admin node activate --consumer-id node1 --strategy
Usage: pulp-admin [options]
Command: activate
Description: activate a consumer as a child node
Available Arguments:
--consumer-id - (required) unique identifier; only alphanumeric, ., -, and _
allowed
--strategy - synchronization strategy (mirror|additive) default is additive
[root@pulp-v2-server ~]# pulp-admin node activate --consumer-id node1 --strategy "none"
Strategy [ none ] not supported. Must be one of: ['additive', 'mirror']
[root@pulp-v2-server ~]# pulp-admin node activate --consumer-id node1 --strategy "mirror"
Consumer activated as child node.
[root@pulp-v2-server ~]# pulp-admin node list
+----------------------------------------------------------------------+
Child Nodes
+----------------------------------------------------------------------+
Id: node1
Display Name: node1
Description: None
Bindings:
Update Strategy: mirror
Notes:
[root@pulp-v2-server ~]#
Pulp 2.3 released. |
Description of problem: Pulp-admin node list errors out Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Activate a node 2.Run node list 3. Actual results: [root@cloud-qe-9 ~]# pulp-admin node activate --consumer-id node1 --strategy mirror Consumer activated as child node. [root@cloud-qe-9 ~]# pulp-admin node list +----------------------------------------------------------------------+ Child Nodes +----------------------------------------------------------------------+ An unexpected error has occurred. More information can be found in the client log file ~/.pulp/admin.log. Expected results: Additional info: 2013-09-04 08:29:47,755 - ERROR - Client-side exception occurred Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py", line 478, in run exit_code = Cli.run(self, args) File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 974, in run exit_code = command_or_section.execute(self.prompt, remaining_args) File "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py", line 224, in execute return self.method(*arg_list, **clean_kwargs) File "/usr/lib/python2.6/site-packages/pulp/client/commands/consumer/query.py", line 66, in run self.format_bindings(consumer) File "/usr/lib/python2.6/site-packages/pulp_node/extensions/admin/commands.py", line 183, in format_bindings strategy = b['binding_config'].get('strategy', constants.DEFAULT_STRATEGY) AttributeError: 'NoneType' object has no attribute 'get'