new AGL service repo #help


Marat
 

Hi,
we plan to add the service which provides  the ability to interact with the clouds for applications:
receipes to AGL/meta-agl-demo repository (https://gerrit.automotivelinux.org/gerrit/AGL/meta-agl-demo),
source code to the new repository apps/cloudproxy ( in https://gerrit.automotivelinux.org/gerrit/apps)
 
Also, the OpenEmbedded layer met-iot-sdk, which supports multiple cloud service provider solutions, to AGL/AGL-repo (https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo).
 
We need to create a new git repository for a ‘cloudproxy service’. Is incstruction https://gerrit.automotivelinux.org/gerrit/Documentation/project-configuration.html valid? Or we should create some request to community in order to create repo?

Marat


Walt Miner
 

Hello Merat, 
Please follow this process to request a new repository. 


Regards,
Walt


Walt Miner
AGL Community Manager
The Linux Foundation

Visit us at:




On Thu, Apr 30, 2020 at 5:28 AM Marat <marat.sabitov@...> wrote:
Hi,
we plan to add the service which provides  the ability to interact with the clouds for applications:
receipes to AGL/meta-agl-demo repository (https://gerrit.automotivelinux.org/gerrit/AGL/meta-agl-demo),
source code to the new repository apps/cloudproxy ( in https://gerrit.automotivelinux.org/gerrit/apps)
 
Also, the OpenEmbedded layer met-iot-sdk, which supports multiple cloud service provider solutions, to AGL/AGL-repo (https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo).
 
We need to create a new git repository for a ‘cloudproxy service’. Is incstruction https://gerrit.automotivelinux.org/gerrit/Documentation/project-configuration.html valid? Or we should create some request to community in order to create repo?

Marat


Marat
 

Hi Walt!
 
Thanks for your hints!
The JIRA ticket for a new repo in staging is created: https://jira.automotivelinux.org/browse/SPEC-3351
 
Also I need AGL committer access permissions to submit changes in meta-agl-demo and AGL-repo.
Who can help me with that?
 
Thanks in advance!
Marat


Jan Simon Moeller
 

Hi Marat,

>> Also I need AGL committer access permissions to submit changes in meta-agl-demo and AGL-repo.
>> Who can help me with that?

When you have setup your LFID and gerrit accounts, you can upload code for review.
Note: "git review" is setup for most repos in AGL to make it easy.

Best regards,
Jan-Simon

------
Jan-Simon Möller
AGL Release Manager
The Linux Foundation

Visit us at:
www.automotivegradelinux.org
lists.automotivelinux.org
www.linuxfoundation.org


Marat
 

Hi Jan-Simon, thanks.
Just to be sure i'm do it correctly:

%git review -v
2020-05-06 11:11:10.981348 Running: git config --get gitreview.scheme
2020-05-06 11:11:10.989574 Running: git config --get gitreview.hostname
2020-05-06 11:11:11.020030 Running: git config --get gitreview.port
2020-05-06 11:11:11.029465 Running: git config --get gitreview.project
2020-05-06 11:11:11.040209 Running: git log --color=never --oneline HEAD^1..HEAD
2020-05-06 11:11:11.051082 Running: git remote
2020-05-06 11:11:11.063157 Running: git branch -a --color=never
2020-05-06 11:11:11.077551 Running: git rev-parse --show-toplevel --git-dir
2020-05-06 11:11:11.086180 Running: git remote update gerrit
Fetching gerrit
2020-05-06 11:11:14.487038 Running: git rev-parse HEAD
2020-05-06 11:11:14.501886 Running: git show-ref --quiet --verify refs/remotes/gerrit/master
2020-05-06 11:11:14.533699 Running: git rebase -p -i remotes/gerrit/master
2020-05-06 11:11:15.979746 Running: git reset --hard 9b293bd45a05a225ab3695969bbc4c6c0eaf17b9
2020-05-06 11:11:15.990925 Running: git config --get-colorbool color.review true
2020-05-06 11:11:16.005962 Running: git log --color=always --decorate --oneline HEAD --not --remotes=gerrit
2020-05-06 11:11:16.036840 Running: git rev-parse --symbolic-full-name --abbrev-ref HEAD
2020-05-06 11:11:16.061904 Running: git log HEAD^1..HEAD
Using local branch name "meta-iot-cloud" for the topic of the change submitted
2020-05-06 11:11:16.085892 Running: git push gerrit HEAD:refs/publish/master/meta-iot-cloud
remote: error: branch refs/publish/master/meta-iot-cloud:        
remote: You need 'Create' rights to create new references.        
remote: User: maratsabitov        
remote: Contact an administrator to fix the permissions        
remote: Processing changes: refs: 1, done            
To ssh://maratsabitov@...:29418/AGL/AGL-repo
 ! [remote rejected] HEAD -> refs/publish/master/meta-iot-cloud (prohibited by Gerrit: not permitted: create)
error: failed to push some refs to 'ssh://maratsabitov@...:29418/AGL/AGL-repo'
2020-05-06 11:11:18.495272 Running: git rev-parse --show-toplevel --git-dir

Note,
meta-iot-cloud is my local branch,
maratsabitov is my LFID.

That's why i asked about permissions.

Thanks in advance,
Marat
 


Hosokawa, Kenji (ADITJ/SWG)
 

Hi all,

 

I have same error. I tried “git push agl HEAD:refs/for/master” instead, it worked.

 

Best regards

Kenji Hosokawa

 

From: agl-dev-community@... <agl-dev-community@...> On Behalf Of Marat
Sent: Wednesday, May 6, 2020 8:15 PM
To: agl-dev-community@...
Subject: Re: [agl-dev-community] new AGL service repo #help

 

Hi Jan-Simon, thanks.
Just to be sure i'm do it correctly:

%git review -v

2020-05-06 11:11:10.981348 Running: git config --get gitreview.scheme

2020-05-06 11:11:10.989574 Running: git config --get gitreview.hostname

2020-05-06 11:11:11.020030 Running: git config --get gitreview.port

2020-05-06 11:11:11.029465 Running: git config --get gitreview.project

2020-05-06 11:11:11.040209 Running: git log --color=never --oneline HEAD^1..HEAD

2020-05-06 11:11:11.051082 Running: git remote

2020-05-06 11:11:11.063157 Running: git branch -a --color=never

2020-05-06 11:11:11.077551 Running: git rev-parse --show-toplevel --git-dir

2020-05-06 11:11:11.086180 Running: git remote update gerrit

Fetching gerrit

2020-05-06 11:11:14.487038 Running: git rev-parse HEAD

2020-05-06 11:11:14.501886 Running: git show-ref --quiet --verify refs/remotes/gerrit/master

2020-05-06 11:11:14.533699 Running: git rebase -p -i remotes/gerrit/master

2020-05-06 11:11:15.979746 Running: git reset --hard 9b293bd45a05a225ab3695969bbc4c6c0eaf17b9

2020-05-06 11:11:15.990925 Running: git config --get-colorbool color.review true

2020-05-06 11:11:16.005962 Running: git log --color=always --decorate --oneline HEAD --not --remotes=gerrit

2020-05-06 11:11:16.036840 Running: git rev-parse --symbolic-full-name --abbrev-ref HEAD

2020-05-06 11:11:16.061904 Running: git log HEAD^1..HEAD

Using local branch name "meta-iot-cloud" for the topic of the change submitted

2020-05-06 11:11:16.085892 Running: git push gerrit HEAD:refs/publish/master/meta-iot-cloud

remote: error: branch refs/publish/master/meta-iot-cloud:        

remote: You need 'Create' rights to create new references.        

remote: User: maratsabitov        

remote: Contact an administrator to fix the permissions        

remote: Processing changes: refs: 1, done            

To ssh://maratsabitov@...:29418/AGL/AGL-repo

 ! [remote rejected] HEAD -> refs/publish/master/meta-iot-cloud (prohibited by Gerrit: not permitted: create)

error: failed to push some refs to 'ssh://maratsabitov@...:29418/AGL/AGL-repo'

2020-05-06 11:11:18.495272 Running: git rev-parse --show-toplevel --git-dir

Note,
meta-iot-cloud is my local branch,
maratsabitov is my LFID.

That's why i asked about permissions.

Thanks in advance,
Marat

 


Marat
 

Hi, thanks.
My attempts:
%git push agl HEAD:refs/for/master

 

 

fatal: 'agl' does not appear to be a git repository

 

 

fatal: Could not read from remote repository.

 

 

 

 

 

Please make sure you have the correct access rights

 

 

and the repository exists.

%git push gerrit HEAD:refs/for/master

 

 

Counting objects: 4, done.

 

 

Delta compression using up to 2 threads.

 

 

Compressing objects: 100% (4/4), done.

 

 

Writing objects: 100% (4/4), 578 bytes | 0 bytes/s, done.

 

 

Total 4 (delta 3), reused 0 (delta 0)

 

 

remote: Resolving deltas: 100% (3/3)

 

 

remote: Processing changes: refs: 1, done    

 

 

To ssh://maratsabitov@...:29418/AGL/AGL-repo

 

 

 ! [remote rejected] HEAD -> refs/for/master (commit 9b293bd: not Signed-off-by author/committer/uploader in message footer)

 

 

error: failed to push some refs to 'ssh://maratsabitov@...:29418/AGL/AGL-repo'

I've checked - the commit was signed-off, anyway:
%git commit --amend --signoff
[meta-iot-cloud 544e07d] Signed-off-by: maratsabitov <marat.sabitov@...> Change-Id: Iea57a02a7ce84d5d87a2669a2eba2a37d99cf8d1
 Date: Sun May 3 11:30:16 2020 +0300
 2 files changed, 6 insertions(+)

And again:
%git push gerrit HEAD:refs/for/master
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 610 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3)
remote: Processing changes: refs: 1, new: 1, done    
remote: commit 544e07d: warning: subject >50 characters; use shorter first paragraph
remote: 
remote: SUCCESS
remote: 
remote:   https://gerrit.automotivelinux.org/gerrit/c/AGL/AGL-repo/+/24477 Signed-off-by: maratsabitov <marat.sabitov@...> Change-Id: Iea57a02a7ce8... [NEW]
remote: 
To ssh://maratsabitov@...:29418/AGL/AGL-repo
 * [new branch]      HEAD -> refs/for/master

Marat


Jan Simon Moeller
 

Hi !
See my comments inline to explain what happened:



On Wed, May 6, 2020 at 6:33 PM Marat <marat.sabitov@...> wrote:
>
> Hi, thanks.
> My attempts:
>
> %git push agl HEAD:refs/for/master
> fatal: 'agl' does not appear to be a git repository
> fatal: Could not read from remote repository.
> Please make sure you have the correct access rights

git push <git remote name>  <LOCAL>:<DESTINATION>

Thus 'agl' is the "git remote" name.
Usually this is 'origin' if you clone directly.
It is 'agl' if you use the repo tool to clone all git repos (it uses the name in the manifest).
It is 'gerrit' if you've setup 'git review'  (e.g. call 'git review -s' once) .

> and the repository exists.
> %git push gerrit HEAD:refs/for/master
> Counting objects: 4, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (4/4), done.
> Writing objects: 100% (4/4), 578 bytes | 0 bytes/s, done
> Total 4 (delta 3), reused 0 (delta 0)
> remote: Resolving deltas: 100% (3/3)
> remote: Processing changes: refs: 1, done    
> To ssh://maratsabitov@...:29418/AGL/AGL-repo
>  ! [remote rejected] HEAD -> refs/for/master (commit 9b293bd: not Signed-off-by author/committer/uploader in message footer)
> error: failed to push some refs to 'ssh://maratsabitov@...:29418/AGL/AGL-repo'

We require the Signed-off-by. 

Maybe the the commit mess was empty and the signed-off-by the first line.
Please see https://chris.beams.io/posts/git-commit/  for the commit messages and
always add the "Bug-AGL: SPEC-????" link back to jira.

> I've checked - the commit was signed-off, anyway:
> %git commit --amend --signoff
> [meta-iot-cloud 544e07d] Signed-off-by: maratsabitov <marat.sabitov@...> Change-Id: Iea57a02a7ce84d5d87a2669a2eba2a37d99cf8d1
>  Date: Sun May 3 11:30:16 2020 +0300
>  2 files changed, 6 insertions(+)
>
> And again:
> %git push gerrit HEAD:refs/for/master
> Counting objects: 4, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (4/4), done.
> Writing objects: 100% (4/4), 610 bytes | 0 bytes/s, done.
> Total 4 (delta 3), reused 0 (delta 0)
> remote: Resolving deltas: 100% (3/3)
> remote: Processing changes: refs: 1, new: 1, done    
> remote: commit 544e07d: warning: subject >50 characters; use shorter first paragraph
> remote:
> remote: SUCCESS
> remote:
> remote:   https://gerrit.automotivelinux.org/gerrit/c/AGL/AGL-repo/+/24477 Signed-off-by: maratsabitov <marat.sabitov@...> Change-Id: Iea57a02a7ce8... [NEW]
> remote:
> To ssh://maratsabitov@...:29418/AGL/AGL-repo
>  * [new branch]      HEAD -> refs/for/master

With the signoff added by --amend the upload works.

Check the version of 'git review --version' is >= 2.18 .

It is also available using pip: e.g. pip3 install git-review .

Best,
Jan-Simon

> Marat