$ ssh jumpbox@{bosh_url} -i jumpbox.key
ubuntu@ip-10-0-0-25:~/workspace/paasta-deployment/bosh$ ssh jumpbox@10.0.1.6 -i jumpbox.key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:fVx0sPH4A3iDY+dZ11ewBPxu0pKyVuOojA5M2XRMleI.
Please contact your system administrator.
Add correct host key in /home/ubuntu/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/ubuntu/.ssh/known_hosts:1
remove with:
ssh-keygen -f "/home/ubuntu/.ssh/known_hosts" -R "10.0.1.6"
ECDSA host key for 10.0.1.6 has changed and you have requested strict checking.
Host key verification failed.
=> 인증 정보 문제
ssh-keygen -R [ IP or DomainName] 명령어 사용
ubuntu@ip-10-0-0-25:~/workspace/paasta-deployment/bosh$ ssh-keygen -R 10.0.1.6
# Host 10.0.1.6 found: line 1
/home/ubuntu/.ssh/known_hosts updated.
Original contents retained as /home/ubuntu/.ssh/known_hosts.old
ubuntu@ip-10-0-0-25:~/workspace/paasta-deployment/bosh$ ssh jumpbox@10.0.1.6 -i jumpbox.key
The authenticity of host '10.0.1.6 (10.0.1.6)' can't be established.
ECDSA key fingerprint is SHA256:fVx0sPH4A3iDY+dZ11ewBPxu0pKyVuOojA5M2XRMleI.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.1.6' (ECDSA) to the list of known hosts.
Unauthorized use is strictly prohibited. All access and activity
is subject to logging and monitoring.
Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-110-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Fri Jun 10 10:51:35 2022 from 10.0.0.25
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
deployment delete 명령어 사용 시
ubuntu@ip-10-0-0-103:~$ bosh -e micro-bosh -d paasta deld
Fetching info:
Performing request GET 'https://micro-bosh:25555/info':
Performing GET request:
Retry: Get "https://micro-bosh:25555/info": dial tcp: lookup micro-bosh on
127.0.0.53:53: server misbehaving
→ micro-bosh 변수 설정 안해줘서 에러
변수 설정 안하고 delete 하는 명령어
ubuntu@ip-10-0-0-103:~/workspace/paasta-deployment/bosh$ bosh -d paasta deld
ubuntu@ip-10-0-0-103:~/workspace/paasta-deployment/bosh$ bosh -e micro bosh env
Unknown command `bosh'. Please specify one command of: add-blob, alias-env, attach-disk, blobs, cancel-task, cancel-tasks, clean-up, cloud-check, cloud-config, config, configs, cpi-config, create-env, create-release, curl, delete-config, delete-deployment, delete-disk, delete-env, delete-network, delete-release, delete-snapshot, delete-snapshots, delete-stemcell, delete-vm, deploy, deployment, deployments, diff-config, disks, environment, environments, errands, event, events, export-release, finalize-release, generate-job, generate-package, help, ignore, init-release, inspect-local-release, inspect-local-stemcell, inspect-release, instances, interpolate, locks, log-in, log-out, logs, manifest, networks, orphan-disk, orphaned-vms, recreate, releases, remove-blob, repack-stemcell, reset-release, restart, run-errand, runtime-config, scp, sha1ify-release, sha2ify-release, snapshots, ssh, start, start-env, stemcells, stop, stop-env, sync-blobs, take-snapshot, task, tasks, unalias-env, unignore, update-cloud-config, update-config, update-cpi-config, update-resurrection, update-runtime-config, upload-blobs, upload-release, upload-stemcell, variables, vendor-package or vms
이 에러 넘어가고 진행
upload-stemcell.sh (ap core) 다시 에러 발생
ubuntu@ip-10-0-0-103:~/workspace/paasta-deployment/bosh$ source upload-stemcell.sh
Unknown command `https://storage.googleapis.com/bosh-core-stemcells/1.84/bosh-stemcell-1.84-aws-xen-hvm-ubuntu-bionic-go_agent.tgz'. Please specify one command of: add-blob, alias-env, attach-disk, blobs, cancel-task, cancel-tasks, clean-up, cloud-check, cloud-config, config, configs, cpi-config, create-env, create-release, curl, delete-config, delete-deployment, delete-disk, delete-env, delete-network, delete-release, delete-snapshot, delete-snapshots, delete-stemcell, delete-vm, deploy, deployment, deployments, diff-config, disks, environment, environments, errands, event, events, export-release, finalize-release, generate-job, generate-package, help, ignore, init-release, inspect-local-release, inspect-local-stemcell, inspect-release, instances, interpolate, locks, log-in, log-out, logs, manifest, networks, orphan-disk, orphaned-vms, recreate, releases, remove-blob, repack-stemcell, reset-release, restart, run-errand, runtime-config, scp, sha1ify-release, sha2ify-release, snapshots, ssh, start, start-env, stemcells, stop, stop-env, sync-blobs, take-snapshot, task, tasks, unalias-env, unignore, update-cloud-config, update-config, update-cpi-config, update-resurrection, update-runtime-config, upload-blobs, upload-release, upload-stemcell, variables, vendor-package or vms
→.profile 수정 후 $ source ~/.profile 실행 안해줘서 에러
$ sudo apt-get update
$ sudo apt install -y build-essential zlibc zlib1g-dev ruby ruby-dev openssl libxslt1-dev libxml2-dev libssl-dev libreadline7 libreadline-dev libyaml-dev libsqlite3-dev sqlite3
E: Package 'libreadline7' has no installation candidate
→ dependency 설치 시 에러
$ sudo dpkg -i libreadline7_7.0-3_amd64.deb
$ sudo apt-get install -y libreadline7
E: Package 'libreadline7' has no installation candidate
→ libreadline7 설치 에러
Started installing CPI
Compiling package 'ruby-3.1.0-r0.81.0/9cf1a9582c595fd03eb9c73cd3c4b2d10de10c139f99ab0b9d1a71e5d2b91378'... Failed (00:00:01)
Failed installing CPI (00:00:01)
Installing CPI:
Compiling job package dependencies for installation:
Compiling job package dependencies:
Compiling package:
Running command: 'bash -x packaging', stdout: 'patching file src/emitter.c
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
', stderr: '+ set -e
+ RUBY_VERSION=3.1.0
+ RUBYGEMS_VERSION=3.3.5
+ LIBYAML_VERSION=0.2.5
++ PATH=/usr/local/opt/openssl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
++ openssl version
+ openssl_version='OpenSSL 1.1.1f 31 Mar 2020'
++ echo 'OpenSSL 1.1.1f 31 Mar 2020'
++ cut -f2 '-d '
++ cut -f1 -d.
+ openssl_major_version=1
+ '[' 1 == 0 ']'
+ tar xzf yaml-0.2.5.tar.gz
+ set -e
+ cd yaml-0.2.5
+ patch -p1
++ uname -m
+ '[' x86_64 == ppc64le ']'
+ CFLAGS=-fPIC
+ ./configure --prefix=/home/ubuntu/.bosh/installations/4fd8ae57-0af9-4448-4814-ebc4ef4b337d/packages/ruby-3.1.0-r0.81.0 --disable-shared
configure: error: in `/home/ubuntu/.bosh/installations/4fd8ae57-0af9-4448-4814-ebc4ef4b337d/tmp/bosh-release-pkg710783180/yaml-0.2.5':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
':
exit status 1
→ 무시하고 배포 진행 시 에러
$ sudo apt-get update
$ sudo apt install -y build-essential zlibc zlib1g-dev ruby ruby-dev openssl libxslt1-dev libxml2-dev libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3
⇒ libreadline7 제외하고 dependency 설치 :: 에러 해결
$ source upload-stemcell.sh
Using environment '10.0.221.6' as client 'admin'
Task 1
Task 1 | 06:52:05 | Update stemcell: Downloading remote stemcell (00:00:32)
Task 1 | 06:52:37 | Update stemcell: Extracting stemcell archive (00:00:05)
Task 1 | 06:52:42 | Update stemcell: Verifying stemcell manifest (00:00:00)
Task 1 | 06:52:44 | Update stemcell: Checking if this stemcell already exists (00:00:00)
Task 1 | 06:52:44 | Update stemcell: Uploading stemcell bosh-openstack-kvm-ubuntu-bionic-go_agent/1.90 to the cloud (00:00:20)
L Error: CPI error 'Bosh::Clouds::CloudError' with message 'Unable to connect to the OpenStack Keystone API http://paasta-controller:5000
getaddrinfo: Name or service not known (SocketError)' in 'create_stemcell' CPI method (CPI request ID: 'cpi-384741')
Task 1 | 06:53:04 | Error: CPI error 'Bosh::Clouds::CloudError' with message 'Unable to connect to the OpenStack Keystone API http://paasta-controller:5000
getaddrinfo: Name or service not known (SocketError)' in 'create_stemcell' CPI method (CPI request ID: 'cpi-384741')
Task 1 Started Wed Jul 6 06:52:05 UTC 2022
Task 1 Finished Wed Jul 6 06:53:04 UTC 2022
Task 1 Duration 00:00:59
Task 1 error
Uploading remote stemcell 'https://storage.googleapis.com/bosh-core-stemcells/1.90/bosh-stemcell-1.90-openstack-kvm-ubuntu-bionic-go_agent.tgz':
Expected task '1' to succeed but state is 'error'
Exit code 1
→ bosh 로그인 후 sudo vi ~/etc/hosts 파일에서 대시보드 ip/paasta-controller 설정 안해줘서 에러
Uploading stemcell 'bosh-openstack-kvm-ubuntu-jammy-go_agent/1.8'... Failed (00:01:38)
Cleaning up rendered CPI jobs... Finished (00:00:00)
creating stemcell (bosh-openstack-kvm-ubuntu-jammy-go_agent 1.8):
CPI 'create_stemcell' method responded with error: CmdError{"type":"Unknown","message":"read timeout reached","ok_to_retry":false}
Exit code 1
Deploying:
Creating instance 'bosh/0':
Waiting until instance is ready:
Post "https://mbus:<redacted>@10.121.81.6:6868/agent": x509: certificate is valid for 10.121.80.6,81.6
Exit code 1
→ ~/workspace/paasta-deployment/bosh/openstack$