[node-patches] Change in ovirt-node[master]: sat: Generate facts during registration

fabiand at redhat.com fabiand at redhat.com
Mon Feb 22 14:22:54 UTC 2016


Fabian Deutsch has uploaded a new change for review.

Change subject: sat: Generate facts during registration
......................................................................

sat: Generate facts during registration

The rhsmcertd service is only started if the facts fle exists.
Previously the file did not exist which prevented the service from
coming up.
Now we enforce the generation of the facts file to enable the
service startup.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1269752
Change-Id: I39c0e59cd9425d52e745c10f0df472f9a8882bdd
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/setup/rhn/rhn_model.py
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/41/53841/1

diff --git a/src/ovirt/node/setup/rhn/rhn_model.py b/src/ovirt/node/setup/rhn/rhn_model.py
index 840b19b..16ffd37 100755
--- a/src/ovirt/node/setup/rhn/rhn_model.py
+++ b/src/ovirt/node/setup/rhn/rhn_model.py
@@ -369,6 +369,10 @@
                 ab = ArgBuilder(initial_args, mapping)
                 try:
                     process.check_call(ab.get_commandlist())
+                    # Update the facts, which creates a facts file to
+                    # bring up the service
+                    process.call(["subscription-manager", "facts",
+                                  "--update"])
                     Config().persist("/etc/rhsm/rhsm.conf")
                     system.service("rhsmcertd", "start")
                 except process.CalledProcessError:


-- 
To view, visit https://gerrit.ovirt.org/53841
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I39c0e59cd9425d52e745c10f0df472f9a8882bdd
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list