Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1694719 - command to test the connection to the KVM server is failing
Summary: command to test the connection to the KVM server is failing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Documentation
Version: 6.5.0
Hardware: x86_64
OS: Linux
low
low vote
Target Milestone: Unspecified
Assignee: Melanie Corr
QA Contact: Sergei Petrosian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-01 13:17 UTC by Kenny Tordeurs
Modified: 2019-04-02 21:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-02 21:35:45 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Kenny Tordeurs 2019-04-01 13:17:20 UTC
Document URL: 
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.5-beta/html/provisioning_guide/provisioning_virtual_machines_in_kvm

Section Number and Name: 
Use the following command to test the connection to the KVM server:
~~~
# su foreman -s /bin/bash -c virsh -c qemu+ssh://root@kvm.example.com/system list
~~~

Describe the issue: 
When passing the command as stated above it fails:
~~~
# su foreman -s /bin/bash -c virsh -c qemu+ssh://root@kvm.gsslab.brq2.redhat.com/system list

list: qemu+ssh://root@kvm.gsslab.brq2.redhat.com/system: Permission denied
~~~

Suggestions for improvement: 
Adding quotes for the command:

~~~
# su foreman -s /bin/bash -c 'virsh -c qemu+ssh://root@skvm.gsslab.brq2.redhat.com/system list'

 Id    Name                           State
----------------------------------------------------
 1     jjansky-jjansat6               running
 2     jjansky-jjansat6-client6       running
 3     jjansky-kb                     running
 4     jjansky-jjansat5-client        running
 5     aeladawy-win10                 running
 6     aeladawy-rhel7.6-sat64         running
 7     aeladawy-rhel76-capsule6       running
 8     jjansky-jjansat6-client        running
 10    jjansky-jjansat5               running
 11    jjansky-isc                    running
 12    jjansky-jjansat64              running
 13    tdaianov-sat6.sysmgmt.lan      running
 15    aeladawy-test.aeladawy.lan     running
 17    momran-rhel7.6-satserv         running
...
~~~

Additional information:

Comment 1 Melanie Corr 2019-04-02 07:48:35 UTC
Thanks for this, Kenny!

Comment 5 Melanie Corr 2019-04-02 21:35:45 UTC
This change is now live on Customer Portal 

Document URL: 
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.5-beta/html/provisioning_guide/provisioning_virtual_machines_in_kvm


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