Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [0KRunning with gitlab-runner 14.8.2 (c6e7e194)[0;m
- [0K on 404a730569a4 yvos-Tbk[0;m
- section_start:1654010321:prepare_executor
- [0K[0K[36;1mPreparing the "docker" executor[0;m[0;m
- [0KUsing Docker executor with image registry.gitlab.com/rvct/infra/ansible:2.12 ...[0;m
- [0KAuthenticating with credentials from job payload (GitLab Registry)[0;m
- [0KPulling docker image registry.gitlab.com/rvct/infra/ansible:2.12 ...[0;m
- [0KUsing docker image sha256:1849c38ca96ef83c5c59e661e5e6d532640e981cfd139532d78817c6b2ea67f0 for registry.gitlab.com/rvct/infra/ansible:2.12 with digest registry.gitlab.com/rvct/infra/ansible@sha256:6de0aee54341a3f4821397ee0087f863dce638a8096cc25ea03a767c7110f97d ...[0;m
- section_end:1654010323:prepare_executor
- [0Ksection_start:1654010323:prepare_script
- [0K[0K[36;1mPreparing environment[0;m[0;m
- Running on runner-yvos-tbk-project-14893263-concurrent-0 via 261fe74ec6be...
- section_end:1654010324:prepare_script
- [0Ksection_start:1654010324:get_sources
- [0K[0K[36;1mGetting source from Git repository[0;m[0;m
- [32;1mFetching changes with git depth set to 50...[0;m
- Reinitialized existing Git repository in /builds/rvct/infra/.git/
- [32;1mChecking out e631423d as master...[0;m
- Removing private.key
- Removing public.key
- [32;1mSkipping Git submodules setup[0;m
- section_end:1654010326:get_sources
- [0Ksection_start:1654010326:step_script
- [0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m
- [0KUsing docker image sha256:1849c38ca96ef83c5c59e661e5e6d532640e981cfd139532d78817c6b2ea67f0 for registry.gitlab.com/rvct/infra/ansible:2.12 with digest registry.gitlab.com/rvct/infra/ansible@sha256:6de0aee54341a3f4821397ee0087f863dce638a8096cc25ea03a767c7110f97d ...[0;m
- [32;1m$ cd ansible[0;m
- [32;1m$ ansible-galaxy collection install -r requirements.yml[0;m
- Starting galaxy collection install process
- Process install dependency map
- Starting collection install process
- Downloading https://galaxy.ansible.com/download/community-digitalocean-1.16.0.tar.gz to /root/.ansible/tmp/ansible-local-12fge66zhi/tmpsxqm6k18/community-digitalocean-1.16.0-4om0ye9u
- Installing 'community.digitalocean:1.16.0' to '/root/.ansible/collections/ansible_collections/community/digitalocean'
- community.digitalocean:1.16.0 was installed successfully
- Downloading https://galaxy.ansible.com/download/ansible-posix-1.3.0.tar.gz to /root/.ansible/tmp/ansible-local-12fge66zhi/tmpsxqm6k18/ansible-posix-1.3.0-kctg63s5
- Installing 'ansible.posix:1.3.0' to '/root/.ansible/collections/ansible_collections/ansible/posix'
- ansible.posix:1.3.0 was installed successfully
- Downloading https://galaxy.ansible.com/download/community-general-4.7.0.tar.gz to /root/.ansible/tmp/ansible-local-12fge66zhi/tmpsxqm6k18/community-general-4.7.0-nsp5au0b
- Installing 'community.general:4.7.0' to '/root/.ansible/collections/ansible_collections/community/general'
- community.general:4.7.0 was installed successfully
- [32;1m$ ansible-galaxy collection list[0;m
- # /usr/share/ansible/collections/ansible_collections
- Collection Version
- ---------------- -------
- community.docker 2.3.0
- # /root/.ansible/collections/ansible_collections
- Collection Version
- ---------------------- -------
- ansible.posix 1.3.0
- community.digitalocean 1.16.0
- community.general 4.7.0
- [32;1m$ ansible-inventory -i inventory --list[0;m
- {
- "_meta": {
- "hostvars": {
- "node-0": {
- "ansible_host": "146.190.236.239",
- "ansible_host_key_checking": false,
- "ansible_python_interpreter": "/usr/bin/python3",
- "ansible_ssh_private_key_file": "{{ lookup('env', 'CI_SSH_PRIVATE_KEY') }}",
- "class": "basic",
- "distro": "debian",
- "do_disk": 25,
- "do_id": 296567371,
- "do_image": {
- "created_at": "2022-04-20T20:16:10Z",
- "description": "Debian 10 Image",
- "distribution": "Debian",
- "id": 106569146,
- "min_disk_size": 7,
- "name": "10 x64",
- "public": true,
- "regions": [
- "nyc3",
- "nyc1",
- "sfo1",
- "nyc2",
- "ams2",
- "sgp1",
- "lon1",
- "ams3",
- "fra1",
- "tor1",
- "sfo2",
- "blr1",
- "sfo3"
- ],
- "size_gigabytes": 0.35,
- "slug": "debian-10-x64",
- "status": "available",
- "tags": [],
- "type": "base"
- },
- "do_memory": 1024,
- "do_name": "node-0",
- "do_networks": {
- "v4": [
- {
- "gateway": "146.190.224.1",
- "ip_address": "146.190.236.239",
- "netmask": "255.255.240.0",
- "type": "public"
- },
- {
- "gateway": "10.110.0.1",
- "ip_address": "10.110.0.2",
- "netmask": "255.255.240.0",
- "type": "private"
- }
- ],
- "v6": []
- },
- "do_region": {
- "available": true,
- "features": [
- "backups",
- "ipv6",
- "metadata",
- "install_agent",
- "storage",
- "image_transfer"
- ],
- "name": "Amsterdam 3",
- "sizes": [
- "s-1vcpu-1gb",
- "s-1vcpu-1gb-amd",
- "s-1vcpu-1gb-intel",
- "s-1vcpu-2gb",
- "s-1vcpu-2gb-amd",
- "s-1vcpu-2gb-intel",
- "s-2vcpu-2gb",
- "s-2vcpu-2gb-amd",
- "s-2vcpu-2gb-intel",
- "s-2vcpu-4gb",
- "s-2vcpu-4gb-amd",
- "s-2vcpu-4gb-intel",
- "s-4vcpu-8gb",
- "c-2",
- "c2-2vcpu-4gb",
- "s-4vcpu-8gb-amd",
- "s-4vcpu-8gb-intel",
- "g-2vcpu-8gb",
- "gd-2vcpu-8gb",
- "s-8vcpu-16gb",
- "m-2vcpu-16gb",
- "c-4",
- "c2-4vcpu-8gb",
- "s-8vcpu-16gb-amd",
- "s-8vcpu-16gb-intel",
- "m3-2vcpu-16gb",
- "g-4vcpu-16gb",
- "so-2vcpu-16gb",
- "m6-2vcpu-16gb",
- "gd-4vcpu-16gb",
- "so1_5-2vcpu-16gb",
- "m-4vcpu-32gb",
- "c-8",
- "c2-8vcpu-16gb",
- "m3-4vcpu-32gb",
- "g-8vcpu-32gb",
- "so-4vcpu-32gb",
- "m6-4vcpu-32gb",
- "gd-8vcpu-32gb",
- "so1_5-4vcpu-32gb",
- "m-8vcpu-64gb",
- "c-16",
- "c2-16vcpu-32gb",
- "m3-8vcpu-64gb",
- "g-16vcpu-64gb",
- "so-8vcpu-64gb",
- "m6-8vcpu-64gb",
- "gd-16vcpu-64gb",
- "so1_5-8vcpu-64gb",
- "m-16vcpu-128gb",
- "c-32",
- "c2-32vcpu-64gb",
- "m3-16vcpu-128gb",
- "m-24vcpu-192gb",
- "g-32vcpu-128gb",
- "so-16vcpu-128gb",
- "m6-16vcpu-128gb",
- "gd-32vcpu-128gb",
- "m3-24vcpu-192gb",
- "g-40vcpu-160gb",
- "so1_5-16vcpu-128gb",
- "m-32vcpu-256gb",
- "gd-40vcpu-160gb",
- "so-24vcpu-192gb",
- "m6-24vcpu-192gb",
- "m3-32vcpu-256gb",
- "so1_5-24vcpu-192gb",
- "so-32vcpu-256gb",
- "m6-32vcpu-256gb",
- "so1_5-32vcpu-256gb"
- ],
- "slug": "ams3"
- },
- "do_size": {
- "available": true,
- "description": "Basic",
- "disk": 25,
- "memory": 1024,
- "price_hourly": 0.00744,
- "price_monthly": 5.0,
- "regions": [
- "ams3",
- "blr1",
- "fra1",
- "lon1",
- "nyc1",
- "nyc3",
- "sfo3",
- "sgp1",
- "tor1"
- ],
- "slug": "s-1vcpu-1gb",
- "transfer": 1.0,
- "vcpus": 1
- },
- "do_tags": [
- "bastion"
- ],
- "do_vcpus": 1,
- "do_volume_ids": [],
- "docker_users": [
- "{{ lookup('env', 'CI_BOT_ID') }}"
- ],
- "gitlab_api_token": "{{ lookup('env', 'CI_BOT_GITLAB_TOKEN') }}",
- "gitlab_registration_token": "{{ lookup('env', 'CI_GITLAB_GROUP_RUNNER_TOKEN') }}",
- "gitlab_runner_description": "runner for build and deploy applications",
- "gitlab_runner_tag_list": [
- "common"
- ],
- "runner_default_image": "docker:20.10.16-dind"
- }
- }
- },
- "all": {
- "children": [
- "bastion",
- "region_ams3",
- "ungrouped"
- ]
- },
- "bastion": {
- "hosts": [
- "node-0"
- ]
- },
- "region_ams3": {
- "hosts": [
- "node-0"
- ]
- }
- }
- [32;1m$ mkdir -p ~/.ssh[0;m
- [32;1m$ chmod 700 ~/.ssh[0;m
- [32;1m$ eval $(ssh-agent -s)[0;m
- Agent pid 21
- [32;1m$ echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config[0;m
- [32;1m$ cat "$CI_SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -[0;m
- Identity added: (stdin) (max@x230)
- [32;1m$ cat "$CI_SSH_PRIVATE_KEY" > ~/.ssh/id_rsa[0;m
- [32;1m$ ansible-playbook -i inventory common.yml runner.yml[0;m
- PLAY [install common dependencies] *********************************************
- TASK [Gathering Facts] *********************************************************
- ok: [node-0]
- TASK [common : add the support user cibot] *************************************
- ok: [node-0]
- TASK [common : add SSH key to cibot] *******************************************
- ok: [node-0]
- TASK [common : install required system packages] *******************************
- ok: [node-0]
- PLAY [install docker] **********************************************************
- TASK [Gathering Facts] *********************************************************
- ok: [node-0]
- TASK [docker : install required system packages] *******************************
- ok: [node-0]
- TASK [docker : add docker GPG apt key] *****************************************
- ok: [node-0]
- TASK [docker : add docker repository] ******************************************
- ok: [node-0]
- TASK [docker : update apt and install docker-ce] *******************************
- ok: [node-0]
- TASK [docker : docker python dependencies] *************************************
- ok: [node-0]
- TASK [docker : check users for docker group] ***********************************
- ok: [node-0] => {
- "msg": [
- "cibot"
- ]
- }
- TASK [docker : add users to docker group] **************************************
- ok: [node-0] => (item=cibot)
- PLAY RECAP *********************************************************************
- node-0 : ok=12 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
- PLAY [install gitlab-runner] ***************************************************
- TASK [Gathering Facts] *********************************************************
- ok: [node-0]
- TASK [runner : add gitlab-runner GPG key] **************************************
- ok: [node-0]
- TASK [runner : add gitlab repository] ******************************************
- ok: [node-0]
- TASK [runner : install gitlab-runner] ******************************************
- ok: [node-0]
- TASK [runner : register gitlab runner] *****************************************
- ok: [node-0]
- TASK [runner : runner registration output] *************************************
- ok: [node-0] => {
- "msg": {
- "changed": false,
- "failed": false,
- "msg": "No need to update the runner runner for build and deploy applications",
- "runner": {
- "access_level": "not_protected",
- "active": true,
- "architecture": "amd64",
- "contacted_at": "2022-05-31T15:14:32.626Z",
- "description": "runner for build and deploy applications",
- "groups": [
- {
- "id": 8162395,
- "name": "rvct",
- "web_url": "https://gitlab.com/groups/rvct"
- }
- ],
- "id": 14908644,
- "ip_address": "146.190.236.239",
- "is_shared": false,
- "locked": false,
- "maximum_timeout": 3600,
- "name": null,
- "online": true,
- "paused": false,
- "platform": "linux",
- "projects": [],
- "revision": "c6bb62f6",
- "run_untagged": false,
- "runner_type": "group_type",
- "status": "online",
- "tag_list": [
- "common"
- ],
- "version": "14.10.0"
- }
- }
- }
- TASK [runner : get runner creation status] *************************************
- ok: [node-0]
- TASK [runner : get token for new runner] ***************************************
- skipping: [node-0]
- TASK [runner : get registered runner list raw] *********************************
- changed: [node-0]
- TASK [runner : get registered runner list] *************************************
- ok: [node-0]
- TASK [runner : registered runner list output] **********************************
- ok: [node-0] => {
- "msg": "{\"arch\":\"amd64\",\"level\":\"info\",\"msg\":\"Runtime platform\",\"os\":\"linux\",\"pid\":25024,\"revision\":\"c6bb62f6\",\"time\":\"2022-05-31T15:19:49Z\",\"version\":\"14.10.0\"}\n{\"ConfigFile\":\"/etc/gitlab-runner/config.toml\",\"level\":\"info\",\"msg\":\"Listing configured runners\",\"time\":\"2022-05-31T15:19:49Z\"}\n{\"Executor\":\"docker\",\"Token\":\"UxnTUUiAfj1ZZgAcUXZh\",\"URL\":\"https://gitlab.com\",\"level\":\"info\",\"msg\":\"common\",\"time\":\"2022-05-31T15:19:49Z\"}"
- }
- TASK [runner : get token for active runner] ************************************
- changed: [node-0]
- TASK [runner : registered runner token output] *********************************
- ok: [node-0] => {
- "msg": {
- "changed": true,
- "cmd": [
- "echo",
- "{arch:amd64,level:info,msg:Runtime",
- "platform,os:linux,pid:25024,revision:c6bb62f6,time:2022-05-31T15:19:49Z,version:14.10.0}\n{ConfigFile:/etc/gitlab-runner/config.toml,level:info,msg:Listing",
- "configured",
- "runners,time:2022-05-31T15:19:49Z}\n{Executor:docker,Token:UxnTUUiAfj1ZZgAcUXZh,URL:https://gitlab.com,level:info,msg:common,time:2022-05-31T15:19:49Z}",
- "|",
- "jq",
- "-r",
- "select(.Token != null) | .Token"
- ],
- "delta": "0:00:00.005415",
- "end": "2022-05-31 15:19:50.863885",
- "failed": false,
- "msg": "",
- "rc": 0,
- "start": "2022-05-31 15:19:50.858470",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "{arch:amd64,level:info,msg:Runtime platform,os:linux,pid:25024,revision:c6bb62f6,time:2022-05-31T15:19:49Z,version:14.10.0}\n{ConfigFile:/etc/gitlab-runner/config.toml,level:info,msg:Listing configured runners,time:2022-05-31T15:19:49Z}\n{Executor:docker,Token:UxnTUUiAfj1ZZgAcUXZh,URL:https://gitlab.com,level:info,msg:common,time:2022-05-31T15:19:49Z} | jq -r select(.Token != null) | .Token",
- "stdout_lines": [
- "{arch:amd64,level:info,msg:Runtime platform,os:linux,pid:25024,revision:c6bb62f6,time:2022-05-31T15:19:49Z,version:14.10.0}",
- "{ConfigFile:/etc/gitlab-runner/config.toml,level:info,msg:Listing configured runners,time:2022-05-31T15:19:49Z}",
- "{Executor:docker,Token:UxnTUUiAfj1ZZgAcUXZh,URL:https://gitlab.com,level:info,msg:common,time:2022-05-31T15:19:49Z} | jq -r select(.Token != null) | .Token"
- ]
- }
- }
- PLAY RECAP *********************************************************************
- node-0 : ok=24 changed=2 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
- section_end:1654010391:step_script
- [0Ksection_start:1654010391:cleanup_file_variables
- [0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m
- section_end:1654010391:cleanup_file_variables
- [0K[32;1mJob succeeded[0;m
Advertisement
Add Comment
Please, Sign In to add comment