Ask Your Question
0

Procedure to apply a patch/fix

asked 2014-05-29 07:07:02 -0700

csadi gravatar image

Hello There,

Can anyone please give me a procedure to apply a patch/fix for my controller?

I intend to use the fix proposed in bug 1079

Thanks a lot in advance

Regards

Adi

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-05-29 07:26:06 -0700

Moderators

From your controller git repo fire this command (make sure you use your GERRIT USER NAME in below command)

git fetch ssh://<YOUR GERRIT USER NAME>@git.opendaylight.org:29418/controller refs/changes/28/7428/1 && git checkout FETCH_HEAD

then

git checkout -b <branch name>

This branch will contain your patch. You can verify it using

git log -1
edit flag offensive delete publish link more

Comments

it is not working as may be im not entitled to. When I issued git fetch, i got the error "fatal: Not a git repository (or any of the parent directories): .git" Please let me know what you think

csadi ( 2014-05-29 08:25:15 -0700 )edit

From where are you firing this command? You have to fire it from the controller directory which you cloned from controller repo.

Anil Vishnoi ( 2014-05-29 08:28:23 -0700 )edit

yes - same error when done from controller directory. I installed my controller using zip package - if that makes a difference.

csadi ( 2014-05-29 08:34:55 -0700 )edit

Hello Anil I did clone the repo and then tried and got the below error Thanks Adi [root@ma-sdn controller]# git fetch ssh://csadi@git.opendaylight.org:29418/controller refs/changes/28/7428/1 && git chec kout FETCH_HEAD The authenticity of host '[git.opendaylight.org]:29418 ([140.211.169.26]:29418)' can't be established. RSA key fingerprint is 5f:92:db:a0:0f:31:ff:33:6b:d3:ae:a1:b0:d6:b8:eb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[git.opendaylight.org]:29418,[140.211.169.26]:29418' (RSA) to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly [root@ma-sdn controller]# git fetch ssh://csadi@git.opendaylight.org:29418/controller refs/changes/28/7428/1 && git chec kout FETCH_HEAD Permission denied (publickey). fatal: The remote end hung up unexpectedly [root@ma-sdn controller]#

csadi ( 2014-05-29 09:27:30 -0700 )edit

From this error it seems like either you don't have gerrit access or your public ssh key is not set in your gerrit account. Follow instruction from the following url to fix the gerrit issue "https://wiki.opendaylight.org/view/OpenDaylight_Controller:Gerrit_Setup" I think you can also fetch it as anonymous -- try following command (no need to use your user name) "git fetch https://git.opendaylight.org/gerrit/controller refs/changes/28/7428/1 && git checkout FETCH_HEAD" then "git checkout -b <branch_name>"

Anil Vishnoi ( 2014-05-29 11:03:43 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-05-29 07:07:02 -0700

Seen: 282 times

Last updated: May 29 '14