Hi Ravi,

I'm a little curious as to what your setup is here. There are only a few cases 
where I'd expect folks to be using round-robin DNS for Perforce servers. Are 
these p4p (Perforce proxy) instances?

-- Paul
________________________________________
From: reviewboard@googlegroups.com [reviewbo...@googlegroups.com] On Behalf Of 
RaviKondamuru [ravikondam...@gmail.com]
Sent: Friday, November 13, 2009 3:44 PM
To: reviewboard
Subject: problem with alias lists to the perforce server name

Hi,

When running post-review to upload a perforce changelist to
reviewboard, I often encounter the error: "Error creating review
request: The repository path specified is not in the list of known
repositories (code 206)". On looking to post-review, I found the issue
to be in the code that determines repository_path:
           info = socket.gethostbyaddr(hostname)
           repository_path = "%s:%s" % (info[0], port)

while the hostname is 'perforce04',
info has the following value:
...('perforce04', ['perforce', 'perforce01']. ['10.217.1.4']).
Subsequent calls to gethostbyaddr roundrobin the list
...('perforce01', ['perforce04', 'perforce']. ['10.217.1.4'])
...('perforce', ['perforce01', 'perforce04']. ['10.217.1.4'])
...('perforce04', ['perforce', 'perforce01']. ['10.217.1.4'])

So each time the repository changes. And since I have set the
repository on reviewboard to be perforce04, every time the
repository_path is perforce or perforce01, it gives the above error.

what is the significance of repostitory in reviewboard?
Can I add all 3 of perforce server aliases in reviewboard as
respositories? if yes, what happens if subsequent upload of diffs for
the same changelist result in different respository_path. Will that
cause an issue?

thanks,
Ravi.

To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~----------~----~----~----~------~----~------~--~---


--~--~---------~--~----~------------~-------~--~----~
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to