Question 1. What Is The Added Value Of Software Factory ?
If you aren't sure approximately using Software Factory, right here are a few perks that would convince you:
Software Factory is a Continuous Integration gadget that works out of the container, with the entirety prepared for use right after the first configuration run. Deploying all the services by way of hand and with this level of interdependency might take loads more time.
Software Factory allows enforcing the trendy nice practices in Continuous Integration.
In Software Factory, the configuration is handled as code which could consequently be versioned, reviewed, examined or rolled back for any alternate.
Users are automatically and consistently authenticated on every service with Single Sign-On. Again, achieving this by means of hand might be very time consuming.
Software Factory can be completely subsidized up, restored, and upgraded robotically through examined tactics.
Software Factory may be deployed everywhere: baremetal systems, LXC, KVM or on OpenStack thru Heat.
Software Factory is fast to install (three/five mins on a nearby gadget, 15 mins with Heat).
Software Factory runs worker nodes on demand on an OpenStack cloud, that may lessen effective charges of testing.
Question 2. Can I Disable Gerrit ?
As of now, Gerrit is obligatory in Software Factory for multiple reasons:
Managesf get entry to manage guidelines are primarily based on Gerrit organizations.
The config repository is hosted on Gerrit with an integrated CI/CD workflow.
Gerrit could be made elective in a destiny release  of Software Factory
Note: that it's miles viable to use Software Factory as a 3rd birthday celebration CI for an external Gerrit or a GitHub organisation. In this situation, the gerrit server is most effective used to host the config repository, and operators can pass it entirely by way of pushing config repository modifications with the “git push” command as opposed to “git evaluate”.
Python Interview Questions
Question three. Why Can’t I +2 A Change After Being Added To The Core Group ?
This can also appear due to internet browser cache problems. Remove all cookies then sign off and log in again to refresh your gerrit privileges.
Question 4. Why Does My Build Fail With The “not_registered” Error ?
This errors occurs while zuul can’t construct a task. Most of the time it’s due to the fact:
A assignment gate is configured with an unknown job. The process’s definition is in all likelihood missing in zuul’s layout.
No employee node become ever available. Zuul will fail throwing a NOT_REGISTERED mistakes (rather than queuing) until a worker node with the perfect label is to be had. Only then, once Zuul knows a label simply exists, will it properly queue builds.
The first step to research that blunders is to affirm that the activity is gift within the jobs dashboard. If the process isn't always there, check the config repository and take a look at that the task is either elevated from a job template (the use of the undertaking’s name), or that is absolutely described. Otherwise add the task and replace the config repository.
Question 5. Why Does My Build Stay In “queued” State ?
This takes place whilst no employee nodes are to be had to execute a build:
First verify that at the least one worker node with the proper label exists. You can listing nodes with the sfmanager CLI.
Then verify that your task definition clearly uses the right worker node label.
Web Services Interview Questions
Question 6. How Can I Change My Deployment’s Hostname?
You can change the hostname after the deployment by converting the fqdn parameter in /etc/software program-manufacturing facility/sfconfig.Yaml, putting off the prevailing SSL certificate (only required if walking useful tests and the usage of the default self-signed certificates) and jogging sfconfig once more:
sed -i -e 's/fqdn:.*/fqdn: mynewhostname.Com/g' /and so forth/software program-manufacturing facility/sfconfig.Yaml
notice: which you would possibly need to update URLs in other places as nicely, as an example git faraway urls in .Gitreview and .Git/config files for repositories hosted on Software Factory.
Question 7. How To Setup A Mirror On Swift For External Dependencies ?
The mirror service uses the mirror2swift application to offer a neighborhood cache for external ressources. For example we use it to mirror RPM repositories, which hastens building times of our take a look at environments.
To enable the replicate service, you need to configure a fast container in sfconfig.Yaml and then specify the URL to mirror in the config-repo:
Add the mirror position to /etc/software program-manufacturing unit/arch.Yaml
Configure the mirror position in /and so on/software-manufacturing facility/sfconfig.Yaml
Edit the replicate configuration template supplied inside the mirrors directory of the config repository.
When periodic_update is ready, the mirror might be updated periodically via a dedicated zuul pipeline. The fame of the replace may be checked like every other CI construct. Otherwise, to update the cache manually, this command desires to be completed:
sudo -u mirror2swift mirror2swift /var/lib/mirror2swift/config.Yaml
periodic_update: '0 0 * * *'
The swift_mirror_url wishes to be the canonical, fully qualified url of the goal field. The swift_mirror_tempurl_key wishes to be a tempurl key with writing rights. The periodic_update desires to be a valid zuul timer format, e.G. Day by day is ‘0 zero * * *’.
The yaml files in the config repository constitute the list of mirrors as documented right here:
https://github.Com/cschwede/mirror2swift. For example, config/mirrors/centos.Yaml:
- call: os
Web Services Tutorial HTML five Interview Questions
Question 8. How To Restart A Config-update Job ?
When the config-replace task fails, you can manually restart the job the use of the command bellow. Make sure to set the ref-sha which is the remaining devote hash of the config repository.
Zuul enqueue-ref --trigger gerrit --tenant nearby --pipeline publish --venture config --ref master --newrev ref-sha
The task will be jogging in the publish pipeline of the Zuul repute web page.
Question 9. How Can I Use The Gerrit Rest Api?
The Gerrit REST API is open for queries by means of default on all Software Factory deployments.
There is an in depth documentation to be had on line:
The Gerrit API is to be had on the https://fqdn/r/ endpoint for non authenticated requests and for authenticated requests it's miles https://fqdn/r/a/.
To use the authenticated endpoint you have to create an API password first. To achieve this, visit the User Settings page (top proper nook at the pinnacle menu) and click on the button Generate new API key.
getting open modified with cURL could be:
And to get admission to a restricted sources with cURL could be:
curl -u username:apikey https://fqdn/r/a/bills/self/password.Http
Adv Java Interview Questions
Question 10. How Can I Use Gertty?
After getting a Gerrit API key (as explained in), use the simple auth-kind in gertty.Yaml,
- call: sftests
HTML 5 Tutorial