Project

Profile

Help

Issue #1011

closed

Cannot install content on the consumer group

Added by ipanova@redhat.com almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.7.0 Beta
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

An exception is raised during install/update/uninstall package on the consumer group.
Meanwhile install/update/uninstall package on the consumer works as expected.

# pulp-admin -u admin -p admin rpm consumer group package install --name zsh --consumer-group-id xxx
There was an internal server error while trying to access the Pulp application.
One possible cause is that the database needs to be migrated to the latest
version. If this is the case, run pulp-manage-db and restart the services. More
information may be found in Apache's log.

[root@ec2-54-216-157-158 ~]# pulp-admin -u admin -p admin -vv rpm consumer group package install --name zsh --consumer-group-id xxx
2015-05-28 14:16:01,151 - DEBUG - sending POST request to /pulp/api/v2/consumer_groups/xxx/actions/content/install/
2015-05-28 14:16:01,713 - INFO - POST request to /pulp/api/v2/consumer_groups/xxx/actions/content/install/ with parameters {"units": [{"unit_key": {"name": "zsh"}, "type_id": "rpm"}], "options": {"apply": true, "reboot": false, "importkeys": false}}
2015-05-28 14:16:01,714 - INFO - Response status : 500 

2015-05-28 14:16:01,714 - INFO - Response body :
 "<h1>Server Error (500)</h1>"

2015-05-28 14:16:01,714 - ERROR - Client-side exception occurred
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/client/extensions/core.py", line 474, in run
    exit_code = Cli.run(self, args)
  File "/usr/lib/python2.7/site-packages/okaara/cli.py", line 974, in run
    exit_code = command_or_section.execute(self.prompt, remaining_args)
  File "/usr/lib/python2.7/site-packages/pulp/client/extensions/extensions.py", line 210, in execute
    return self.method(*arg_list, **clean_kwargs)
  File "/usr/lib/python2.7/site-packages/pulp_rpm/extensions/admin/rpm_admin_consumer/consumer_group_package.py", line 84, in run
    self.install(consumer_group_id, units, options, kwargs)
  File "/usr/lib/python2.7/site-packages/pulp_rpm/extensions/admin/rpm_admin_consumer/consumer_group_package.py", line 91, in install
    consumer_group_id, units=units, options=options)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/consumer_groups.py", line 221, in install
    return self.server.POST(path, data)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 97, in POST
    return self._request('POST', path, body=body, ensure_encoding=ensure_encoding)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 151, in _request
    self._handle_exceptions(response_code, response_body)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 187, in _handle_exceptions
    raise exceptions.ApacheServerException(response_body)
ApacheServerException
There was an internal server error while trying to access the Pulp application.
One possible cause is that the database needs to be migrated to the latest
version. If this is the case, run pulp-manage-db and restart the services. More
information may be found in Apache's log.

# pulp-admin -u admin -p admin -vv rpm consumer package install run --name zsh --consumer-id c1
2015-05-28 14:16:38,855 - DEBUG - sending POST request to /pulp/api/v2/consumers/c1/actions/content/install/
2015-05-28 14:16:39,097 - INFO - POST request to /pulp/api/v2/consumers/c1/actions/content/install/ with parameters {"units": [{"unit_key": {"name": "zsh"}, "type_id": "rpm"}], "options": {"apply": true, "reboot": false, "importkeys": false}}
2015-05-28 14:16:39,097 - INFO - Response status : 202 

2015-05-28 14:16:39,098 - INFO - Response body :
 {
  "spawned_tasks": [
    {
      "_href": "/pulp/api/v2/tasks/68cc85b6-3381-45f7-a1c1-ec97fc9e506f/", 
      "task_id": "68cc85b6-3381-45f7-a1c1-ec97fc9e506f"
    }
  ], 
  "result": null, 
  "error": null
}

Install task created with id [ 68cc85b6-3381-45f7-a1c1-ec97fc9e506f ]

This command may be exited via ctrl+c without affecting the request.
Actions #1

Updated by ipanova@redhat.com almost 9 years ago

  • Project changed from RPM Support to Pulp
Actions #2

Updated by mhrivnak almost 9 years ago

  • Severity changed from 2. Medium to 3. High
  • Platform Release set to 2.7.0
  • Triaged changed from No to Yes

ipanova is very certain this was working in 2.6.x

Actions #3

Updated by ipanova@redhat.com almost 9 years ago

tested on 2.6.1

$ pulp-admin -u admin -p admin rpm consumer group members list --group-id g1

+----------------------------------------------------------------------+
                         Consumer Group Members
+----------------------------------------------------------------------+

Id:           c1
Display Name: c1
Description:  None
Notes:        

[ipanova@ina pulp_rpm]$ pulp-admin -u admin -p admin rpm consumer group package install --name zsh --consumer-group-id g1

This command may be exited via ctrl+c without affecting the request.

[/]
Running...

Install on consumer [c1] succeeded

+----------------------------------------------------------------------+
                               Installed
+----------------------------------------------------------------------+

Name:    zsh
Version: 5.0.7
Arch:    x86_64
Repoid:  updates-testing
 
Actions #4

Updated by bcourt almost 9 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bcourt

Added by bcourt almost 9 years ago

Revision 499dc635 | View on GitHub

Add support for parsing TaskStatus objects to the TaskResult object

fixes #1011

Added by bcourt almost 9 years ago

Revision 499dc635 | View on GitHub

Add support for parsing TaskStatus objects to the TaskResult object

fixes #1011

Actions #5

Updated by bcourt almost 9 years ago

  • Status changed from ASSIGNED to POST
Actions #6

Updated by bcourt almost 9 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #7

Updated by dkliban@redhat.com almost 9 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by pthomas@redhat.com almost 9 years ago

verified

[root@mgmt4 ~]# pulp-admin rpm consumer group bind --consumer-group-id grp1 --repo-id zoo
Consumer Group [grp1] successfully bound to repository [zoo]

[root@mgmt4 ~]# pulp-admin -u admin -p admin rpm consumer group package install --name zsh --consumer-group-id g1
Consumer Group [g1] not found
[root@mgmt4 ~]# pulp-admin -u admin -p admin rpm consumer group package install --name zsh --consumer-group-id grp1
This command may be exited via ctrl+c without affecting the request.

[-]
Running...
[-]
Running...

Install on consumer [patch] succeeded

+----------------------------------------------------------------------+
                               Installed
+----------------------------------------------------------------------+

Name:    zsh-CoreOS-zsh-Regression-bz813219-zsh-gets-in-infinite-loop-when-check
         ing-syntax
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-CoreOS-zsh-Regression-zsh-failed-to-close-file-descriptor
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-CoreOS-zsh-Regression-bz488943-Defect-in-ksh-emulation-of-zsh
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-html
Version: 4.3.10
Arch:    x86_64
Repoid:  beaker-Server-optional

Name:    zsh
Version: 4.3.10
Arch:    x86_64
Repoid:  beaker-Server

Name:    zsh-debuginfo
Version: 4.3.10
Arch:    x86_64
Repoid:  beaker-Server-debuginfo

Name:    zsh-CoreOS-zsh-Regression-emulation-mode-dumps-core-in-syntax-check-of-
         a-script
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-CoreOS-zsh-Regression-wait-builtin-does-not-work-for-already-exited
         -processes
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-lovers
Version: 0.9.0
Arch:    noarch
Repoid:  epel

Name:    zsh-CoreOS-zsh-Regression-bz612685-RFE-RHEL6-zsh-x-script-does-not-sear
         ch-the-PATH
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-CoreOS-zsh-Regression-bz700722-compdef-prevents-more-than-three-com
         mands
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-CoreOS-zsh-Regression-bz612685-zsh-x-script-does-not-search-the-PAT
         H
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-CoreOS-zsh-Regression-limit-of-evaluated-environment-variable
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-CoreOS-zsh-Regression-bz820530-new-substitution-in-zsh
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-CoreOS-zsh-Regression-multiple-wildcards
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks

Name:    zsh-CoreOS-zsh-Regression-bz859859-zsh-syntax-check-fails-on-simple-scr
         ipt
Version: 1.0
Arch:    noarch
Repoid:  beaker-tasks
Actions #10

Updated by pthomas@redhat.com almost 9 years ago

  • Status changed from 5 to 6
Actions #11

Updated by amacdona@redhat.com over 8 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #13

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF