Bug 1097257
| Summary: | Unable to update release-version for activation-keys | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Kedar Bidarkar <kbidarka> | ||||||
| Component: | WebUI | Assignee: | Tom McKay <tomckay> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | sthirugn <sthirugn> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.0.3 | CC: | cwelton, jmontleo, mmccune, sthirugn, tomckay | ||||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||||
| Target Release: | Unused | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-07-02 14:09:03 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: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
This is fixed upstream from previous commit tried testing with sat6-snap7-compose3/20140529.0 build.
Fails with the same below error on the UI.
An error occurred saving the Activation Key: Katello::Resources::Candlepin::ActivationKey: 500 Internal Server Error {"displayMessage":"Runtime Error org.hibernate.PropertyValueException: not-null property references a null or transient value: org.candlepin.model.activationkeys.ActivationKey.name at org.hibernate.engine.internal.Nullability.checkNullability:103","requestUuid":"6e5f0730-572f-4e43-81f7-b9f39a22b2e2"} (PUT /candlepin/activation_keys/8ac1492a464d67f901465c4e6b3100c2)
attaching foreman-debug shortly.
fixed w/ candlepin-0.9.19 this bug requires syncing content for the "release versions" populate, currently my setup is syncing content. Will validate this soon. Taking the bug from Kedar Bidarkar as I just saw this working in my snap 10. Verified. I was able to save both 5Server and 6Server in Release Version (see the attached screenshots) Version Tested: * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.19-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.19-1.el6_5.noarch * candlepin-tomcat6-0.9.19-1.el6_5.noarch * elasticsearch-0.90.10-4.el6sat.noarch * foreman-1.6.0.18-1.el6sat.noarch * foreman-compute-1.6.0.18-1.el6sat.noarch * foreman-gce-1.6.0.18-1.el6sat.noarch * foreman-libvirt-1.6.0.18-1.el6sat.noarch * foreman-ovirt-1.6.0.18-1.el6sat.noarch * foreman-postgresql-1.6.0.18-1.el6sat.noarch * foreman-proxy-1.6.0.8-1.el6sat.noarch * foreman-selinux-1.6.0-4.el6sat.noarch * foreman-vmware-1.6.0.18-1.el6sat.noarch * katello-1.5.0-26.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.5-1.el6sat.noarch * katello-installer-0.0.49-1.el6sat.noarch * openldap-2.4.23-32.el6_4.1.x86_64 * openldap-devel-2.4.23-32.el6_4.1.x86_64 * pulp-katello-0.3-3.el6sat.noarch * pulp-nodes-common-2.4.0-0.21.beta.el6sat.noarch * pulp-nodes-parent-2.4.0-0.21.beta.el6sat.noarch * pulp-puppet-plugins-2.4.0-0.21.beta.el6sat.noarch * pulp-puppet-tools-2.4.0-0.21.beta.el6sat.noarch * pulp-rpm-plugins-2.4.0-0.21.beta.el6sat.noarch * pulp-selinux-2.4.0-0.21.beta.el6sat.noarch * pulp-server-2.4.0-0.21.beta.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch Created attachment 910871 [details]
Release Version saved with 6Server
Created attachment 910872 [details]
Release Version saved with 5Server
This was delivered in 6.0.3, the Beta version of Satellite 6.0 This was delivered with 6.0.3, which is the Satellite 6 Beta. |
Description of problem: Unable to update release-version for activation-keys. we get the below message in /var/log/foreman/production.log Processing by Katello::Api::V2::ActivationKeysController#update as JSON Parameters: {"id"=>"10", "name"=>"release_version_ak", "label"=>"release_version_ak", "description"=>nil, "organization"=>{"name"=>"ACME_Corporation", "label"=>"ACME_Corporation"}, "created_at"=>"2014-05-13T12:38:39Z", "updated_at"=>"2014-05-13T12:38:39Z", "content_view"=>{"id"=>3, "name"=>"cv-rhel65-manifest", "label"=>"cv-rhel65-manifest", "description"=>nil, "organization_id"=>1, "default"=>false, "created_at"=>"2014-05-11T18:50:28Z", "updated_at"=>"2014-05-11T18:50:28Z", "composite"=>nil, "next_version"=>2, "organization"=>"ACME_Corporation", "environments"=>["Dev", "Library"], "versions"=>[1], "versions_details"=>[{"version"=>1, "published"=>"2014-05-11 18:54:41 UTC", "environments"=>["Library", "Dev"]}]}, "content_view_id"=>3, "environment_id"=>2, "usage_count"=>0, "user_id"=>1, "usage_limit"=>-1, "release_version"=>"6.5", "service_level"=>nil, "permissions"=>{"editable"=>true}, "environment"=>{"id"=>2, "name"=>"Dev", "select"=>true, "selected"=>true}, "host_collections"=>[], "api_version"=>"v2", "activation_key"=>{"id"=>"10", "name"=>"release_version_ak", "description"=>nil, "environment_id"=>2, "created_at"=>"2014-05-13T12:38:39Z", "updated_at"=>"2014-05-13T12:38:39Z", "user_id"=>1, "usage_limit"=>-1, "content_view_id"=>3, "label"=>"release_version_ak", "release_version"=>"6.5", "service_level"=>nil}} Failed to update candlepin activation_key release_version_ak: Katello::Resources::Candlepin::ActivationKey: 500 Internal Server Error {"displayMessage":"Runtime Error org.hibernate.PropertyValueException: not-null property references a null or transient value: org.candlepin.model.activationkeys.ActivationKey.name at org.hibernate.engine.internal.Nullability.checkNullability:103","requestUuid":"81de5f0c-82ea-4d97-9438-ba017b0fc62f"} (PUT /candlepin/activation_keys/8ac1492a45e109dd0145f59784b00235), /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result' /opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.26/lib/restclient_ext/request.rb:50:in `block in transmit' /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:746:in `start' /opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.26/lib/restclient_ext/request.rb:44:in `transmit' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute' Version-Release number of selected component (if applicable): beta-snap4/2014-05-08.1 How reproducible: Steps to Reproduce: 1. sync rhel65 and rhel6Server (or any 2 versions from manifest) 2. create cv, publish, promote 3. Try updating the release-version for the activation-key appropriately, that is if the CV has 6.5 version content, try setting the release-version to 6.5. Actual results: we get the below error message. An error occurred saving the Activation Key: Katello::Resources::Candlepin::ActivationKey: 500 Internal Server Error {"displayMessage":"Runtime Error org.hibernate.PropertyValueException: not-null property references a null or transient value: org.candlepin.model.activationkeys.ActivationKey.name at org.hibernate.engine.internal.Nullability.checkNullability:103","requestUuid":"91e148af-b382-4dbe-ba2d-b2b73d7c8651"} (PUT /candlepin/activation_keys/8ac1492a45e109dd0145f59784b00235) Expected results: setting release-version needs to be successful. Additional info: Attaching foreman-debug shortly.