OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have.
|1 day ago|
|Docker||2 years ago|
|LBaaS/LBaaS-ops-manager-tile||2 years ago|
|murano-apps||11 months ago|
|tests||2 years ago|
|tools||1 year ago|
|unittests||2 years ago|
|.gitignore||2 years ago|
|.gitreview||1 day ago|
|.testr.conf||2 years ago|
|README.rst||3 months ago|
|bindep.txt||2 years ago|
|setup.cfg||3 months ago|
|setup.py||2 years ago|
|test-requirements.txt||2 years ago|
|tox.ini||2 years ago|
This is a step by step guide how to use CI/CD application.
All Applications are available in App Catalog. The main one is: http://apps.openstack.org/#tab=murano-apps&asset=CiCdEnvironment
For manually uploading the packages to Murano, user need to upload them in special order, otherwise it may lead to automatic loading their dependencies from App Catalog, which has probably the different versions of these packages.
For development purposes special script can be used: https://github.com/openstack/ci-cd-pipeline-app-murano/blob/master/tools/prepare_packages.sh
The right order of manual load packages via Murano UI is (same order is used in script mentioned above):
For more information how to use Murano is available here: http://murano.readthedocs.io/en/latest/draft/enduser-guide/quickstart.html
This is user credentials - for admin and common user. If you have you own .gitconfig file on desktop, you can change user credentials or use default settings.
- 2.Second panel:
- Instance flavor
- Instance image
- Key Pair
- Availability zone
- Instance Naming Pattern
For successful deployment of murano app, user need to download special image with pre-installed murano-agent. If you want to create your own image, then follow the instruction: http://docs.openstack.org/developer/murano/image_builders/linux.html
Then deploy your application in environment.
When application is finally deployed, go to Environments panel, choose the newly deployed environment and open the Latest Deployment Log tab. Scroll down and click on Jenkins, Gerrit URLs.
Need to add mapping hostname to your local desktop to have access to Gerrit Web form. Also the same issue exists for Jenkins, so repeat it for Jenkins VM too.
How to fix:
Execute command: sudo echo "<ip_address> <hostname> >> /etc/hosts on your local desktop and on Jenkins VM (via ssh). Where:
Add new project to Gerrit config, like it works for Openstack Infra. Open gerrit/projects.yaml in project-config repo from previous step and add something like:
- project: demo/petclinic description: petclinic description upstream: https://github.com/sn00p/spring-petclinic acl-config: /home/gerrit2/acls/open-paas/project-config.config
Ideally ACL file should be different, but for simple example we can use the existing one.
Set correct options as default from step 2 for your ~/.gitconfig on desktop by adding the following lines:
[user] email = email@example.com name = user
Skip this step if you have your own ~/.gitconfig and you already specified correct name and mail on step 2.
Commit changes and push to review:
git add . git commit -am "Add Petclinic Project" git review -r origin master
Known issue: We already have template for Maven job, but it is not applied by default.
How to fix: To apply this job template you need to connect to Jenkins VM via ssh. Login as root and execute command: jenkins-jobs update /etc/project-config/jenkins/jobs
Go to Jenkins UI form, open created job and configure it. Set Source Code management to Git .Set Repository url as it's displayed in Gerrit. For example: ssh://<username>@<gerrit_hostname>:29418/demo/petclinic
Use jenkins user in link above instead of <username>.
Change branch in repo to Spring-Security:
git checkout Spring-Security
Change the following file in this repository: src/main/webapp/WEB-INF/jsp/welcome.jsp. For example,replace word Welcome with Hi there!. Commit and push on review:
git add . git commit -am "Patch with changes" git review -r origin Spring-Security