| Summary: | Redeploy leads to "Product ID \"69\" has already been registered with this activation key" | ||
|---|---|---|---|
| Product: | Red Hat Quickstart Cloud Installer | Reporter: | Thom Carlin <tcarlin> |
| Component: | Installation - Satellite | Assignee: | Derek Whatley <dwhatley> |
| Status: | CLOSED ERRATA | QA Contact: | Antonin Pagac <apagac> |
| Severity: | medium | Docs Contact: | Julie <juwu> |
| Priority: | unspecified | ||
| Version: | 1.0 | CC: | apagac, bthurber, dwhatley, jmatthew, joden, juwu, qci-bugzillas |
| Target Milestone: | --- | Keywords: | Reopened, Triaged |
| Target Release: | 1.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-02-28 01:39:12 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: | |
|
Description
Thom Carlin
2016-09-02 22:13:51 UTC
No reproducer yet in production so closing for now. Please reopen if this reoccurs. I've recreated this. Basically, I brought my interface down while it was on the satellite progress bar on the installation progress screen. When that eventually this showed up above the satellite progress bar in red text:
Error View Content Sync Status Failed to configure host groups: Katello::Resources::Candlepin::ActivationKey: 400 Bad Request {"displayMessage":"Product ID \"69\" has already been registered with this activation key","requestUuid":"eba4c2a4-208a-40dc-a941-dcc890fad8b4"} (POST /candlepin/activation_keys/40282f8a582bea1101582fd173b401dc/product/69)
I went to details and it actually showed that all the sync tasks were done, however the deploy task was stopped. I tried to resume the deploy but it kept stopping again (even though I had brought the interface back up).
The thing I was trying to test was resuming a sync that had stopped, but since all the locals were up to date, I missed that and hit this.
Also ran into the issue Thom described. Is there any workaround for this? Reproduced in QCI 1.1 dev env on 11/22 by bringing down network interfaces for a few minutes during content sync.
Deployment eventually failed during RHV deploy step due to missing dependencies from content sync step. Had to click "re-deploy" to get error message to show up.
---
ACTIONS
---
Failed action: "Actions::Fusor::ConfigureHostGroupsForProducts"
Failed sub-action: "Actions::Fusor::ActivationKey::AddSubscriptions"
---
INPUT
---
activation_key_id: 1
hostgroup:
name: RHV-Engine
os: RedHat
major: '7'
minor: '3'
parent: root_deployment
puppet_classes:
activation_key:
name: RHV-Engine
content: rhevm
subscription_descriptions:
- Red Hat Cloud Infrastructure
subscription_descriptions:
- Red Hat Cloud Infrastructure
user_id: 3
repository_cp_labels:
- rhel-7-server-rpms
- rhel-7-server-kickstart
- rhel-7-server-satellite-tools-6.2-rpms
- rhel-7-server-supplementary-rpms
- rhel-7-server-rhv-4.0-rpms
- jb-eap-7-for-rhel-7-server-rpms
- rhel-7-server-optional-rpms
locale: en
---
OUTPUT (ERROR)
---
RestClient::BadRequest
Katello::Resources::Candlepin::ActivationKey: 400 Bad Request {"displayMessage":"Product ID \"69\" has already been registered with this activation key","requestUuid":"10956652-fefa-4aae-adab-1275dfff0434"} (POST /candlepin/activation_keys/ff808081588797a6015888c4fc0d016f/product/69)
---
STACK TRACE
---
- "/home/dwhatley/dev/QCI/katello/app/lib/katello/resources/candlepin.rb:765:in `add_product'"
- "/home/dwhatley/dev/QCI/katello/app/models/katello/glue/candlepin/activation_key.rb:77:in
`add_custom_product'"
- "/home/dwhatley/dev/QCI/fusor/server/app/lib/actions/fusor/activation_key/add_subscriptions.rb:53:in
`block in associate_subscriptions'"
- "/home/dwhatley/dev/QCI/fusor/server/app/lib/actions/fusor/activation_key/add_subscriptions.rb:51:in
`each'"
- "/home/dwhatley/dev/QCI/fusor/server/app/lib/actions/fusor/activation_key/add_subscriptions.rb:51:in
`associate_subscriptions'"
- "/home/dwhatley/dev/QCI/fusor/server/
Added error handling for case where Activation key already has Product ID added. PR created at: https://github.com/fusor/fusor/pull/1295 Built in fusor-server 1.1.16-1 Unable to reproduce using QCI-1.1-RHEL-7-20170104.t.0, marking as verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:0335 |