PDA

View Full Version : SM3: No system_ commandos in spacewalk



jan_foerster
05-Jul-2017, 11:29
Hey there,

I'm using SuSE Manager 3 and try to delete Systems via spacecmd. I created a .spacecmd/config file and this works fine with softwarechannel_clone, which I already realized with spacecmd.
When I try to delete a Client with system_delete or even try to call system_list, there is no output:

# spacecmd system_list
INFO: Connected to https://localhost/rpc/api as SMadmin
[ end of output ]

When I rename the .spacecmd/config and try the same with Username and PW, it works fine (same User/PW as in config file):

# spacecmd -u [user] -p [Password] system_list
INFO: Spacewalk Username: SMadmin
INFO: Connected to https://[server]/rpc/api as SMadmin
[system 1]
[system 2]
...

User has all rights, except Organisation Administrator. But I do not think this is a problem with rights, because it works fine without the config file.

Can you give me any hints on this?

Thanks in advance and regards from Hamburg

Jan

jan_foerster
05-Jul-2017, 11:32
Solution: When I replace "localhost" in config file with the FQDN of the system, it works.

ab
05-Jul-2017, 12:51
Are the SUSE Manager services listening on whatever is resolved-to by
'localhost'?



host localhost
sudo /usr/sbin/ss -planeto | grep 'LISTEN '



--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.

jan_foerster
14-Jul-2017, 13:21
Are the SUSE Manager services listening on whatever is resolved-to by
'localhost'?

Hey ab,

thanks for answering. Yes Services are listening. But the problem has been solved for me by grouping all Systems and giving the ScriptUser assess to this Group.

ab
14-Jul-2017, 16:29
Thank-you for posting back your results as they will likely help others.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.