Bug 1186952

Summary: systemctl cat command ignores --host option
Product: [Fedora] Fedora Reporter: Vladislav Grigoryev <vg.aetera>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: johannbg, jsynacek, lnykryn, msekleta, s, systemd-maint, vg.aetera, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-216-20.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-15 03:05:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vladislav Grigoryev 2015-01-28 23:21:57 UTC
Description of problem:
systemctl status accepts --host option:
> $ systemctl --host=root.kola.fad.ru status samba.service
> * samba.service - Samba Active Directory Domain Controller
>    Loaded: loaded (/etc/systemd/system/samba.service; enabled)
>    Active: active (running) since Чт 2015-01-29 01:55:03 MSK; 22min ago
>   Process: 4703 ExecStart=/usr/local/samba/sbin/samba (code=exited, status=0/SUCCESS)
>  Main PID: 4704
>    CGroup: /system.slice/samba.service

systemctl cat command ignores --host option:
> $ systemctl --host=root.kola.fad.ru cat samba.service
> Failed to cat /etc/systemd/system/samba.service: No such file or directory
> # /etc/systemd/system/samba.service

Version-Release number of selected component (if applicable):
systemd-216-17.fc21.x86_64

How reproducible:
Always.

Comment 1 Lennart Poettering 2015-02-04 19:33:52 UTC
Fixed in systemd git in 3e495a6651609d0a45b62aab5c3ed5a3b40e11ab. (well, more specifically, it will not work, but will get a clean error back).

Comment 2 Fedora Update System 2015-02-05 20:53:32 UTC
systemd-216-20.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/systemd-216-20.fc21

Comment 3 Fedora Update System 2015-02-07 03:57:38 UTC
Package systemd-216-20.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-216-20.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1793/systemd-216-20.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-02-15 03:05:43 UTC
systemd-216-20.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.