1.環境
ubuntu16.04 Ubuntu One
2.問題
在gerrit上提交代碼前需要注冊Ubuntu One賬號,用Ubuntu One賬號登錄
gerrit系統, Launchpad系統。
3.解決方法
3.1 注冊OpenStack ID賬號:
https://openstackid.org/accounts/user/login,
primary email is "MikeOpenStack@gmail.com",然后到郵箱確認注冊。
3.2. 注冊Ubuntu One 賬號:
https://launchpad.net/+login, 然后到郵箱確認注冊。
(注冊信息如下:
郵箱: “MikeOpenStack@gmail.com”,
username: mike_openstack(全為小寫,為了與gerrit username保持一致)
3.3 登錄gerrit設置username
設置gerrit username: mike_openstack:
https://review.openstack.org/
(only can set once)
3.4 登錄gerrit 添加ssh key.
setting->ssh public key, 點“add” 然后可以將本地的ssh public key 添加到這里。
在本地任意目錄執行
ssh-keygen, 其他選項默認,結束執行后將“~/.ssh/id_rsa.pub”
文件內容添加到gerrit 的ssh public key。
3.5 登錄gerrit簽署ICAL協議
setting->agreements, 添加individual contribution license agreement.
(協議類型選ICLA,其他信息是可選的)
3.6 更新gerrit contact information.
確保Contact information中的“preferred email”與OpenStack ID 中的primary
Email一致。
更新下面的Mailing Address(這里填工作住址, 成功更新后會有提示。)
“
The following offline contact information is stored encrypted.”
3.7 run "git review -s" in sandbox
在OpenStack workflow中的sandbox, 根據提示,可以提交一個版本代碼。
做任何修改前,在sandbox目錄下,執行"git review -s",要求填
gerrit username 時,填“mike_openstack”即可。