Bug 1266775

Summary: machinectl fails to fetch f23 beta raw image because of file name size
Product: [Fedora] Fedora Reporter: François Kooman <fkooman>
Component: systemdAssignee: Jan Synacek <jsynacek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: johannbg, jsynacek, lnykryn, msekleta, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-222-10.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-17 07:24:23 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 François Kooman 2015-09-27 17:24:00 UTC
Description of problem:

machinectl complains about file name too long when retrieving image using machinectl.

Version-Release number of selected component (if applicable):

[root@f23beta ~]# rpm -qf `which machinectl`
systemd-222-6.fc23.x86_64
[root@f23beta ~]# 

How reproducible:

always

Steps to Reproduce:

[root@f23beta ~]# machinectl pull-raw --verify=no https://download.fedoraproject.org/pub/fedora/linux/releases/test/23_Beta/Cloud/x86_64/Images/Fedora-Cloud-Base-23_Beta-20150915.x86_64.raw.xz
Enqueued transfer job 1. Press C-c to continue download in background.
Pulling 'https://download.fedoraproject.org/pub/fedora/linux/releases/test/23_Beta/Cloud/x86_64/Images/Fedora-Cloud-Base-23_Beta-20150915.x86_64.raw.xz', saving as 'Fedora-Cloud-Base-23_Beta-20150915.x86_64'.
Downloading 0B for https://download.fedoraproject.org/pub/fedora/linux/releases/test/23_Beta/Cloud/x86_64/Images/Fedora-Cloud-Base-23_Beta-20150915.x86_64.raw.xz.
Downloading 176.1M for https://download.fedoraproject.org/pub/fedora/linux/releases/test/23_Beta/Cloud/x86_64/Images/Fedora-Cloud-Base-23_Beta-20150915.x86_64.raw.xz.
Failed to create /var/lib/machines/.#.raw-https:\x2f\x2fdownload\x2efedoraproject\x2eorg\x2fpub\x2ffedora\x2flinux\x2freleases\x2ftest\x2f23_Beta\x2fCloud\x2fx86_64\x2fImages\x2fFedora-Cloud-Base-23_Beta-20150915\x2ex86_64\x2eraw\x2exz.\x22350033634-b01b944-51fcff9408600\x22.raw5fd3d5fa24b85acb: File name too long
Failed to retrieve image file. (Wrong URL?)
Exiting.
[root@f23beta ~]#

Actual results:

image is not downloaded

Expected results:

image succesfully downloaded.

Comment 1 Jan Synacek 2015-10-08 06:43:24 UTC
Fixed in https://github.com/systemd/systemd/pull/1485.

Comment 2 Fedora Update System 2015-12-14 11:17:56 UTC
systemd-222-9.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-76fc543765

Comment 3 Fedora Update System 2015-12-14 12:29:12 UTC
systemd-222-10.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-76fc543765

Comment 4 Fedora Update System 2015-12-15 10:54:10 UTC
systemd-222-10.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update systemd'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-76fc543765

Comment 5 Fedora Update System 2015-12-17 07:23:24 UTC
systemd-222-10.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.