[openstack-dev] Looking for help getting git-review to work over https

KARR, DAVID dk068x at att.com
Thu Jun 11 21:16:43 UTC 2015


I see.  I would guess a footnote on the instructions about this would be useful. Is https://github.com/openstack-infra/git-review the proper location to get the buildable source?  I don’t see any obvious build instructions there.

From: ZZelle [mailto:zzelle at gmail.com]
Sent: Thursday, June 11, 2015 2:01 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] Looking for help getting git-review to work over https

Hi David,


Following git config options are supported by git-review (https://review.openstack.org/116035)
   git config --global gitreview.scheme https
   git config --global gitreview.port 443
BUT the feature was merged after 1.24 (it's highlighted by your git review -vs)
so the feature is currently only available on the git-review master branch (which
is quite stable, i use it every day).


Cedric/ZZelle at irc


On Thu, Jun 11, 2015 at 10:14 PM, KARR, DAVID <dk068x at att.com<mailto:dk068x at att.com>> wrote:
I followed the instructions for installing and configuring corkscrew, similar to what you provided here.  The result seems to indicate it did something, but the overall result is the same:
2015-06-11 13:07:25.866568 Running: git log --color=never --oneline HEAD^1..HEAD
2015-06-11 13:07:25.869309 Running: git remote
2015-06-11 13:07:25.872742 Running: git config --get gitreview.username
No remote set, testing ssh://dk068x@review.openstack.org:29418/openstack/horizon.git<http://dk068x@review.openstack.org:29418/openstack/horizon.git>
2015-06-11 13:07:25.874869 Running: git push --dry-run ssh://dk068x@review.openstack.org:29418/openstack/horizon.git<http://dk068x@review.openstack.org:29418/openstack/horizon.git> --all
The authenticity of host '[review.openstack.org<http://review.openstack.org>]:29418 (<no hostip for proxy command>)' can't be established.
RSA key fingerprint is 28:c6:42:b7:44:d2:48:64:c1:3f:31:d8:1b:6e:3b:63.
Are you sure you want to continue connecting (yes/no)? yes
ssh://dk068x@review.openstack.org:29418/openstack/horizon.git<http://dk068x@review.openstack.org:29418/openstack/horizon.git> did not work.
Could not connect to gerrit.
Enter your gerrit username:
---------------------------

From: Paul Michali [mailto:pc at michali.net<mailto:pc at michali.net>]
Sent: Thursday, June 11, 2015 11:09 AM

To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] Looking for help getting git-review to work over https

Do you know if you have SSH access to the outside world through the firewall?

Did you setup a proxy? I setup 'corkscrew' under Ubuntu. After installing, created a .ssh/config file with:

Host review.openstack.org<http://review.openstack.org>
    ProxyCommand corkscrew <proxy-host> 80 %h %p

The proxy host is one that allows HTTP/HTTPS to outside world and corkscrew tunnels the SSH through to port 80.

HTHs,

PCM

On Thu, Jun 11, 2015 at 12:44 PM KARR, DAVID <dk068x at att.com<mailto:dk068x at att.com>> wrote:
Thanks for replying.

% git review -vs
2015-06-11 09:30:38.396076 Running: git log --color=never --oneline HEAD^1..HEAD
2015-06-11 09:30:38.399021 Running: git remote
2015-06-11 09:30:38.401033 Running: git config --get gitreview.username
No remote set, testing ssh://dk068x@review.openstack.org:29418/openstack/horizon.git<http://dk068x@review.openstack.org:29418/openstack/horizon.git>
2015-06-11 09:30:38.402988 Running: git push --dry-run ssh://dk068x@review.openstack.org:29418/openstack/horizon.git<http://dk068x@review.openstack.org:29418/openstack/horizon.git> --all
ssh://dk068x@review.openstack.org:29418/openstack/horizon.git<http://dk068x@review.openstack.org:29418/openstack/horizon.git> did not work.
Could not connect to gerrit.
Enter your gerrit username:

This output is interesting, because I followed the instructions to set the scheme and port to https and 443, which can be seen from:
% git config --global -l
user.name<http://user.name>=David Karr
user.email=dk068x at att.com<mailto:dk068x at att.com>
gitreview.scheme=https
gitreview.port=443

Concerning the question ‘Do you have "gerrit" remote already configured?’, I guess I’d have to say I don’t know. I’ve followed instructions for setting up my pub key, but I’m not sure exactly what is entailed in “gerrit remote”.

I can get to https://review.openstack.org/ from my browser and from the command line with curl.

The “ls-remote” command returns without error (or any other output).

From: Yuriy Taraday [mailto:yorik.sar at gmail.com<mailto:yorik.sar at gmail.com>]
Sent: Thursday, June 11, 2015 9:19 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] Looking for help getting git-review to work over https


On Thu, Jun 11, 2015, 18:09 KARR, DAVID <dk068x at att.com<mailto:dk068x at att.com>> wrote:

I could use some help with setting up git-review in a slightly unfriendly firewall situation.

I'm trying to set up git-review on my CentOS7 VM, and our firewall blocks the non-standard ssh port.  I'm following the instructions at http://docs.openstack.org/infra/manual/developers.html#accessing-gerrit-over-https , for configuring git-review to use https on port 443, but this still isn't working (times out with "Could not connect to gerrit").  I've confirmed that I can reach other external sites on port 443.

Can someone give me a hand with this?





Hello.



- Can you please post all output from "git review -vs"?

- Do you have "gerrit" remote already configured?

- Do you have access to https://review.openstack.org/ from your browser?

- Can you access it from command line (via "curl -I https://review.openstack.org/" for example)?

- Does "git ls-remote https://review.openstack.org/openstack/nova > /dev/null" produce and error?
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150611/f6414d88/attachment.html>


More information about the OpenStack-dev mailing list