Description of problem: The new action in rhui-manager from 20161213, 'o create an atomic client configuration package', provides no summary when it's done, unlike 'c create a client configuration RPM from an entitlement certificate', which says "Successfully created client configuration RPM. RPMs can be found at ...". On RHEL 7, the rhui-manager prompt is displayed again, and the configuration package (tarball) gets created. On RHEL 6, though, the tarball is empty and "an unexpected error occurs" with a traceback in the RHUI log. Version-Release number of selected component (if applicable): RHUI 3 ISO 20161213 How reproducible: Always Steps to Reproduce: 1. Run rhui-manager. 2. You must have a repo and a cert for it. Add a repo and create a cert for it otherwise. 3. Select 'e create entitlement certificates and client configuration RPMs' 4. Select 'o create an atomic client configuration package' 5. Fill out the form, so to speak. Actual results: ==== rhui (client) => o Full path to local directory in which the client configuration files generated by this tool should be stored (if this directory does not exist, it will be created): /tmp Name of the tar file (excluding extension): testcerttar Full path to the entitlement certificate authorizing the client to access specific channels: /tmp/testcert.crt Full path to the private key for the above entitlement certificate: /tmp/testcert.key Port to serve Docker content on (default 5000): rhui (client) => ==== On RHEL 6, you also get "An unexpected error has occurred during the last operation. More information can be found in /root/.rhui/rhui.log." And the log reads: ==== Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 88, in safe_listen self.listen(clear=first_run) File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 127, in listen Shell.listen(self) File "/usr/lib/python2.6/site-packages/rhui/common/shell.py", line 186, in listen item.func(*args, **item.kwargs) File "/usr/lib/python2.6/site-packages/rhui/tools/screens/client.py", line 256, in create_atomic_package client_atomic.create_tarball(self.config, answers) File "/usr/lib/python2.6/site-packages/rhui/atomic/client.py", line 38, in create_tarball with tarfile.open(name=tarball_name, mode='w:gz') as tarball: AttributeError: 'TarFile' object has no attribute '__exit__' ==== Result, on RHEL 7: # tar tf /tmp/testcerttar.tar.gz install.sh ca.crt key.pem content.crt But on RHEL 6, there are no files in the archive. Expected results: Summary and successful creation of the tarball on RHEL 7 as well as 6.
Fixed in 20161214 on RHEL 7. Thanks! rhui (client) => o Full path to local directory in which the client configuration files generated by this tool should be stored (if this directory does not exist, it will be created): /tmp Name of the tar file (excluding extension): testtar Full path to the entitlement certificate authorizing the client to access specific channels: /tmp/gluster-samba-31.crt Full path to the private key for the above entitlement certificate: /tmp/gluster-samba-31.key Port to serve Docker content on (default 5000): Successfully created client configuration package. Package tar file can be found at /tmp Still failing on RHEL 6. Is that something that needs a more complicated fix and should be documented a known issue in Beta 2?
Document as known issue for Beta 2 Rhel6. This option should only work with Ostree/Atomic RHUA deployments, and therefore should only work on Rhel 7. The long-term solution for GA would be to detect then exit, or hide the option all together.
Can we create a new BZ just for the RHEL6 failure?
Ack, sounds good to me. I'll file a separate bug for RHEL 6.
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/RHBA-2017:0367