Bug 1477958 - DBus object Attach does not reflect a changed state of a subscription identity
DBus object Attach does not reflect a changed state of a subscription identity
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager (Show other bugs)
7.4
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: candlepin-bugs
John Sefler
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-03 06:14 EDT by Jan Stavel
Modified: 2017-08-05 01:54 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github /RedHatQE/rhsm-qe/pull/674 None None None 2017-08-03 06:20 EDT

  None (edit)
Description Jan Stavel 2017-08-03 06:14:19 EDT
Hello, this is a note to enhance from cockpit perpective mainly.

Steps to reproduce:

   subscription-manager unregister
   subscription-manager register --username XXXXX --password XXXXX --org XXXXX

   curl -k --user XXXX:PASSWD --GET https://CANDLEPIN_URL/PREFIX/owners/ORG_ID
   # ... take 2 pool ids from the response

   # run dbus method for Attach service
   busctl call com.redhat.RHSM1 /com/redhat/RHSM1/Attach com.redhat.RHSM1.Attach PoolAttach asia{sv} 2 8a882d8d5d405f21015d405fa52d018d 8a882d8d5d405f21015d405fa53f0190 3  0 

Actual results:

  "Unit c1e3760e-82a4-49a3-a922-b62c86afeb1c has been deleted\n"

Expected results:

   a list of actually made entitlements


Additional info:

   This can be solved IMHO a few ways:

   - add a sort of advices how to solve the problem into returned message
   aka "Maybe reload your system identity?" And let user reload the app state itself.

   - add a method aka 'reload state' for dbus rhsm service. And let each code (sub-man-cli, sub-man-gui) inform DBus service that a system state has been changed when needed.

   - make all processes use DBus RHSM service. In such case DBus service reloads its state itself when needed since it knows every event that happens in the system.
Comment 2 Jan Stavel 2017-08-03 06:17:43 EDT
I have forgetten add /pools into curl call.

the right url is:

 owners/%s/pools

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