Bug 642652

Summary: Cannot resolve port for mtn service with getaddrinfo
Product: [Fedora] Fedora Reporter: Masatake YAMATO <yamato>
Component: monotoneAssignee: Thomas Moschny <thomas.moschny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: thomas.moschny
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: monotone-0.48.1-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-06 23:41:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Propsed patch none

Description Masatake YAMATO 2010-10-13 13:56:19 UTC
Created attachment 453208 [details]
Propsed patch

Description of problem:

It is failed to get the latest monotone source code with mtn command shipped as part of Fedora 13 because the port number for mtn network service is not resolved with getaddrinfo.


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

0.48.1

How reproducible:

Trying to clone the montone repository for monotone.

Steps to Reproduce:
1.mtn clone mtn://code.monotone.ca/monotone net.venge.monotone
You will get following error message:

  mtn: setting default server to mtn://code.monotone.ca/monotone
  mtn: setting default branch include pattern to 'net.venge.monotone'
  mtn: setting default branch exclude pattern to ''
  mtn: doing anonymous pull; use -kKEYNAME if you need authentication
  mtn: connecting to mtn://code.monotone.ca/monotone
  mtn: network error: service name resolution failed for: mtn

Actual results:

Failed to do clone because mtn is not resolved.

Expected results:

Successfully  cloned.

Additional info:

I already this issue discussed at the mailing list run at upstream.
 http://lists.nongnu.org/archive/html/monotone-users/2010-10/msg00002.html

I propose a modification to use the default port hardcoded in monotone itself if getaddrinfo is failed. See the patch.

Comment 1 Fedora Update System 2010-10-28 00:14:48 UTC
monotone-0.48.1-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/monotone-0.48.1-1.fc13

Comment 2 Fedora Update System 2010-10-28 00:15:25 UTC
monotone-0.48.1-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/monotone-0.48.1-1.fc14

Comment 3 Fedora Update System 2010-10-28 22:16:53 UTC
monotone-0.48.1-1.fc14 has been pushed to the Fedora 14 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 'yum --enablerepo=updates-testing update monotone'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/monotone-0.48.1-1.fc14

Comment 4 Masatake YAMATO 2010-11-02 11:22:17 UTC
The newer version works fine.

Comment 5 Fedora Update System 2010-11-06 23:41:22 UTC
monotone-0.48.1-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2010-11-06 23:44:30 UTC
monotone-0.48.1-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.